Skip to main content

Section 26.2 Investigation 5.5: Restaurant Spending and Music

Exercises 26.2.1 The Study

A British study (North, Shilcock, & Hargreaves, 2003) examined whether the type of background music playing in a restaurant affected the amount of money that diners spent on their meals. The researchers asked a restaurant to alternate classical music, popular music, and silence on successive nights over 18 days.
Restaurant setting for the Investigation 5.5 study context
The following summary statistics about the 393 total bills were reported:
Type Classical music Pop music No Music
Mean (Β£) 24.13 21.91 21.70
SD (Β£) 2.243 2.627 3.332
Sample size \(n_1=120\) \(n_2=142\) \(n_3=131\)

1. State Hypotheses.

State the null and alternative hypotheses corresponding to the researchers’ conjecture (in symbols and/or in words, be sure to define any symbols you use).
Solution.
\(H_0\text{:}\) the true treatment means \((\mu_{class} = \mu_{pop} = \mu_{none})\) are all equal.
Or \(H_0\text{:}\) the mean amounts spent in the long run are the same regardless of type of music being played.
\(H_a\text{:}\) at least one true treatment mean differs.
Or \(H_a\text{:}\) at least one type of music shows a tendency for higher or lower spending amounts on average.

2. Calculate Key ANOVA Quantities.

Based on these summary statistics, calculate the overall (weighted) mean amount spent, the between group variation, and the pooled variance. Check the consistency of your calculations with the summary statistics reported above.
Overall (weighted) mean: \(\bar{x} = \dfrac{\sum_{i=1}^{I} n_i \bar{x}_i}{n} =\)
Between group variability (MSGgroups) = \(\dfrac{\sum_{i=1}^{I} n_i (\bar{x}_i - \bar{x})^2}{I-1} =\)
Pooled variance (MSError) = \(\dfrac{\sum_{i=1}^{I} (n_i - 1)s_i^2}{n-I} =\)
Solution.
weighted mean = \([120(24.13) + 142(21.91) + 131(21.70)]/(120+142+131) = 22.52\) (this is in the "middle" of the 3 observed averages).
Between group variability.
Pooled variance = \([119(2.243^2)+141(2.627^2)+130(3.332^2)]/(119+141+130) = 7.73\text{.}\)
Pooled std dev = \(\sqrt{7.73} = 2.78\) (this is in the "middle" of the observed standard deviations).
variability between groups = \(120(24.13-22.52)^2 + 142(21.91-22.52)^2 + 132(21.7-22.52)^2/2 = 226\text{.}\)

3. Calculate the \(F\)-statistic.

Using your earlier calculations of between-group variability and pooled within-group variability, calculate the \(F\)-statistic (by hand).
Solution.
\(F = \frac{\text{between-group variability}}{\text{within-group variability}}\text{.}\) Using the values from earlier, this is approximately \(\frac{226}{7.73} \approx 29.2\) (minor differences may occur due to rounding).

4. Use technology to find the p-value.

Using your \(F\)-statistic from Question 3, use technology to determine the p-value (sketch and shade the corresponding randomization distribution).
Enter the p-value you find:
Hint 1. Applet Instructions
In F Probability Calculator applet: Specify the degrees of freedom and the observed F-value, and the direction for the probability of interest.
Hint 2. R Instructions
In R: pf(x, df1, df2, lower.tail=FALSE)
Hint 3. JMP Instructions
In JMP: Distribution Calculator > F, Input quantiles…, X > Qa
Solution.
The \(p\)-value is very small (approximately 0, depending on rounding and software display). The small p-value makes sense with the large (e.g., much larger than 4) \(F\)-statistic.
described in detail following the image
R output for Investigation 5.5 technology detour.
described in detail following the image
JMP output for Investigation 5.5 technology detour.

5. Interpret Relative Variation.

Which appears to be larger, the variation in amount spent between diners or the variation in amount spent between types of music?
Solution.
The variation between types of music appears larger than the variation in amount spent between diners. With \(F \approx 29.2\text{,}\) the between-group variation (types of music) is about 29 times larger than the within-group variation (between diners).

6. Assess ANOVA Conditions.

Do you consider this p-value to be valid? In other words, are the technical conditions for ANOVA met for this study design?
Solution.
We would need to be able to verify the technical conditions (in fact, there is an issue here in that the treatments were assigned to the evenings and not the individual dinners).

Study Conclusions.

In this study, a larger average amount was spent while classical music was playing. With such a large test statistic and such a small p-value (F = 29.2, p-value \(\approx\) 0), we have very strong evidence that the observed differences in the sample means could not have arisen by chance alone. However, we need to assess the technical conditions before we could know whether this inferential procedure is valid with these data. Although the equal standard deviation assumption seems reasonable (because 3.332/2.243 < 2), we do not have the sample data to examine the shapes of the sample distributions. Still, the sample sizes are large and the F procedure is fairly robust to departures from the normality condition. However, we should not consider these observations to be independent within each group, because the treatments were assigned to the evenings, not to the individual diners. In this sense, we only have a few replications per evening and ANOVA is not the appropriate analysis. Descriptively it appears that the average amount spent is larger when classical music is playing, but because of the confounding with evening, it’s possible that classical music was played on certain days of the week and that that led to more spending. This was a randomized experiment, so if it weren’t for the concern about independence, we would have been able to draw a cause-and-effect conclusion from the type of music played and the amount spent. We would want to be very cautious in generalizing these results to other restaurants and even other times of the year.

Subsection 26.2.2 Practice Problem 5.5A

Another way to analyze the data for the trial of Dr. Spock is to look at the percentages of women on the different venires and determine whether the mean percentage of women is equal across the seven judges. Below are the percentages of women on the venires for a recent sample from each of the judges. These data are below and in SpockPers.txt.
Judge 1 Judge 2 Judge 3 Judge 4 Judge 5 Judge 6 Judge 7
16.8 27.0 21.0 24.3 17.7 16.5 6.4
30.8 28.9 23.4 29.7 19.7 20.7 8.7
33.6 32.0 27.5 21.5 23.5 13.3
40.5 32.7 27.5 27.9 26.4 13.6
48.9 35.5 30.5 34.8 26.7 15.0
45.6 31.9 40.2 29.5 17.7
32.5 29.8 18.6
33.8 31.9 23.1
33.8 36.2 15.2

Checkpoint 26.2.1. What New Information Does ANOVA Add?

Explain what information we learn from analyzing the data this way that we did not see when we carried out the Chi-squared test on the overall proportion of women for each judge. Why might this information be useful?

Checkpoint 26.2.2. Summarize Judge Percentages.

Produce numerical and graphical summaries to compare the percentages across the seven judges.

Checkpoint 26.2.3. Run ANOVA on Judge Percentages.

Carry out an ANOVA to test whether at least one judge has a different mean percentage. Did you state the null and alternative hypotheses in terms of population parameters or in terms of treatment effects?

Checkpoint 26.2.4. Check Technical Conditions.

Comment on whether you believe the technical conditions for this procedure are met.

Subsection 26.2.3 Practice Problem 5.5B

Recall the Disability Discrimination study (Investigation 5.4). Suppose the researchers had been most interested in comparing the results for those in a wheelchair to those with leg amputation.

Checkpoint 26.2.5. Two-sample \(t\)-test.

Checkpoint 26.2.6. ANOVA for the Same Two Groups.

Carry out an analysis of variance to assess whether there is a statistically significant difference in the average ratings assigned to these two groups.

Checkpoint 26.2.7. Relate the \(t\) and \(F\) Results.

Checkpoint 26.2.8. When to Use \(t\) vs ANOVA.

Suggest (in general) a situation where the two-sample t-procedure would be preferred and a situation where the ANOVA procedure would be preferred.
Hint.
What would be true about the research question?
You have attempted of activities on this page.