Statistical Inference, Central Limit Theorem, and Sampling Methods

Relationship Between One-Sided and Two-Sided p-Values

  • In a two-sided test, the p-value is generally double the value it would be in a one-sided test given the same data.
  • This doubling rule specifically applies to symmetric tests. While non-symmetric tests exist in advanced statistics, the tests covered in this curriculum are perfectly symmetrical.

Statistical Analysis of Face-Based Election Predictions

  • A study was conducted where a panel predicted election winners based solely on their faces across 32 Senate elections.
  • Sample Proportion (p^\hat{p}): The panel correctly predicted the winner in 23 out of 32 cases, resulting in a proportion of approximately 71.88 %71.88\,\%.
  • Hypotheses for a Two-Sided Test:
    • Null Hypothesis (H0H_0): The probability of the panel predicting correctly is π=0.50\pi = 0.50 (random guessing).
    • Alternative Hypothesis (HaH_a): The probability of the panel predicting correctly is π≠0.50\pi \neq 0.50 (can be greater or less than chance).
  • Measuring Extremity: The observed proportion of 71.88 %71.88\,\% is 21.88 %21.88\,\% above the null expectation of 50 %50\,\%. In a two-sided simulation, "extreme" values include results 21.88 %21.88\,\% or more above 50 %50\,\% (≥71.88 %\ge 71.88\,\%) or 21.88 %21.88\,\% or more below 50 %50\,\% (≤28.12 %\le 28.12\,\%).
  • p-Value Results: Simulations of 1,000 coin-flip trials resulted in 17 cases reaching these extremes (p=0.017p = 0.017). In this specific simulation, the tails were not perfectly equal (9 times in one tail and 8 in the other), leading to a p-value that is approximately but not exactly double the one-sided p-value. Such minor discrepancies are characteristic of simulations rather than mathematical formulas.

Comparison of Senate and House Election Data

  • Researchers expanded the study to include 2004 House of Representative elections with a larger sample size of n=279n = 279.
  • House Data Results: The panel predicted 189 out of 279 winners (67.7 %67.7\,\%).
  • Effect Size vs. Sample Size:
    • The Senate data had a larger effect size (71.88 %71.88\,\%) but a smaller sample size (n=32n = 32).
    • The House data had a smaller effect size (67.7 %67.7\,\%) but a significantly larger sample size (n=279n = 279).
  • Standardized Statistics (zz):
    • Senate zz-score: 2.432.43.
    • House zz-score: 5.95.9.
  • Conclusion: The House data provides significantly stronger evidence against the null hypothesis than the Senate data. The massive increase in sample size outweighed the slight decrease in effect size, resulting in a p-value of approximately zero.

The Central Limit Theorem (CLT)

  • Definition: As the sample size (nn) increases, the distribution of the sample mean (or sample proportion) converges to a normal (bell-shaped) distribution.
  • Proportions as Means: Proportions are a special case of the sample mean. If observations are recorded as zeros and ones (e.g., 1 for a correct prediction, 0 for incorrect), the mean of those values equals the proportion of successes.
  • Sampling Distribution: The CLT describes the "world of possibilities" if one were to sample again and again. While the raw data (zeros and ones) is never normally distributed, the histogram of many different sample proportions collected from that population will look like a normal curve.

Theory-Based Methods and the Normal Approximation

  • When using theory-based (formula-based) methods, the Central Limit Theorem allows researchers to calculate p-values without running thousands of simulations.
  • Calculators and software use the known properties of the normal distribution (e.g., that 2.5 %2.5\,\% of the area lies beyond 1.961.96 standard errors) to find the p-value directly.
  • Advantages of Theory-Based Methods:
    • Faster and easier to compute.
    • Standardization: Different researchers using the same formula will always get the same result, whereas simulations vary by chance.
    • Simplify the calculation of confidence intervals.
  • Disadvantages: Theory-based methods rely on specific assumptions (validity conditions) that may not always be met.

Validity Conditions for Normal Approximation

  • Success-Failure Condition: For a proportion test to be valid using the normal distribution, there must be at least 10 successes and 10 failures in the sample.
  • Null Hypothesis Symmetry: The closer the null proportion (π\pi) is to 0.500.50, the more symmetric the distribution. If π\pi is very close to 0 or 1, a larger sample size is required to achieve normality.
  • Independence Assumption: Observations must be independent. In large populations (millions), drawing without replacement is effectively independent because removing one individual does not meaningfully change the probabilities for the next draw. Violation occurs primarily if participants influence one another.

Case Study: Halloween Treats (Candy vs. Toys)

  • Study Design: Researchers tested 283 children (n=283n = 283) to see if they preferred candy or toys on Halloween.
  • Data Summary: 148 children chose candy (52.3 %52.3\,\%) and 135 chose toys (47.7 %47.7\,\%).
  • Standard Error (SESE) Formula: Under the null hypothesis where π=0.50\pi = 0.50, the standard error of the proportion is calculated as:
    • SE=π(1−π)n=0.5×0.5283≈0.0297\text{SE} = \sqrt{\frac{\pi(1 - \pi)}{n}} = \sqrt{\frac{0.5 \times 0.5}{283}} \approx 0.0297 (2.97 %2.97\,\%).
  • Standardized Statistic (zz):
    • z=Sample Proportion−Null ParameterStandard Error=0.523−0.500.0297=0.774z = \frac{\text{Sample Proportion} - \text{Null Parameter}}{\text{Standard Error}} = \frac{0.523 - 0.50}{0.0297} = 0.774.
  • p-Value Calculation in R: For a two-sided test, the code used is 2 * (1 - pnorm(0.774)). This results in a p-value of 0.4390.439 (43.9 %43.9\,\%).
  • Interpretations: A p-value of 43.9 %43.9\,\% suggests that the results are highly consistent with random chance. Researchers cannot reject the null hypothesis; there is no evidence that children prefer candy over toys significantly more than vice versa.

Meta-Analysis of the Placebo Effect

  • A systematic review published in the New England Journal of Medicine titled "Is the Placebo Powerless?" (Hróbjartsson and Gøtzsche) evaluated 130 clinical trials comparing placebo treatments to no treatment at all.
  • Findings on Objective Outcomes: The placebo had no significant clinical effect on objective binary or continuous outcomes.
  • Findings on Subjective Outcomes: The placebo showed a statistically significant beneficial effect on continuous subjective outcomes and the treatment of pain (averaging a reduction of 6.5 mm6.5\,\text{mm} on a 100 mm100\,\text{mm} scale).
  • Conclusion of the Study: Outside the specific setting of clinical trials, there is no clinical justification for the use of placebos, as the perceived benefits often disappear when measured objectively.

Logical Distinction: Failing to Reject vs. Accepting the Null

  • Core Principle: A statistical test never results in "accepting" the null hypothesis. It only results in either "rejecting" the null or "failing to reject" it.
  • Small Sample Sizes: Even if a massive real-world difference exists, a small sample size may result in a high p-value simply because there is not enough data to rule out random chance.
  • Misinterpretations in Media: A 2008 Echinacea study (n=58n = 58) found that those taking the herb had 9 sick days while the placebo group had 14. Despite a large physical difference (55 days), the small sample size yielded a p-value of 0.670.67 (z=−0.42z = -0.42). Media outlets incorrectly reported that Echinacea "fails to curb" the cold or "won't help much," when the correct conclusion was simply that the study lacked the power to find significance.

Chapter 2: Sampling and Bias

  • College of the Midwest Dataset: Contains population data for all 2,919 students (N=2,919N = 2,919).
  • Variables:
    • On-Campus Status: Binary categorical variable (77.6% Live On-Campus, 22.4% Off-Campus).
    • Cumulative GPA: Quantitative/Numerical variable (represented as a bell-shaped histogram).
  • Convenience Sampling: If a researcher samples the first 30 students they encounter on campus one morning, this is a biased sampling method.
  • Bias Definition: A sampling method is biased if, when repeated, it tends to systematically overestimate or underestimate the true population parameter. In this case, the sample would likely overestimate the proportion of on-campus residents.

Questions & Discussion

  • Question on Normal Distribution of Coin Tosses: A student noted that coin tosses aren't normally distributed but approach 50/50.
    • Response: There are two different histograms. A histogram of the data (zeros and ones) will always look like two bars. However, the Central Limit Theorem refers to the histogram of many sample proportions/means, which does become normal even when the underlying data is not.
  • Question on Non-Binary Data: Can the theory-based method be used for non-binary data?
    • Response: Yes. For quantitative data, the rule of thumb is generally a sample size of n>30n > 30.
  • Question on One-Sided vs. Two-Sided Calculations: Does the R code 2 * (1 - pnorm(...)) change for one-sided tests?
    • Response: Yes. For a one-sided test, you would not multiply by two. If the z-statistic is positive, you calculate 1 - pnorm(z). If it is negative and you want the lower tail, you calculate pnorm(z).
  • Discussion on Ethics and Placebos:
    • Some argue that if a patient perceives less pain, that is a medical success, suggesting a mind-body connection.
    • Others argue that since placebos fail to change objective biological markers (like cancer cell counts or white blood cell levels), prescribing them is unethical and dishonest.
    • A student suggested that revealing a treatment is a placebo might render it useless, though this remains a point of clinical debate.