Correlation and Linear Regression
Overview of Association Testing
Testing Associations (Continuous Variables):
Scatterplot: Visual inspection ("eyeballing") of coordinate pairs (, ).
Correlation: Quantifies the strength and direction of a linear association.
Regression: Quantifies how changes in predictor variables influence an outcome variable to allow prediction.
Pearson Correlation Coefficient
Definition & Formula:
Ratio of signal to noise:
Value Range:
: Perfect positive linear relationship.
: Perfect negative linear relationship.
: No linear relationship (nonlinear relationships may still exist).
Anscombe's Quartet & Linearity:
Evaluates linear associations only.
Datasets can share identical summary statistics (, , ) while having completely different patterns or outliers; visual inspection via scatterplots is required.
Causality, Confounders, and Hypothesis Testing
Spurious Correlations:
Significant associations driven by a third confounding variable (e.g., age confounding arm length and reasoning ability) or sheer coincidence.
Three Criteria for Causality:
Concomitant Variation: Cause () and effect () must empirically vary together.
Temporal Precedence: Cause () must occur before effect ().
Non-Spuriousness: Association cannot be explained by alternative confounding factors.
Hypothesis Testing for Correlation:
Null hypothesis:
Alternative hypothesis:
Degrees of freedom:
Reporting standards:
Significant: ,
Non-significant: ,
Simple Linear Regression Foundations
Correlation vs. Regression:
Correlation: Symmetric; variables are interchangeable (similar to a -test).
Regression: Asymmetric; directional dependency using predictors to explain an outcome (tied to ANOVA and the General Linear Model).
Model Equation:
: Outcome (dependent variable).
: Intercept (value of when ).
: Regression slope (change in per 1-unit increase in ).
: Predictor (independent variable).
: Random error component.
Ordinary Least Squares (OLS):
Finds the line of best fit by minimizing the sum of squared vertical distances from data points to the line.
Evaluating Regression Models
Partitioning Sum of Squares:
: Total sum of squares (variation relative to grand mean ).
: Model sum of squares (variance explained by fitted regression model).
: Residual sum of squares (unexplained variability / error).
Goodness of Fit ():
Proportion of total variance explained by the model:
Model Significance (-Test):
Tests if regression model explains significantly more variance than the grand mean:
Regression Coefficients and Reporting
Unstandardized Coefficient ():
Raw change in per 1-unit change in .
Used for prediction:
Example: If and , at :
Standardized Coefficient ():
Shift in standard deviations of per 1-SD shift in .
Example: A 1-SD increase in with and :
Reporting Format:
Predictor: , ,
Overall model: , ,