Chapter 9 Hypothesis Testing Two Population
Chapter 9 Hypothesis Testing Two Population
Chapter 9 Hypothesis Testing Two Population
9
Outline
1.1
9.5 Test for and Inferential Statistics
Descriptive
- Differences between means of two
populations
- Differences between proportions of two
populations
- Comparing more than two population
means
Difference between
means 1 2
of two populations
Independent
Paired samples
samples
In the comparison of two means, the same basic steps for hypothesis
testing tests is used. When comparing two means, the researcher must
decide if the two samples are independent or dependent.
TESTS CONCERNING DIFFERENCE OF TWO MEANS
(INDEPENDENT SAMPLES)
Large Samples, Using the Z Test
Assumptions
1. The samples must be independent of each another.
𝐻 0 :𝜇1 −𝜇2=0
Another way of stating the hypotheses for this situation is
𝐻 0 :𝜇1=𝜇2
TESTS CONCERNING DIFFERENCE OF TWO MEANS
(INDEPENDENT SAMPLES)
Hypothesis
- Zα - Zα/2 Zα/2 Zα
Rejection region
Reject H0 at α Zcalc < - Zα/2
significance level if Zcalc < - Zα or Zcalc > Zα
Zcalc > Zα/2
TESTS CONCERNING DIFFERENCE OF TWO MEANS
(INDEPENDENT SAMPLES)
𝑥 ¯ 2 − ( 𝜇1 − 𝜇2 )
¯1− 𝑥
𝑍=
√
2 2
𝑠 1 𝑠 2
+
𝑛 1 𝑛2
Leave blank
Example: Leisure Time
A study using two random samples of 35 people each found that the
average amount of time those in the age group of 26–35 years spent per
week on leisure activities was 39.6 hours, and those in the age group of
46–55 years spent 35.4 hours. Assume that the population standard
deviation for those in the first age group found by previous studies is 6.3
hours, and the population standard deviation of those in the second
group found by previous studies was 5.8 hours.
At α = 0.05, can it be concluded that there is a significant difference in
the average times each group spends on leisure activities?
Example: Leisure Time
Assumptions
1. The samples are random samples.
3. When the sample sizes are less than 30, the populations
must be normally or approximately normally distributed.
TESTS CONCERNING DIFFERENCE OF TWO MEANS
(INDEPENDENT SAMPLES)
Hypothesis
𝐻 0 :𝜇1 −𝜇2=0 𝐻 0 :𝜇1 −𝜇2=0 𝐻 0 :𝜇1 −𝜇2=0
Left-Tailed Test Two-Tailed Test Right-Tailed Test
2 2
2 2 ( 𝑛 1 −1 ) 𝑠 + ( 𝑛2 −1 ) 𝑠
1 2 df
^ =𝑠 =
𝜎 𝑝
𝑛 1+𝑛 2 − 2
Example
The supervising inspector of incoming quality wants to know if the average
lifetimes of the two brands (brand 1 and brand 2) are the same. Based on past
experience, she believes that the battery lifetimes follow a normal distribution with
equal variance. A sample experiment is conducted: each of ten batteries (five of
each brand) is connected to a test device that places a small drain on the battery
power and records the battery lifetime. The following results (in hours) are
obtained:
Brand 1 43 48 38 41 51
Brand 2 30 26 37 31 34
Can the supervising inspector of incoming quality conclude that the average
lifetimes of the two brands are equal? Use the 5% significance level.
𝐻 0 :𝜇1 −𝜇2=0
α = 0.05
Critical value: = + 2.306 or – 2.306
Solution:
= 22.5
t = 4.2
Types of comparison
• Does attending a motivation seminar increase the productivity of
employees (compare productivity before and after for each employees)
• Does a type of diet make a difference in the weight (compare weight
before and after for each person)
• Did the new drug decrease the patient’s blood pressure?
• Is there any changes in the cholesterol level after treatment of statin
medication among 30 randomly selected patients?
TESTS CONCERNING DIFFERENCE OF TWO MEANS
(MATCHED SAMPLES)
𝐻 0 :𝜇𝑑 =0 𝐻 0 :𝜇𝑑 =0
Hypothesis
𝐻 0 :𝜇𝑑 =0
Left-Tailed Test Two-Tailed Test Right-Tailed Test
sd = 1.937
=
Example: Bank Deposits
Step 4: Make the decision.
Do not reject the null hypothesis since the test value,
–1.674 > critical value, –1.860.
H0: μd = 0
H1: μd 0
Hypothesis Ho : p 1 = p 2 Ho : p 1 = p 2
Ho : p 1 = p 2
H1 : p 1 < p 2 H1 : p 1 ≠ p 2 H1 : p 1 > p 2
Left-Tailed Test Two-Tailed Test Right-Tailed Test
√ ^𝑞
𝑝 ^
( 1
𝑛1
+
1
𝑛2 )
𝑥 1 + 𝑥2
^ = 𝑝𝑜𝑜𝑙𝑒𝑑 𝑝𝑟𝑜𝑝𝑜𝑟𝑡𝑖𝑜𝑛=
𝑝
𝑛1 +𝑛2
Example
A study reported that out of a random sample of 512 employees in Company A, 292
reported they experiences headaches and out of a sample of 281 employees in Company
B, 172 reported they experiences headaches. Test the hypothesis at 0.01 levels that
there’s no difference in the population proportion of employees who experiences
headaches at the two companies.
Ho : p 1 = p 2
H1 : p 1 ≠ p 2
Critical value: - 2.5758 or + 2.5758
= = - 1.097