Module3 Part4 One Sample T Procedure
Module3 Part4 One Sample T Procedure
# F
CDE
q Test 𝐻@ : 𝜇 = 𝜇@ , the test statistic 𝑍 = H ~𝑁 0,1 if 𝐻@ is
G I
true
What if we don’t know σ
#
CDE
q When σ is known, 𝑍 = H
G I
#
CDE
q One-sample t statistic: LM ~ 𝑡>DO , which is a t distribution
G I
df = n-1 = 11
Find t*
Suppose you want to construct a 95% confidence interval for the mean
µ of a Normal population based on an SRS of size n = 12. What degrees
of freedom of the t distribution is the critical value t* from?
t11
0.95
-t* t*
Use t table to find t*
Suppose you want to construct a 95% confidence interval for the mean
µ of a Normal population based on an SRS of size n = 12. What critical
t* should you use?
Upper-tail probability p In Table D, we consult the row
corresponding to df = n – 1 = 11.
df .05 .025 .02 .01
10 1.812 2.228 2.359 2.764
11 1.796 2.201 2.328 2.718
12 1.782 2.179 2.303 2.681
z* 1.645 1.960 2.054 2.326 We move across that row to the
90% 95% 96% 98% entry that is directly above 95%
confidence level.
Confidence level C
ü SRS: We are told that the data come from a random sample of 20
screens from the population of all screens produced that day.
q We are 90% confident that the interval from 292.32 to 320.32 mV captures
the true mean tension in the entire batch of video terminals produced that
day.
One-sample t test
Choose an SRS of size n from a large population that contains an
unknown mean µ. To test the hypothesis H0 : µ = µ0, compute the
one-sample t statistic:
x - µ0
t=
sx
n
Find the P-value by calculating the probability (at degrees of freedom = n – 1) of
getting a t statistic this large or larger in the direction specified by the alternative
hypothesis Ha.
Example
The level of dissolved oxygen (DO) in a stream or river is an
important indicator of the water’s ability to support aquatic life. A
researcher measures the DO level at 15 randomly chosen
locations along a stream. Here are the results in milligrams per
liter:
4.53 5.04 3.29 5.23 4.13 5.50 4.83 4.40
5.42 6.38 4.01 4.66 2.87 5.73 5.55
Confidence level C
Conclusion
q H0: µ = 5 versus Ha: µ < 5
q 𝑥̅ = 4.771 and 𝑠Q = 0.9396 with n=15
q t = -0.94
q The P-value is between 0.15 and 0.20.
q Since this is greater than our α = 0.05 significance level,
we fail to reject H0. We don’t have enough evidence to
conclude that the mean DO level in the stream is less than
5 mg/l.
Matched Pairs t Procedures
q Study designs that involve making two observations on
the same individual, or one observation on each of two
similar individuals, result in paired data.
q For pared data, we can make comparisons by analyzing
the differences in each pair.
q If the conditions for inference are met, we can use one-
sample t procedures to perform inference about the mean
difference µd.
Example
Insurance adjusters are concerned about the high estimates
they are receiving for auto repairs from garage I compared to
garage II. To verify their suspicion, each of 15 cars recently
involved in an accident was taken to both garages for
separate estimates of repair costs.
Example
22
20
18
16
14
12
Garage 1 Garage 2
Hypothese
q Insurance adjusters are concerned about the high
estimates they are receiving for auto repairs from garage I
compared to garage II.
q Let 𝜇[ denote the difference of the average estimate from
garage 1 minus the average estimate from garage 2
q We want to perform a test at the α = 0.05 significance
level of H0: 𝜇[ = 0 versus Ha: 𝜇[ > 0
q Take the difference: d = garage 1 – garage 2
One-sample t test on the difference
● ● ●
1.0
1.0
1.2
● ● ●
0.8
0.8
●
1.0
0.6
0.6
Sample Quantiles
●
0.8
Density
0.4
0.4
0.6
● ● ●
0.2
0.2
0.4
0.0
0.0
0.2
−0.2
−0.2
0.0
q Use other distribution which might describe your data well. Many non-Normal
models have been developed to provide inference procedures too.