Stability study: how to estimate shelf life with regression

Updated

A stability study measures a product attribute, such as the assay of a drug, the viscosity of an adhesive or the strength of a sealant, at several times during storage, and estimates the shelf life: the time up to which you can be confident the average product still meets its specification. The standard method fits a regression line of the attribute against time and finds where the one-sided 95% confidence bound for the mean crosses the specification limit. The approach follows the ICH Q1E guideline, "Evaluation of Stability Data", used for pharmaceuticals and widely copied elsewhere.

When to use it

  • You must set or confirm an expiry date for a drug, a food, a reagent, an adhesive or a coating.
  • You have measurements of several batches at planned time points (for example 0, 3, 6, 9, 12 and 18 months).
  • The attribute changes roughly linearly over time, or becomes linear after a transformation.
  • You need to decide whether batches can be combined into one shelf-life estimate.

How it works

1. Fit the regression. For each batch, fit attribute = intercept + slope × time.

2. Test whether batches can be pooled. An analysis of covariance compares three models: separate slopes and intercepts, a common slope with separate intercepts, and a single line. Q1E tests these at a significance level of 0.25 instead of 0.05, so that real batch differences are not hidden by a test with little power:

  • If the slopes differ (p < 0.25), each batch gets its own line.
  • If the slopes are equal but the intercepts differ, use a common slope with separate intercepts.
  • If both are equal, pool all data into one line.

3. Find where the confidence bound crosses the limit. For a lower specification limit, compute the one-sided 95% lower confidence bound for the mean at each time t. For a single line with n points:

LCB(t) = ŷ(t) − t₀.₉₅,df · s · √( 1/n + (t − t̄)² / Sxx )

where s is the residual standard deviation, Sxx = Σ(tᵢ − t̄)² and df the residual degrees of freedom. The shelf life is the earliest time at which the bound reaches the limit. When batches keep separate lines, compute it for each and take the shortest. For an attribute that rises, such as a degradation product, use the upper bound against an upper limit.

Example

A plant makes a tablet with an assay specification of at least 95.0% of label claim. Three production batches are stored at long-term conditions and tested at 0, 3, 6, 9, 12 and 18 months:

Month03691218
Batch 1100.799.899.297.998.797.2
Batch 2100.099.798.998.097.996.2
Batch 3100.8100.099.899.098.696.9
Assay of three tablet batches during storage9698100Assay (% of label claim)Batch 1Batch 2Batch 3Lower limit03691218Months in storage
Assay of three tablet batches during storage

Pooling tests (residual from the separate-lines model: 12 degrees of freedom):

TestFpDecision at 0.25
Equal slopes0.450.650Slopes can be pooled
Equal intercepts6.620.012Intercepts differ

The batches lose assay at the same rate, but batch 2 started lower. The model is a common slope with separate intercepts:

Batch 1Batch 2Batch 3
Intercept (%)100.52100.06100.79
Common slope−0.2010% per month (SE 0.0135)

The residual standard deviation is s = 0.339 with 14 degrees of freedom, and t₀.₉₅,₁₄ = 1.761.

Shelf life. The lower 95% bound for each batch's mean reaches 95.0% at:

BatchMean reaches 95.0%Lower bound reaches 95.0%
127.5 months25.1 months
225.2 months23.0 months
328.8 months26.3 months

Batch 2 limits the shelf life to 23.0 months. For example, at 24 months batch 2's predicted mean is 95.23% but its lower bound is 94.78%, below the limit. Had the team ignored the intercept test and pooled all 18 points into one line, it would have claimed 24.4 months, overstating the shelf life of the weakest batch.

The data end at 18 months, so 23 months is an extrapolation. Q1E limits how far beyond the available long-term data a shelf life may be proposed, and the claim is confirmed as later time points come in.

How to read the results

  • Check the pooling decisions first. They decide which line, or which batch, sets the shelf life.
  • Read the bound, not the mean line. The mean line crosses the limit later; the shelf life is where the confidence bound crosses.
  • Look at the residuals. Curvature, an outlying time point or an analytical shift at one test date can bias the slope.
  • Note the extrapolation. A shelf life beyond the last time point depends on the line staying straight.

Common mistakes

  • Using 0.05 for the pooling tests. With few batches, real differences often have p-values between 0.05 and 0.25; pooling them overstates the shelf life.
  • Using a prediction interval when the guideline asks for a confidence bound on the mean, or the reverse. Know which your protocol specifies.
  • Fitting a line through curved data. If the attribute drops fast at first and then levels off, transform it or use a suitable model.
  • Mixing storage conditions. Accelerated and long-term data need separate analyses.

Frequently asked questions

Why does the guideline use a significance level of 0.25?

Stability studies usually have three batches and few time points, so the pooling tests have little power. A high significance level makes it harder to pool batches that really differ, which protects against an optimistic shelf life.

Why one-sided?

The specification is one-sided: only a low assay is a problem. A one-sided 95% bound puts all 5% of the risk on that side.

What if the attribute can move in either direction?

For an attribute with both lower and upper limits, such as pH, compute both one-sided bounds (or a two-sided 95% interval) and take the earlier crossing.

Can I use this method outside pharmaceuticals?

Yes. Adhesives, coatings, reagents, food and batteries all use the same idea: model the change with time and find where a confidence bound crosses the limit. Your industry may set its own confidence level and time points.

Try it with your own data

StatLab SPC is free, open-source statistics for engineers. It runs in your browser, works offline, and never uploads your data.

Open StatLab