Unit 4 · Relationships
How to run a simple linear regression in SPSS
Run a linear regression in SPSS, interpret R Square, B and Beta, and make predictions from the equation.
Quick answer: How do you run a simple linear regression in SPSS?
- Click Analyze › Regression › Linear.
- Move the outcome into Dependent and the predictor into Independent(s).
- Click OK and read the Model Summary, ANOVA and Coefficients tables.
Report it in APA style: Revision hours predicted exam score, F(1, 48) = 20.26, p < .001, R² = .30; each extra hour predicted 1.52 more points.
What is linear regression?
Simple linear regression fits a straight line that predicts a Scale outcome (Y) from one predictor (X). It tells you how much Y changes for each one-unit change in X, and how much of the variation in Y the predictor explains.
When to use it
- You want to predict an outcome or describe how it changes with a predictor.
- Both variables are Scale (or the predictor is a two-category variable coded 0 and 1).
How it works
The equation is Ŷ = b0 + b1X. The constant (b0) is the predicted value when X = 0, and the slope (b1) is the change in Y for each one-unit increase in X. SPSS chooses the line that makes the squared prediction errors (residuals) as small as possible (least squares). R² is the proportion of variance in Y explained by X, and the ANOVA F tests whether the model predicts better than just using the mean.
Assumptions
- A linear relationship.
- Independent residuals.
- Residuals roughly normal.
- Equal spread of residuals at all predicted values (homoscedasticity).
Worked example
Predicted score = 44.50 + 1.52 × hours. Each extra hour of revision predicted 1.52 more points, and hours explained 30% of the variance, F(1, 48) = 20.26, p < .001.
Key terms
- Predictor (IV)
- The variable used to predict.
- Outcome (DV)
- The variable being predicted.
- Residual
- Actual minus predicted value.
- R²
- Proportion of variance explained.
- b and β
- Unstandardised slope (original units) and standardised slope (SD units).
Common mistakes
- Predicting far outside the range of the data.
- Interpreting the constant when X = 0 is impossible.
- Assuming the predictor causes the outcome.
How to do it in SPSS
The SPSS syntax
Prefer typing to clicking? Open File › New › Syntax, paste this in, select it and choose Run › Selection. Every dialog's Paste button writes the same kind of code.
REGRESSION
/STATISTICS COEFF OUTS CI(95) R ANOVA
/DEPENDENT score
/METHOD=ENTER hours.Practice data
Download the file used in this lesson and run it yourself in SPSS: you should get the same results as the screens above.
- exam_hours.savRevision hours, exam score and motivation (N = 50)
Now practise it interactively →
Reading is only half of it. Tap through the real SPSS menus, read the output and pick the right write-up in 7 quick questions, with instant feedback on every answer.
Practice for this lesson is part of Pro, with every unit, unlimited hearts and saved progress.