Professional Documents
Culture Documents
Learning Objectives
Comparing two populations
Paired samples
Independent samples
In Section 6
H0: = M
x1
1
H0: 1 = 2
x2
The Hypotheses
H0: 1 = 2
The alternate hypothesis can have any
of the three usual forms:
Ha: 1 < 2 left tail test
Ha: 1 > 2 right tail test
Ha: 1 2 two tail test
5
Example
Is the mean university tuition rate
higher in Canada than in the United
States? Find the null and alternate
hypotheses.
H0 (no difference at all):
Ha (Canadas is higher):
6
Independent Samples
When taking two samples, you can take
them INDEPENDENTLY of one another.
You number the two populations and
use your random number table once for
EACH population.
DIFFERENT individuals in each
sample!
Even the sample sizes dont have to be
7
the same!
Paired Samples
A paired sample is when the second
sample consists of the SAME
individuals (people, or whatever) as the
first. Or, the second sample must be
DETERMINED from the first one.
Useful when trying to keep many
factors identical, except the variable
youre trying to study.
8
Examples: Independent or
Paired?
In order to compare tuition rates in
Canada and the U.S., a random sample
of universities in Canada and the U.S.
was taken.
Examples: Independent or
Paired?
To determine whether a new drug is
effective in helping people reduce the
amount they smoke, a random sample
of smokers nicotine use was measured.
Then these same people were put on
the drug. After 8 weeks on the drug,
their nicotine use was measured again.
10
11
In Class Exercise
7.1 coach
A swimming
Do VWs on average
survive for the same
total mileage as a
Toyota? The mean
mileage of a random
sampling of each
type of car was
measured.
Notation
1 = population mean of P1.
2 = population mean of P2.
x1 = sample mean of sample from P1.
x2 = sample mean of sample from P2.
1 = population st. dev. of P1.
2 = population st. dev. of P2.
S1 = sample st. dev. of sample from P1.
S2 = sample st. dev. of sample from P2.
n1 = sample size from P1.
14
Paired Samples
This is exactly like the ONE SAMPLE
case!
Make a NEW DATASET by finding the
PAIRED DIFFERENCES (di).
Then pretend you have only a single
sample (of the ds), and use the
methods from section 6.
15
12.3
17.5
14.0
14.6
11.0
15.7
16.1
14.5
Differences (di)
1.3
2.2
-2.1
0.1
1
Sd / n
17
The Rule of 2
The Rule of 2
Mathematically:
If
If
Sbig
S small
Sbig
S small
(n1 1) S1 (n2 1) S 2
Sp
n1 n2 2
21
TS t
Sp
1 1
n1 n2
df n1 n2 2
22
Population Standard
Deviations NOT EQUAL
The Test Statistic for INDEPENDENT
SAMPLES, population standard
deviations considered NOT EQUAL, is
TS t
( x1 x2 )
2
S1 S 2
n1
n2
df
/ n1 S 2 / n2
/ n1
S 2 / n2
n1 1
n2 1
24
Vs.
Ha: 1 < 2
Ha: 1 > 2
Ha: 1 2
OR
OR
26
29
Example 1
Dell claims that their waiting times (for
customers calling for service) are
shorter than the wait times for IBM. To
test this, both companies were called at
random times and the waiting times
were recorded. The data is free of
outliers. The summary statistics are in
the following table. Test Dells claim at
the 1% level of significance.
30
Example 1 (Continued)
Number
of calls
Sample
mean wait
time
(minutes)
Sample
St. dev.
wait time
(minutes)
Dell
20
3.51
1.25
IBM
17
4.37
0.36
31
Example 2
A new therapy claims that it can help
you reduce how much you smoke. To
test the claim, a random sample of 10
smokers was taken and the number of
milligrams of nicotine they used per day
was recorded. These smokers were
then put on the therapy and after 18
weeks, the amount they smoked was
recorded again. The results are on the
next slide. Test at the 5% level.
32
Example 2 (Continued)
Person
10
Daily Nicotine
use before
therapy (mg)
9.6
11.2
7.8
21.5
13.1
7.0
19.6
10
5.6
8.2
Daily Nicotine
use after
therapy (mg)
9.0
10.9
7.8
19.8
13.7
6.5
20.0
9.3
5.6
8.1
33
Example 3
Are mean tuition rates different
between Canadian and U.S.
universities? To answer this question, a
sample of 11 universities in Canada and
18 in the U.S. were taken and the tuition
rates (dollars per year) were recorded
in Minitab. Test at the 10 % level of
significance.
34
31
12.6
2.3
Non - drinkers 45
11.0
2.1
Drinkers
36