1 objective compare of two population variances using two samples from each population. hypothesis...

14
1 Objective Compare of two population variances using two samples from each population. Hypothesis Tests and Confidence Intervals of two variances use the F-distribution Section 9.5 Comparing Variation in Two Samples

Upload: shana-foster

Post on 14-Dec-2015

215 views

Category:

Documents


1 download

TRANSCRIPT

Page 1: 1 Objective Compare of two population variances using two samples from each population. Hypothesis Tests and Confidence Intervals of two variances use

1

Objective

Compare of two population variances using two samples from each population.

Hypothesis Tests and Confidence Intervals of two variances use the F-distribution

Section 9.5Comparing Variation in Two Samples

Page 2: 1 Objective Compare of two population variances using two samples from each population. Hypothesis Tests and Confidence Intervals of two variances use

2

(1) The two populations are independent

(2) The two samples are random samples

(3) The two populations are normally distributed(Very strict!)

Requirements

All requirements must be satisfied to make a Hypothesis Test or to find a Confidence Interval

Page 3: 1 Objective Compare of two population variances using two samples from each population. Hypothesis Tests and Confidence Intervals of two variances use

3

Important

The first sample must have a larger sample standard deviation s1 than the second sample. i.e. we must have

s1 ≥ s2

If this is not so, i.e. if s1 < s2 , then we will need to switch the indices 1 and 2

Page 4: 1 Objective Compare of two population variances using two samples from each population. Hypothesis Tests and Confidence Intervals of two variances use

4

Notationσ1 First population standard deviation

s1 First sample standard deviation

n1 First sample size

σ2 Second population standard deviation

s2 Second sample standard deviation

n2 Second sample size

Note: Use index 1 on sample/population with the larger sample standard deviation (s)

Page 5: 1 Objective Compare of two population variances using two samples from each population. Hypothesis Tests and Confidence Intervals of two variances use

5

Tests for Two Proportions

H0 : σ1 = σ2

H1 : σ1 ≠ σ2

Two tailed Right tailed

Note: We do not consider σ1 < σ2

(since we used indexes 1 and 2 such that s1 is larger)

Note: We only test the relation between σ1 and σ2

(not the actual numerical values)

The goal is to compare the two population variances (or standard deviations)

H0 : σ1 = σ2

H1 : σ1 > σ2

Page 6: 1 Objective Compare of two population variances using two samples from each population. Hypothesis Tests and Confidence Intervals of two variances use

6

The F-Distribution

Similar to the χ2-dist.

•Not symmetric

•Non-negative values (F ≥ 0)

•Depends on two degrees of freedom

df1 = n1 – 1 (Numerator df )

df2 = n2 – 1 (Denominator df )

Page 7: 1 Objective Compare of two population variances using two samples from each population. Hypothesis Tests and Confidence Intervals of two variances use

7

The F-Distribution

On StatCrunch: Stat – Calculators – F

df1 = n1 – 1

df2 = n2 – 1

Page 8: 1 Objective Compare of two population variances using two samples from each population. Hypothesis Tests and Confidence Intervals of two variances use

8

s1F = s2

2

2

Test Statistic for Hypothesis Tests with Two Variances

Where s12 is the first (larger) of the two sample variances

Because of this, we will always have F ≥ 1

Page 9: 1 Objective Compare of two population variances using two samples from each population. Hypothesis Tests and Confidence Intervals of two variances use

9

If the two populations have equal variances,

then F = s12/s2

2 will be close to 1

(Since s12 and s2

2 will be close in value)

If the two populations have different variances,

then F = s12/s2

2 will be greater than 1

(Since s12 will be larger than s2

2)

Use of the F Distribution

Page 10: 1 Objective Compare of two population variances using two samples from each population. Hypothesis Tests and Confidence Intervals of two variances use

10

Conclusions from the F-Distribution

Values of F close to 1 are evidence in favor

of the claim that the two variances are equal.

Large values of F, are evidence against this

claim (i.e. it suggest there is some difference

between the two)

Page 11: 1 Objective Compare of two population variances using two samples from each population. Hypothesis Tests and Confidence Intervals of two variances use

11

Steps for Performing a Hypothesis Test on Two Independent Means

• Write what we know

• Index the variables such that s1 ≥ s2 (important!)

• State H0 and H1

• Draw a diagram

• Find the Test Statistic

• Find the two degrees of freedom

• Find the Critical Value(s)

• State the Initial Conclusion and Final Conclusion

Page 12: 1 Objective Compare of two population variances using two samples from each population. Hypothesis Tests and Confidence Intervals of two variances use

12

Example 1Below are sample weights (in g) of quarters made before 1964 and weights of quarters made after 1964.

When designing coin vending machines, we must consider the standard deviations of pre-1964 quarters and post-1964 quarters.

Use a 0.05 significance level to test the claim that the weights of pre-1964 quarters and the weights of post-1964 quarters are from populations with the same standard deviation.

Claim: σ1 = σ2 using α = 0.05

Page 13: 1 Objective Compare of two population variances using two samples from each population. Hypothesis Tests and Confidence Intervals of two variances use

13

H0 : σ1 = σ2

H1 : σ1 ≠ σ2

Test Statistic

Critical Value

Initial Conclusion: Since F is in the critical region, reject H0

Final Conclusion: We reject the claim that the weights of the pre-1964 and post-1964 quarters have the same standard

deviation

Example 1

Using StatCrunch: Stat – Calculators – F

Fα/2 = F0.025 = 1.891

Two-TailedH0 = Claim

n1 = 40 n2 = 40 α = 0.05 s1 = 0.08700 s2 = 0.06194 (Note: s1≥s2)

2

2

Degrees of Freedomdf1 = n1 – 1 = 39 df2 = n2 – 1 = 39

Fα/2 = 1.891

F = 1.973

F is in the critical region

Page 14: 1 Objective Compare of two population variances using two samples from each population. Hypothesis Tests and Confidence Intervals of two variances use

14

H0 : σ1 = σ2

H1 : σ1 ≠ σ2

Initial Conclusion: Since P-value is less than α (0.05), reject H0

Final Conclusion: We reject the claim that the weights of the pre-1964 and post-1964 quarters have the same standard

deviation

Example 1

Two-TailedH0 = Claim

n1 = 40 n2 = 40 α = 0.05 s1 = 0.08700 s2 = 0.06194 (Note: s1≥s2)

Null: variance ratio=

Alternative

Sample 1: Variance:

Size:

Sample 2: Variance:

Size:

● Hypothesis Test0.007569

P-value = 0.0368

Stat → Variance → Two sample → With summary

s12 = 0.007569 s2

2 = 0.003837

0.003837

40

40

1