Comprehensive Study Guide to ANOVA, Factorial ANOVA, Correlation, and Regression

Course Curriculum and Unit Schedule

  • Unit 3 Progression and Deadlines:
    • Week 9:
    • Tuesday (10/27): Test 2 administration.
    • Thursday (10/29): No class scheduled.
    • Week 10:
    • Tuesday (11/03): Introduction to One-Way Analysis of Variance (ANOVA); download of CollegeData.sav dataset.
    • Thursday (11/05): Factorial ANOVA; assignment of Practice Problem Set 4.
    • Week 11:
    • Tuesday (11/10): Quiz 6 (covering One-Way ANOVA exclusively); Introduction to Pearson Correlation; download of TeensData.sav dataset.
    • Thursday (11/12): Simple Linear Regression; Homework 3 due prior to the start of class.
    • Week 12:
    • Tuesday (11/17): Quiz 7 (covering Correlation and Regression concepts and output interpretation); Test 3 Review; distribution of Practice Problem Set 5.
    • Thursday (11/19): Test 3 administration (covering One-Way ANOVA, Factorial ANOVA, Pearson Correlation, and Linear Regression).
    • Thanksgiving Break:
    • Tuesday (11/24) and Thursday (11/26): No class.

Foundational Review: Mean Comparisons and the One-Sample t-Test

  • Comparison of Means Framework:
    • Prior inferential procedures focused on evaluating hypotheses concerning two mean values:
    • One-Sample t-Test: Evaluates whether a single sample mean differs significantly from a known or hypothesized population mean.
    • Independent-Samples t-Test: Compares the means of two unrelated, independent groups on a continuous dependent variable.
    • Paired-Samples t-Test: Compares two repeated measurements or matched pairs from the same participants.
  • Warm-Up Problem (One-Sample t-Test):
    • Scenario: Determining whether the mean weight in a sample dataset differs significantly from a known population mean weight of 195 lbs195\,\text{lbs}.
    • Sample Descriptive Statistics: Sample size N=376N = 376, sample mean weight Xˉ=181.0316 lbs\bar{X} = 181.0316\,\text{lbs}, standard deviation s=42.74968s = 42.74968, standard error of the mean SE=2.20465SE = 2.20465.
    • Inferential Test Results: Tested against test value 195195; degrees of freedom df=375df = 375; test statistic t=−6.336t = -6.336; one-sided significance p<.001p < .001; two-sided significance p<.001p < .001; mean difference =−13.96843 lbs= -13.96843\,\text{lbs}; 95%95\% confidence interval of the difference [−18.3034,−9.6334][-18.3034, -9.6334].
    • Effect Sizes: Point estimate for Cohen's d=−0.327d = -0.327 (95%95\% CI [−0.430,−0.223][-0.430, -0.223], standardizer =42.74968= 42.74968); point estimate for Hedges' correction =−0.326= -0.326 (95%95\% CI [−0.429,−0.222][-0.429, -0.222], standardizer =42.83542= 42.83542).
    • Statistical Decision & Conclusion: The null hypothesis is rejected. Results of the one-sample tt-test demonstrate that the sample mean weight is significantly lower than the population mean: t(375)=−6.34t(375) = -6.34, p<.001p < .001.

One-Way Analysis of Variance (ANOVA)

  • Definition and Purpose:
    • One-Way Analysis of Variance is an omnibus inferential hypothesis test used to compare the means of three or more independent groups or factor levels (k≥3k \ge 3) on a single continuous dependent variable.
  • Hypotheses Formulation:
    • Null Hypothesis (H0H_0): μ1=μ2=μ3=⋯=μk\mu_1 = \mu_2 = \mu_3 = \dots = \mu_k. All group population means are equal; all sampled groups originate from the identical underlying population distribution.
    • Alternative Hypothesis (HAH_A): At least one population mean differs from another (μi≠μj\mu_i \neq \mu_j for some i,ji, j). At least one sampled group represents a distinct underlying population.
  • The Problem of Alpha Inflation (Type I Error Rate):
    • Running multiple pairwise independent tt-tests across three or more conditions (e.g., comparing sections A vs. B, B vs. C, and A vs. C) dramatically increases the familywise probability of committing a Type I error (α\alpha rate).
    • A Type I error occurs when a true null hypothesis is incorrectly rejected (a false positive).
    • ANOVA conducts an omnibus evaluation across all groups simultaneously, maintaining the nominal Type I error rate (typically α=.05\alpha = .05).
  • Conceptual Mechanics of the FF-Statistic:
    • The test statistic for ANOVA is the FF-ratio, which compares the magnitude of two independent estimates of population variance:     F=Variance between groupsVariance within groupsF = \frac{\text{Variance between groups}}{\text{Variance within groups}}
    • Between-Group Variance: Measures the dispersion of individual group means around the grand overall mean (Xˉgrand\bar{X}_{\text{grand}}). It reflects true treatment effects, experimental manipulation, or factor differences, plus random sampling error.
    • Within-Group Variance: Measures the variability of individual observations within each group around that group's specific mean (Xˉk\bar{X}_k). Because all individuals within a group receive the same treatment level, this variance reflects pure unsystematic error, individual differences, and measurement noise.

Between-group variation versus within-group variation distributions

  • Distributional Characteristics of the FF-Ratio:
    • Under the null hypothesis (H0H_0), between-group variance should approximately equal within-group variance, yielding an expected value of F≈1.0F \approx 1.0.
    • The FF-distribution is positively skewed and strictly non-negative (F≥0F \ge 0) because it represents a ratio of two variances (mean squares).
    • A substantially large FF-statistic indicates that between-group differences far exceed within-group random error, leading to rejection of H0H_0.
    • A small FF-statistic (near 1.01.0 or less) indicates that group differences are entirely consistent with random chance, leading to failure to reject H0H_0.
  • Data Assumptions for One-Way ANOVA:
    • Scale of Measurement: Dependent variable must be continuous (measured on an interval or ratio scale).
    • Factor Structure: Independent variable must be categorical, comprising three or more distinct levels or groups.
    • Independence: Observations must be independent of one another both within and across groups.
    • Normality: The distributions of the continuous dependent variable within each population group must approximate a normal distribution.
    • Homogeneity of Variance: Variances across all comparison groups must be approximately equal (homoscedasticity).
    • Absence of Outliers: Data sets should be devoid of extreme univariate outliers that could distort group means or inflate error variance.
  • Effect Size in One-Way ANOVA (η2\eta^2):
    • Eta-squared (η2\eta^2) quantifies the proportion of total variance in the continuous dependent variable that is uniquely attributable to group membership (the independent variable):     η2=SSBetweenSSTotal\eta^2 = \frac{SS_{\text{Between}}}{SS_{\text{Total}}}

Variance explained pie chart

  • Interpretation Benchmarks for η2\eta^2:
    • Small Effect: 0.01−0.0590.01 - 0.059
    • Medium Effect: 0.06−0.130.06 - 0.13
    • Large Effect: >0.13> 0.13
    • Post-Hoc Pairwise Comparisons:
  • A statistically significant omnibus FF-test reveals only that at least one group mean differs; it does not indicate which specific group pairs differ.
  • When FF is significant, post-hoc procedures (such as Tukey's Honestly Significant Difference, Tukey HSD) must be evaluated to test all pairwise comparisons while controlling for familywise error.
  • If the omnibus FF-test is not statistically significant, post-hoc comparisons are not interpreted.
    • SPSS Procedure for One-Way ANOVA:
  • Navigate through menus: Analyze →\rightarrow Compare Means →\rightarrow One-Way ANOVA.
  • Move the continuous dependent variable into the Dependent List field.
  • Move the categorical independent variable into the Factor field.
  • Check Estimate effect size for overall tests (in modern versions).
  • Click Post Hoc..., check Tukey, and maintain significance level at 0.050.05.
  • Click Options..., select Descriptive, specify confidence interval level (95%95\%), and click Continue, then OK.

SPSS One-Way ANOVA main dialog box

One-Way ANOVA: Empirical Worked Examples

  • Worked Example 1: Sprint Times by Smoking Status:
    • Research Question: Does sprint time (in seconds) differ significantly as a function of smoking status (0=Nonsmoker0 = \text{Nonsmoker}, 1=Past smoker1 = \text{Past smoker}, 2=Current smoker2 = \text{Current smoker}) at α=.05\alpha = .05?
    • Hypotheses: H0:μ0=μ1=μ2H_0: \mu_0 = \mu_1 = \mu_2 (F=1F = 1); HA:H_A: At least one mean differs (F>1F > 1).
    • Descriptive Results:
    • Nonsmokers (00): N=261N = 261, Mean =6.41149 s= 6.41149\,\text{s}, SD=1.251783SD = 1.251783, SE=0.077483SE = 0.077483, 95%95\% CI [6.25891,6.56406][6.25891, 6.56406], Range [4.503,9.597][4.503, 9.597].
    • Past smokers (11): N=33N = 33, Mean =6.83533 s= 6.83533\,\text{s}, SD=1.024415SD = 1.024415, SE=0.178328SE = 0.178328, 95%95\% CI [6.47209,7.19858][6.47209, 7.19858], Range [4.889,8.549][4.889, 8.549].
    • Current smokers (22): N=59N = 59, Mean =7.12092 s= 7.12092\,\text{s}, SD=1.083500SD = 1.083500, SE=0.141060SE = 0.141060, 95%95\% CI [6.83855,7.40328][6.83855, 7.40328], Range [5.295,9.475][5.295, 9.475].
    • Total Sample: N=353N = 353, Mean =6.56968 s= 6.56968\,\text{s}, SD=1.233839SD = 1.233839, SE=0.065671SE = 0.065671, 95%95\% CI [6.44053,6.69884][6.44053, 6.69884].
    • ANOVA Summary Table:
    • Between Groups: Sum of Squares (SSSS) =26.788= 26.788, df=2df = 2, Mean Square (MSMS) =13.394= 13.394, F=9.209F = 9.209, Sig. p<.001p < .001.
    • Within Groups: SS=509.082SS = 509.082, df=350df = 350, MS=1.455MS = 1.455.
    • Total: SS=535.870SS = 535.870, df=352df = 352.
    • Effect Size Point Estimates:
    • Eta-squared (η2\eta^2) =.050= .050 (95%95\% CI [.013,.098][.013, .098]), indicating a small-to-moderate effect (5.0%5.0\% of variance explained).
    • Epsilon-squared =.045= .045; Omega-squared fixed-effect =.044= .044; Omega-squared random-effect =.023= .023.
    • Tukey HSD Post-Hoc Comparisons:
    • Nonsmokers (00) vs. Past smokers (11): Mean difference =−0.423847= -0.423847, SE=0.222821SE = 0.222821, p=.140p = .140 (95%95\% CI [−0.94831,0.10061][-0.94831, 0.10061]). Not significant.
    • Nonsmokers (00) vs. Current smokers (22): Mean difference =−0.709429= -0.709429, SE=0.173856SE = 0.173856, p<.001p < .001 (95%95\% CI [−1.11864,−0.30022][-1.11864, -0.30022]). Statistically significant.
    • Past smokers (11) vs. Current smokers (22): Mean difference =−0.285582= -0.285582, SE=0.262163SE = 0.262163, p=.521p = .521 (95%95\% CI [−0.90264,0.33148][-0.90264, 0.33148]). Not significant.
    • Formal Statistical Conclusion: Reject the null hypothesis. Results of a one-way ANOVA demonstrate significant differences in sprint completion times across smoking categories, F(2,350)=9.21F(2, 350) = 9.21, p<.001p < .001, η2=.050\eta^2 = .050. Post-hoc Tukey HSD tests reveal that current smokers run significantly slower than nonsmokers (p<.001p < .001). No other pairwise group differences were statistically significant.
  • Worked Example 2: Body Weight by Smoking Status:
    • Research Question: Does body weight (in pounds) differ across smoking categories (0=Nonsmoker0 = \text{Nonsmoker}, 1=Past smoker1 = \text{Past smoker}, 2=Current smoker2 = \text{Current smoker}) at α=.05\alpha = .05?
    • Descriptive Results:
    • Nonsmokers (00): N=259N = 259, Mean =180.5772 lbs= 180.5772\,\text{lbs}, SD=41.59412SD = 41.59412, SE=2.58453SE = 2.58453, 95%95\% CI [175.4878,185.6667][175.4878, 185.6667].
    • Past smokers (11): N=33N = 33, Mean =182.8252 lbs= 182.8252\,\text{lbs}, SD=45.45562SD = 45.45562, SE=7.91281SE = 7.91281, 95%95\% CI [166.7073,198.9430][166.7073, 198.9430].
    • Current smokers (22): N=64N = 64, Mean =180.6955 lbs= 180.6955\,\text{lbs}, SD=48.86625SD = 48.86625, SE=6.10828SE = 6.10828, 95%95\% CI [168.4890,192.9019][168.4890, 192.9019].
    • Total: N=356N = 356, Mean =180.8069 lbs= 180.8069\,\text{lbs}, SD=43.21790SD = 43.21790, SE=2.29054SE = 2.29054, 95%95\% CI [176.3021,185.3116][176.3021, 185.3116].
    • ANOVA Summary Table:
    • Between Groups: SS=148.878SS = 148.878, df=2df = 2, MS=74.439MS = 74.439, F=.040F = .040, Sig. p=.961p = .961.
    • Within Groups: SS=662915.435SS = 662915.435, df=353df = 353, MS=1877.947MS = 1877.947.
    • Total: SS=663064.313SS = 663064.313, df=355df = 355.
    • Effect Size Estimates: Eta-squared (η2\eta^2) =.000= .000 (95%95\% CI [.000,.003][.000, .003]).
    • Tukey HSD Post-Hoc Tests: All pairwise comparisons are non-significant (00 vs. 11: p=.958p = .958; 00 vs. 22: p=1.000p = 1.000; 11 vs. 22: p=.971p = .971).
    • Formal Statistical Conclusion: Fail to reject the null hypothesis. Results of a one-way ANOVA indicate no statistically significant differences in weight based on smoking status, F(2,353)=0.04F(2, 353) = 0.04, p=.961p = .961, η2=.000\eta^2 = .000.
  • Worked Example 3: Pediatric Post-Surgical Pain Coping (Auditory Intervention):
    • Research Question: Does pediatric post-surgical pain intensity differ across auditory conditions (Audiobook, Music, Control) evaluated on the Wong-Baker FACES Pain Rating Scale (0=No Hurt0 = \text{No Hurt}, 2=Hurts Little Bit2 = \text{Hurts Little Bit}, 4=Hurts Little More4 = \text{Hurts Little More}, 6=Hurts Even More6 = \text{Hurts Even More}, 8=Hurts Whole Lot8 = \text{Hurts Whole Lot}, 10=Hurts Worst10 = \text{Hurts Worst}) at α=.05\alpha = .05?

Wong-Baker FACES Pain Rating Scale

  • Descriptive Results:
    • Audiobook: N=10N = 10, Mean =5.00= 5.00, SD=1.826SD = 1.826, SE=0.577SE = 0.577, 95%95\% CI [3.69,6.31][3.69, 6.31], Min =2= 2, Max =8= 8.
    • Music: N=10N = 10, Mean =4.80= 4.80, SD=1.229SD = 1.229, SE=0.389SE = 0.389, 95%95\% CI [3.92,5.68][3.92, 5.68], Min =3= 3, Max =7= 7.
    • Control: N=10N = 10, Mean =7.00= 7.00, SD=2.000SD = 2.000, SE=0.632SE = 0.632, 95%95\% CI [5.57,8.43][5.57, 8.43], Min =4= 4, Max =10= 10.
    • Total: N=30N = 30, Mean =5.60= 5.60, SD=1.940SD = 1.940, SE=0.354SE = 0.354, 95%95\% CI [4.88,6.32][4.88, 6.32], Min =2= 2, Max =10= 10.
  • ANOVA Summary Table:
    • Between Groups: SS=29.600SS = 29.600, df=2df = 2, MS=14.800MS = 14.800, F=5.020F = 5.020, Sig. p=.014p = .014.
    • Within Groups: SS=79.600SS = 79.600, df=27df = 27, MS=2.948MS = 2.948.
    • Total: SS=109.200SS = 109.200, df=29df = 29.
  • Effect Size Point Estimates:
    • Eta-squared (η2\eta^2) =.271= .271 (95%95\% CI [.013,.470][.013, .470]), representing a large effect size (27.1%27.1\% of variance explained).
    • Epsilon-squared =.217= .217; Omega-squared fixed-effect =.211= .211; Omega-squared random-effect =.118= .118.
  • Tukey HSD Post-Hoc Comparisons:
    • Audiobook vs. Music: Mean difference =0.200= 0.200, SE=0.768SE = 0.768, p=.963p = .963 (95%95\% CI [−1.70,2.10][-1.70, 2.10]).
    • Audiobook vs. Control: Mean difference =−2.000= -2.000, SE=0.768SE = 0.768, p=.038p = .038 (95%95\% CI [−3.90,−0.10][-3.90, -0.10]). Statistically significant.
    • Music vs. Control: Mean difference =−2.200= -2.200, SE=0.768SE = 0.768, p=.021p = .021 (95%95\% CI [−4.10,−0.30][-4.10, -0.30]). Statistically significant.
  • Formal Statistical Conclusion: Reject the null hypothesis. Results of a one-way ANOVA demonstrate statistically significant differences in pain ratings by auditory condition with a large effect size, F(2,27)=5.02F(2, 27) = 5.02, p=.014p = .014, η2=0.27\eta^2 = 0.27. Children in the audiobook condition (p=.038p = .038) and the music condition (p=.021p = .021) reported significantly lower pain ratings relative to controls. Audiobook and music conditions did not significantly differ from one another (p=.963p = .963).
    • Worked Example 4: Statistics Course Level and Task Problem Completion Time:
  • Research Question: Does the time (in seconds) required to complete a standardized statistics problem differ across curriculum tiers (Beginner, Intermediate, Advanced) at α=.05\alpha = .05?
  • Descriptive Results:
    • Beginner: N=10N = 10, Mean =27.2000 s= 27.2000\,\text{s}, SD=3.04777SD = 3.04777, SE=0.96379SE = 0.96379, 95%95\% CI [25.0198,29.3802][25.0198, 29.3802], Min =22.00= 22.00, Max =33.00= 33.00.
    • Intermediate: N=10N = 10, Mean =23.6000 s= 23.6000\,\text{s}, SD=3.30656SD = 3.30656, SE=1.04563SE = 1.04563, 95%95\% CI [21.2346,25.9654][21.2346, 25.9654], Min =18.00= 18.00, Max =29.00= 29.00.
    • Advanced: N=10N = 10, Mean =23.4000 s= 23.4000\,\text{s}, SD=3.23866SD = 3.23866, SE=1.02415SE = 1.02415, 95%95\% CI [21.0832,25.7168][21.0832, 25.7168], Min =18.00= 18.00, Max =29.00= 29.00.
    • Total: N=30N = 30, Mean =24.7333 s= 24.7333\,\text{s}, SD=3.56161SD = 3.56161, SE=0.65026SE = 0.65026, 95%95\% CI [23.4034,26.0633][23.4034, 26.0633].
  • ANOVA Summary Table:
    • Between Groups: SS=91.467SS = 91.467, df=2df = 2, MS=45.733MS = 45.733, F=4.467F = 4.467, Sig. p=.021p = .021.
    • Within Groups: SS=276.400SS = 276.400, df=27df = 27, MS=10.237MS = 10.237.
    • Total: SS=367.867SS = 367.867, df=29df = 29.
  • Tukey HSD Post-Hoc Comparisons:
    • Beginner vs. Intermediate: Mean difference =3.60000= 3.60000, SE=1.43088SE = 1.43088, p=.046p = .046 (95%95\% CI [0.0523,7.1477][0.0523, 7.1477]). Statistically significant.
    • Beginner vs. Advanced: Mean difference =3.80000= 3.80000, SE=1.43088SE = 1.43088, p=.034p = .034 (95%95\% CI [0.2523,7.3477][0.2523, 7.3477]). Statistically significant.
    • Intermediate vs. Advanced: Mean difference =0.20000= 0.20000, SE=1.43088SE = 1.43088, p=.989p = .989 (95%95\% CI [−3.3477,3.7477][-3.3477, 3.7477]). Not significant.
  • Formal Statistical Conclusion: Reject the null hypothesis. Results of a one-way ANOVA demonstrate significant differences in problem completion time by course level, F(2,27)=4.47F(2, 27) = 4.47, p=.021p = .021. Beginners required significantly more time to solve the problem than intermediate students (p=.046p = .046) and advanced students (p=.034p = .034). Intermediate and advanced tiers exhibited no significant difference (p=.989p = .989).

Two-Way Factorial Analysis of Variance

  • Definition and Structure:
    • A Factorial ANOVA ("Two-Way" ANOVA) evaluates the simultaneous effects of two categorical independent variables (factors) on a single continuous dependent variable.
    • Simultaneously evaluates three distinct null hypotheses:
    • Main Effect 1: The isolated effect of the first independent variable on the dependent variable, collapsed across all levels of the second independent variable.
    • Main Effect 2: The isolated effect of the second independent variable on the dependent variable, collapsed across all levels of the first independent variable.
    • Interaction Effect (IV1×IV2\text{IV}_1 \times \text{IV}_2): Tests whether the effect of one independent variable on the dependent variable depends upon the specific level of the other independent variable.
  • Visual Interpretation of Main Effects and Interactions:
    • Crossover (Disordinal) Interactions: Evidenced by intersecting or crossing lines in a line graph, signaling that the direction of one factor's effect completely reverses across levels of the second factor.

Crossover interaction plot of food type and temperature on liking

  • Food Type and Temperature: Liking for ice cream is high when cold and low when hot; liking for pancakes is high when hot and low when cold.

Crossover interaction plot of car ownership and residence location on happiness

  • Car Ownership and Residential Location: In the country, having a car yields higher happiness than having no car; in the city, having no car yields higher happiness than having a car.
    • Absence of Interaction (Parallel Trajectories):

Line graph showing parallel lines for gender and drug dose on pain

  • Gender and Drug Dose on Pain: Pain decreases from low dose to high dose by exactly 1010 units in both males (4040 to 3030) and females (2020 to 1010). Because the lines are parallel, there is no interaction (Drug Dose effect does not depend on Gender\text{Drug Dose effect does not depend on Gender}). However, there is a significant Main Effect of Gender (males exhibit higher pain across doses) and a significant Main Effect of Drug Dose (high dose reduces pain for both genders).
    • Bar Graph Factorial Evaluations:

Factorial bar graph of hamburger freshness and topping on deliciousness

  • Hamburger Freshness and Toppings: Fresh beef yields deliciousness ratings around 8585, whereas frozen patties yield ratings around 61−6461 - 64, regardless of whether cheese or ketchup is added. There is a strong Main Effect of Hamburger Freshness, no Main Effect of Topping, and no Interaction Effect.

Factorial bar graph of snack food and dip pairing on deliciousness

  • Snack Food and Dip Pairing: Pretzels with peanut butter receive a rating around 9191, while cucumbers with peanut butter drop dramatically to approximately 3232. Conversely, pretzels with hummus (8888) and cucumbers with hummus (8686) are rated almost identically. The large dip-specific disparity for cucumbers indicates a substantial Interaction Effect, alongside Main Effects for both Snack and Dip.

Pearson Correlation Coefficient

  • Definition and Characteristics:
    • Correlation describes and quantifies the linear association between two continuous (scale) variables (XX and YY).
    • Designated by the test statistic rr (Pearson's product-moment correlation coefficient).
    • Evaluates how variables covary together without imputing directional causality or manipulating conditions.
  • Hypotheses Formulation:
    • Null Hypothesis (H0H_0): r=0r = 0 (No linear population association exists between XX and YY).
    • Alternative Hypothesis (HAH_A): r≠0r \neq 0 (A non-zero linear population association exists between XX and YY).
  • Mathematical Formulation of Pearson's rr:r=covariance between X and Y(standard deviation of X)×(standard deviation of Y)r = \frac{\text{covariance between } X \text{ and } Y}{(\text{standard deviation of } X) \times (\text{standard deviation of } Y)}
    • The numerator quantifies the degree to which XX and YY vary jointly.
    • The denominator standardizes the covariation by the total individual variability in each variable.
    • Values are mathematically bound strictly within the range −1.00≤r≤+1.00-1.00 \le r \le +1.00.
  • Scatterplot Diagnostic Dimensions:
    • Form: Linear (data points align along a straight trajectory) versus Curvilinear (data follow a curved function).

Inverted-U curvilinear function of stress level versus performance

* *Curvilinear Example:* The Yerkes-Dodson relationship between stress level and performance, where performance is low at low stress, reaches an optimum at moderate stress, and drops at high stress. Standard Pearson rr underestimates curvilinear relationships because it specifically measures linear fit.
  • Strength: Governed by how tightly clustered the bivariate coordinates fall along the trend line:
    • Weak, Moderate, or Strong dispersion.
  • Direction:
    • Positive Correlation (r>0r > 0): Variables move concordantly. High scores on XX associate with high scores on YY; low scores on XX associate with low scores on YY.
    • Negative Correlation (r<0r < 0): Variables move inversely. High scores on XX associate with low scores on YY; low scores on XX associate with high scores on YY.
    • Standard Magnitude Interpretation Benchmarks for rr:
  • No Relationship: −0.10<r<+0.10-0.10 < r < +0.10
  • Small Association: 0.10≤∣r∣≤0.300.10 \le |r| \le 0.30
  • Medium Association: 0.30<∣r∣≤0.500.30 < |r| \le 0.50
  • Large Association: 0.50<∣r∣≤1.000.50 < |r| \le 1.00
    • SPSS Procedures:
  • Generating a Scatterplot: Graphs →\rightarrow Legacy Dialogs →\rightarrow Scatter/Dot →\rightarrow Simple Scatter →\rightarrow Define. Set variables to X-Axis and Y-Axis →\rightarrow OK.
  • Running Bivariate Correlation: Analyze →\rightarrow Correlate →\rightarrow Bivariate.... Select continuous variables into Variables box, verify Pearson and Two-tailed are selected →\rightarrow OK.
    • Empirical Correlation Examples:
  • Optimism and Depression: Scatterplot reveals a downward-sloping linear pattern: participant 1 (X=2,Y=13X=2, Y=13), participant 7 (X=14,Y=5X=14, Y=5). Yields a statistically significant strong negative correlation, r=−.70r = -.70, p<.05p < .05. As optimism increases, depression significantly decreases.
  • Adolescent Sleep Quality and Raw Stress Score (N=242N = 242):

Scatterplot of stress raw score versus overall sleep quality

  • Statistically significant strong negative correlation: r=−.647r = -.647, p<.001p < .001. Greater perceived stress correlates with poorer overall sleep quality.
    • Correlation Matrix of Sleep Scales (N=242N = 242):
  • Going to Bed Subscale and Falling Asleep Subscale: r=.746r = .746, p<.001p < .001.
  • Going to Bed Subscale and Wakefulness Subscale: r=.152r = .152, p=.018p = .018.
  • Going to Bed Subscale and Overall Sleep Quality: r=.843r = .843, p<.001p < .001.
  • Falling Asleep Subscale and Wakefulness Subscale: r=−.003r = -.003, p=.963p = .963 (not significant).
  • Falling Asleep Subscale and Overall Sleep Quality: r=.803r = .803, p<.001p < .001.
  • Wakefulness Subscale and Overall Sleep Quality: r=.539r = .539, p<.001p < .001.
    • Academic Performance, Anxiety, and Stress Matrix (N=37N = 37):
  • Test results and Level of anxiety (11 to 55): r=.233r = .233, p=.165p = .165 (non-significant).
  • Test results and Level of stress (11 to 1010): r=−.279r = -.279, p=.094p = .094 (non-significant).
  • Level of anxiety and Level of stress: r=.482r = .482, p=.003p = .003 (statistically significant medium-to-strong positive correlation).
  • Sample Size Insight: Correlation magnitudes near ∣r∣≈.25−.28|r| \approx .25 - .28 fail to achieve statistical significance when sample size is small (N=37N = 37), demonstrating that significance depends jointly upon coefficient size and sample size.

Threats to Correlational Validity

  • Outliers:
    • Outliers are extreme or non-representative bivariate observations that exert disproportionate leverage over the calculated correlation coefficient, especially in smaller samples.

Scatterplots showing the distortion of correlation due to an outlier

  • In a sample tracking hours slept versus happy mood, a strong positive correlation (r=0.85r = 0.85) across the initial cluster is transformed into a negative correlation (r=−0.18r = -0.18) by the inclusion of a single anomalous outlier data point (0 hours slept,8.2 happiness rating0\,\text{hours slept}, 8.2\,\text{happiness rating}).
    • Restriction of Range:
  • Restriction of range occurs when observations are sampled from only a narrow, truncated subset of a variable's total possible continuum, leading to severe underestimation of the true correlation.

Restriction of range comparison for school grade level and geography knowledge

  • Geography Knowledge across School Grade Levels: When evaluating the full educational span (grades 00 to 1212), a strong positive correlation is observed. Truncating the sample to early grades (00 to 33) yields an artificially flat, zero correlation.

Restriction of range in employee selection test scores versus job success

  • Employment Selection Testing: Across all job applicants tested, selection test scores correlate strongly with job performance. If an organization measures job performance only among hired individuals (who all scored above a high cut-off, e.g., scores 30−6030 - 60), the observed correlation becomes artificially weak.
    • The Causation Fallacy and Spurious Correlations:
  • Correlation establishes co-occurrence, never causation (Correlation≠Causation\text{Correlation} \neq \text{Causation}).
    • When variables XX and YY correlate, three primary interpretations are possible:
  • Direction 1: XX causes YY (X→YX \rightarrow Y).
  • Direction 2: YY causes XX (Y→XY \rightarrow X).
  • Third-Variable Problem: An unmeasured third confounding variable (ZZ) causes both XX and YY simultaneously (Z→XZ \rightarrow X and Z→YZ \rightarrow Y).
    • Ice Cream Sales and Violent Crime: Ice cream sales correlate positively with homicide rates. Ice cream does not trigger homicides, nor do homicides stimulate ice cream purchases; higher summer outdoor temperature (ZZ) increases both outdoor social contact/irritability and ice cream consumption.
    • Spurious Correlation Examples:
  • High school graduation numbers and national donut consumption over time (1965−20201965 - 2020).

Spurious correlation between autism diagnosis and per capita cheese consumption

  • Autism diagnosis prevalence and per capita cheese consumption in the U.S. (2000−20222000 - 2022), displaying an apparent R2=0.964R^2 = 0.964.
  • Autism diagnosis frequency and total organic food sales (1998−20071998 - 2007).
  • Autism diagnoses and atmospheric CO2CO_2 concentration in parts per million (1998−20071998 - 2007).

Simple Linear Regression

  • Conceptual Framework:
    • Whereas correlation measures the strength and direction of association, linear regression uses the mathematical relationship to predict scores on a criterion (dependent variable, YY) from scores on a predictor (independent variable, XX).
    • Terminology:
    • Independent Variable (XX): Predictor variable.
    • Dependent Variable (YY): Criterion variable.
  • Hypotheses Formulation:
    • Null Hypothesis (H0H_0): The independent variable (XX) does not significantly predict the dependent variable (YY) (b=0b = 0).
    • Alternative Hypothesis (HAH_A): The independent variable (XX) significantly predicts the dependent variable (YY) (b≠0b \neq 0).
  • The Regression Line Equation:
    • Based on the algebraic equation of a straight line (Y=mx+bY = mx + b):     Y=bX+aY = bX + aDV=b(IV)+a\text{DV} = b(\text{IV}) + a
    • Components:
    • YY: Predicted value of the dependent criterion variable.
    • bb: Regression coefficient, representing the slope of the line (the expected change in YY per one-unit increase in XX).
    • XX: Score on the independent predictor variable.
    • aa: Regression constant, representing the yy-intercept (the predicted value of YY when X=0X = 0).
  • Line of Best Fit and Residuals:
    • The regression line represents the line of best fit calculated via ordinary least squares (OLS).
    • Residuals: Prediction errors representing the vertical distance between each observed data point (YY) and the predicted value on the line (Y^\hat{Y}):     Residual=Y−Y^\text{Residual} = Y - \hat{Y}
    • The OLS regression equation mathematically minimizes the sum of squared residuals (∑(Y−Y^)2\sum (Y - \hat{Y})^2).

Regression line with slope, y-intercept, and residual errors displayed

  • Drive-Through Order Accuracy Worked Problems:
    • Study Context: Predicting percentage of drive-through orders with errors based on customer wait times in seconds (QSRQSR chain survey data including Taco Bell, Wendy's, McDonald's, Burger King, Chick-fil-A).
    • Model Parameters: Slope b=−0.03b = -0.03; Intercept a=17.25a = 17.25.
    • Equation:%OrderErrors=−0.03(WaitTime)+17.25\%\text{OrderErrors} = -0.03(\text{WaitTime}) + 17.25
    • Prediction Problem 1: Predict the error percentage for a customer waiting 120 seconds120\,\text{seconds}.     %OrderErrors=−0.03(120)+17.25=−3.60+17.25=13.65%\%\text{OrderErrors} = -0.03(120) + 17.25 = -3.60 + 17.25 = 13.65\%
    • Prediction Problem 2 (Practice Quiz Item): What is the percentage of errors associated with a wait time of 432 seconds432\,\text{seconds}?     %OrderErrors=−0.03(432)+17.25=−12.96+17.25=4.29%\%\text{OrderErrors} = -0.03(432) + 17.25 = -12.96 + 17.25 = 4.29\%
    • Correct Multiple Choice Answer: A. 4.29%.
  • Coefficient of Determination (R2R^2) as Effect Size:
    • In simple linear regression, the square of Pearson's rr (R2R^2 or R SquareR\,\text{Square}) represents the proportion (or percentage when multiplied by 100100) of total variance in the dependent variable explained by the independent variable.

Comparison of regression scatterplots with high and low R-squared

  • Visualizing Explained Variance: In temperature versus revenue, a tight fit corresponds to R2=0.81R^2 = 0.81 (81%81\% explained), whereas a dispersed plot corresponds to R2=0.24R^2 = 0.24 (24%24\% explained).
  • Interpretation Benchmarks for R2R^2:
    • Very Weak: <0.02< 0.02
    • Weak: 0.021−0.130.021 - 0.13
    • Moderate: 0.131−0.260.131 - 0.26
    • Substantial: >0.261> 0.261
    • SPSS Procedure for Linear Regression:
  • Navigate through menus: Analyze →\rightarrow Regression →\rightarrow Linear....
  • Move the continuous dependent variable into the Dependent box.
  • Move the continuous independent variable into the Independent(s) box (Block 1 of 1, Method: Enter) →\rightarrow OK.
    • Interpreting the Three Primary SPSS Output Tables:
  • Model Summary Table: Provides Pearson's correlation magnitude (RR) and the coefficient of determination (R2R^2), indicating effect size.
  • ANOVA Table: Evaluates whether the regression equation accounts for a statistically significant amount of variance in the dependent variable (overall model fit). If p<.05p < .05, the regression line fits the data significantly better than a horizontal line through the mean.
  • Coefficients Table: Provides values under column B (Unstandardized Coefficients):
    • Row (Constant): The intercept (aa).
    • Row [Predictor Name]: The slope coefficient (bb).
    • Evaluates individual significance via tt-statistics and corresponding pp-values.

Linear Regression: Empirical Output Analysis

  • Regression Example 1: Sleep Quality Predicting Adolescent School Dysfunction:
    • Research Question: Does overall sleep quality significantly predict school dysfunction total score?
    • Data Setup: Predictor (XX) =overall sleep quality [ASWS_Total]= \text{overall sleep quality [ASWS\_Total]}; Criterion (YY) =school dysfunction total [SFQ_total]= \text{school dysfunction total [SFQ\_total]}.
    • Model Summary Output:
    • Model 11: R=.715R = .715, R2=.511R^2 = .511, Adjusted R2=.509R^2 = .509, Standard Error of the Estimate =13.38149= 13.38149.
    • Interpretation: Sleep quality accounts for 51.1%51.1\% (≈51%\approx 51\%) of the variance in school dysfunction.
    • ANOVA Output:
    • Regression: SS=44944.729SS = 44944.729, df=1df = 1, MS=44944.729MS = 44944.729, F=250.998F = 250.998, Sig. p<.001p < .001.
    • Residual: SS=42975.436SS = 42975.436, df=240df = 240, MS=179.064MS = 179.064.
    • Total: SS=87920.165SS = 87920.165, df=241df = 241.
    • Interpretation: The linear model fits the data significantly (p<.001p < .001).
    • Coefficients Output:
    • Constant (aa): B=104.608B = 104.608, SE=3.888SE = 3.888, t=26.905t = 26.905, p<.001p < .001.
    • Sleep Quality (bb): B=−17.493B = -17.493, SE=1.104SE = 1.104, Standardized Beta =−.715= -.715, t=−15.843t = -15.843, p<.001p < .001.
    • Derived Regression Equation:SchoolDysfunction=−17.49(SleepQuality)+104.61\text{SchoolDysfunction} = -17.49(\text{SleepQuality}) + 104.61
    • Formal Statistical Conclusion: Overall sleep quality significantly predicts school dysfunction, F(1,240)=250.99F(1, 240) = 250.99, p<.001p < .001. Overall sleep quality explains 51.1%51.1\% of the total variance in school dysfunction scores. For every one-unit increase in sleep quality, school dysfunction decreases by 17.4917.49 units.
  • Regression Example 2: Personal Income Predicting Vehicle Purchase Price:
    • Research Question: Does a consumer's income significantly predict the purchase price paid for an automobile?
    • Data Setup: Independent Variable (XX) =Income= \text{Income}; Dependent Variable (YY) =Price= \text{Price}.
    • Model Summary Output:
    • Model 11: R=.873R = .873, R2=.762R^2 = .762, Adjusted R2=.749R^2 = .749, Standard Error of the Estimate =874.779= 874.779.
    • Interpretation: Income explains 76.2%76.2\% of the variance in car purchase price.
    • ANOVA Output:
    • Regression: SS=44182633.37SS = 44182633.37, df=1df = 1, MS=44182633.37MS = 44182633.37, F=57.737F = 57.737, Sig. p=.000p = .000 (p<.001p < .001).
    • Residual: SS=13774291.07SS = 13774291.07, df=18df = 18, MS=765238.393MS = 765238.393.
    • Total: SS=57956924.44SS = 57956924.44, df=19df = 19.
    • Interpretation: The regression model demonstrates statistically significant predictive fit (p<.001p < .001).
    • Coefficients Output:
    • Constant (aa): B=8286.786B = 8286.786, SE=1852.256SE = 1852.256, t=4.474t = 4.474, p<.001p < .001.
    • Income (bb): B=.564B = .564, SE=.074SE = .074, Standardized Beta =.873= .873, t=7.598t = 7.598, p<.001p < .001.
    • Derived Regression Equation:Price=.56(Income)+8286.79\text{Price} = .56(\text{Income}) + 8286.79
    • Formal Statistical Conclusion: Consumer income significantly predicts the purchase price of an automobile, F(1,18)=57.74F(1, 18) = 57.74, p<.001p < .001. Income accounts for 76.2%76.2\% of the variance in vehicle price. For every additional dollar earned, vehicle purchase price increases by approximately $0.56\$0.56.

Statistical Test Selection Framework

  • Decision Matrix by Research Objective and Variable Scale:
    • Scenario 1 (Association between two continuous metrics):
    • Objective: Determine whether friendship quality (scale 0−100 - 10) is associated with happiness (scale 0−100 - 10).
    • Variables: Continuous IV, Continuous DV.
    • Correct Inferential Test: Pearson Correlation.
    • Scenario 2 (Mean differences across three or more groups):
    • Objective: Evaluate whether school pride (scale 0−1000 - 100) differs across freshmen, sophomores, juniors, and seniors.
    • Variables: One categorical IV (44 levels), Continuous DV.
    • Correct Inferential Test: One-Way ANOVA.
    • Scenario 3 (Directional prediction of a continuous outcome):
    • Objective: Test whether the number of friends on campus predicts a student's retention or academic integration score.
    • Variables: Continuous predictor (IV), Continuous criterion (DV).
    • Correct Inferential Test: Simple Linear Regression.
    • Scenario 4 (Factorial mean differences with multiple grouping variables):
    • Objective: Investigate whether vehicle ownership (yes vs. no) and housing status (on campus vs. off campus) affect happiness.
    • Variables: Two categorical IVs (2×22 \times 2 factor structure), Continuous DV.
    • Correct Inferential Test: Two-Way Factorial ANOVA.