Deming Regression: Fit a Line With Error in Both Axes
2026-11-07

Deming Regression: Fit a Line With Error in Both Axes

Deming regression fits a line when both coordinates come from measurements with error. A robotics inspection team might use two gauges to measure the same set of reference parts. Each part supplies an x reading from one gauge and a y reading from the other. The fitted line describes the relationship between the two methods under a model that allows uncertainty in each reading.

Both readings have a measurement error

In a paired comparison, each row corresponds to the same underlying item. Terry Therneau's package vignette describes both observed readings as functions of a common, unobserved quantity, with separate measurement errors. This helps distinguish variation among the parts from variation caused by measuring the same part several times. The scatter of all measured values usually contains both effects.

Ordinary regression of y on x minimizes squared vertical residuals. In that fitting geometry, the observed horizontal position supplies the predictor. When the predictor is a noisy gauge reading, a model with error in both axes allows a different allocation of the discrepancies around the line. A horizontal movement can then be part of the comparison between an observed pair and a point on the fitted relation.

A point above an illustrative line has a vertical segment and a separate perpendicular segment to the line.
The segments illustrate two fit geometries, with no fitted dataset. Source: Zhilianhai editorial desk, original AI-assisted concept; no real product, event or measured data.

The variance ratio sets relative error scales

In the convention used by Minitab's documentation, the error variance ratio is the response error variance divided by the predictor error variance. Write it as Var(error y) / Var(error x). A ratio of one gives equal error variances. For comparable axes in the same units, the corresponding Deming geometry minimizes squared perpendicular distances.

In a hypothetical comparison, suppose the within-item error standard deviation is two micrometres for gauge X and four micrometres for gauge Y. Their error variances are four and sixteen square micrometres. The Minitab-style ratio is therefore four. Dividing the two standard deviations directly would produce two, a different quantity. With the inverse variance convention, the same inputs would instead give one quarter.

The two error standard deviations of 2 and 4 micrometres become variances of 4 and 16, giving a ratio of 4.
With X in the denominator, the variance ratio is sixteen divided by four. Source: Zhilianhai editorial desk, original AI-assisted concept; no real product, event or measured data.

Keep the convention with the input values

GraphPad Prism's guide asks for the two error standard deviations when they are unequal. Those inputs retain their axis labels. Minitab's guide names the response-over-predictor variance ratio. A number copied from one report should be accompanied by its numerator, denominator, and whether it is a ratio of variances or of standard deviations. This is especially important when the axes have been swapped between reports.

Replicate readings on a fixed part can help estimate a gauge's error scale. Replicates of both gauges across several parts provide information about within-part repeatability. Calculating the spread across one reading per part can mix true differences between parts into the error estimate. A fitted report can identify the replicate design or other evidence that supplied the error scales.

Slope and intercept describe systematic differences

When both axes use the same units, the identity line has a slope of one and an intercept of zero. A slope above or below one indicates a fitted difference that changes with reading magnitude. The intercept provides the fitted offset at zero in that model. If zero is outside the measurement range, an intercept should be interpreted with that range in mind.

A fitted slope near one can still coexist with considerable scatter. Conversely, a fitted slope that departs from one tells the reader about the systematic relationship, while the spread of paired readings remains a separate feature of the data. Confidence intervals can help express uncertainty in the estimated slope and intercept. An engineering acceptance rule needs its own tolerances and measurement context.

For an illustrative equation with a slope of 0.90 and an intercept of 12 micrometres, a reading of 100 micrometres on the horizontal axis corresponds to a fitted 102 on the vertical axis. At 200, the fitted value is 192. The fitted difference has therefore changed from plus two to minus eight micrometres. The equation describes a magnitude-dependent difference even though the change could be missed by reporting only one average offset.

Describe the model alongside the line

A comparison report can retain the pairing rule, axis assignments, measurement units, sources of the two error estimates, and the variance ratio convention. It can then report the fitted equation and the observed range. This lets a later reader distinguish the method used to fit the line from the size of the differences relevant to the inspection task.

The Therneau Deming package vignette explains the two-error model and fitting geometry. The Minitab orthogonal regression reference defines its error variance ratio, and the GraphPad Prism Deming guide describes the separate error standard deviations. Related material appears in the robotics statistics section and the technical article directory.

18028484626 CONTACT US

公司:智联海(惠州)科技有限公司

地址:惠州仲恺高新区陈江街道白云山工业大道 5 号六楼 601

Q Q:18028484626

Copyright © 2002-2026

粤xxx

咨询 在线留言 电话:18028484626
微信 微信扫码添加我