# 9.4: Practice! Movies and Mood

- Page ID
- 22092

Dr. Foster was interested in whether the type of movie someone sees at the theater affects their mood when they leave. He decide to ask people about their mood as they leave one of two movies: a comedy (group 1, \(N_{C}\) = 35) or a horror film (group 2, \(N_{H}\) = 29). The data are coded so that higher scores indicate a more positive mood.

## Step 1: State the Hypotheses

As always, we start with hypotheses:

- Research Hypothesis: The average mood for the sample who watched a comedy will be higher than the average mood for the sample who watched a horror film.
- Symbols: \(\bar{X}_{C} > \bar{X}_{H} \)

- Null Hypothesis: The average mood for the sample who watched a comedy will be similar to the average mood for the sample who watched a horror film. In order words, there will be no difference between the means.
- Symbols: \(\bar{X}_{C} = \bar{X}_{H} \)

One thing to notice about the research hypothesis is that we put the mean of the comedy first. And since we think that mean will be bigger, our calculated t-score should be positive because we will have a larger number minus a smaller number. Be sure to pay attention to which group is which and how your data are coded (higher is almost always used as better outcomes) to make sure your hypothesis makes sense!

## Step 2: Find the Critical Values

Just like before, we will need critical values, which come from out of the same \(t\)-table that we used for one-sample t-tests (and found in the Common Critical Value Tables page at the back of this book). In this example, we have a one-tailed test at \(α\) = 0.05. Our degrees of freedom for our independent samples t-test is just the degrees of freedom from each group added together:

\[d f=N_{1}+N_{2}-2 = 35 + 29 - 2 = 62 \nonumber \]

*OR*

\[ d f = (N_{1} - 1) + (N_{2} - 1) = (35-1) + (29-1) = 34 + 28 = 62 \nonumber \]

From our t-table, we find that our the closest Degrees of Freedom to 62 that is listed is \( d f = 60 \), with a critical value of\(t*\) = 1.671. Note that just because we use the \( d f = 60 \) row in the table doesn't mean that the Degrees of Freedom is 60. The table doesn't have all critical t-scores, so we're using the closes Degrees of Freedom to find a critical value that is close to what we need for our two samples.

## Step 3: Compute the Test Statistic

The descriptive statistics for both groups are provided in Table \(\PageIndex{1}\) so that you can focus on the independent samples t-test equation in Example \(\PageIndex{1}\), and not get caught up in other calculations right now.

Group | N | Mean | Standard Deviation |
---|---|---|---|

Group 1: Comedy | 35 | 24.00 | 12.20 |

Group 2: Horror Movie | 29 | 16.50 | 11.80 |

Take a deep breath!

Calculate an independent t-test using the descriptive statistics from Table \(\PageIndex{1}\).

After your deep breath, copy down the independent samples t-test formula:

\[t=\dfrac{(\bar{X}_{C}-\bar{X}_{H})}{\sqrt{\left[\dfrac{\left( N_{C}-1\right) * s_{C}^{2} + \left(N_{H}-1\right) * s_{H}^{2}}{N_{C}+N_{H}-2}\right] * \left(\dfrac{1}{N_{C}} + \dfrac{1}{N_{H}}\right)}} \nonumber \]

And then fill in all of the numbers from Table \(\PageIndex{1}\) into the formula:

\[t=\dfrac{(24.00 - 16.50)}{\sqrt{\left[\dfrac{\left(35 -1 \right) * (12.20)^{2} + \left(29 - 1\right) * (11.80)^{2}}{35 + 29 - 2}\right] * \left(\dfrac{1}{35} + \dfrac{1}{29 }\right)}} \nonumber \]

At this point, you do the calculations by following the order of operations (PEMDAS from the Math Refresher in chapter 3!).

**Solution**

I like to start at the top right and work my way left and down because that's how reading goes in English. Let's try that by doing a few of the easy calculations first. As long as you follow the rules of the order of operations, you can do this in whatever order you'd like, though.

\[\begin{aligned} t &=\dfrac{(24.00 - 16.50)}{\sqrt{\left[\dfrac{\left(35 -1 \right) * (12.20)^{2} + \left(29 - 1\right) * (11.80)^{2}}{35 + 29 - 2}\right] * \left(\dfrac{1}{35} + \dfrac{1}{29 }\right)}} \nonumber \\ t_{Add/Subtract} &= \dfrac{7.50}{\sqrt{\left[\dfrac{\left(34 \right) * (12.20)^{2} + \left(28\right) * (11.80)^{2}}{62 }\right] * \left(\dfrac{1}{35} + \dfrac{1}{29 }\right)}} \nonumber \\ t_{Square} &= \dfrac{7.50}{\sqrt{\left[\dfrac{\left(34 * 148.84\right) + \left(28 * 139.24\right)}{62 }\right] * \left(\dfrac{1}{35} + \dfrac{1}{29 }\right)}} \nonumber \\ t_{Multiply} &= \dfrac{7.50}{\sqrt{\left[\dfrac{\left(5060.56\right) + \left(3898.72\right)}{62 }\right] * \left(\dfrac{1}{35} + \dfrac{1}{29 }\right)}} \nonumber \\ t_{AddAgain} &= \dfrac{7.50}{\sqrt{\left(\dfrac{8959.28}{62 }\right) * \left(\dfrac{1}{35} + \dfrac{1}{29 }\right)}} \nonumber \\ t_{Divide} &= \dfrac{7.50}{\sqrt{\left(144.50\right) * \left(0.03 + 0.03\right)}} \nonumber \\ t_{AddAgainAgain} &= \dfrac{7.50}{\sqrt{\left(144.50\right) * \left(0.06\right)}} \nonumber \\ t_{MultiplyAgain} &= \dfrac{7.50}{\sqrt{8.67}} \nonumber \\ t_{Square Root} &= \dfrac{7.50}{2.94 } \nonumber \\ t_{TheEnd!} &= 2.55 \nonumber \end{aligned} \]

If you use Excel your final calculations will be slightly different because Excel keeps all of the numbers after the decimal point. For Excel, the calculation will look like:

\[\begin{aligned} t &=\dfrac{(24.00 - 16.50)}{\sqrt{\left[\dfrac{\left(35 -1 \right) * (12.20)^{2} + \left(29 - 1\right) * (11.80)^{2}}{35 + 29 - 2}\right] * \left(\dfrac{1}{35} + \dfrac{1}{29 }\right)}} \nonumber \\ t_{Add/Subtract} &= \dfrac{7.50}{\sqrt{\left[\dfrac{\left(34 \right) * (12.20)^{2} + \left(28\right) * (11.80)^{2}}{62 }\right] * \left(\dfrac{1}{35} + \dfrac{1}{29 }\right)}} \nonumber \\ t_{Square} &= \dfrac{7.50}{\sqrt{\left[\dfrac{\left(34 * 148.84\right) + \left(28 * 139.24\right)}{62 }\right] * \left(\dfrac{1}{35} + \dfrac{1}{29 }\right)}} \nonumber \\ t_{Multiply} &= \dfrac{7.50}{\sqrt{\left[\dfrac{\left(5060.56\right) + \left(3898.72\right)}{62 }\right] * \left(\dfrac{1}{35} + \dfrac{1}{29 }\right)}} \nonumber \\ t_{AddAgain} &= \dfrac{7.50}{\sqrt{\left(\dfrac{8959.28}{62 }\right) * \left(\dfrac{1}{35} + \dfrac{1}{29 }\right)}} \nonumber \\ t_{Divide} &= \dfrac{7.50}{\sqrt{\left(144.50\right) * \left(0.03 + 0.03\right)}} \nonumber \\ t_{AddAgainAgain} &= \dfrac{7.50}{\sqrt{\left(144.50\right) * \left(0.06\right)}} \nonumber \\ t_{MultiplyAgain} &= \dfrac{7.50}{\sqrt{9.11}} \nonumber \\ t_{Square Root} &= \dfrac{7.50}{3.02} \nonumber \\ t_{TheEnd!} &= 2.48 \nonumber \end{aligned} \]

Phew!

A few things to notice. I added subscripts inappropriately to indicate what I was doing on each step. Also, on my own, I might have combined a few of these calculations in one step, but I don't encourage too much of that because it's easy to miss a step. Especially when you are re-writing the equation over and over again.

Before we can move on to the final step of the hypothesis testing procedure, take a break and congratulate yourself! That was a scary formula, and you did it! I know that you're not supposed to use food as a reward, so I petted my dog as a reward. But I also had a dark chocolate truffle.

## Step 4: Make the Decision

We have good reason to believe that people leaving the comedy will be in a better mood, so we use a one-tailed test at \(α\) = 0.05 to test our hypothesis. Our calculated test statistic has a value of \(t\) = 2.48, and in step 2 we found that the critical value is \(t*\) = 1.671. As 1.671 is smaller than 2.48 (the critical value is smaller than the calculated value), we reject the null hypothesis because:

\((Critical < |Calculated|) =\) Reject null \(=\) means are different \(= p<.05\)

\((Critical > |Calculated|) =\) Retain null \(=\) means are similar \(= p>.05\)

We found that the calculated t-score was more extreme than the critical t-score. The critical t-score was marking the 5% probability, so a calculated score more extreme than that shows that the probability of the calculated t-score being this extreme (the means being this different) is less than 5%.

Let's look back at the research hypothesis:

- Research Hypothesis: The average mood for the sample who watched a comedy will be higher than the average mood for the sample who watched a horror film.
- Symbols: \(\bar{X}_{C} > \bar{X}_{H} \)

What does the conclusion for a t-test look like?

**Solution**

Based on our sample data from people who watched different kinds of movies, the average mood for the sample who watched a comedy (\(\overline{X_{C}}=24.00\)) was higher than the average mood for the sample who watched a horror film (\(\overline{X_{H}}=16.50\)), \(t(62) = 2.48, p < .05\). This supports our research hypothesis.

For a full report, you would describe what all three of the measures of central tendency tell us about the center of the distribution, what the standard deviation tells us about the shape of the distribution, and we'd look at the graph. After all of that, we'd add the concluding paragraph for our t-test (as show in Example \(\PageIndex{2}\).

## Summary

Let's summarize.

- First, we made a prediction about which group will have a higher mean, and noted our null hypothesis (that the means will be the same).
- Second, we looked at the t-table to see what our critical value would be to be able to reject the null hypothesis that the means are the same.
- Third, we did a complicated equation with numbers provided from a table to find a calculated t-test.
- Fourth, and finally, we decided that our calculated t-score was so big that it is very unlikely (a difference between means this big would occur less than 5% of the time if the samples were actually from the sample population) that the groups were similar, so we determined that the means were different. We looked at our research hypothesis, and found that the means were different in the direction we said (the group we said would have a bigger mean did have the bigger mean), and supported our research hypothesis.

You're doing great, keep it up!