%RSD of replicate injections against the maximum permitted
chrom_injection_repeatability
Works out the %RSD of replicate injections and the USP 621 (2022) maximum permitted for 3 to 6 injections.
- Runs
- On the server
- Level
- Checked against a reference: the chapter's printed Table 2, with SciPy's and mpmath's Student t; the full check of 14 November 2026 (a second implementation, edge cases)
What it is
Returns the %RSD of replicate injections and the USP ⟨621⟩ (2022) maximum permitted %RSD for 3 to 6 injections. Use when an assay's reference solution was injected 3 or more times and B (the upper content limit minus 100 %) is known; the maximum is 0.349·B·√n/t(90 %, n − 1). For B = 2.0, 2.5 and 3.0, Table 2 governs. Not for a general mean or CV: use `stats_column_statistics`. Not for plate number or resolution: use `chrom_system_suitability`. Refuses fewer than 3 injections; the maximum is withheld above 6; UV absorbance areas only (no FID, MS or counts as mAU·s); B in %.
Field: Analytical chemistry.
What it does
You give
responses(required): The replicate injections' responses, in injection order.contentLimitExcess: B: the upper content limit in the monograph's definition minus 100 % (for 98.0–102.0 %, B = 2.0 %): unlocks the maximum permitted %RSD. Must be above 0 %. Optional.
No request is recorded for this tool.
Limits
- Research and quality-control arithmetic on the values you supply, using the formulae of USP ⟨621⟩ (harmonised text, official 1 December 2022) and ICH Q2(R2) (adopted 1 November 2023) as each method writes them out.
- Each reply states whether a number lies inside or outside the range the chapter states; it does not decide whether a method, column or system meets a requirement, and it is not a release or regulatory decision.
- The chapter's maximum %RSD applies to an assay of an active substance or excipient with a 100 % target and no repeatability requirement in the monograph, for 3 to 6 injections; not to related-substances tests.
- B is the upper content limit minus 100 %.
- K = 0.349 as printed.
- UV absorbance responses only at 1.0.0; FID, MS or count responses are not accepted, and should not be entered as mAU.
- The %RSD is compared unrounded.
- Pharmacopoeial rounding rules, which may round it to the limit's decimals first, are not applied, so a %RSD less than 0.005 above a tabulated value can be reported 'above' where such a rule would accept it.
- 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.
It will not answer when
- fewer than three injections: the chapter's floor.
- the mean response is 0 or less: no relative standard deviation exists.
Every input, with its units2 inputs
responses(required): The replicate injections' responses, in injection order.contentLimitExcess: B: the upper content limit in the monograph's definition minus 100 % (for 98.0–102.0 %, B = 2.0 %): unlocks the maximum permitted %RSD. Must be above 0 %. Optional.
Every refusal, with its code2 refusals
| Code | When |
|---|---|
TOO_FEW_INJECTIONS | fewer than three injections: the chapter's floor. |
NONPOSITIVE_MEAN | the mean response is 0 or less: no relative standard deviation exists. |
The calculation
The method's equations, constants and worked example.
Equation 1
%RSD = (100 / ȳ) × √( Σ(yi − ȳ)² / (n − 1) )
| Symbol | Meaning |
|---|---|
%RSD | relative standard deviation of the responses, % |
yi | each injection's response (a peak area), mAU·s |
ȳ | their mean, mAU·s |
n | number of injections |
Source 1.
Equation 2
%RSDmax = K × B × √n / t(90 %, n − 1), t two-sided at 90 % (the 0.95 quantile), 3 ≤ n ≤ 6
| Symbol | Meaning |
|---|---|
%RSDmax | maximum permitted relative standard deviation, % |
K | the chapter's constant |
B | upper content limit minus 100 percent, % |
n | number of injections |
t | Student t quantile |
Source 1.
Equation 3
for B = 2.0, 2.5 or 3.0 %, %RSDmax = L(B, n), Table 2's printed value, and %RSD is at or below it when 10⁴ × Σ(yi − ȳ)² / (n − 1) ≤ L² × ȳ², decided exactly on each response as stated: the shortest decimal that reads back as the delivered double, times its unit's exact factor, against L as printed, inclusive. B is tabulated only when it equals 2.0, 2.5 or 3.0 as stated
any other B uses the formula
| Symbol | Meaning |
|---|---|
%RSDmax | maximum permitted relative standard deviation, as Table 2 prints it, % |
L | Table 2's printed value for this B and n, % |
B | upper content limit minus 100 percent, % |
n | number of injections |
yi | each injection's response (a peak area), mAU·s |
ȳ | their mean, mAU·s |
Source 1.
| Constant | Value | From |
|---|---|---|
the chapter's constant, (0.6/√2) × t(90 %, 5)/√6 rounded to 0.349 K | 0.349 | Source 1 |
the Student t quantile at probability 0.95 with 2 degrees of freedom (n = 3 injections), as NIST prints it to three decimals; the engine computes it at full precision t(0.95, 2) | 2.92 | Source 2 |
the Student t quantile at probability 0.95 with 3 degrees of freedom (n = 4 injections), as NIST prints it to three decimals; the engine computes it at full precision t(0.95, 3) | 2.353 | Source 2 |
the Student t quantile at probability 0.95 with 4 degrees of freedom (n = 5 injections), as NIST prints it to three decimals; the engine computes it at full precision t(0.95, 4) | 2.132 | Source 2 |
the Student t quantile at probability 0.95 with 5 degrees of freedom (n = 6 injections), as NIST prints it to three decimals; the engine computes it at full precision t(0.95, 5) | 2.015 | Source 2 |
the maximum permitted %RSD printed in the chapter's Table 2 for B = 2.0 % and 3 injections: the limit for this B ("does not exceed the appropriate value given in Table 2"), compared exactly L(B = 2.0, n = 3) | 0.41 % | Source 1 |
the maximum permitted %RSD printed in the chapter's Table 2 for B = 2.0 % and 4 injections: the limit for this B ("does not exceed the appropriate value given in Table 2"), compared exactly L(B = 2.0, n = 4) | 0.59 % | Source 1 |
the maximum permitted %RSD printed in the chapter's Table 2 for B = 2.0 % and 5 injections: the limit for this B ("does not exceed the appropriate value given in Table 2"), compared exactly L(B = 2.0, n = 5) | 0.73 % | Source 1 |
the maximum permitted %RSD printed in the chapter's Table 2 for B = 2.0 % and 6 injections: the limit for this B ("does not exceed the appropriate value given in Table 2"), compared exactly L(B = 2.0, n = 6) | 0.85 % | Source 1 |
the maximum permitted %RSD printed in the chapter's Table 2 for B = 2.5 % and 3 injections: the limit for this B ("does not exceed the appropriate value given in Table 2"), compared exactly L(B = 2.5, n = 3) | 0.52 % | Source 1 |
the maximum permitted %RSD printed in the chapter's Table 2 for B = 2.5 % and 4 injections: the limit for this B ("does not exceed the appropriate value given in Table 2"), compared exactly L(B = 2.5, n = 4) | 0.74 % | Source 1 |
the maximum permitted %RSD printed in the chapter's Table 2 for B = 2.5 % and 5 injections: the limit for this B ("does not exceed the appropriate value given in Table 2"), compared exactly L(B = 2.5, n = 5) | 0.92 % | Source 1 |
the maximum permitted %RSD printed in the chapter's Table 2 for B = 2.5 % and 6 injections: the limit for this B ("does not exceed the appropriate value given in Table 2"), compared exactly L(B = 2.5, n = 6) | 1.06 % | Source 1 |
the maximum permitted %RSD printed in the chapter's Table 2 for B = 3.0 % and 3 injections: the limit for this B ("does not exceed the appropriate value given in Table 2"), compared exactly L(B = 3.0, n = 3) | 0.62 % | Source 1 |
the maximum permitted %RSD printed in the chapter's Table 2 for B = 3.0 % and 4 injections: the limit for this B ("does not exceed the appropriate value given in Table 2"), compared exactly L(B = 3.0, n = 4) | 0.89 % | Source 1 |
the maximum permitted %RSD printed in the chapter's Table 2 for B = 3.0 % and 5 injections: the limit for this B ("does not exceed the appropriate value given in Table 2"), compared exactly L(B = 3.0, n = 5) | 1.1 % | Source 1 |
the maximum permitted %RSD printed in the chapter's Table 2 for B = 3.0 % and 6 injections: the limit for this B ("does not exceed the appropriate value given in Table 2"), compared exactly L(B = 3.0, n = 6) | 1.27 % | Source 1 |
A definition, not a model: the equation states what the quantity means. A different convention gives a different number.
Worked example
Worked example: one case of injection-repeatability@2.0.0, from its inputs through each step to the answer. Values are written as a person writes them; the working carries more digits, so your own figure may differ in the last digit shown.
Inputs
- responses[0] = 100 mAU·s
- responses[1] = 100 mAU·s
- responses[2] = 100 mAU·s
- responses[3] = 100 mAU·s
- responses[4] = 100 mAU·s
- responses[5] = 100 mAU·s
- contentLimitExcess = 2 %
Steps
- t = 2.015, from responses; by equation 2.
- rmax = 0.84850811 %, from contentLimitExcess, responses, t; by equation 2.
- L = 0.85 %, from contentLimitExcess, responses; by equation 3; gives maximumRelativeStandardDeviation.
The working, as the case writes it:
Table 2 prints 0.85 for B = 2.0 %, n = 6
%RSDmax = 0.349 x 2.0 x sqrt(6) / t(0.95, 5) = 0.848488
Answer
maximumRelativeStandardDeviation = 0.85 %
Where these values came from: the source's own worked example, USP <621> Chromatography, Stage 4 harmonised text, official 1 December 2022, System repeatability, Table 2: the twelve printed maxima, as printed; USP <621> Chromatography, Stage 4 harmonised text, official 1 December 2022, System suitability, System repeatability, Table 2 (B = 2.0 %, n = 6).
At build the tool returned this answer within the tolerance the file states: the governing maximum to Table 2's printed value at relative 1e-12; relative 1e-9 on the formula's maximum (a Student t quantile enters; mpmath's t here); absolute 1e-12 on the zero SD and RSD; relative 1e-12 (absolute 1e-18 below 1e-6) otherwise; statuses, codes, sources, comparisons, units and counts exact.
Sources
United States Pharmacopeia, General Chapter ⟨621⟩ Chromatography, Stage 4 harmonised text (Pharmacopoeial Discussion Group), official 1 December 2022
Used for: Repeatability of replicate injections against the USP ⟨621⟩ maximum permitted %RSD. At: section Definitions: System repeatability; section System suitability: System repeatability, Assay of an active substance or an excipient; Table 2; table Table 2, section System suitability: System repeatability; section System suitability: System repeatability.
Read in full, 10 November 2026NIST/SEMATECH e-Handbook of Statistical Methods, §1.3.6.7.2 Critical Values of the Student's t Distribution
Used for: Repeatability of replicate injections against the USP ⟨621⟩ maximum permitted %RSD. At: table Critical values of Student's t distribution with ν degrees of freedom, row ν = 2, column 0.95, section 1.3.6.7.2; table Critical values of Student's t distribution with ν degrees of freedom, row ν = 3, column 0.95, section 1.3.6.7.2; table Critical values of Student's t distribution with ν degrees of freedom, row ν = 4, column 0.95, section 1.3.6.7.2; table Critical values of Student's t distribution with ν degrees of freedom, row ν = 5, column 0.95, section 1.3.6.7.2.
Read in full, 11 November 2026
How it is checked
- Level
Checked against a reference.
- Checked against
The source's own worked example, Python fractions (exact rational arithmetic) with mpmath for square roots, CPython 3.13.18; mpmath 1.3.0; an outside program, SciPy scipy.stats.t.ppf, with the %RSD in exact rationals, 1.14.1; our own exact-arithmetic script and a hand-worked case.
- Cases
No case set is linked to this version.
- Not checked
Whether the injections were consecutive and of the reference solution; related-substances tests (the rule is for assays); the USP national five-or-six-injection rule (♦ text, not computed); responses other than absorbance areas (not accepted at 1.0.0). By hand, the formula's maximum reproduces from K, B, n and the t values anchored to NIST's table at its printed three decimals; the engine uses full-precision t.
What was not checked, in fullfrom the method records
- Whether the injections were consecutive and of the reference solution; related-substances tests (the rule is for assays); the USP national five-or-six-injection rule (♦ text, not computed); responses other than absorbance areas (not accepted at 1.0.0).
- By hand, the formula's maximum reproduces from K, B, n and the t values anchored to NIST's table at its printed three decimals; the engine uses full-precision t.
- Pharmacopoeial rounding rules (USP General Notices 7.20, read only in a secondary source; Ph.
- Eur.
- and JP equivalents not read) are not applied: the %RSD is compared unrounded.
- Since 2.0.0 responses whose largest magnitude lies outside 2^-500 to 2^500 are scaled by an exact power of two before the mean and SD (CHROM-F13: at 1.0.x their squared deviations underflowed near the smallest normal double and the SD and %RSD were served as 0).
- A mean or SD that lies below the smallest normal double (about 2.2e-308 in the response unit) is refused with the whole reply, RESULT_OUTSIDE_DOUBLE_RANGE (the kit's rule); multiply every response by one common factor (for example 1e10): the %RSD and the comparison do not change, but the mean and SD are then in the scaled response.
- Each response is converted to the working unit (mAU·s) as the kit converts: its stated value times its unit's exact factor, rounded once to a double, so the same response stated in different units gives the same working value (not the double times a rounded factor).
Changes to its methods1 change
- 14 November 2026, injection-repeatability@2.0.0: (1) Student's t quantile is now found from its tail α: bisection on I_{df/(df+t²)}(df/2, 1/2)/2 = α for α up to 0.25 and on I_{t²/(df+t²)}(1/2, df/2) = 1 − 2α above, and from df 1e4 the Cornish–Fisher expansion where its last term is below 1e-17 of t. Against mpmath at 60 digits it is within 6.5e-15 relative for α from 1e-12 to 0.49999 and df from 1 to 1e9. (2) In 2.0.0 responses whose largest magnitude lies outside 2^-500 to 2^500 are scaled by one exact power of two before the mean and SD, and the mean and SD are unscaled after; inside that range nothing changes. A mean or SD that would lie below the smallest normal double is now refused with the whole reply, RESULT_OUTSIDE_DOUBLE_RANGE (the kit's rule), where 1.0.x served it with reduced precision; that moved the published case stored reference values#b-smallest-normal, so this version is a major.