Lecture 10
Lecture 10
Lecture 10
AND STATISTICS
FOURTEENTH EDITION
Chapter 10
Inference from
Small Samples
INTRODUCTION
When the sample size is small, the
estimation and testing procedures of
Chapter 8 are not appropriate.
There are equivalent small sample test
and estimation procedures for
✓ m, the mean of a normal population
✓ m1-m2, the difference between two
population means
✓ s2, the variance of a normal population
✓ The ratio of two population variances.
THE SAMPLING DISTRIBUTION
OF THE SAMPLE MEAN
When we take a sample from a normal
population, the sample mean x has a
normal distribution for any sample size n,
and
x -m x -m
z= is not normal!
s/ n s/ n
has a standard normal distribution.
But if s is unknown, and we must use s to
estimate it, the resulting statistic is not
normal.
STUDENT’S T
DISTRIBUTION
Fortunately, this statistic does have a
sampling distribution that is well known
to statisticians, called the Student’s t
distribution, with n-1 degrees of
freedom.
x -m
t=
s/ n
s
x ta / 2
n
where ta / 2 is the value of t that cuts off area a/2
in the tail of a t - distribution with df = n - 1.
EXAMPLE
A sprinkler system is designed so that the
average time for the sprinklers to activate
after being turned on is no more than 15
seconds. A test of 5 systems gave the following
times:
17, 31, 12, 17, 13, 25
Is the system working as specified? Test using
a = .05.
H 0 : m = 15 (working as specified)
H a : m 15 (not working as specified)
EXAMPLE
Data: 17, 31, 12, 17, 13, 25
First, calculate the sample mean and standard deviation, using your
calculator or the formulas in Chapter 2.
xi 115
x= = = 19.167
n 6
( x) 115 2 2
x - 2477 -
2
s= n = 6 = 7.387
n -1 5
EXAMPLE
Data: 17, 31, 12, 17, 13, 25
Calculate the test statistic and find the rejection region for a =.05.
One-Sample T: Times
Test of mu = 15 vs > 15
95%
Lower
Variable N Mean StDev SE Mean Bound T P
Times 6 19.1667 7.3869 3.0157 13.0899 1.38 0.113
TESTING THE DIFFERENCE
BETWEEN TWO MEANS
x1 - x2 - D0
t= has a t distribution
1 1 with n1+n2-2
s +
2
n1 n2 degrees of
freedom.
ESTIMATING THE DIFFERENCE
BETWEEN TWO MEANS
• You can also create a 100(1-a)%
confidence interval for m1-m2.
Remember the three
1 1 assumptions:
( x1 - x2 ) ta / 2 s +
2
1. Original
n1 n2 populations
normal
( n - 1) s 2
+ ( n - 1) s 2
with s 2 = 1 1 2 2
2. Samples random
n1 + n2 - 2 and independent
3. Equal population
variances.
•
E XAMPLE
Two training procedures are compared by
measuring the time that it takes trainees to
assemble a device. A different group of trainees are
taught using each method. Is there a difference in
the two methods? Use a = .01.
t +
1 2
df 2 n1 n2
s12 s22
+ ( s1 / n1 ) 2 ( s22 / n2 ) 2
n1 n2 +
n1 - 1 n2 - 1
To test H 0 : m1 - m 2 = 0 we test H 0 : m d = 0
using the test statistic
d -0
t=
sd / n
where n = number of pairs, d and sd are the
mean and standard deviation of the differences, d i .
Use the p - value or a rejection region based on
a t - distribution with df = n - 1.
EXAMPLE
Car 1 2 3 4 5
Type A 10.6 9.8 12.3 9.7 8.8
Type B 10.2 9.4 11.8 9.1 8.3
Difference .4 .4 .5 .6 .5
H 0 : m1 - m 2 = 0
H a : m1 - m 2 0 Test statistic :
d -0 .48 - 0
di t= = = 12.8
Calculated = = .48 sd / n .0837 / 5
n
d2 -
( d i )2
i
sd = n = .0837
n -1
EXAMPLE
Car 1 2 3 4 5
Type A 10.6 9.8 12.3 9.7 8.8
Type B 10.2 9.4 11.8 9.1 8.3
Difference .4 .4 .5 .6 .5
Confidence interval :
(n - 1) s 2 (n - 1) s 2
s
2
a / 2
2
(21-a / 2)
EXAMPLE
•A cement manufacturer claims that his cement
has a compressive strength with a standard
deviation of 10 kg/cm2 or less. A sample of n =
10 measurements produced a mean and
standard deviation of 312 and 13.96,
respectively.
uses the test statistic:
A test of hypothesis:
H0: s2 = 10 (claim is ( n - 1) s 2
9(13.96 2
)
correct) =
2
2
= = 17.5
10 100
Ha: s2 > 10 (claim is
wrong)
EXAMPLE
• Do these data produce sufficient evidence
to reject the manufacturer’s claim? Use a =
.05.
Rejection region:
Reject H0 if 2 16.919
(a = .05).
Conclusion: Since 2=
17.5, H0 is rejected. The
standard deviation of
the cement strengths is
more than 10.
APPROXIMATING THE
P-VALUE
s2
with a rejectionregionbasedon an F distribution with
df1 = n1 - 1 and df 2 = n2 - 1. Confidence interval :
s12 1 s 12 s12
2 2 Fdf 2 ,df1
s2 Fdf1 ,df 2 s 2 s2
2
EXAMPLE
•An experimenter has performed a lab
experiment using two groups of rats. He
wants to test H0: m1 = m2, but first he wants
to make sure that the population variances
are equal. Standard (2) Experimental (1)
Sample size 10 11
Sample mean 13.64 12.42
Sample Std Dev 2.3 5.8
Preliminary test :
H 0 : s 12 = s 22 versus H a : s 12 s 22
EXAMPLE
Standard (2) Experimental (1)
Sample size 10 11
Sample Std Dev 2.3 5.8
Test statistic :
H0 : s = s2
1
2
2
s12 5.82
Ha :s s
2
1
2
2 F= 2 = 2
= 6.36
s2 2.3
We designate the sample with the larger
standard deviation as sample 1, to force the
test statistic into the upper tail of the F
distribution.
EXAMPLE
H 0 : s 12 = s 22 Test statistic :
2 2
Ha :s s
2 2 s 5.8
1 2 F= = 1
2 2
= 6.36
s 2.3
2