Hypothesis testing for two means (independent samples, equal variances) Flashcards

1
Q

what features does two samples have?

A

two samples are unrelated and drawn randomly from a different populations (independent)

eg. men and women, left and right handed people

samples are linked in some way (dependent/paired) mix up order and checking if it makes sense (before and after weights)

eg. two questions are asked of the same person,

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

independent- population standard deviations are known

1. Hypothesis

  1. Test Statistic
  2. Decision Test
  3. Conclusion
A

—H0: μ1= μ2
—HA: μ1≠ μ2

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

independent- population standard deviations are known

  1. Hypothesis
  2. Test Statistic
  3. Decision Test

4. Conclusion

A

—in terms of whether sufficient evidence to reject null hypothesis.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

independent- population standard deviations are known

  1. Hypothesis
  2. Test Statistic

3. Decision Test

  1. Conclusion
A

—Compare to a standard normal distribution for decision rule.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

independent- population standard deviations are known

  1. Hypothesis

2. Test Statistic

  1. Decision Test
  2. Conclusion
A
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

How to determine the confidence interval for two samples that are independent and their population standard deviations are known

A

100(1-α)% Confidence interval

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

what is the problem with the previous formulas for two indepedent samples where the population standard deviation is known?

A

—Population variances are almost always unknown
—Usually we have to estimate the population variance using the sample variance

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

<!--StartFragment-->

Independent – population standard deviations unknown<!--EndFragment-->

what does the test depend on?

A

—Test to use depends on whether the population variances of the two different populations can be assumed to be equal or not.
—If variances are equal, test can be performed by hand
—If variances are not equal, test is complicated – we will rely on software (Minitab)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

how to test if the two samples have equal population variances?

1.Hypotheses

  1. Test Statistic
  2. Decision Rule
  3. Conclusion
A

H0: σ1²=σ2² - that is, both populations have the same variance

HA: σ1²≠σ2² - that is, the variances of the populations are different

—Alternative is (almost) always “≠”

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

how to test if the two samples have equal population variances?

  1. Hypotheses
  2. Test Statistic
    * *3.Decision Rule**
  3. Conclusion
A

Compare to an F distribution with numerator df = n1-1; denominator df=n2-1 (see Table 5 in text, pages 559-562)

—F-distribution: Requires two degrees of freedom
—Tables give upper cut-off point for α=0.05/0.025/0.01/0.005
— two-sided test; look up table for α/2
—E.g. for α=0.05, need to look up tables for α=0.025

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

how to test if the two samples have equal population variances?

  1. Hypotheses
    * *2.Test Statistic**
  2. Decision Rule
  3. Conclusion
A

—General rule – put larger sample variance on top
—This makes it easier to use the F tables

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

how to test if the two samples have equal population variances?

  1. Hypotheses
  2. Test Statistic
  3. Decision Rule
    * *4.Conclusion**
A

EITHER
—There is insufficient evidence to reject the null hypothesis, and we can assume the population variances are equal.
—OR
—There is sufficient evidence to reject the null hypothesis. We cannot assume the population variances are equal.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

<!--StartFragment-->

If the two population variances are equal, we can test for equality <!--EndFragment-->

_1. Hypotheses _

  1. Test Statisic
  2. Decision Rule
  3. Conclusion
A

—H0: μ1= μ2
—HA: μ1≠μ2

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

<!--StartFragment-->

If the two population variances are equal, we can test for equality <!--EndFragment-->

  1. Hypotheses

2. Test Statisic : why pool the sample variances?

  1. Decision Rule
  2. Conclusion
A

—If both populations have the same variance, then each sample is providing a different estimate of the same thing.
—So, rather than choose one variance to use, we use a weighted average of both sample variances to estimate the (common) population variance.
—Weighting is done according to sample size.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

If the two population variances are equal, we can test for equality

  1. Hypotheses

2. Test Statisic

  1. Decision Rule
  2. Conclusion
A
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q

<!--StartFragment-->

If the two population variances are equal, we can test for equality <!--EndFragment-->

  1. Hypotheses
  2. Test Statisic

3. Decision Rule

4. Conclusion

A

—Decision Rule: Compare to a t-distribution with n1+n2-2 df (same as denominator in pooled variance formula)
—
—Conclusion: In terms of whether evidence is sufficient to reject null hypothesis.

17
Q

<!--StartFragment-->

If the two population variances are equal, we can test for equality <!--EndFragment-->

  1. Hypotheses

2. Test Statisic: what is the purpose of a pooled variance?

  1. Decision Rule
  2. Conclusion
A

—Test statistic uses pooled variance to estimate standard error of the difference between the means

18
Q

<!--StartFragment-->

If the two population variances are equal, we can test for equality <!--EndFragment-->

  1. Hypotheses

2. Test Statisic: what often happens to population mean?

  1. Decision Rule
  2. Conclusion
A

In general, if testing for equality of means, then μ1= μ2, so the μ1- μ2 term drops out (=0)

19
Q

<!--StartFragment-->

Confidence interval for difference between two means

what do we have to assume?

A

– independent data, population variances assumed equal

20
Q

Confidence interval for difference between two means – independent data, population variances assumed equal

A
21
Q

<!--StartFragment-->

What if variances aren’t equal for different between two means?

A

—Minitab (or other software packages) will compute a p-value (for hypothesis test), or a Confidence Interval (if required).

22
Q

<!--StartFragment-->

How about paired samples?<!--EndFragment-->

A

—i.e. have two samples, X1 and X2, which are paired.
—For each observation, calculate Xd=X1-X2.
—Then calculate X̄d and sd (mean and standard deviation of differences).

23
Q

Conduct Hypothesis test on paired samples

1. Hypotheses

  1. Test Statistic
  2. Decision Test
  3. Conclusion
A

—H0: μd=0
—HA: μd≠0

24
Q

Conduct Hypothesis test on paired samples

  1. Hypotheses

2. Test Statistic

  1. Decision Test
  2. Conclusion
A
  1. Test Statistic
25
Q

Conduct Hypothesis test on paired samples

  1. Hypotheses
  2. Test Statistic

3. Decision Test

  1. Conclusion
A
  1. Decision Test

: Compare to a t-distribution with nd-1 df.

26
Q

Confidence interval for the difference between two means, paired data

A
27
Q

What about testing two proportions?

A

—Our samples must be independent!
Use the idea that sample proportion is normally distributed, samples independent, then

28
Q

Testing Two proportions

  1. Hypotheses
  2. Test Statistic

3. Decision Rule

  1. Conclusion
A

—We compare this to a Z~N(0,1) distribution for the decision rule.

29
Q

Testing Two proportions

  1. Hypotheses

2. Test Statistic

  1. Decision Test
  2. Conclusion
A
30
Q

Testing Two proportions

1. Hypotheses

  1. Test Statistic
  2. Decision Test
  3. Conclusion
A

—If the null hypothesis is true, both the sample proportions are estimating the same thing.
—So, to find a standard error, we use a pooled sample proportion.

31
Q

when may you use the pooled-variance t-test?

A

to determine whether there is a significant differnt between the means of two populations

(if population is not normally distributed, the pooled variance t test can still be used if sample sizes are large enough, typically greater than 30)

32
Q

when should you use F test?

A

onl when each of the two populations are normally distributed. F test is very sensitive to normality assumption