keisoku

Reciprocal Regression Calculator (y=a+b/x)

Fit the reciprocal model y=a+b/x to your (x, y) data points by least squares. Get coefficients a and b, the coefficient of determination R-squared, a scatter plot with the fitted curve, and a residual table.

Input

Enter your (x, y) data points to fit the reciprocal model y=a+b/x by least squares.

One point per line. Separate x and y with a comma or a space (x must not be 0).

Result

Regression equation

y = 1.984367 + 10.020138/x

Intercept a

1.984367

Coefficient b

10.020138

R-squared

0.999969

Correlation r

0.999984

Data points

6


Scatter plot and fitted curve

1.566.5711.5716.5821.580.553.025.57.9710.45x = 1, y = 12x = 2, y = 7x = 4, y = 4.5x = 5, y = 4x = 8, y = 3.2x = 10, y = 3

Data points and residuals

xObserved yPredicted yResidual
11212-0
276.990.01
44.54.490.01
543.990.01
83.23.24-0.04
1032.990.01

How it works

  • Substituting u=1/x turns the model into the linear form y=a+b times u, so ordinary least squares gives the intercept a and the coefficient b.
  • R-squared is computed from the residuals between the actual y and the model value yhat=a+b/x. Values closer to 1 indicate a better fit.
  • Data points with x=0 are excluded because 1/x is undefined there.
  • Enter one point per line, with x and y separated by a comma or whitespace. Lines that cannot be parsed as numbers are ignored.

Reviews

Tell us what you think of this calculator.

Write a review

  1. Home
  2. Reciprocal Regression Calculator (y=a+b/x)