posted by NAD .
In a study of caffeine and stress, college students indicate how many cups of coffee they drink per day and their stress level on a scale of 1-10. The data appear below.
Number of Cups of Coffee
s = 2.03
s = 2.90
Determine the regression equation for predicting stress level from the amount of coffee per day one consumes.
Predict the stress level for someone who drinks 8 cups of coffee a day.
If you need to show the work by hand, you can develop the regression equation in the following format:
predicted y = a + bx
...where a represents the y-intercept and b the slope.
To get to that point, here are some formulas to calculate along the way.
To find a:
a = (Ey/n) - b(Ex/n)
Note: E means to add up or to find the total.
To find b:
b = SSxy/SSxx
To find SSxy:
SSxy = Exy - [(Ex)(Ey)]/n
To find SSxx:
SSxx = Ex^2 - [(Ex)(Ex)]/n
Note: x = cups of coffee; y = stress level
Once you have the equation, substitute 8 for x, then solve for predicted y.
I hope this will help get you started.