How this calculation works
Each row contains X and Y measured on the same independent unit. The target is the population ratio mean(Y) divided by mean(X), and the displayed point estimate uses the corresponding sample means. The pairs matter because within-row covariance affects uncertainty. Reordering Y independently or substituting two unrelated sample summaries would no longer match this procedure.
A r²+B r+C≤0; A=x̄²−t²Vxx; B=−2(x̄ȳ−t²Vxy); C=ȳ²−t²Vyy; V=sampleCov(X,Y)/n, t=t_(n−1,1−α/2).A worked example
The six paired rows give mean ratio2.003703704 and95% Fieller bounded set[1.944640116,2.055104683].
Good to know
3–1000 independent complete paired X,Y observations with nondegenerate covariance; confidence 80–99.9%. Exact normal-pair Student t inversion using n-1 DF; stable quadratic classification including linear boundary. Show all set topologies and undefined point ratio when X mean zero; no independent-sample ratio, delta-only substitution or forced finite interval.
Reference: von Luxburg and Franz — Fieller confidence sets (opens in a new tab) ↗
Keep numerator and denominator observations paired
Each row contains X and Y measured on the same independent unit. The target is the population ratio mean(Y) divided by mean(X), and the displayed point estimate uses the corresponding sample means. The pairs matter because within-row covariance affects uncertainty. Reordering Y independently or substituting two unrelated sample summaries would no longer match this procedure.
The interface accepts three through one thousand complete pairs and confidence levels from eighty through 99.9 percent. Covariance must be nondegenerate enough for the required linear-combination calculations. The method is exact under independent identically distributed bivariate normal pairs with the stated Student t inversion. For nonnormal pairs its finite-sample interpretation requires additional justification rather than an automatic exactness claim.
Compare this with the Mean and proportion confidence interval calculator. Inverts the t test for mean(Y)-r mean(X), yielding bounded intervals, disjoint rays or all-real confidence sets when the denominator is uncertain. Existing mean/proportion CI does not solve ratios or unbounded sets.
Invert a test for every candidate ratio
For a proposed ratio r, the null mean(Y-rX) equals zero can be tested by a one-sample t statistic. Fieller's confidence set contains every r whose test is not rejected at the chosen level. This inversion preserves uncertainty in the denominator, which is particularly important when the denominator mean is poorly separated from zero.
Writing V as the covariance matrix of sample means and q as the squared t critical value gives the inequality (meanY-r meanX) squared no greater than q times (Vyy-2rVxy+r squared Vxx). Moving everything left produces A r squared plus B r plus C no greater than zero. Solving that inequality yields a confidence set, not necessarily a bounded interval.
Classify the full quadratic inequality
A equals meanX squared minus q Vxx, B equals minus twice the quantity meanX meanY minus q Vxy, and C equals meanY squared minus q Vyy. The sign of A and the discriminant determine the accepted regions. Positive A commonly produces a finite interval between real roots; negative A can produce the union of two exterior rays or all real ratios.
A numerically or exactly linear boundary requires its own inequality solution rather than division by a vanishing quadratic coefficient. Empty, whole-line, and half-line cases must also be distinguished. Stable root evaluation is important when coefficients nearly cancel. If meanX is zero the ordinary point ratio is undefined, but the confidence-set inversion can still be evaluated from the means and covariance.
A denominator well away from zero
The default has six paired rows with X values from two through seven and Y values near twice X. The sample means are 4.5 and approximately 9.016666667, so the point ratio is approximately 2.003703704. The five-degree-of-freedom Student t critical value for ninety-five percent confidence is approximately 2.570581836, and the sample covariance is divided by six to obtain V.
The resulting quadratic coefficients are approximately A 16.395396932, B minus 65.577403605, and C 65.523203868. Its accepted bounded interval is approximately 1.944640116 through 2.055104683. These endpoints can be checked by substituting them into the quadratic inequality. Rounding the means or covariance prematurely can move narrow endpoints, so full precision should be retained throughout the computation.
Read an unbounded set honestly
The diagram contrasts a bounded interval with two accepted exterior rays. Both are legitimate confidence-set topologies. When plausible denominator means approach or cross zero, arbitrarily large positive or negative ratios can remain compatible with the data. An unbounded set is meaningful information about ratio instability, rather than a software failure that should be replaced with a convenient finite interval.
A point estimate near two does not prevent an unbounded confidence set if its denominator is uncertain enough. Conversely, a narrow bounded interval depends on denominator precision as well as covariance and numerator variation. Displaying only a symmetric error bar centered on the ratio would conceal these distinctions and could imply information the observations do not provide about the denominator.
Confidence is a repeated-sampling statement
A ninety-five percent confidence procedure covers the true ratio in ninety-five percent of repeated samples under its assumptions. It does not assign a ninety-five percent probability to the already fixed population ratio after these data are observed. Nor does it guarantee practical acceptability of a ratio near any particular value. That decision requires a separate substantive criterion.
Outliers, heavy tails, serial dependence, clustered pairs, or selection on either measurement can undermine the exact normal-pair interpretation. This calculator does not provide an independent-sample ratio method, a robust alternative, or a bootstrap analysis. A failed covariance or unresolved near-boundary classification should remain explicit rather than forcing an answer through a delta-method interval with apparently familiar endpoints.
Prefer Fieller when denominator uncertainty matters
The delta method linearizes a ratio around estimated means and commonly yields a finite symmetric interval. It can be adequate when the denominator is safely away from zero, but that form cannot represent all Fieller outcomes. This page performs the inversion itself, making denominator weakness visible. It also differs from computing the mean of individual Y/X ratios, which generally targets another quantity.
Report the pairing definition, n, means, covariance convention, confidence level, t degrees of freedom, point ratio if defined, and the entire accepted set. Preserve both rays if the set is disconnected. If the set is unbounded, explain that the data do not constrain the denominator sufficiently for a finite ratio interval under this model, rather than quoting only the finite part that appears convenient.
A few questions, answered
Which ratio is estimated?
The ratio of population means, E(Y)/E(X), estimated by the ratio of sample means. It is not the mean of individual ratios.
Why can the confidence set be unbounded?
A denominator mean insufficiently separated from zero allows arbitrarily large ratios to remain compatible with the data.
What does an undefined point ratio mean?
If the sample X mean is zero, its point ratio is undefined; the inverted confidence inequality may still be evaluated.
Is the result exact for arbitrary pairs?
The Student t inversion is exact for IID bivariate normal pairs. Other distributions require an approximation or another justified method.