← Back to CoursesStatistics: Intermediate

Neuroanatomy Explorer

Drag to rotate · scroll to zoom · click regions to explore

View
Loading 3D model…

Click a region
to explore it

Memory Deck

Flip each card and rate whether you knew it. Your score is saved.

Term
Definition

Deck complete — score saved.

Match the Pairs

Match each term to its definition. Finish the board to earn your score.

All matched — score saved.

Concept Constellation

Every key idea in this course, mapped as an explorable 3D constellation. Drag to rotate, scroll to zoom, click a node.

Click a node to read its definition.

Correlation, Regression, and Prediction

Manual: General · Subject: Statistics

Model linear relationships and use them for explanation and prediction with caution.

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 yy as the explanatory variable xx changes.

Core formulas

Correlation rr
A standardized measure of linear association with −1≤r≤1-1\le r\le 1.
Regression line
y^=a+bx\hat{y}=a+bx
Slope bb
Predicted change in y^\hat{y} for a one-unit increase in xx.
Residual
y−y^y-\hat{y}, the vertical prediction error.

Interpreting regression output

QuantityMeaningCaution
SlopeRate of change in predicted responseNot necessarily causal
InterceptPredicted response when x=0x=0May be outside data range
r2r^2Proportion of variation explained by the linear modelDoes not prove the model is correct
⚠️

Extrapolation risk

A regression line is most reliable within the range of observed xx values. Predictions far outside that range can be misleading.

Using regression responsibly

  1. 1

    Step 1: Make a scatter plot and check whether the relationship looks roughly linear.

  2. 2

    Step 2: Fit a line and inspect residuals for unusual patterns.

  3. 3

    Step 3: Use the model for interpolation when the data support it.

  4. 4

    Step 4: Avoid causal claims unless the study design justifies them.

What does a correlation of r=0r=0 mean?

Why is the residual important in regression?