Lec11: t-Tests, ANOVA, and Project Methodology Guide
Foundations of the Independent Samples t-Test
Primary Purpose and Analytical Scope:
Designed to evaluate whether the mean difference between two unrelated, mutually exclusive groups is statistically distinguishable from zero (H_0: ̅x_1 - ̅x_2 = 0).
Compares sample means relative to the standard error of the difference between means.
Measurement Requirements:
Independent Variable (IV): Categorical and nominal scale, consisting of exactly two discrete levels (binary/dichotomous, e.g., treatment vs. control, male vs. female).
Dependent Variable (DV): Continuous scale, measured at either the interval or ratio level (e.g., test scores, physiological markers, blood pressure).
Underlying Statistical Assumptions:
Independence of Observations: Scores within and across groups must be obtained from distinct individuals without mutual influence, cross-contamination, or tracking.
Normality: The continuous dependent variable must be approximately normally distributed within each of the two populations.
Homogeneity of Variance: The population variances across both groups must be equal (\sigma_1^2 = ̃\sigma_2^2). Evaluated using Levene’s Test for Equality of Variances.
Decision Criteria:
The calculated -statistic is matched against critical thresholds in the Student's -distribution based on degrees of freedom () and significance level ().
If the observed -value is less than (), reject the null hypothesis ().
Applied Practice Problem — Geriatric Canine Ownership and Physician Visits:
Research Query: Does canine ownership influence the frequency of annual physician visits among senior citizens?
Sample Data:
Group 1 (Dog Owners, ):
Group 2 (Control / Non-owners, ):
Variable Classifications:
IV: Pet ownership status (Nominal, 2 levels: Dog Owner vs. Non-Owner).
DV: Number of annual physician visits (Ratio scale).
Decision Risks & Validity Threats:
Type I Error (): Concluding pet ownership reduces medical visits when no genuine population difference exists (false positive).
Type II Error (): Failing to identify an authentic reduction in doctor visits due to pet ownership, often stemming from low statistical power associated with small sample sizes ().
Reliability Concerns: Accuracy of patient retrospective recall regarding doctor visits over a 12-month period.
Internal Validity Threats: Potential confounders such as baseline physical health, mobility, socioeconomic status, baseline social support, or age differences.
External Validity Threats: Restricted generalizability of a small convenience sample of seniors to the broader elderly population.
Empirical SPSS Output Interpretation — Independent Samples t-Test:
Case 1: Dental Student Intrinsic Motivation by Academic Stage:
Variables: IV = Academic Class (1st-Year vs. 4th-Year Dental Students); DV = Intrinsic Motivation Score.
Levene’s Test: , .
Variance Interpretation: Because , the assumption of homogeneity of variance is maintained; refer to "Equal variances assumed."
Inferential Statistics: , , .
Statistical Conclusion: Statistically significant difference (). 4th-year students exhibit significantly different intrinsic motivation compared to 1st-year students.
Case 2: Middle School Algebra Proficiency:
Variables: IV = Grade Level (5th Graders vs. 7th Graders); DV = Algebra Examination Score.
Levene’s Test: , .
Variance Interpretation: Because , equal variances are assumed.
Inferential Statistics: , , .
Statistical Conclusion: Null hypothesis is retained (). No statistically significant difference in algebra performance between 5th and 7th graders.
Case 3: Academic Final Examination Performance (Treatment vs. Control):
Variables: IV = Instructional Condition (Treatment vs. Control); DV = Final Course Exam Score.
Levene’s Test: , .
Variance Interpretation: Because , the assumption of homogeneity of variance is violated; refer to "Equal variances not assumed" (Welch-Satterthwaite correction).
Inferential Statistics: Adjusted , adjusted , ().
Statistical Conclusion: Reject . There is a highly significant difference in final performance between the treatment and control groups despite variance heterogeneity.
Dependent Samples (Paired / Repeated-Measures) t-Test
Conceptual Framework & Core Methodological Rationale:
Used when data points across the two comparison conditions are intrinsically linked, correlated, or non-independent.
Representative Experimental & Natural Paradigms:
Pretest/Posttest Designs: Measuring identical participants before () and after () an educational or clinical intervention.
Crossover / Counterbalanced Trials: Participants receive Treatment A during Phase 1 and Treatment B during Phase 2.
Longitudinal / Developmental Tracking: Assessing cognitive performance within the same subjects across life stages (e.g., childhood to adulthood).
Dyadic / Matched-Pair Structures: Measuring matched units where scores covary naturally, such as spousal pairs (husbands and wives) or parent-child dyads.
The Non-Independence Dilemma: Because paired scores share individual-level variance, treating them as independent samples violates foundational model assumptions and miscalculates the standard error.
The Difference Score Transformation:
The paired design circumvents non-independence by computing a difference score (or gain score, ) for every matched unit:
Reduces a bivariate two-sample problem to a univariate one-sample test evaluating whether the mean population difference () differs from zero ().
Critical Computational Requirement: The researcher must possess individual paired raw scores for each participant; difference scores cannot be derived from aggregate descriptive statistics (, ).
Mathematical Formulas & Analytical Derivations:
Mean of Difference Scores:
Sample Standard Deviation of the Differences ():
Estimated Standard Error of the Mean Difference ():
Dependent Samples -Statistic:
Degrees of Freedom: (where represents the total number of pairs or participating subjects evaluated across both conditions).
Statistical Design Characteristics & Cardinal Rules:
Directionality: Can be conducted as either a one-tailed (directional) or two-tailed (non-directional) test depending on a priori theoretical justification.
Alternative Terminology: Paired-subjects -test, repeated-measures -test, within-subjects design.
Statistical Power Advantage: Eliminates between-subject variability from the error term, yielding substantial power advantages over independent samples designs and multi-test alpha corrections.
Essential Analytical Rule: Never perform an independent samples -test on change/difference scores. Doing so ignores within-pair covariance and yields erroneous variance estimates.
Empirical SPSS Output Interpretation — Paired Samples t-Test:
Case 1: Standardized Writing vs. Reading Competencies ():
Descriptive Metrics:
Writing Score: Mean = , ,
Reading Score: Mean = , ,
Paired Association: Correlation , (confirming strong within-subject interdependence).
Paired Difference Analysis:
Mean Difference () =
Standard Deviation of Difference () =
Standard Error of Mean Difference () =
Confidence Interval: [
Test Statistic: , ,
Conclusion: Retain (). When group means and standard deviations are nearly identical, the resulting -value is small, indicating no significant disparity between writing and reading scores.
Case 2: Arachnophobia Anxiety Response ():
Conditions: Visual exposure to spider photograph vs. physical exposure to live spider.
Descriptive Metrics: Picture Mean = (, ); Real Spider Mean = (, ).
Paired Difference Analysis:
Mean Difference = , ,
Confidence Interval: [
Test Statistic: , ,
Conclusion: Reject (). Live spider exposure elicits significantly higher self-reported anxiety than pictorial exposure.
Case 3: Academic Pretest vs. Posttest Knowledge Acquisition ():
Descriptive Metrics: Pretest Mean = (, ); Posttest Mean = (, ).
Paired Difference Analysis:
Mean Difference = , ,
Confidence Interval: [
Test Statistic: , ,
Conclusion: Highly significant intervention effect (); academic scores increased substantially following instruction.
Case 4: Oral Hygiene Comprehension Intervention ():
Paired Contrast: Pre-intervention score (
cmpre) vs. Post-intervention score (cmpost).Paired Difference Analysis:
Mean Difference = , ,
Confidence Interval: [
Test Statistic: , ,
Conclusion: Reject (). Oral hygiene knowledge exhibited an extraordinarily significant shift following the intervention.
One-Way Analysis of Variance (ANOVA)
Purpose and Analytical Capability:
Extends two-group comparisons to evaluate differences among the means of two, three, or more independent groups simultaneously.
Variable Classification: Evaluates one quantitative continuous dependent variable (interval/ratio scale) as a function of one categorical independent variable (nominal scale with levels, e.g., Republican, Democrat, Independent).
Equivalence to -Test: When evaluated with an independent variable having exactly two levels (), the resulting One-Way ANOVA yields mathematical conclusions equivalent to an independent samples -test, where .
Regression Relationship: Operates conceptually as a test of whether the slope of a simple linear regression line departs significantly from zero ().
The Multiple Comparison Problem and Alpha Inflation:
When conducting pairwise comparisons across groups, the number of required pairwise -tests is determined by combinations:
For example, evaluating 4 groups (Medicine 1, Medicine 2, Placebo, Control) requires distinct pairwise tests:
Medicine 1 vs. Medicine 2
Medicine 1 vs. Placebo
Medicine 1 vs. Control
Medicine 2 vs. Placebo
Medicine 2 vs. Control
Placebo vs. Control
Familywise / Experimentwise Type I Error Rate (): Running repeated independent significance tests drastically inflates the overall probability of committing at least one Type I error according to the probability model:
Applying across 6 comparisons:
Consequently, the researcher faces an uncontrolled probability of falsely declaring statistical significance instead of the intended nominal risk.
The Nature of an Omnibus Test:
ANOVA resolves error inflation by evaluating all group means simultaneously within a single overarching omnibus hypothesis test.
Omnibus Hypotheses:
At least one population mean is significantly different from another.
Inherent Limitation: The omnibus test indicates only whether a significant difference exists somewhere among the groups; it cannot identify which specific pair or combination of means differs.
Underlying Assumptions for ANOVA:
Random Sampling: Data are collected via randomized selection from the defined population.
Independence of Observations: Individual measurements must be completely independent (no paired observations, tracking, or shared influences).
Homogeneity of Variance: Variances within all treatment populations are equal ().
Normality: The dependent variable is normally distributed within each treatment population.
Variance Partitioning and ANOVA Computation
Conceptual Logic of Variance Decomposition:
Total variance observed across all individuals in a combined dataset is partitioned into two orthogonal, mutually exclusive components:
Between-Group Variance: Variability attributable to the experimental intervention, condition differences, or population group effects.
Within-Group Variance (Error Variance): Natural variability, individual differences, and random measurement error remaining within groups that cannot be attributed to the treatment.


Mathematical Components of Variance Partitioning:
Total Sum of Squares (): Represents the cumulative squared deviation of every raw score () from the Grand Mean (overall sample mean, ).
Between-Groups Sum of Squares ( or ): Measures the squared deviation of each group mean () from the Grand Mean (), weighted by group sample size ():
Within-Groups Sum of Squares ( or ): Sum of the squared deviations of each individual score () from its respective group mean ():
Sum of Squares Additivity Principle:
Degrees of Freedom () Derivations:
Total Degrees of Freedom:
Between-Groups Degrees of Freedom: (where is the total number of distinct treatment groups).
Within-Groups Degrees of Freedom:
Mean Squares () and the -Ratio Derivation:
Sum of squares values cannot be compared directly because they reflect cumulative group sizes; they must be converted into variances (Mean Squares) by dividing by their corresponding degrees of freedom:
The -Ratio Formula:
Conceptual Ratio:
Standardized Computational Walkthrough:
Sample Structure: 3 groups (), 4 participants per group (), total sample size .
Between-Groups Computations:
Within-Groups Computations:
Total Parameters:
Inferential Calculation:
Source of Variation | Sum of Squares () | Degrees of Freedom () | Mean Square () | -Statistic | Significance () |
|---|---|---|---|---|---|
Between Groups | |||||
Within Groups | |||||
Total |
Effect Size for One-Way ANOVA ():
Measures the proportion of total variance accounted for by group membership:
For the worked example:
Cohen's Interpretive Benchmarks:
: Small effect size.
: Medium effect size.
: Large effect size.
Statistical Decision Making and the F-Distribution
Properties of the -Distribution:
Positively skewed continuous probability distribution bounded on the left by zero ().
Asymmetric shape determined by two separate degrees of freedom parameters: Numerator () and Denominator ().
Critical Value Dynamics & Statistical Power:
General Critical Baseline: For 3 or more groups and large sample sizes (), the critical value for () at approaches approximately .
Impact of Number of Groups (): As groups are added, numerator degrees of freedom increase, causing to decrease progressively.
Impact of Sample Size (): As sample size increases, denominator degrees of freedom increase, standard error decreases, and decreases.
Mechanisms to Maximize ANOVA Statistical Power: Increase total sample size (), minimize extraneous experimental noise (reducing ), or maximize the separation of group treatments (increasing ).
Formal APA Statistical Reporting Syntax:
Worked Example Evaluation: With , because , the omnibus null hypothesis is rejected ().
Sample Report Formulation: , demonstrating significant mean differences across the 3 evaluated conditions (; ; total sample ).
Post Hoc Multiple Comparison Procedures (MCP)
The Methodological Need for Post Hoc Analysis:
Rejection of the omnibus -test establishes that a significant difference exists across the overall group array, but does not pinpoint the specific source of significance.
Post hoc multiple comparison procedures are required to evaluate pairwise differences while controlling familywise Type I error rate ().
Comparative Taxonomy of Multiple Comparison Procedures:
Tukey’s Honestly Significant Difference (HSD):
Based on the Studentized Range Distribution ().
Compares every possible pair of means simultaneously.
Maintains optimal balance between statistical power and familywise Type I error control; widely considered standard practice in social and behavioral sciences.
Fisher’s Least Significant Difference (LSD):
Executes a sequence of standard pairwise -tests following a significant omnibus .
Provides no adjustment for alpha inflation across subsequent tests; represents the least conservative procedure with the highest vulnerability to Type I errors.
Bonferroni Adjustment:
Divides the global significance threshold by the total number of comparisons (, e.g., ).
Highly robust and easy to apply, but becomes overly conservative as the number of comparisons grows, increasing Type II error risk.
Scheffé Test:
Designed to evaluate all possible linear contrasts and complex subset combinations simultaneously.
Represents the most conservative post hoc method; yields the lowest statistical power but guarantees the strongest protection against Type I error.
Comprehensive ANOVA and Post Hoc Case Studies
Case Study 1: Examination Completion Time by Course Expertise Level:
Descriptive Performance:
Group 1 (Beginner Course): Mean =
Group 2 (Intermediate Course): Mean =
Group 3 (Advanced Course): Mean =
One-Way ANOVA Source Breakdown:
Between Groups: , , , ,
Within Groups: , ,
Total: ,
Omnibus Decision: Reject ().
Tukey HSD Post Hoc Contrasts:
Beginner vs. Intermediate: Mean Difference = , , , CI [
Result: Statistically significant (); Beginners take significantly longer than Intermediate students.
Beginner vs. Advanced: Mean Difference = , , , CI [
Result: Statistically significant (); Beginners take significantly longer than Advanced students.
Intermediate vs. Advanced: Mean Difference = , , , CI [
Result: Not statistically significant (); Intermediate and Advanced completion times are statistically indistinguishable.
Case Study 2: Graduate Starting Salary by Academic College Major:
Descriptive Statistics:
Agriculture (): Mean = , ,
Business Administration (): Mean = , ,
Engineering (): Mean = , ,
Combined Sample (): Grand Mean = , ,
One-Way ANOVA Source Breakdown:
Between Groups: , ,
Within Groups: , ,
Total: ,
Test Ratio: ,
Omnibus Conclusion: Reject ().
Tukey HSD Multiple Comparisons:
Agriculture vs. Business Administration: Mean Difference = , , , CI [
Result: Not significant ().
Agriculture vs. Engineering: Mean Difference = , , , CI [
Result: Highly significant (); Engineering starting salaries exceed Agriculture.
Business Administration vs. Engineering: Mean Difference = , , , CI [
Result: Highly significant (); Engineering starting salaries exceed Business Administration.
Homogeneous Subsets Configuration ():
Subset 1: Agriculture (), Business Administration (), with subset .
Subset 2: Engineering (), with subset .
Analytical Summary: .
Case Study 3: Language Development Proficiency Scores (
lang_sc):Descriptive Statistics:
Group 1 (): Mean = , ,
Group 2 (): Mean = , ,
Group 3 (): Mean = , ,
Combined Sample (): Grand Mean = , ,
One-Way ANOVA Source Breakdown:
Between Groups: , ,
Within Groups: , ,
Total: ,
Test Ratio: ,
Omnibus Conclusion: Reject ().
Tukey HSD Multiple Comparisons:
Group 1 vs. Group 2: Mean Difference = , ,
Result: Borderline non-significant at nominal .
Group 1 vs. Group 3: Mean Difference = , ,
Result: Statistically significant ().
Group 2 vs. Group 3: Mean Difference = , ,
Result: Not statistically significant ().
Homogeneous Subsets Configuration ():
Subset 1: Group 1 () and Group 2 (), harmonic .
Subset 2: Group 2 () and Group 3 (), harmonic .
Analytical Summary: Overlapping subset distribution demonstrating:
Case Study 4: Vocabulary Score by Reading Comprehension Group:
Group Structure: Evaluates vocabulary proficiency across Low (, Mean = ), Medium (, Mean = ), and High (, Mean = ) comprehension cohorts.
Interpretation of Homogeneous Subset Patterns:
Pattern A (Overlapping Bridge Cohort):
Subset 1 contains Low () and Medium ().
Subset 2 contains Medium () and High ().
Substantive Meaning: , , but .
Pattern B (Complete Equivalence):
Subset 1 contains Low (), Medium (), and High () simultaneously ().
Substantive Meaning: ; no significant group differences exist.
Pattern C (Complete Differentiation):
Subset 1 contains Low ().
Subset 2 contains Medium ().
Subset 3 contains High ().
Substantive Meaning: Every pair differs significantly: .
Pattern D (Step-Level Separation):
Subset 1 contains Low ().
Subset 2 contains Medium () and High ().
Substantive Meaning: , , while .