Skip to main content

Least squares fit for calibration data

Short answer

Using least squares, y = 0.0157 + 1.0109x (mm). Residuals sum to zero. At x=5 mm, estimated reading = 5.070 mm. Intercept 0.016 mm is zero error; slope 1.011 indicates scale error, gage reads about 1.1% high.

A dial gauge is calibrated against slip gauges. The applied displacement xx (mm) and the dial reading yy (mm) are: (0, 0.02), (2, 2.05), (4, 4.03), (6, 6.10), (8, 8.08), (10, 10.14). Using the method of least squares fit the line y=a+bxy = a + bx, find the residuals and use the line to estimate the reading for a true displacement of 5 mm. State what the slope and intercept mean.

The method of least squares chooses aa and bb so that ∑(yi−a−bxi)2\sum (y_i - a - b x_i)^2 is a minimum. Solving the normal equations gives

b=n∑xy−∑x∑yn∑x2−(∑x)2,a=∑y−b∑xnb = \frac{n\sum xy - \sum x \sum y}{n\sum x^2 - (\sum x)^2}, \qquad a = \frac{\sum y - b\sum x}{n}
xxyyxyxyx2x^2
00.0200
22.054.104
44.0316.1216
66.1036.6036
88.0864.6464
1010.14101.40100
3030.42222.86220

n=6n = 6:

b=6(222.86)−(30)(30.42)6(220)−302=1337.16−912.61320−900=424.56420=1.0109b = \frac{6(222.86) - (30)(30.42)}{6(220) - 30^2} = \frac{1337.16 - 912.6}{1320 - 900} = \frac{424.56}{420} = 1.0109 a=30.42−1.0109(30)6=0.0157 mma = \frac{30.42 - 1.0109(30)}{6} = 0.0157\ \text{mm}

Fitted line: y=0.0157+1.0109 xy = 0.0157 + 1.0109\,x.

xxyyfittedresidual
00.020.0157+0.0043
22.052.0374+0.0126
44.034.0591-0.0291
66.106.0809+0.0191
88.088.1026-0.0226
1010.1410.1243+0.0157

The residuals add up to zero (as they must), and ∑e2=0.0021 mm2\sum e^2 = 0.0021\ \text{mm}^2.

Estimate at x=5x = 5 mm: y=0.0157+1.0109(5)=5.070y = 0.0157 + 1.0109(5) = 5.070 mm.

  • Intercept a=0.016a = 0.016 mm is the zero error of the gauge.
  • Slope b=1.011b = 1.011 means the gauge reads about 1.1 % high (scale error); the calibration factor is 1/b=0.9891/b = 0.989.

Answer: y=0.0157+1.0109xy = 0.0157 + 1.0109x (mm); reading at 5 mm = 5.070 mm.

✓ Answer checked by Claude Opus 5.5 (high effort)

All Metrology chapter 2 questions →