Wize AP Statistics Textbook > Inference for Two Population Means

Hypothesis Testing for Two Independent Means

0:00 / 0:00

Comparing Two Independent Means


The inference two independent means entails comparing the characteristics of two populations. We can also compare the responses of two treatments groups.

PAGE BREAK
Examples
  • We compare the Olympic sponsorship (response) between USA and Tonga (two populations).
  • We compare the effectiveness (response) between Drug A and Drug B (two treatments).

How to identify this type of situation

  1. There are two samples: {Sample 1, Sample 2}
  2. Each sample is randomly drawn from different, non-overlapping populations.
  • Sample 1 is drawn from Population 1 with μ1\mu_1 and σ1\sigma_1
  • Sample 2 is drawn from Population 2 with μ2\mu_2 and σ2\sigma_2
  1. The two populations are independent (there is no matching of individuals or observations in the two samples)

Wize Concept
When there is matching of individuals or observations in the two samples, then the two means are dependent, which means you should perform a Matched Pairs test. (See: Matched Pairs for Dependent Means)

PAGE BREAK

  1. Let i=1,2i=1,2. Each of the two samples will consist of:
  • Sample mean xi\overline{x}_i
  • Sample standard deviation sis_i
  • σ1 σ_1\ and σ2σ_2 (population standard deviations) are unknown and, instead, s1s_1 and s2\ s_2 (sample standard deviations) are used.
  • Sample size nin_i
  • It's okay if sample sizes differ as they do not need to be equal.
  • Central Limit Theorem applies:
  • If both population distributions are normal, then the sample sizes do not need to be large.
  • If both population distributions are not normal, then the sample sizes need to be large.
  • When in doubt, you should have sufficiently large sample sizes.
Summary

To make inferences about the difference in the population means μ1μ2\mu_1-\mu_2 (parameter), we use the difference in the sample means xˉ1xˉ2\bar x_1-\bar x_2 (statistic).


Wize Concept
Inferences includes hypothesis tests and confidence intervals.

0:00 / 0:00

Hypothesis Test Steps: Comparing Two Independent Means

We can compare the two population means by running a hypothesis test.

Wize Tip
Review Hypothesis Testing if you need a refresher of the five steps. (See: Hypothesis Testing with One Sample)

  • Step 1: State the hypotheses
  • Is this a one-sided or two-sided test?
  • To make inferences about the difference in the population means μ1μ2\mu_1-\mu_2 (two-sided test), the hypotheses are:
Ho: μ1μ2=0Ha:μ1μ20H_o:\ \mu_1-\mu_2=0\\H_a:\mu_1-\mu_2\neq0
  • You can also test if one population mean is greater/less than the other population mean at either direction (one-sided test), depending on the question:
Ho: μ1μ2=0Ha:μ1μ2>0H_o:\ \mu_1-\mu_2=0\\H_a:\mu_1-\mu_2>0
OR
Ho: μ1μ2=0Ha:μ1μ2<0H_o:\ \mu_1-\mu_2=0\\H_a:\mu_1-\mu_2<0

PAGE BREAK

  • Step 2: Note the significance level α\alpha
  • You may find the critical value, depending on α, df, \alpha,\ df,\ and # of sides
  • Step 3: Locate the relevant variables and run the appropriate test
  • Find x1, x2, s1, s2, n1, n2\overline{x}_1,\ \overline{x}_2,\ s_1,\ s_2,\ n_1,\ n_2
  • To Pool or Not to Pool?
  • If we can assume σ1 = σ2σ_1\ =\ σ_2\rightarrow pooled variance t-test
  • Otherwise, we assume σ1  σ2σ_1\ \ne\ σ_2 \rightarrow unequal variance t-test
  • Step 4: Find the p-value
  • The p-value is based on your test statistic and # of sides
  • If p-value <α <\alpha\ \rightarrow Reject HoH_o
  • If p-value >α >\alpha\ \rightarrow Fail to reject HoH_o
  • You can also compare the critical value with the test statistic
  • If t>CV\left|t\right|>\left|CV\right|\rightarrow Reject HoH_o
  • If t<CV\left|t\right|<\left|CV\right|\rightarrow Fail to reject HoH_o
  • Step 5: Draw your conclusion
  • If you reject HoH_o, you conclude that there is evidence for HaH_a. Example: "There is evidence that the means differ."
  • If you fail to reject HoH_o, you conclude that there is no evidence for HaH_a. Example: "There is no evidence that the means differ."