Question
Question: How do you find the y-intercept of the least square regression line for the data set \(\left( 1,8 \r...
How do you find the y-intercept of the least square regression line for the data set (1,8)(2,7)(3,5)?
Solution
To obtain the y-intercept of the least squares regression line for the given data set use the formula y^=β^1x+β^0 where β^1 and β^0 are the slope and y-intercept respectively. Find the value of the y-intercept by using the formula β^0=SSxxSSxy and simplify it to get the desired answer.
Complete step by step answer:
The data set given is:
(1,8)(2,7)(3,5)
Firstly we will form a table containing x-value and y-values as:
x | y |
---|---|
1 | 8 |
2 | 7 |
3 | 5 |
Next we will find the value of x2 and xy for each value in the above set and form summation for each column as:
x | y | x2 | xy |
---|---|---|---|
1 | 8 | 1 | 8 |
2 | 7 | 4 | 14 |
3 | 5 | 9 | 15 |
∑x=6 | ∑y=20 | ∑x2=14 | ∑xy=37 |
Now as we know y-intercept formula is:
β^0=yˉ−β^1xˉ……(1)
Where,
β^1=SSxxSSxy……(2)
yˉ=n∑y……(3)
xˉ=n∑x…..(4)
SSxx=∑x2−n1(∑x)2……(5)
SSxy=∑xy−n1(∑x)(∑y)……(6)
Next we will find the value of equation (3), (4), (5), (6) by substituting the valued from the table as:
For equation (3)
yˉ=320∴yˉ=6.67
For equation (4)
xˉ=36∴xˉ=2
For equation (5)
SSxx=14−31(6)2⇒SSxx=14−12∴SSxx=2
For equation (6) we have:
SSxy=37−31×6×20⇒SSxy=37−40∴SSxy=−3
Put the above obtain value in equation (2) we get,
β^1=2−3∴β^1=−1.5
Substitute all value in equation (1)
β^0=320−(−1.5)×2⇒β^0=6.67+3∴β^0=9.67
Hence the y-intercept of the least square regression line for the data set (1,8)(2,7)(3,5) is 9.67
Note: A least square regression line is the line that fits the best for the given data. Its y-intercept and slope is calculated in a very different way from other methods. It is the line that makes the vertical distance from the data points to their regression line as small as possible. The best line is the one that minimizes the value of the variance of a given data.