Testing The Difference Between Two Means of Independent Samples: Using The T Test
Testing The Difference Between Two Means of Independent Samples: Using The T Test
𝑑𝑓 = 𝑛1 + 𝑛2 − 2
I. Hypothesis
𝐻0 : 𝜇𝑀𝑢𝑠𝑖𝑐 = 𝜇𝑁𝑜 𝑀𝑢𝑠𝑖𝑐 (There is no significant difference…)
𝐻1 : 𝜇𝑀𝑢𝑠𝑖𝑐 ≠ 𝜇𝑁𝑜 𝑀𝑢𝑠𝑖𝑐 (There is a significant difference…)
1. Type the data for with Music in column A and the without Music in column B.
2. From the menu bar select the Data tab, then click Data Analysis.
3. In the Analysis Tools, select t-Test Two Assuming Equal Variances →OK
.
3. In the t-test: Two Sample Assuming Equal Variances dialog box,
− type A1:A10 in the Variable 1Range box
− type B1:B10 in the Variable 1Range box
− Key in 0 in Hypothesized Mean Difference
− Check Labels.
− Select Output Range and type J1 in the box
4. Click OK.
4. Output for the test is given at Column J.
Example2 : The resting heart rates were measured in a sample of women smokers and non-smokers at a state
university. There were 14 smokers and 18 nonsmokers in the sample. Was there a significant difference in the
resting heart rates of the two groups? Use α = 0.05.
I. Hypothesis
𝐻0 : 𝜇𝑆𝑚𝑜𝑘𝑒𝑟𝑠 = 𝜇𝑁𝑜𝑛𝑆𝑚𝑜𝑘𝑒𝑟𝑠 (There is no significant difference…)
𝐻1 : 𝜇𝑆𝑚𝑜𝑘𝑒𝑟𝑠 ≠ 𝜇𝑁𝑜𝑛𝑆𝑚𝑜𝑘𝑒𝑟𝑠 (There is a significant difference…)
Excel output: