Sign In
To find the line of best fit we have to use a graphing calculator.
What observation has the greatest residual?
Think about the number of decimals in the observations.
If you have not taken any supplements, we have x=0.
On which side of the x-axis is the predicted value when x=6?
The residual is the actual value minus the predicted value. Do you want the actual value to be greater or lower than the predicted value?
Equation: y=- 1.58x+5.37
Diagram:
Upper Boundary: y=- 1.58x+6.16
Lower Boundary: y=- 1.58x+4.58
Diagram:
Between 0.5 and 1 day
About 5.4 days
Cannot make any predictions.
A negative residual is preferred.
In the solution to the mentioned exercise, we calculated the line of best fit.
The upper and lower boundary have the same slope as the line of best fit, and they are equidistant from the line of best fit.
Upper boundary: y=- 1.58x+b_u
Lower boundary: y=- 1.58x+b_l
To determine the y-intercepts b_u and b_l, we have to find the observation that is furthest away from the line of best fit. In other words, we have to find the largest residual. Since the residual is the actual value minus the predicted value, we first have to find all of the predicted values.
|c|l|c|
x & - 1.58x+5.37 & Predicted
0.5 & - 1.58( 0.5)+5.37 & 4.58
1 & - 1.58( 1)+5.37 & 3.79
1.5 & - 1.58( 1.5)+5.37 & 3
2 & - 1.58( 2)+5.37 & 2.21
2.5 & - 1.58( 2.5)+5.37 & 1.42
Now we can write the function for the lower boundary. y=- 1.58x+4.58 Since the lower and upper boundary are equidistant from the line of best fit, we can determine the upper boundary's y-intercept by adding the difference between the y-intercepts of the line of best fit and lower boundary to 5.37. b_u=5.37+(5.37-4.58)=6.16 The upper boundary is y=- 1.58x+6.16. Now we can graph the upper and lower boundary.
To predict the number of days a cold lasts after 3 months of taking the supplement, we should substitute x=3 into our model.
Since the values only have one decimal, we would predict the cold to last between 0.5 and 1 day.
If a person has taken no supplements we have x=0, which corresponds to the y-intercept. Since the y-intercept of our model is 5.37, the cold should last for about 5.4 days.
At 6 months the predicted value would be negative.
Therefore, we cannot really say anything useful about the number of days the cold will last when you take the supplement for 6 months.
The residual is calculated by subtracting the predicted value from the actual value.
Residual=Actual value-Predicted value