A scatter plot with a regression line shows how one continuous variable changes with another: each point is a case, and the line is the straight line that fits them best. This guide shows how to draw it in SPSS, how to add the confidence band, and how to report the figure and the regression in APA 7.
What each part of the plot shows
- Points: one per case. The predictor goes on the x-axis and the outcome on the y-axis.
- Regression line: the ordinary least squares line, the one that makes the sum of squared vertical distances from the points to the line as small as possible. Its slope is b.
- Confidence band: the 95% confidence interval for the mean outcome at each value of the predictor. It is narrowest near the mean of the predictor and widens toward the ends, where the line is less certain.
- Scatter around the line: how far points sit from the line shows how much of the outcome the predictor leaves unexplained.
A worked example
Forty students reported how many hours a week they studied, and their exam score (out of 100) was recorded.
| Statistic | Value |
|---|---|
| Study hours, M (SD) | 11.52 (5.67) |
| Exam score, M (SD) | 73.97 (11.74) |
| Pearson r(38) | .81, 95% CI [.67, .90], p < .001 |
| Slope b (SE) | 1.68 (0.20), 95% CI [1.28, 2.08] |
| t(38) for the slope | 8.49, p < .001 |
| Intercept a | 54.67 |
| F(1, 38) | 72.13, p < .001 |
| R² | .65 |

Figure 1
Exam Score by Weekly Study Hours
Note. N = 40. The line is the ordinary least squares regression line; the shaded band is its 95% confidence interval. Exam scores were capped at 100.
The APA 7 format template
As shown in Figure 1, [predictor] was [positively/negatively] correlated with [outcome], r([df]) = .XX, 95% CI [.XX, .XX], p = .XXX. In a simple linear regression, each one-unit increase in [predictor] predicted a X.XX-unit [increase/decrease] in [outcome], b = X.XX, 95% CI [X.XX, X.XX], F(1, [df]) = X.XX, p = .XXX, R² = .XX.
Want to see it written from data? Run this test on sample data in KyroStat: free, no file needed, and it does not use your free tests.
Filled in for the example:
As shown in Figure 1, weekly study hours were positively correlated with exam scores, r(38) = .81, 95% CI [.67, .90], p < .001. In a simple linear regression, each additional hour of study predicted a 1.68-point higher exam score, b = 1.68, 95% CI [1.28, 2.08], F(1, 38) = 72.13, p < .001, R² = .65.
How to draw it in SPSS
Step 1: Draw the scatter plot
- Graphs > Legacy Dialogs > Scatter/Dot
- Choose Simple Scatter and click Define
- Move the outcome to Y Axis and the predictor to X Axis
- Click OK
The same plot is available in Graphs > Chart Builder: in the Gallery tab choose Scatter/Dot, drag Simple Scatter to the canvas, then drag the predictor to the x-axis and the outcome to the y-axis.
Step 2: Add the regression line and confidence band
- Double-click the chart in the Output window to open the Chart Editor
- Choose Elements > Fit Line at Total
- In the Properties window, on the Fit Line tab, keep Linear
- Under Confidence Intervals, choose Mean and leave the level at 95%. (Individual draws the much wider prediction interval for single cases instead)
- Click Apply, then close the Chart Editor
SPSS labels the chart with R² Linear by default. Untick Attach label to line on the Fit Line tab if you do not want the equation printed on the line.
Step 3: Tidy it for APA
- In the Chart Editor, double-click each axis title and replace variable names with plain labels and units, for example "Weekly study hours"
- Delete SPSS's chart title; the APA figure number and title go above the figure in your document
- Copy the chart (Edit > Copy in the Output window), paste it into your document and add the figure number, italic title and note
Step 4: Get the numbers for the text
- Analyze > Correlate > Bivariate for r and its p
- Analyze > Regression > Linear, outcome as Dependent, predictor as Independent(s); click Statistics and tick Confidence intervals to get the 95% CI for b. The ANOVA table gives F and the Model Summary gives R²
Reading the regression line
Slope: b = 1.68 means each extra hour of weekly study goes with 1.68 more exam points on average.
Intercept: a = 54.67 is the predicted score at 0 hours. The students in the example studied between about 2 and 20 hours, so 0 is outside the data and the intercept is a reference point for the line rather than a meaningful prediction.
Predictions: from the unrounded coefficients, the line predicts 63.05 points at 5 hours, 71.42 at 10 hours and 79.80 at 15 hours. Using the rounded coefficients gives slightly different values (54.67 + 1.68 × 10 = 71.47).
R²: .65 means study hours account for 65% of the variance in exam scores in this sample; the other 35% is left unexplained by this model.
Mistakes reviewers catch
- Calling the band a prediction interval. The 95% band from Mean covers the average score at each number of hours, not where individual students' scores will fall.
- Reading cause into the line. The data are correlational. The line shows association, not that studying caused the higher scores.
- Predicting beyond the data. The line is supported only between the smallest and largest predictor values observed.
- Variable names as axis labels. "exam_score" belongs in the data file, not the figure.
- Leading zeros on r and R². Neither can exceed 1, so write r = .81 and R² = .65.
- A line through curved data. Check the scatter for a curve before fitting a straight line; if there is one, fit a quadratic and say so.
APA 7 rules for this figure
- Italicize r, b, a, R², F, t, p, M, SD, SE and N
- Greek letters, such as β for a standardized slope, stay upright
- Report r with its degrees of freedom, n − 2: r(38) = .81
- Report b with its 95% CI or SE
- Figure number in bold, title in italic title case, then a Note. saying what the line and band are
Frequently asked questions
Is the regression line the same as the correlation? They come from the same data. r describes the strength of the linear relationship on a −1 to 1 scale; b gives the size of the change in outcome units. For one predictor, R² equals r² (.81² is about .65 here).
What if the relationship is curved? In the Fit Line tab, choose Quadratic or Cubic instead of Linear, then test the curved term in Analyze > Regression > Linear by adding the squared predictor. Report which model you fitted in the figure note.
How do I show separate lines for two groups? In Simple Scatter, move the grouping variable to Set Markers by. In the Chart Editor, Elements > Fit Line at Subgroups draws one line per group.
How do I label an unusual point? In the Chart Editor, choose Elements > Data Label Mode, then click the point. Label only the points you discuss.
Should the equation appear on the plot? It is optional. APA style puts the numbers in the text; the figure shows the pattern.
Related guides
- How to report a Pearson correlation in APA 7: the r that goes with this plot
- How to report a simple linear regression in APA 7: the full regression write-up
- How to report effect sizes in APA 7: R² and r as effect sizes
- Bar graph with error bars in APA style: when the predictor is a set of groups