Regression · ~7 min read
Simple Linear Regression and What R2 Means
One predictor, one continuous outcome, and two numbers that answer completely different questions about the same line.
In short
Simple linear regression fits a straight line through one predictor and one continuous outcome — the same line Excel draws when you tick “Add Trendline,” the same line behind the R² value it prints next to it. The slope estimates the average change in the outcome per one-unit change in the predictor, and its 95% confidence interval is the range of slopes the data are consistent with; a CI that excludes zero means the association is unlikely to be chance alone, nothing more.2 R² is the proportion of variance in the outcome explained by the predictor, not a percentage of patients correctly classified and not a grade on the model2,5 — a slope can be highly significant with an R² under 20%, and both numbers can be true about the same line at once. Neither the slope nor the line implies the predictor causes the outcome, particularly in observational data.4
The line almost everyone has already drawn
Open a results table, right-click a scatterplot in Excel, choose “Add Trendline,” tick “Display R-squared value on chart,” and a line and a number appear. Almost nobody drafting a manuscript figure thinks of that click as running a statistical test. It is one. The line Excel fits is the ordinary least-squares regression line — the same line, the same slope, the same R² that SPSS's Linear Regression procedure returns when the predictor and outcome are the same two columns.1 The corpus of methods advice a resident is likely to have read covers multiple linear regression, with several predictors, and logistic regression, with a binary outcome. The single-predictor, continuous-outcome case underneath both of them — the trendline everyone has already drawn without naming it — rarely gets its own explanation of what the two numbers on the chart actually claim.
What the slope and its confidence interval actually claim
The regression coefficient, or slope, is the estimated average change in the outcome variable for a one-unit increase in the predictor.1 That definition is doing more work than it looks like: the number is only interpretable in the units the predictor was measured in. A regression of body weight on height returns a slope of roughly 1.16 kg per centimetre; measure the same relationship in metres instead and the slope becomes roughly 115.9 kg per metre — the same underlying relationship, a very different-looking number, and a result that means nothing to a reader unless the units are stated alongside it.4
Whether that slope is distinguishable from a flat line (no relationship at all) is tested with a t statistic, and the 95% confidence interval around the slope is built from the same standard error: slope ± (critical t value × standard error).2 If that interval excludes zero, the data are inconsistent with no linear relationship at conventional confidence — the same conclusion the t test and its P value give, reported as a range instead of a threshold. The interval says nothing about how much of the outcome the predictor explains; that is a separate question, answered by a separate number.
R² is not a grade, and it is not accuracy
R², the coefficient of determination, is the proportion of the total variability in the outcome that the regression line accounts for — formally, the explained sum of squares divided by the total sum of squares.2 An R² of 0.17 means the predictor accounts for 17% of the variation in the outcome across the sample; it does not mean the model is 17% accurate, and it is not a percentage of patients whose outcome the line “got right.” A model can have an entirely valid, statistically significant slope and still leave the large majority of the outcome's variability unexplained, because most clinical and physiological outcomes are driven by more than one variable at once.5
What counts as a meaningful R² also depends on the field, not on a fixed universal cutoff: values that would be unremarkable in physical-science measurement are often unrealistic in clinical medicine, where an R² is doing the work of standing in for genetics, comorbidity, technique, and everything else that also drives the outcome.5 The number to report is R² itself, in the same sentence as the slope and its confidence interval — not a paraphrase of R² as how “good” or how “predictive” the model is.
A significant slope is an association, not a causal claim. Before a regression is run at all, the causal question — does it make biological or temporal sense that the predictor could plausibly drive the outcome, and not the reverse — has to be settled by the study design, not by the regression output.4 That the predictor's coefficient is statistically significant says nothing about causality on its own; it is a particularly relevant caution in observational and retrospective data, which is most of what a single-predictor regression in a surgical dataset is built on.4
A worked example
The following is illustrative, constructed for demonstration and not drawn from a real dataset. Suppose a single-centre series of 64 primary total hip arthroplasties records operative time (minutes) and estimated intraoperative blood loss (mL) for each case. A simple linear regression of blood loss on operative time returns a slope of 4.8 mL per minute (95% CI, 2.1-7.5), t62 = 3.56, P < .001, and R² = 0.17. Written up in AMA format: “Operative time was positively associated with intraoperative blood loss (b = 4.8 mL/min; 95% CI, 2.1-7.5; R² = 0.17; P < .001).” Both things are true about that one line at once: the association is unlikely to be chance (the CI clears zero comfortably), and operative time on its own explains less than a fifth of why blood loss varied from patient to patient. A discussion section that reports the slope and CI but drops R² overstates how complete the explanation is; one that reports R² as “the model was 17% accurate” has converted a variance statistic into an accuracy statistic it was never built to be.
How to run it — SPSS vs StatsPlease
In IBM SPSS Statistics (documentation current to version 32), the path is Analyze ▸ Regression ▸ Linear….3 The outcome variable goes in the “Dependent” box and the single predictor goes in “Independent(s).” Under Statistics, “Estimates” is ticked by default and returns the coefficient, standard error, standardised beta, t, and significance; ticking “Confidence intervals” adds the range for each coefficient to the same table. Two output tables carry the numbers that matter: “Model Summary,” where R and R² live, and “Coefficients,” where the slope (unstandardised B), its confidence interval, t, and P value live. The most common misread is reading the standardised Beta in the Coefficients table as if it were the slope in the predictor's real units — it isn't, and it won't match the number you'd report in a Methods sentence.
In StatsPlease, the process collapses into upload and read. Upload the dataset (or the relevant columns). StatsPlease's deterministic engine identifies the appropriate test from the variable type and study design, checks the relevant assumptions, computes the result using fixed, non-LLM algorithms, and drafts the Methods/Results sentence in AMA format — the same number a reader would get running the test by hand in SPSS.
You might also read
References
- Kim HY. Statistical notes for clinical researchers: simple linear regression 1 – basic concepts. Restor Dent Endod. 2018;43(2):e21.
- Kim HY. Statistical notes for clinical researchers: simple linear regression 2 – evaluation of regression line. Restor Dent Endod. 2018;43(3):e34.
- Kim HY. Statistical notes for clinical researchers: simple linear regression 3 – residual analysis. Restor Dent Endod. 2019;44(1):e11.
- Schneider A, Hommel G, Blettner M. Linear regression analysis: part 14 of a series on evaluation of scientific publications. Dtsch Arztebl Int. 2010;107(44):776-782.
- Gupta A, Stead TS, Ganti L. Determining a meaningful R-squared value in clinical medicine. Acad Med Surg. 2024;1. doi:10.62186/001c.125154.
The trendline click and the regression are the same calculation — the only question is whether the slope, its interval, and R² get reported as what they actually are.
StatsPlease's deterministic engine fits the regression line from your uploaded predictor and outcome columns, checks linearity, independence, homoscedasticity, and normality of residuals before reporting a result, and returns the slope, its 95% confidence interval, R², and the P value together with the AMA-format sentence for your results section — the same numbers you would get running the test by hand in SPSS.
Try StatsPlease free