I have a TI-83 Plus CE that I can use to calculate the line of best fit for a set of points. However, I cannot force that line to go through (0,0). I was wondering how I should find the line of best fit that goes through (0,0) by hand or with a calculator. Thanks in advance.
2026-03-25 01:18:32.1774401512
On
Calculating Slope of Line of Best Fit with Y-intercept of 0
1.9k Views Asked by Bumbble Comm https://math.techqa.club/user/bumbble-comm/detail At
2
There are 2 best solutions below
0
On
No idea about the calculator. However, I can offer two options:
X = [1 2 3 4 5 6 7 8 9 10]'; Y = [2 4 6 8 10 12 14 16 18 20]'; inv(X'*X)*X'*Y
Copy that code (replacing the coordinates, of course) and run it. The result is your slope.
- By hand:
Calculate the sum of squares of the $X$ coordinates. Calculate the sum of $X_iY_i$. Multiply both numbers. That's equivalent to what the code above does.
The regression line $y=ax$ can be fitted using the least square method:$$a =\frac{\sum{x_i y_i}}{\sum{x_i^2}}$$