Correlation, Regression, and Prediction
Modeling Relationships Between Variables
Correlation and regression
Correlation describes the strength and direction of linear association between two numerical variables. Simple linear regression models the average change in a response variable as the explanatory variable changes.
Core formulas
Interpreting regression output
| Quantity | Meaning | Caution |
|---|---|---|
| Slope | Rate of change in predicted response | Not necessarily causal |
| Intercept | Predicted response when | May be outside data range |
| Proportion of variation explained by the linear model | Does not prove the model is correct |
Extrapolation risk
A regression line is most reliable within the range of observed values. Predictions far outside that range can be misleading.
Using regression responsibly
-
1
Step 1: Make a scatter plot and check whether the relationship looks roughly linear.
-
2
Step 2: Fit a line and inspect residuals for unusual patterns.
-
3
Step 3: Use the model for interpolation when the data support it.
-
4
Step 4: Avoid causal claims unless the study design justifies them.
What does a correlation of mean?
A correlation of zero indicates no linear association, though a nonlinear relationship may still exist.
Correct answer: There is no linear association
Why is the residual important in regression?
Residuals reveal model error and can show patterns that suggest a poor fit.
Correct answer: It measures how far the observed value is from the model's prediction and helps assess model fit.