# Curve fits and model comparison

`relate_curve_fit` is a tool of the Drybench MCP server. It runs the same engine and reporting rules as Drybench Assay.

## What it answers

Required: unit (unspecified, replicates, rows, serial, technical). Fits one curve family by least squares (exponential growth, one- or two-phase exponential, power law, Boltzmann sigmoid, quadratic or cubic polynomial), or ranks several models by AICc through compare; family or compare is required. x0 is required for exponential families and compare. Profile or t intervals open only for replicate units, or row units with one value per row. AICc ranking is informational only.

**Limits:**

- A C50 estimated here describes this assay under these conditions and is not a binding constant.
- It computes from the inputs it receives. It does not check the person's data, design or sample.
- Every computed number a reply returns, other than an integer or an exact decimal, is rounded once to 12 significant figures: to the nearest, a change of at most 5 × 10⁻¹² of its value, except that a lower bound is rounded down and an upper bound up, a change of less than 1 × 10⁻¹¹; the method computes, and decides any pass or fail, on the unrounded value.

> Research and education software; not for diagnosis or treatment decisions.
>
> Not medical advice. Nothing here is advice about any medicine, treatment or condition, and nothing here is an assessment of any person's variant, sample or molecule. Decisions made with it are yours.
>
> Not a forecast. Stages, scores, rates, rankings and similarities shown here describe records as they stand, or historical averages; they are not a forecast for any molecule, trial, drug, company or target.

## What this page can and cannot show

Weakest level among this tool's methods: Checked against a reference. Reference kind not recorded for 2 of 2 methods.

Not fully recorded, and not independently reviewed. Items marked "Not recorded" are missing from this project's records for the version named. Apart from any worked example shown, the cases and their values are not printed, so a reader cannot re-run these checks. No independent scientist has yet reviewed these methods or checks.

[Open Drybench Assay](https://www.drybench.com/assay/app) · [Drybench Assay: methods and checks](https://www.drybench.com/methods/assay) · [What the levels mean](https://www.drybench.com/methods/levels) · [Every assistant tool](https://www.drybench.com/methods/tools)

## Inputs

An omitted input takes the default its description states; the reply's `inputsReceived` shows what was given. Any input not listed here is refused.

- `x` (array of number or null, required): X per row, in its own unit; null for a blank.
- `y` (array of number or null or array, required): Y per row: a number, null (blank), or an array of replicate values for that row.
- `xLabel` (string, optional): Optional name of X.
- `yLabel` (string, optional): Optional name of Y.
- `family` (string, optional): Single curve family to fit (supply family or compare, never both). One of `growth`, `one-phase`, `two-phase`, `power`, `boltzmann`, `poly2`, `poly3`.
- `label` (string, optional): One- or two-phase exponential direction label (default 'decay'). One of `decay`, `association`.
- `x0` (number, optional): Start X for exponential families (required for exponential families and compare).
- `plateau` (number, optional): Optional fixed plateau in Y unit for 'one-phase' family only.
- `compare` (array of string, optional): 2 to 10 distinct model keys to rank by AICc instead of fitting one family. each item: One of `origin`, `line`, `poly2`, `poly3`, `growth`, `one-phase`, `one-phase-p0`, `two-phase`, `power`, `boltzmann`.
- `unit` (string, required): What one point is (required; never inferred): 'replicates' (each replicate an independent unit), 'rows' (each row an independent unit, replicates technical: row means are used), 'serial' (serial reads of one unit), 'technical', or 'unspecified'. Inference needs 'replicates' or 'rows'. One of `unspecified`, `replicates`, `rows`, `serial`, `technical`.
- `level` (number, optional): Confidence coverage level for intervals (0.9, 0.95 default, or 0.99). One of `0.9`, `0.95`, `0.99`.

## What it withholds or refuses

A refusal, a withheld value or another named status is an answer: the reply gives the reason and no number in its place; an absent value is not zero. Invalid input means nothing ran.

Refusal codes: not recorded for relate\_curve\_fit.

Values it withholds: not recorded for relate\_curve\_fit.

## How to cite a number from it

Every reply carries a cite line. It names, in order: the tool and the server version; each method the call went through, with its version and level (and the limit beside a level where the method's record narrows it); the receipt, the first 12 characters of the hashes of the arguments and of the result; and the address where its methods are described. Quote it with any number taken from the reply.

The receipt identifies a computation; it is not a signature. It holds no time, so the same arguments on the same server and method versions give the same receipt, and anyone can call the tool again and compare; a later method version can change the output hash.

### An example

The values asked and the values answered, computed by this tool when this page was built:

**Asked with**

- `family`: growth
- `x0`: 0
- `unit`: replicates
- `level`: 0.95

It answered (`computed`):

- `mode`: curve
- `unit`: independent

The reply carries more values than are shown here.

Its cite line:

```cite
relate_curve_fit, server 1.0.0; nonlinear-families@1.1.0 (Checked against a reference); receipt 3854e83553fd/b9691df91371; methods https://www.drybench.com/methods/assay; page https://www.drybench.com/methods/tools/relate-curve-fit. Quote this line with any number taken from this reply.
```

## Methods

Every method and reference the tool's replies cite, with its version and level. A reply names the methods that call went through.

### Exponential, two-phase, power, Boltzmann and polynomial fits, with profile intervals

- **Method:** `nonlinear-families@1.1.0`
- **Level:** Checked against a reference. Reference kind: not recorded. This level uses the apps' wider definition on the levels page.
- **Reference:** Bates DM, Watts DG. Nonlinear regression analysis and its applications. Wiley 1988, ch. 6 (profile intervals).
- **How it was checked:** Checked against R 4.4.3 nls (port) on the 29 curve cases of the 0.11.0 fixture (exponential growth, one-phase, two-phase, power and Boltzmann; polynomials in exact fractions): residual sums of squares within 1e-8 relative, ln parameters within 1e-6 absolute and the others within 1e-6 × max(|value|, span), noiseless fits within 1e-8, polynomials within 1e-9 relative, profile bounds within 1e-3 in ln or scaled units of a SciPy direct profile, side states and withheld states exact; SciPy 1.13.1 least\_squares agrees on all 16 of the residual sums of squares it computes. Simulated coverage of the 95 percent profile intervals cleared on one design per family for growth, one-phase, two-phase, power and Boltzmann (2,000 replicates per family, every one estimable): every quantity covered at least 94.5 percent against a gate of 90 percent, with no side unresolved in the first 100 replicates' full profiles (2026-10-13). Intervals at 90 and 99 percent are not simulated.
- What was not checked: not recorded for nonlinear-families\@1.1.0. Its absence does not mean everything was checked.
- [Method, sources and checks](https://www.drybench.com/methods/m/nonlinear-families)
- [On Drybench Assay's methods page: Correlation](https://www.drybench.com/methods/assay#correlation)

### ΔAICc across fitted models, extra-sum-of-squares F for nested pairs

- **Method:** `relationship-model-comparison@1.0.0`
- **Level:** Checked against a reference. Reference kind: not recorded. This level uses the apps' wider definition on the levels page.
- **Reference:** Hurvich CM, Tsai CL. Biometrika 1989;76:297-307 (AICc); Bates DM, Watts DG 1988 (the extra-sum-of-squares F).
- **How it was checked:** Checked against R 4.4.3 (anova between nested pairs, AIC, and AICc on the residual-sum-of-squares form) on the 9 comparison cases of the 0.11.0 fixture: the ranking, the parameter counts, the models left out with their reasons, and the F pairs and labels exact; between linear models ΔAICc within 1e-8 absolute, F and p within 1e-8; with a nonlinear model ΔAICc within 1e-4 absolute, F within 1e-5 and p within 1e-4; withheld states exact (2026-10-13). No SciPy cross-check.
- What was not checked: not recorded for relationship-model-comparison\@1.0.0. Its absence does not mean everything was checked.
- [Method, sources and checks](https://www.drybench.com/methods/m/relationship-model-comparison)
- [On Drybench Assay's methods page: Correlation](https://www.drybench.com/methods/assay#correlation)

No independent scientist has yet reviewed these checks. [What the levels mean](https://www.drybench.com/methods/levels).

## Changes to its methods

- No correction is logged for nonlinear-families\@1.1.0.
- No correction is logged for relationship-model-comparison\@1.0.0.

## Where it runs

The local MCP server serves this tool; the hosted MCP connection does not.

## Methods and checks

- [Drybench Assay: methods and checks](https://www.drybench.com/methods/assay)
- [Reference checks: Drybench Assay](https://www.drybench.com/methods/assay/checks)
- [What the levels mean](https://www.drybench.com/methods/levels)
- [Every assistant tool](https://www.drybench.com/methods/tools)
