Skip to main content
Statistics LibreTexts

10.6: Movies and Mood

  • Page ID
    7142
  • \( \newcommand{\vecs}[1]{\overset { \scriptstyle \rightharpoonup} {\mathbf{#1}} } \) \( \newcommand{\vecd}[1]{\overset{-\!-\!\rightharpoonup}{\vphantom{a}\smash {#1}}} \)\(\newcommand{\id}{\mathrm{id}}\) \( \newcommand{\Span}{\mathrm{span}}\) \( \newcommand{\kernel}{\mathrm{null}\,}\) \( \newcommand{\range}{\mathrm{range}\,}\) \( \newcommand{\RealPart}{\mathrm{Re}}\) \( \newcommand{\ImaginaryPart}{\mathrm{Im}}\) \( \newcommand{\Argument}{\mathrm{Arg}}\) \( \newcommand{\norm}[1]{\| #1 \|}\) \( \newcommand{\inner}[2]{\langle #1, #2 \rangle}\) \( \newcommand{\Span}{\mathrm{span}}\) \(\newcommand{\id}{\mathrm{id}}\) \( \newcommand{\Span}{\mathrm{span}}\) \( \newcommand{\kernel}{\mathrm{null}\,}\) \( \newcommand{\range}{\mathrm{range}\,}\) \( \newcommand{\RealPart}{\mathrm{Re}}\) \( \newcommand{\ImaginaryPart}{\mathrm{Im}}\) \( \newcommand{\Argument}{\mathrm{Arg}}\) \( \newcommand{\norm}[1]{\| #1 \|}\) \( \newcommand{\inner}[2]{\langle #1, #2 \rangle}\) \( \newcommand{\Span}{\mathrm{span}}\)\(\newcommand{\AA}{\unicode[.8,0]{x212B}}\)

    We are interested in whether the type of movie someone sees at the theater affects their mood when they leave. We decide to ask people about their mood as they leave one of two movies: a comedy (group 1, \(n\) = 35) or a horror film (group 2, \(n\) = 29). Our data are coded so that higher scores indicate a more positive mood. 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.

    Step 1: State the Hypotheses As always, we start with hypotheses:

    \(H_0\): There is no difference in average mood between the two movie types

    \(\mathrm{H}_{0}: \mu_{1}-\mu_{2}=0\)

    or

    \(\mathrm{H}_{0}: \mu_{1}=\mu_{2}\)

    \(H_A\): The comedy film will give a better average mood than the horror film

    \(\mathrm{H}_{\mathrm{A}}: \mu_{1}-\mu_{2}>0\)

    or

    \(\mathrm{H}_{\mathrm{A}}: \mu_{1}>\mu_{2}\)

    Notice that in the first formulation of the alternative hypothesis we say that the first mean minus the second mean will be greater than zero. This is based on how we code the data (higher is better), so we suspect that the mean of the first group will be higher. Thus, we will have a larger number minus a smaller number, which will be greater than zero. 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 \(t\)-table. In this example, we have a one-tailed test at \(α\) = 0.05 and expect a positive answer (because we expect the difference between the means to be greater than zero). Our degrees of freedom for our independent samples t-test is just the degrees of freedom from each group added together: 35 + 29 – 2 = 62. From our t-table, we find that our critical value is \(t*\) = 1.671. Note that because 62 does not appear on the table, we use the next lowest value, which in this case is 60.

    Step 3: Compute the Test Statistic The data from our two groups are presented in the tables below. Table \(\PageIndex{1}\) shows the values for the Comedy group, and Table \(\PageIndex{2}\) shows the values for the Horror group. Values for both have already been placed in the Sum of Squares tables since we will need to use them for our further calculations. As always, the column on the left is our raw data.

    Table \(\PageIndex{1}\): Raw scores and Sum of Squares for Group 1
    \(X\) \((X-\overline{X})\) \((X-\overline{X})^{2}\)
    Group 1: Comedy Film
    39.10 15.10 228.01
    38.00 14.00 196.00
    14.90 -9.10 82.81
    20.70 -3.30 10.89
    19.50 -4.50 20.25
    32.20 8.20 67.24
    11.00 -13.00 169.00
    20.70 -3.30 10.89
    26.40 2.40 5.76
    35.70 11.70 136.89
    26.40 2.40 5.76
    28.80 4.80 23.04
    33.40 9.40 88.36
    13.70 -10.30 106.09
    46.10 22.10 488.41
    13.70 -10.30 106.09
    23.00 -1.00 1.00
    20.70 -3.30 10.89
    19.50 -4.50 20.25
    11.40 -12.60 158.76
    24.10 0.10 0.01
    17.20 -6.80 46.24
    38.00 14.00 196.00
    10.30 -13.70 187.69
    35.70 11.70 136.89
    41.50 17.50 306.25
    18.40 -5.60 31.36
    36.80 12.80 163.84
    54.10 30.10 906.01
    11.40 -12.60 158.76
    8.70 -15.30 234.09
    23.00 -1.00 1.00
    14.30 -9.70 94.09
    5.30 -18.70 349.69
    6.30 -17.70 313.29
    \(\Sigma = 840\) \(\Sigma = 0\) \(\Sigma = 5061.60\)
    Table \(\PageIndex{2}\): Raw scores and Sum of Squares for Group 2
    \(X\) \((X-\overline{X})\) \((X-\overline{X})^{2}\)
    Group 2: Horror Film
    24.00 7.50 56.25
    17.00 0.50 0.25
    35.80 19.30 372.49
    18.00 1.50 2.25
    -1.70 -18.20 331.24
    11.10 -5.40 29.16
    10.10 -6.40 40.96
    16.10 -0.40 0.16
    -0.70 -17.20 295.84
    14.10 -2.40 5.76
    25.90 9.40 88.36
    23.00 6.50 42.25
    20.00 3.50 12.25
    14.10 -2.40 5.76
    -1.70 -18.20 331.24
    19.00 2.50 6.25
    20.00 3.50 12.25
    30.90 14.40 207.36
    30.90 14.40 207.36
    22.00 5.50 30.25
    6.20 -10.30 106.09
    27.90 11.40 129.96
    14.10 -2.40 5.76
    33.80 17.30 299.29
    26.90 10.40 108.16
    5.20 -11.30 127.69
    13.10 -3.40 11.56
    19.00 2.50 6.25
    -15.50 -32.00 1024.00
    \(\Sigma = 478.6\) \(\Sigma = 0.10\) \(\Sigma = 3896.45\)

    Using the sum of the first column for each table, we can calculate the mean for each group:

    \[\overline{X_{1}}=\dfrac{840}{35}=24.00 \nonumber \]

    And

    \[\overline{X_{2}}=\dfrac{478.60}{29}=16.50 \nonumber \]

    These values were used to calculate the middle rows of each table, which sum to zero as they should (the middle column for group 2 sums to a very small value instead of zero due to rounding error – the exact mean is 16.50344827586207, but that’s far more than we need for our purposes). Squaring each of the deviation scores in the middle columns gives us the values in the third columns, which sum to our next important value: the Sum of Squares for each group: \(SS_1\) = 5061.60 and \(SS_2\) = 3896.45. These values have all been calculated and take on the same interpretation as they have since chapter 3 – no new computations yet. Before we move on to the pooled variance that will allow us to calculate standard error, let’s compute our standard deviation for each group; even though we will not use them in our calculation of the test statistic, they are still important descriptors of our data:

    \[s_{1}=\sqrt{\dfrac{5061.60}{34}}=12.20 \nonumber \]

    And

    \[s_{2}=\sqrt{\dfrac{3896.45}{28}}=11.80 \nonumber \]

    Now we can move on to our new calculation, the pooled variance, which is just the Sums of Squares that we calculated from our table and the degrees of freedom, which is just \(n – 1\) for each group:

    \[s_{p}^{2}=\dfrac{S S_{1}+S S_{2}}{d f_{1}+d f_{2}}=\dfrac{5061.60+3896.45}{34+28}=\dfrac{8958.05}{62}=144.48 \nonumber \]

    As you can see, if you follow the regular process of calculating standard deviation using the Sum of Squares table, finding the pooled variance is very easy. Now we can use that value to calculate our standard error, the last step before we can find our test statistic:

    \[s_{\overline{X_{1}}-\overline{X_{2}}}=\sqrt{\dfrac{s_{p}^{2}}{n_{1}}+\dfrac{s_{p}^{2}}{n_{2}}}=\sqrt{\dfrac{144.48}{35}+\dfrac{144.48}{29}}=\sqrt{4.13+4.98}=\sqrt{9.11}=3.02 \nonumber \]

    Finally, we can use our standard error and the means we calculated earlier to compute our test statistic. Because the null hypothesis value of \(μ_1 – μ_2\) is 0.00, we will leave that portion out of the equation for simplicity:

    \[t=\dfrac{(\overline{X_{1}}-\overline{X_{2}})}{s_{\overline{X}_{1}-\overline{X_{2}}}}=\dfrac{24.00-16.50}{3.02}=2.48 \nonumber \]

    The process of calculating our obtained test statistic \(t\) = 2.48 followed the same sequence of steps as before: use raw data to compute the mean and sum of squares (this time for two groups instead of one), use the sum of squares and degrees of freedom to calculate standard error (this time using pooled variance instead of standard deviation), and use that standard error and the observed means to get t. Now we can move on to the final step of the hypothesis testing procedure.

    Step 4: Make the Decision Our test statistic has a value of \(t\) = 2.48, and in step 2 we found that the critical value is \(t*\) = 1.671. 2.48 > 1.671, so we reject the null hypothesis:

    Reject \(H_0\). Based on our sample data from people who watched different kinds of movies, we can say that the average mood after a comedy movie (\(\overline{X_{1}}=24.00\)) is better than the average mood after a horror movie (\(\overline{X_{2}}=16.50\)), \(t(62) = 2.48, p < .05\).


    This page titled 10.6: Movies and Mood is shared under a CC BY-NC-SA 4.0 license and was authored, remixed, and/or curated by Foster et al. (University of Missouri’s Affordable and Open Access Educational Resources Initiative) via source content that was edited to the style and standards of the LibreTexts platform; a detailed edit history is available upon request.