Vaishnavi J. answered 05/28/20
Math Major with a Data Science Concentration
Basically your question is asking for the y-intercept of the line of best fit.
In all of the classes I've had to use linear regression in, I've been permitted to use a calculator. So I will explain how I got my answer.
By Hand
y-hat= predicted y
x bar and y bar = mean of x and y values respectively
sx and sy= standard deviation of x and y respectively
n= number of data pairs
Stats Formulas
- y-hat = b0 + b1x which is basically the same as y= a +bx
- b1=r(sy/sx)
- b0=y-bar -b1x
- r=((x1-x bar)(y1-y bar) +(x2-x bar)(y2-ybar)+...+(xn-x bar)(yn-ybar))/((n-1)(sx)(sy))
- sx=√((∑((x-xbar)^2))/(n-1))
.You need to know
- mean of the x values= find the average by adding them all and dividing them by n.
- n=12
- x bar= 43.667
- mean of the y values
- n=12
- y bar= 103.91666
- standard deviation of x values
- Follow the formula given above by adding (x1-x bar)^2 together. Like (25-43.667)^2+(30-...) and so on.
- Then divide by n-1 which is 12-1= 11
- After this, get the the square root. Your final answer should be 9.53780
- standard deviation of y values
- Repeat the same process
- Your final answer should be 15.6928
- correlation between X and Y
- Multiply (x1-xbar) and (y1-ybar) and add to (x2-xbar)(y2-ybar) and so on to (x12-xbar)(y12-ybar)
- divide this number sx, sy and 11
- your answer should be .7074
- now find b1, the slope,
- multiply r=.7074 and sy= 15.6928= 11.10108672
- Divide by sx= 9.53780
- Your answer should be 1.16390
- Now find b0 or a!
- ybar=b0-b1xbar. This is just plugging in the mean values of x and y into the original formula
- this means b0=ybar-b1x-bar
- This is 103.916667- 1.16390(43.667)
- =53.09299
- =53.093
Graphing Calculator (I use a TI-84 Plus)
- Clear your calculator (2nd, +, 7, 1, 2)
- Hit Stat
- Press 'Enter' or 1 to edit
- Fill L1 or list one with all of the x values
- Fill L2 or List two with all of the y values
- Hit stat
- Go right
- Choose option 8 by either scrolling down and pressing enter or just typing 8.
- Option 4 is Linear Regression for y=ax+b which can be confusing if you're in a rush and choose the wrong letter. However its okay if you did choose 4, just look at the first line and see what format the formula is in.
- Make sure XList is L1 and Ylist is L2. If it isn't the right list, hit '2nd' and then 'stat' and then choose the right list. Hit enter.
- Scroll down and hit enter on calculate
- It will show you y=a+bx, then a's value and then b's. Copy down a. Which should be 53.0934... or 53.093 (since you definitely don't round up if the next digit is less than 5)
Hope this helps!