T Test
T Test
Test of differences
Choose the relevant test
Tests of Difference
• Investigate a hypothesis of two (or more) groups differing with
respect to measures on a variable.
• Most commonly the mean (average)
• Hypotheses:
• H0 (null): Household = 3.5
• H1 (alternative): Household ≠ 3.5
0.014 / 2 = 0.007
One-tail or Two-tail t-tests
▪ One-tail tests are stronger (more power)
▪ i.e. more likely to find a significant result
• Mean difference: What is the difference between our result and the test value?
oHypotheses:
▪ H0: Travel time >= 52
❑ Hypotheses:
❑ Two-tailed
▪ H0: There is no difference in knowledge across genders
▪ H1: Knowledge differs by gender
❑ One-tailed
▪ H0: Males do not score higher than females (M≤F)
▪ H1:Males score higher than females (M>F)
2. Independent Samples t-test
2. Independent Samples t-test:Example
2. Independent Samples t-test:Output
1. Mean: What was the score for each group?
• Hypotheses:
• – One-tailed
• H0: Household electricity consumption is lower in the rural than in city areas
or its equal
• H1:Household electricity consumption is higher in the rural than in city areas
3. Paired Samples t-test
• Compares the means (average) for two related variables, e.g.
▪ Same sample pre-and-post
▪ Same sample on two different questions
• Hypotheses:
• Two-tail
▪ H0: There is no difference in importance
▪ H1: There is a difference in importance
• One-tail
▪ H0: SM is not more important than AD (SM≤AD)
▪ H1: SM is more important than AD (SM>AD)
3. Paired Samples t-test: Example
3. Paired Samples t-test: Example
3. Paired Samples t-test: Output
• 1. Mean: What was the score for each measurement?
• 2. Variance: How varied are the scores of each measurement?
• 3. Mean paired difference: What is the difference between each
measurement?
• 4. Sig.: Is it significant (<0.05)?
• Divide by 2 if one-tailed
• 5. Confidence Interval: What range are we confident in?
Hypothesis:
• It was hypothesised that police trainees can correctly identify more
license plate numbers AFTER memory training than they could
before training.
Which test of difference to use?
• Comparing a score against a pre-set level?
• E.g. Is satisfaction >4?
• One-sample t-test