Stats Lecture 09. One Sample T - Test
Stats Lecture 09. One Sample T - Test
X μ
z
σX
4
Z-Test formula
5
t-test formula
6
Basic Elements of Testing Hypothesis
1. Null Hypothesis
2. Alternative Hypothesis (Researcher Hypothesis)
3. Choice of appropriate level of significance ()
4. Assumptions
5. Test Statistic (Formula): Application of sample results in the
formula to calculate the value of test statistic use for decision
purpose.
6. Rejection Region (Critical Region): Based on alternative hypothesis
and level of significance () and degrees of freedom (df).
7. Conclusion: If the calculated value of the test statistic falls in the
rejection region, reject H0 in favor of Ha, otherwise fail to reject H0 7
t-test Formula - I
s
sX Standard Error of X is
estimated from the sample.
n
8
t-test Formula - II
X X
t
sX s
n
9
t-test formula
10
Degrees of Freedom - I
11
Degrees of Freedom - II
13
Critical Values t-test
The t Distribution
df=2, t = 4.303, =.05 (two-tailed)
df=25, t = 2.060, =.05 (two-tailed)
df=8, t = 1.860, =.05 (one-tailed)
14
When to use t-test?
Use t-test when:
1. If you don’t know the parameter value of , use t-test
When sample size is large (n > 120), then the z-test and t-test
provide the exact same value and conclusion
15
Example
- A researcher believes that children in poverty-stricken
regions are undernourished and underweight. The
population for the weight of 6-year olds is normally
distributed with µ = 20.9 kg. The researcher collects a
sample of 9 children, with a sample mean of 17.3 kg and
σ = 2.51 kg
Using a one-tailed test and a 0.01 level of significance,
determine if this sample is significantly different from
what would be expected for the population of 6-year olds.
16
X X 17.3 20.9
t 4.303
sX s 2.51
n 9
17
Example
Many doctors recommend having a total cholesterol level below 200
mg/dl. We will test to see if the 1952 population from which the Dixon
and Massey sample was gathered is statistically different, on average,
from this recommended level.
Our sample of n = 20 has = 311.15 and s = 64.3929.
1. Hypothesis Statement. H0: μ = 200 vs. H1: μ ≠ 200
2. Level of Significance α=0.05, df n-1 = 19, so reject H0 if |t| > 2.093
3. Test Statistics
4. Critical Region. tcal 7.72 > ttab 2.093. It falls in Critical Region, We reject H0
5. Result Statement: We conclude that tcal = 7.72, reject the H0 that mean
cholesterol level is different from 200 mg/dl.
18
Example
For example, imagine a company wants to test the claim that their batteries last
more than 40 hours. Using a simple random sample of 15 batteries yielded a mean of
44.9 hours, with a standard deviation of 8.9 hours. Test this claim using a significance
level of 0.05.
df 0.05, 14 = 1.761
19
20