Guide · Curve fitting

ELISA 4PL curve fitting

How a four-parameter logistic curve is fitted to an ELISA standard series, what each parameter means, when weighting changes the answer, when a fifth parameter is worth adding, and what Meniscus checks before it calls a run usable.

Why ELISA standard curves are not straight lines

An immunoassay signal flattens at both ends. At very low concentrations there is too little analyte to bind; at very high concentrations the capture sites are saturated. Between the two, signal rises steeply with the logarithm of concentration. That S-shape is what the four-parameter logistic (4PL) model describes, and it is why a straight line through ELISA standards gives misleading concentrations everywhere except the middle of the range.

The four parameters

4PL model
y = d + (a − d) / (1 + (x / c)^b)
  • a — the response at zero concentration. For a rising curve, this is the lower plateau.
  • d — the response at infinite concentration: the upper plateau of a rising curve.
  • c — the inflection point, the concentration halfway between the two plateaus. Often reported as the EC50.
  • b — the Hill slope: how steeply the curve climbs through the inflection.

a and d are defined by position, not by size. With a positive slope, the curve tends to a as concentration falls and to d as it rises — whichever is larger. A falling curve, as in a competitive ELISA, is simply one where a is larger than d; the slope stays positive. Getting this wrong starts the optimiser from a curve running the wrong direction, and it is a real bug that this convention was written down to prevent.

How the fit is found

There is no closed-form solution for a 4PL, so the parameters are found iteratively with a Levenberg–Marquardt optimiser written for Meniscus. It starts from guesses read off the data — a from the signal at the lowest standard, d from the highest, c from the standard nearest the midpoint, and b = 1 — and fits c on a logarithmic scale, which keeps it positive and stable across several decades of concentration.

The fit is checked against scipy.optimize.curve_fit on the same data. On noiseless data the two agree to better than 1 part in 1013. On noisy data, the shipped optimiser itself is run through a bridge and compared, and the two independent optimisers agree to better than 1 part in 107. Both checks are listed as verified in the validation ledger.

Weighting

Plate-reader signals are heteroscedastic: the scatter grows with the signal. An unweighted fit treats every point as equally reliable, so the high standards, which carry the largest absolute errors, dominate the fit. The cost lands at the low end of the curve — which is usually where your samples are.

Weighting rescales each point's contribution. The Weighting menu in the analysis panel offers:

  • None — constant variance. The fit starts here.
  • 1/y — mild proportional error.
  • 1/y² — constant relative error; labelled in the menu as the conventional choice for ligand-binding assays.
  • 1/ŷ² — iteratively reweighted; more stable when a signal is near zero.
  • 1/x and 1/x² — weights on concentration.
  • 1/s² — the replicate variance at each level.

Be clear about the evidence here. The weighting schemes are tested internally — 1/y² measurably reduces low-end error compared with no weighting across 500 seeded noisy replications — but the weighted parameters have not yet been compared against an independent package. The ledger lists them as internally consistent only.

When to use 5PL instead

The 4PL curve is symmetric about its inflection point. Some assays are not, and a five-parameter logistic adds an asymmetry term g:

5PL model
y = d + (a − d) / (1 + (x / c)^b)^g

An extra parameter always fits at least as well, so “the 5PL fits better” is not, on its own, a reason to use it. Two things are:

  • The residual pattern. If the 4PL residuals run systematically above the curve on one side and below on the other, the model is wrong in shape. The QC verdict flags a systematic residual trend.
  • AICc. The fit panel reports the corrected Akaike information criterion, which penalises the extra parameter. Switch between the two models and compare: a lower AICc for the 5PL means the asymmetry earns its place.

The 5PL fit is checked against scipy to better than 1 part in 1013 on noiseless data. AICc, the parameter standard errors shown next to each fitted value, and the residual trend test are internally consistent but not yet externally checked.

What the QC verdict checks

After every fit, Meniscus applies a fixed set of checks and condenses them into one sentence at the top of the results: This run is usable, Usable with caveats, or Do not report these numbers. For a logistic fit, the thresholds follow the ligand-binding convention:

  • Standard accuracy — each standard back-calculates to within ±20% of nominal (±25% at the lowest and highest levels), and at least 75% of standards, across at least 6 levels, pass.
  • Standard precision — replicate CV of 20% or less (25% at the ends of the range).
  • Unknown precision — replicate CV of 20% or less, with a warning from 15%. A sample with one replicate is flagged as having no precision estimate.
  • Monotonicity — signal moves in one direction with concentration.
  • Residual pattern — no systematic trend.
  • Saturation — no well at or above 90% of the reader's maximum.
  • Unassigned wells with signal — usually a layout entered one row out.

R² is deliberately not one of the checks for a logistic fit: it is a weak criterion for nonlinear models, and a curve can score 0.99 while being the wrong shape. Each failing check comes with what it measured, the threshold, and what to do about it.

To see the fitted curve turned into a concentration, follow the step-by-step guide to calculating ELISA concentration from OD.

Try it on your own plate

The demo ELISA and BCA plates load in one click, so you can check every step on this page against the app before using your own export. Nothing you open is uploaded.

Free for academic research · No account required