Examining Relationships: Scatterplots, Correlation, and Regression

Explanatory, Response, and Lurking Variables

  • Response Variable (YY): Measures the primary outcome of a study.
  • Explanatory Variable (XX): Explains, influences, or predicts changes in the response variable.
  • Lurking Variable: A variable not included in the study that influences the interpretation of relationships among variables.
  • Arbitrary Assignment: When studying the mutual relationship between two variables without a predictive direction, designating which is XX and which is YY is arbitrary.

Scatterplot Fundamentals

  • Purpose: Displays the relationship between two quantitative variables measured on the same set of individuals.
  • Axis Convention: The explanatory variable is plotted on the xx-axis and the response variable is plotted on the yy-axis.
  • Key Characteristics to Assess:
    • Direction: Positive association (upward slope from left to right) or negative association (downward slope from left to right).
    • Form: Overall shape of the pattern (linear, quadratic, exponential, logarithmic, or non-linear).
    • Strength: Proximity of points to the underlying form (strong vs. weak scatter).
    • Outliers: Individual values falling outside the overall pattern of the rest of the data.
  • Categorical Subgroups: Apparent non-linear or clustered distributions may reflect two or more distinct underlying populations (such as separate subgroups for males and females).

Correlation Coefficient (rr)

  • Definition: A standardized measure of the direction and strength of a linear relationship between two quantitative variables.
  • Formula:r=1(n−1)sxsy∑i=1n(xi−xˉ)(yi−yˉ)r = \frac{1}{(n - 1)s_x s_y} \sum_{i=1}^n (x_i - \bar{x})(y_i - \bar{y})
  • Key Properties:
    • Bounded Range: −1≤r≤1-1 \le r \le 1.
    • Sign Interpretation: Positive values indicate positive linear associations; negative values indicate negative linear associations.
    • Extremes: r=1r = 1 or r=−1r = -1 occurs strictly for perfect straight-line relationships.
    • No Units: Standardizing deviations by standard deviations renders rr scale-free and unaffected by changes in measurement units.
    • Symmetry: Switching the roles of XX and YY does not change rr.
    • Linearity Limitation: Measures strictly linear associations; non-linear relationships can have r≈0r \approx 0 despite strong structural associations.
    • Sensitivity: Highly non-resistant to outliers.
  • Coefficient of Determination (r2r^2): Represents the proportion (or percentage) of total variation in YY accounted for by its linear regression on XX.

Least Squares Regression Line

  • Model Equation:y^=b0+b1x\hat{y} = b_0 + b_1 x
    • y^\hat{y} represents the predicted response value for a given explanatory value xx.
    • b1b_1 represents the slope.
    • b0b_0 represents the yy-intercept.
  • Slope (b1b_1):b1=rsysxb_1 = r \frac{s_y}{s_x}
    • Represents the predicted change in yy when xx increases by one unit.
    • Carries the same sign as the correlation coefficient rr.
  • Intercept (b0b_0):b0=yˉ−b1xˉb_0 = \bar{y} - b_1 \bar{x}
    • Represents the predicted value of yy when x=0x = 0.
  • Criterion: Minimizes the sum of squared vertical prediction errors:   ∑i=1n(yi−y^i)2\sum_{i=1}^n (y_i - \hat{y}_i)^2
  • Centroid Point: The least squares regression line always passes through the point of means, (xˉ,yˉ)(\bar{x}, \bar{y}).

Residuals and Extrapolation

Vertical deviation between actual and predicted response values

  • Residual Definition: The vertical difference between an observed data value and its predicted value:   residuali=yi−y^i\text{residual}_i = y_i - \hat{y}_i
  • Sign Interpretation: A positive residual represents a point positioned above the regression line; a negative residual indicates a point below the line.
  • Extrapolation: The practice of predicting response values for xx-values outside the range of observed data. It is unreliable because the linear pattern may not hold outside the observed interval.

Outliers and Influential Observations

Comparison of regression lines with and without an influential outlier

  • Outliers in the yy-Direction: Observations exhibiting large vertical residuals; typically have moderate to small leverage on the slope of the fitted line.
  • Outliers in the xx-Direction (High Leverage): Observations extreme in the horizontal dimension; strongly pull the regression line toward themselves.
  • Influential Observation: An individual data point whose removal causes a substantial change in the regression parameters (b0b_0, b1b_1) or r2r^2.

Causation and Study Design

  • Core Principle: Association does not imply causation. A strong correlation between XX and YY does not establish that changes in XX cause changes in YY.
  • Observational Studies: Variables are observed without experimenter intervention, leaving observed associations susceptible to confounding by lurking variables.
  • Experimental Studies: Explanatory variables are actively and randomly assigned to units, balancing out lurking variables across treatment groups to provide valid evidence of causation.