In: Statistics and Probability
freshly brewed shot of espresso has three distinct components: the heart, body, and crema. The separation of these three components typically lasts only 10 to 20 seconds. To use the espresso shot in making a latte, a cappuccino, or another drink, the shot must be poured into the beverage during the separation of the heart, body, and crema. If the shot is used after the separation occurs, the drink becomes excessively bitter and acidic, ruining the final drink. Thus, a longer separation time allows the drink-maker more time to pour the shot and ensure that the beverage will meet expectations. An employee at a coffee shop hypothesized that the harder the espresso grounds were tamped down into the portafilter before brewing, the longer the separation time would be. An experiment using 24 observations was conducted to test this relationship. The independent variable Tamp measures the distance, in inches, between the espresso grounds and the top of the portafilter (i.e., the harder the tamp, the greater the distance). The dependent variable Time is the number of seconds after the heart, body, and crema are separated (i.e., the amount of time after the shot is poured before it must be used for the customer’s beverage). The data can be seen below: Tamp Time 0.20 14 0.50 14 0.50 18 0.20 16 0.20 16 0.50 13 0.20 12 0.35 15 0.50 9 0.35 15 0.50 11 0.50 16 0.50 18 0.50 13 0.35 19 0.35 19 0.20 17 0.20 18 0.20 15 0.20 16 0.35 18 0.35 16 0.35 14 0.35 16 (a) Use the least-squares method to develop a simple regression equation with Time as the dependent variable and Tamp as the independent variable. (b) Predict the separation time for a tamp distance of 0.50 inch. (c) Plot the residuals versus the time order of experimentation. Are there any noticeable patterns? (d) Compute the Durbin-Watson statistic. At the 0.05 level of significance, is there evidence of positive autocorrelation among the residuals? (e) Based on the results of (c) and (d), is there reason to question the validity of the model?
The dependent variable Time is the number of seconds after the heart, body, and crema are separated (i.e., the amount of time after the shot is poured before it must be used for the customer’s beverage). The data can be seen below: Tamp Time 0.20 14 0.50 14 0.50 18 0.20 16 0.20 16 0.50 13 0.20 12 0.35 15 0.50 9 0.35 15 0.50 11 0.50 16 0.50 18 0.50 13 0.35 19 0.35 19 0.20 17 0.20 18 0.20 15 0.20 16 0.35 18 0.35 16 0.35 14 0.35 16
(a) Use the least-squares method to develop a simple regression equation with Time as the dependent variable and Tamp as the independent variable.
The estimated regression line is
Time = 17.083-5.000*Tamp
(b) Predict the separation time for a tamp distance of 0.50 inch.
When tamp= 0.5,
Predicted Time = 17.083-5.000*0.5
=14.583
(c) Plot the residuals versus the time order of experimentation. Are there any noticeable patterns?
There is no noticeable pattern.
(d) Compute the Durbin-Watson statistic. At the 0.05 level of significance, is there evidence of positive autocorrelation among the residuals
Durbin-Watson = |
1.72 |
At the 0.05 level of significance, Durbin-Watson critical values, DL= 1.27 and DU= 1.45.
Calculated Durbin-Watson statistic above Du. There is no statistical evidence that the error terms are positively autocorrelated.
(e) Based on the results of (c) and (d), is there reason to question the validity of the model?
Form the residual plot and Durbin-Watson test, there is no reason to question the validity of the model.
Excel Addon Megastat used.
Menu used: correlation/Regression ---- Regression Analysis.
Regression Analysis |
|||||||
r² |
0.061 |
n |
24 |
||||
r |
-0.247 |
k |
1 |
||||
Std. Error of Estimate |
2.508 |
Dep. Var. |
Time |
||||
Regression output |
confidence interval |
||||||
variables |
coefficients |
std. error |
t (df=22) |
p-value |
95% lower |
95% upper |
|
Intercept |
a = |
17.083 |
1.550 |
11.024 |
1.99E-10 |
13.869 |
20.297 |
Tamp |
b = |
-5.000 |
4.179 |
-1.196 |
.2443 |
-13.667 |
3.667 |
ANOVA table |
|||||||
Source |
SS |
df |
MS |
F |
p-value |
||
Regression |
9.000 |
1 |
9.000 |
1.43 |
.2443 |
||
Residual |
138.333 |
22 |
6.288 |
||||
Total |
147.333 |
23 |
Predicted values for: Time |
||||||
95% Confidence Interval |
95% Prediction Interval |
|||||
Tamp |
Predicted |
lower |
upper |
lower |
upper |
Leverage |
0.5 |
14.58 |
12.90 |
16.26 |
9.12 |
20.05 |
0.104 |
Observation |
Time |
Predicted |
Residual |
1 |
14.0 |
16.1 |
-2.1 |
2 |
14.0 |
14.6 |
-0.6 |
3 |
18.0 |
14.6 |
3.4 |
4 |
16.0 |
16.1 |
-0.1 |
5 |
16.0 |
16.1 |
-0.1 |
6 |
13.0 |
14.6 |
-1.6 |
7 |
12.0 |
16.1 |
-4.1 |
8 |
15.0 |
15.3 |
-0.3 |
9 |
9.0 |
14.6 |
-5.6 |
10 |
15.0 |
15.3 |
-0.3 |
11 |
11.0 |
14.6 |
-3.6 |
12 |
16.0 |
14.6 |
1.4 |
13 |
18.0 |
14.6 |
3.4 |
14 |
13.0 |
14.6 |
-1.6 |
15 |
19.0 |
15.3 |
3.7 |
16 |
19.0 |
15.3 |
3.7 |
17 |
17.0 |
16.1 |
0.9 |
18 |
18.0 |
16.1 |
1.9 |
19 |
15.0 |
16.1 |
-1.1 |
20 |
16.0 |
16.1 |
-0.1 |
21 |
18.0 |
15.3 |
2.7 |
22 |
16.0 |
15.3 |
0.7 |
23 |
14.0 |
15.3 |
-1.3 |
24 |
16.0 |
15.3 |
0.7 |