Student Xi Yi 1 95 85 2 85 95 3 80 70 4 70 65 5 60 70: Student X y (X - XM) (Y - Y)
Student Xi Yi 1 95 85 2 85 95 3 80 70 4 70 65 5 60 70: Student X y (X - XM) (Y - Y)
● What linear regression equation best predicts statistics performance, based on math
aptitude scores?
● If a student made 75 on the aptitude test, what grade would we expect her to make
in statistics?
Student Xi Yi
1 95 85
2 85 95
3 80 70
4 70 65
5 60 70
The Xi column shows scores on the aptitude test and the Y i column shows statistics grades.
Mean 78 77
And finally, for each student, we need to compute the product of the deviation scores.
Student xi yi (xi-x)(yi-y)
1 95 85 136
2 85 95 126
3 80 70 -14
4 70 65 96
5 60 70 126
Sum 390 385 470
Mean 78 77
The regression equation is a linear equation of the form: ŷ = b 0 + b1x . To conduct a regression analysis,
we need to solve for b0 and b1. Computations are shown below. Notice that all of our inputs for the
regression analysis come from the above three tables.
b1 = 470/730
b1 = 0.644
Once we know the value of the regression coefficient (b1), we can solve for the regression slope (b0):
b0 = y - b1 * x
b0 = 77 - (0.644)(78)
b0 = 26.768
If a student made an 75 on the aptitude test, the estimated statistics grade (ŷ) would be:
ŷ = b0 + b1x
R =1− = 0.48
∑ ( y i− y ) 2
0.48 indicates that about 48% of the variation in statistics grades (the dependent variable) can be
explained by the relationship to math aptitude scores (the independent variable). This would be
considered a good fit to the data.
https://stattrek.com/regression/regression-example.aspx
https://www.javatpoint.com/ai-alpha-beta-pruning