Section 2.2 Lecture: Statistical Inference Concerning Two Populations
Overview
The lesson explains how to test differences between two population means or proportions, distinguishing independent samples, equal-variance pooled t tests, Welch’s unequal-variance t tests, paired t tests, and two-proportion z tests. Worked examples use Excel’s Data Analysis ToolPak and compare p-values with significance levels to interpret results, including cases involving gold and oil returns, hotel housekeeping, supplier deliveries, and paired stock returns.
Key takeaways
- For independent samples of population means, use a pooled t test only when equal variances are assumed; use Welch’s t test when they are not, and use a paired t test when observations are matched.
- For a two-proportion test under a null difference of zero, pool the sample counts to calculate p̂, then use p̂ in the standard error for the z statistic.
- The alternative hypothesis determines the tail: a greater-than sign is right-tailed, a less-than sign is left-tailed, and a not-equal sign is two-tailed.
- Excel’s Data Analysis ToolPak supplies the t statistic and one- or two-tailed p-values for mean comparisons, but the analyst must select the correct test type and tail.
- Reject the null hypothesis when the p-value is less than or equal to α; otherwise, fail to reject it and do not claim that the alternative has been established.
- Sample order matters for directional comparisons: in the supplier example, p1 was the new supplier’s 6/75 rate and p2 the old supplier’s 27/150 rate, yielding z ≈ −2.00 and p ≈ 0.023.
Chapters
- The lesson distinguishes independent samples from paired samples, such as before-and-after measurements on the same records.
- Independent means comparisons use a pooled t test when variances are assumed equal and Welch’s t test when they are not.
- Because population standard deviations are unknown, these mean comparisons use t tests; two population proportions use a z test.
- Excel’s Data Analysis ToolPak automates paired, equal-variance, and unequal-variance t tests.
- On the demonstrated Windows interface, search for Add-ins, enable Analysis ToolPak, and find Data Analysis on the Data tab.
- The two-proportion z test still requires its test-statistic formula, followed by the appropriate Excel normal-distribution command for the p-value.
- The first example compares population proportions using samples of 5,400 yes responses out of 6,000 and 8,600 out of 10,000.
- The sample proportions are p̂1 = 0.90 and p̂2 = 0.86; the pooled proportion is p̂ = (5,400 + 8,600) / (6,000 + 10,000) = 0.875.
- The alternative hypothesis is that population 1’s proportion exceeds population 2’s, so the test is right-tailed.
- Using the pooled-proportion standard error gives a z statistic of approximately 7.41.
- The right-tail p-value is approximately 6.48 × 10⁻¹⁴, far below α = 0.05, so the null hypothesis is rejected.
- Because the alternative is directional, the conclusion is that population 1’s proportion is greater, not merely that the proportions differ.
- The question about average annual returns identifies population means, with μ1 representing gold companies and μ2 representing oil companies.
- The word “differ” leads to the two-sided alternative μ1 − μ2 ≠ 0, with a null mean difference of zero.
- The problem says equal variances are not reasonable to assume, so the correct Excel option is the two-sample unequal-variances test, or Welch’s t test.
- Excel reports a t statistic of about −0.302 and a two-tailed p-value of 0.7661.
- With α = 0.05, the p-value is too large to reject the null hypothesis.
- The results do not provide sufficient evidence that average annual returns differ between gold and oil companies.
- The housekeeping example defines p1 for the Seaside location and p2 for the Oceanfront location.
- The question asks whether the proportions differ, so the alternative is p1 − p2 ≠ 0 and the test is two-tailed.
- Each location has a sample of 100 rooms, with defect proportions of 21% and 28%, respectively.
- The reported proportions imply 21 defects out of 100 at Seaside and 28 out of 100 at Oceanfront.
- Pooling the counts gives p̂ = (21 + 28) / (100 + 100) = 0.245; the two-proportion test statistic is approximately z = −1.15.
- The two-tailed p-value is about 0.25, exceeding α = 0.05, so the data do not establish a difference in housekeeping defect proportions.
- The spending example defines μ1 as the mean for men and μ2 as the mean for women.
- The claim that men spend more gives the alternative μ1 − μ2 > 0, making this a right-tailed test.
- The problem states that population variances are unknown but equal, so the appropriate ToolPak choice is the two-sample equal-variances t test.
- Excel returns a t statistic of approximately 2.93; the one-tailed p-value is 0.0021.
- The significance level is α = 0.01, and 0.0021 is smaller, so the null hypothesis is rejected.
- The evidence supports the claim that the mean amount spent by men is greater than the mean amount spent by women.
- The claim is that the new supplier’s late-delivery proportion is less than the old supplier’s, so p1 represents the new supplier and p2 the old supplier.
- The alternative p1 − p2 < 0 makes this a left-tailed two-proportion z test.
- The new supplier has 6 late deliveries in 75 shipments, while the old supplier has 27 in 150; keeping these counts aligned with p1 and p2 is essential.
- The sample proportions are 6/75 = 0.08 for the new supplier and 27/150 = 0.18 for the old supplier.
- The pooled proportion is 33/225 ≈ 0.1467, producing a test statistic of approximately z = −2.00.
- The left-tail p-value is about 0.023, below α = 0.05, so the evidence supports a lower late-delivery proportion for the new supplier.
- The final example compares annual returns for Stock A and Stock B over 25 years, with each year’s two returns forming a pair.
- Paired data are analyzed through the difference for each pair, with μd as the parameter of interest rather than treating the samples as independent.
- The word “differs” gives the two-sided hypotheses μd ≠ 0 and μd = 0.
- Excel’s paired two-sample t test uses Stock A and Stock B as the two input ranges, a hypothesized mean difference of zero, and α = 0.10.
- The output gives t = 2.016 and a two-tailed p-value of 0.0551.
- Since 0.0551 is below 0.10, the null hypothesis is rejected; the paired results indicate a significant difference between Stock A and Stock B returns at the 10% level.
Transcript excerpt
0:01 Hey everyone, this is section 2.2 on statistical inference concerning two populations. The second section from the second module of the first unit of this class. So up to this point, we're re we've really looked at inferences concerning a single population parameter such as a population mean or population proportion. But sometimes we have two populations that we want to compare seemingly side by side and try to determine if there's any noticeable changes between the two populations. This can even be done if the two populations, as we'll see in an example later on, this can even be done for populations that don't necessarily have
0:48 the same uh the same sample size when we try to infer certain measures about the the population parameters. So, there's a couple of scenarios we can consider when comparing two populations. And just like before, we're still looking at comparing two population means versus two population proportions instead of just a single mean and a single proportion. But the main distinction is the population means. There's actually several scenarios that we can have and in fact there's three of them. And as we can see here as we'll start off or the difference between two population means. So essentially we have two
1:36 populations and we want to see how the means from each one of those populations compare with one another. We'll see a couple of examples of all of these examples here momentarily. But when this initially breaks down we have independent samples and paired samples. So one of these represents independent samples where each one of the records are not tied to a record from the other population. Examples of this would be a pulled ta test and a Welch's t test. And the primary difference between these two the
This is the start of the transcript. Save this video free for the whole transcript, searchable and time-coded.
In this course
Related notes
Summary, takeaways, and chapters were generated by AI from the video's transcript and may contain errors. The video belongs to its creator, Brad Hall.