T-Tests, Sampling Distributions, and Effect Sizes – Lecture 3 Notes

Administrative & Housekeeping

  • • Reminder from Rana: visit NUCU ➔ read the PDF of proposed class experiments ➔ complete the Qualtrics vote BEFORE Thursday.

  • • Thursday’s class = collaborative design of the selected “Class Experiment – the star of the term.”

Road-Map of Today’s Lecture

  • • Revisit & clarify several student-raised questions from last week.

  • • Topics in order:

    • ◦ Logic of the normality assumption.

    • ◦ Samples vs. populations & the idea of sampling distributions.

    • ◦ Between-subjects vs. within-subjects t tests.

    • ◦ When to choose Student’s, Welch’s, Mann-Whitney, or Wilcoxon tests.

    • ◦ Calculating & interpreting effect size (Cohen’s dd) and distinguishing it from pp values.

Samples, Populations & Distribution Shapes

  • • Demonstration website allowed interactive sampling from an imaginary population (mean μ=10\mu = 10).

  • • Small nn (e.g., n=3n=3)

    • ◦ Sample histogram shows only three dots — looks non-normal.

    • ◦ Sample mean was xˉ=9.6\bar{x}=9.6 (close but not identical to μ=10\mu=10).

    • ◦ Re-sample with n=4n=4 produced xˉ=8\bar{x}=8 (≈ 1 SD away).

    • ◦ Point: with small nn the sample mean can be very off.

  • • Large nn (e.g., n=100n=100)

    • ◦ Histogram gets “lumpier” but more closely approximates shape of the population.

    • ◦ xˉ\bar{x} hugs the true μ\mu tightly.

  • • Key nuance: increasing nn does not guarantee that the sample distribution becomes normal — it becomes whatever shape the population really is. Normal-looking samples only occur when the population itself is normal.

Skewed Population Example

  • • New population defined with mean μ=3\mu=3, strong positive skew (analogy: reaction-time ceiling).

  • • Taking n=100n=100, n=1,000n=1{,}000, n=10,000n=10{,}000:

    • ◦ Sample histograms retain skew.

    • ◦ Sample mean converges to μ=3\mu=3.

Central Limit Theorem (CLT)

  • • Despite sample skew, the sampling distribution of the mean → normal as nn ↑.

  • • Illustration: ran 100100 separate studies with n=50n=50 each; plotted the 100100 sample means:

    • ◦ Overlay ≈ normal curve (dashed line) even though the raw data were skewed.

    • ◦ Reduced n=4n=4 widened & distorted the sampling distribution.

  • • Formal statement: “For any population with finite variance, the distribution of Xˉ\bar{X} approaches normal with mean μ\mu and SE σ/n\sigma/\sqrt{n} as n→∞n \to \infty.”

Why Normality Matters (or Not)

  • • Parametric tests (Student’s t, ANOVA, χ2\chi^2, etc.) actually assume a normal sampling distribution, not necessarily normal raw data.

  • • Implications:

    • ◦ If nn is large → CLT renders assumption safe even under non-normal population shapes.

    • ◦ For small nn non-normality can distort pp values via:

    1. Heavy tails (↑ Type-I error; false positives).

    2. High skew pulling Xˉ\bar{X} (↑ Type-II error; false negatives).

Decision Tree: Which Two-Group Test?

  • • Check assumptions in order:

    1. Normality (Shapiro-Wilk).

    2. Homogeneity of variance (Levene/Brown-Forsythe).

  • • If both satisfied → Student’s t.

  • • Variances unequal but normal → Welch’s t (separate-variance formula for SE).

  • • Non-normal & small nn → Mann-Whitney U (between-subjects) or Wilcoxon Signed-Rank (within-subjects).

  • • Enormous nn means parametric tests tolerate non-normality – CLT saves the day.

Between- vs. Within-Subjects Designs

  • • Between: “independent-samples” – each participant provides data for only one group.

  • • Within: “paired,” “matched,” “repeated measures” – same participant supplies data for both levels of the IV.

    • ◦ Lower error variance → greater statistical power.

    • ◦ Fewer participants needed; individuals act as their own controls.

Paired-Samples t Test: Mechanics

  • • Compute each person’s difference score: d<em>i=X</em>angry,i−Xhappy,id<em>i = X</em>{\text{angry},i} - X_{\text{happy},i}.

  • • Example numbers:

    • ◦ dˉ=12 ms\bar{d} = 12 \text{ ms}.

    • ◦ SEdˉ=3 msSE_{\bar{d}} = 3 \text{ ms}.

    • ◦ Test statistic: t=dˉSEdˉ=123=4t = \dfrac{\bar{d}}{SE_{\bar{d}}} = \dfrac{12}{3}=4 (sign & rounding vary in slides).

  • • Assumptions:

    1. Independence of pairs (each participant unrelated to other participants).

    2. Difference-score distribution ≈ normal (again, trivial if nn large).

  • • Nonparametric fallback: Wilcoxon Signed-Rank.

    • ◦ Categorize pairs where d<em>i>0d<em>i>0 vs. d</em>i<0d</em>i<0; significant imbalance indicates effect.

Reporting Format (APA-style)

  • • Example: t(df=29=29) = −3.97-3.97, p<.001p<.001, d=0.65d = 0.65.

  • • Why include df? Lets readers reconstruct the critical value & sample size.

Effect Size: Cohen’s dd

  • • Formula: d=Xˉ<em>1−Xˉ</em>2spooledd = \dfrac{\bar{X}<em>1 - \bar{X}</em>2}{s_{\text{pooled}}}.

    • ◦ s<em>pooled=(n</em>1−1)s<em>12+(n</em>2−1)s<em>22n</em>1+n2−2s<em>{\text{pooled}} = \sqrt{ \dfrac{(n</em>1-1)s<em>1^2 + (n</em>2-1)s<em>2^2}{n</em>1+n_2-2} }.

  • • Interpretation: number of SDs separating the two means.

  • • Benchmarks (Cohen, 1988):

    • ◦ d≈0.2d \approx 0.2 → “small” (≈ 83%83\% overlap).

    • ◦ d≈0.5d \approx 0.5 → “medium” (≈ 67%67\% overlap).

    • ◦ d≈0.8d \approx 0.8 → “large” (≈ 54%54\% overlap).

    • ◦ Example slide showed giant case d=2d=2 (means 2 SD apart).

Statistical Power & Sample Size

  • • Power = 1−β1 - \beta = probability of detecting a true effect.

  • • Large dd + modest nn → still decent power.

  • • Small dd requires very large nn (else Type-II error risk skyrockets).

Tidal Analogy (Metaphor)

  • • Water bottle ⇢ pond ⇢ Lake Texcoco ⇢ Lake Superior ⇢ ocean:

    • ◦ Tidal effect truly exists in all bodies but magnitude is tiny relative to small samples.

    • ◦ Only with “huge sample” (ocean-scale) can the ~5 mm change become detectable.

  • • Moral: theory may posit a real yet minuscule effect; plan nn accordingly or risk missing it.

Advantages of Within-Subjects (Re-framed)

  1. Fewer participants (cost & logistics).

  2. Drastic reduction of extraneous-variable noise (each subject controls for self).

  3. Greater statistical power: smaller SE in denominator of tt increases chance of finding real effect.

Common Misconceptions About pp Values

  • • “Tiny pp means huge effect.” ✘ Not necessarily; could be huge nn.

  • • “Rejecting H0H_0 proves my research hypothesis.” ✘ Type-I errors exist.

  • • “Failing to reject H0H_0 proves no effect.” ✘ Could be under-powered (Type-II error).

  • • “Significant result guarantees a well-designed study.” ✘ Methodological flaws can still yield false significance.

Practical & Ethical Implications

  • • Researchers must justify sample size via a priori power analysis (ethical duty to avoid wasted resources/participants).

  • • Must test & report assumption checks (transparency, reproducibility).

  • • Avoid “p-value fishing” – understand true interpretation of statistical outputs.

Quick Reference Equations

  • • Pooled SD: s<em>pooled=∑(n</em>k−1)s<em>k2∑n</em>k−gs<em>{\text{pooled}} = \sqrt{\dfrac{\sum (n</em>k-1)s<em>k^2}{\sum n</em>k - g}}, where gg = number of groups.

  • • Independent-samples tt: t=Xˉ<em>1−Xˉ</em>2s<em>12n</em>1+s<em>22n</em>2t = \dfrac{\bar{X}<em>1-\bar{X}</em>2}{\sqrt{\dfrac{s<em>1^2}{n</em>1}+\dfrac{s<em>2^2}{n</em>2}}}.

  • • Paired-samples tt: t=dˉsd/nt = \dfrac{\bar{d}}{s_d/\sqrt{n}}.

  • • Welch’s adjustment to df: df∗=(s<em>12n</em>1+s<em>22n</em>2)2(s<em>12/n</em>1)2n<em>1−1+(s</em>22/n<em>2)2n</em>2−1df^* = \dfrac{ \left(\dfrac{s<em>1^2}{n</em>1}+\dfrac{s<em>2^2}{n</em>2}\right)^2 }{ \dfrac{(s<em>1^2/n</em>1)^2}{n<em>1-1} + \dfrac{(s</em>2^2/n<em>2)^2}{n</em>2-1} }.

End-of-Lecture Wrap-Up & Next Steps

  • • Hardest material (sampling logic) front-loaded; remaining t-test variants straightforward.

  • • Thursday: apply today’s concepts while co-designing the class experiment.