- Asked 2/13
- 2068 Magh · 8 marks
Fit y = ax/(b + x)
Short answer
Linearize to 1/y = 1/a + (b/a)(1/x), compute normal equations, yielding a = 0.9999, b = 0.9995. Thus the fitted curve is y = 0.9999x/(0.9995 + x), essentially y = x/(1+x).
Fit the following set of data into a curve y = ax/(b + x).
| X | 1 | 2 | 3 | 4 | 5 |
|---|---|---|---|---|---|
| Y | 0.500 | 0.667 | 0.750 | 0.2 | 0.833 |
Assumption. The printed y at x = 4 is 0.2, which breaks the pattern of the other values (0.500, 0.667, 0.750, … 0.833, all of the form x/(1+x)); it is taken as a misprint of 0.800.
Linearisation
y = ax/(b + x) → 1/y = (b + x)/(ax) = 1/a + (b/a)(1/x)
Put Y = 1/y, X = 1/x, then Y = A + BX, with A = 1/a and B = b/a.
| x | y | X = 1/x | Y = 1/y | X² | XY |
|---|---|---|---|---|---|
| 1 | 0.500 | 1.0000 | 2.0000 | 1.0000 | 2.0000 |
| 2 | 0.667 | 0.5000 | 1.4993 | 0.2500 | 0.7496 |
| 3 | 0.750 | 0.3333 | 1.3333 | 0.1111 | 0.4444 |
| 4 | 0.800 | 0.2500 | 1.2500 | 0.0625 | 0.3125 |
| 5 | 0.833 | 0.2000 | 1.2005 | 0.0400 | 0.2401 |
| Σ | 2.2833 | 7.2831 | 1.4636 | 3.7467 |
Normal equations
ΣY = n·A + B·ΣX → 7.2831 = 5A + 2.2833B
ΣXY = A·ΣX + B·ΣX² → 3.7467 = 2.2833A + 1.4636B
Solving: B = (nΣXY − ΣXΣY)/(nΣX² − (ΣX)²) = 0.9996, A = (ΣY − BΣX)/n = 1.0001.
Hence a = 1/A = 0.9999 and b = B/A = 0.9995.
Answer: y = 0.9999x/(0.9995 + x), which is practically y = x/(1 + x). Check: x = 3 gives 0.750 against 0.750.
If the printed value 0.2 is used literally, the same method gives a ≈ 0.386, b ≈ −0.325, a poor and meaningless fit (negative b), which supports the misprint reading.
✓ Answer checked by Claude Opus 5.5 (high effort)
Related questions
- Fit curve y = a b^x (decay data) · Numerical Method, chapter 4 · asked 3×
- Fit y = ln(ax + b) · Numerical Method, chapter 4 · asked 2×
- Fit curve y = a x^b (A) · Numerical Method, chapter 4 · asked 2×
- Fit y = a b^x (growth data) · Numerical Method, chapter 4
- Fit y = a b^x and find y(7) · Numerical Method, chapter 4 · asked 2×
- Fit y = a e^(bx) · Numerical Method, chapter 4
- Least squares: y = ax + b + c/x · Numerical Method, chapter 4
- Vertical curve +0.5% and -0.7%, IP RL 350.750 · Surveying II, chapter 6
- Summit curve limited to 750 m · Transportation Engineering I, chapter 3 · asked 3×
- Vertical curve -1% and +0.5%, IP 500 m · Surveying II, chapter 6 · asked 2×
- Least squares fit for calibration data · Metrology, chapter 2