The same observations can answer different questions.
Correlation vs Regression: What Is the Difference? Start with the Question
Use Pearson r to summarize a linear association. Use a regression model when you need an explicitly specified response and predictors. Neither statistic, by itself, establishes what would happen if you intervened on a variable. [1] [3] [7] [8]
AcademicFix Editorial Team · Sources reviewed:
Bu rehberi Türkçe okuyun
Three checks before choosing a coefficient
Make the question, units and shape visible before attaching an interpretation.
Association, or a modeled response?
A correlation and a slope describe different features of the same paired observations.
Choose the question02 / Keep the units1 h → 60 minWhy does the slope change?
The invented example keeps its correlation while the slope changes with the time unit.
Inspect the calculation03 / Look beyond one numberr = 0Could the points still form a curve?
A computed quadratic example separates zero linear correlation from no relationship.
See the counterexampleFor thesis and article researchers deciding how to describe paired numeric observations. The worked fits use unweighted simple ordinary least squares with an intercept. This guide does not validate a real dataset, prescribe universal sample-size or diagnostic cutoffs, or replace a causal analysis plan.
On this page
1. Specify the question and variable roles
Pearson correlation summarizes a linear relationship between paired values. Its formula treats the two variables symmetrically. Regression instead specifies a response and predictors; ordinary least squares estimates parameters by minimizing squared deviations between the response and fitted values. [1] [2] [3] [4]
Our planning recommendation: write either “How strongly are X and Y linearly associated?” or “How does the modeled response Y vary with specified predictors?” before opening the software. Naming X a predictor does not establish temporal order or causality. NIST distinguishes association from cause and effect; Freedman distinguishes selecting records with X = x from intervening to set X = x. [7] [8]
A coefficient adjusted for other predictors is conditional on that specified model. Record which variables were included and why. This introduction does not give an automatic rule that any directional hypothesis requires a particular model.
2. Same observations, different units: a worked comparison
All values are invented for teaching; these are not research findings. Let X be 1, 2, 3, 4, 5, 6, 7, 8 hours and Y be 55, 58, 57, 63, 62, 68, 70, 71 points. Fit Y on X with an intercept, then express exactly the same X values in minutes by multiplying by 60.
| X unit | Pearson r | Slope b | Intercept | R² |
|---|---|---|---|---|
| Hours | 0.9687 | 2.4286 points/hour | 52.0714 points | 0.9383 |
| Minutes | 0.9687 | 0.04048 points/minute | 52.0714 points | 0.9383 |
Recomputed with cor and lm in R 4.6.1. The hourly fitted line is ŷ = 52.0714 + 2.4286X. The minute-based slope is the hourly slope divided by 60; r is unchanged apart from numerical precision. These are calculations on the listed arrays, not evidence that more study time causes higher scores. The correlation formula and least-squares model explain the different roles of scaling. [1] [3] [4]
For this simple unweighted fit with an intercept and the same complete pairs, r² equals R²: approximately 0.9383. SciPy documents the identity for its simple regression routine; R defines the model R² through residual and total sums of squares. Do not turn this example into a rule that every multiple, weighted or intercept-free model has the same identity. [5] [6]
Decision: report r when describing the linear association. If reporting b, retain its response-per-predictor units and name the fitted model. Neither a large r nor a large R² substitutes for checking the data pattern or model fit. [1] [9]
3. Zero linear correlation can coexist with a visible curve
In a second invented example, X is −3, −2, −1, 0, 1, 2, 3 and Y = X², giving Y values 9, 4, 1, 0, 1, 4, 9. R computes Pearson r = 0 for these seven pairs, although Y is determined by X. This is a finite teaching counterexample, not a population estimate or a claim about a real study.
SciPy explicitly illustrates dependence with zero Pearson correlation. NIST shows that scatter plots reveal nonlinear patterns and outlying observations that a linear summary can miss. Inspect the point pattern before interpreting a small coefficient as absence of a relationship. [1] [7]
Our plot note: record the visible form, whether spread changes across X, and which observations deserve a data-record check. Do not delete a value solely to obtain a preferred coefficient or p-value. This is an editorial data-audit recommendation.
4. Separate a computable coefficient from its inferential assumptions
A descriptive coefficient and a p-value or confidence interval are different outputs. R separates cor from cor.test; the Pearson test documentation describes its distributional conditions. SciPy likewise distinguishes its coefficient formula from the assumptions of its default test and alternative resampling options. [2] [11] [1]
Our workflow: identify the independent observational units, missing-data handling, coefficient and inferential method. Check the documentation for that method rather than using one normality p-value as permission for every analysis. R documents different complete-case and pairwise options; changing the records used can change what is being compared. [2] [4]
This page provides no universal VIF, Durbin-Watson, skewness, kurtosis or “N = 50 + 8k” acceptance rule. Those legacy shortcuts have been removed. A diagnostic recommendation must be justified for the particular model, design and inferential procedure.
5. Match each diagnostic to the question it checks
NIST warns that high R² does not guarantee a good fit and emphasizes graphical residual analysis. R lists residuals-versus-fitted, residual Q-Q, scale-location and influence plots as distinct diagnostics. A Q-Q plot does not answer the same question as a residuals-versus-fitted plot. [9] [10]
- Inspect the response/predictor scatter plot for the proposed functional form.
- For a fitted model, describe residual patterns and changing spread.
- Investigate influential observations in their data context.
- Use the study design to assess dependence between observations.
- Document the assumptions needed for your chosen intervals, tests or predictions.
This is a review checklist, not a declaration that these observations satisfy any model. Out-of-sample prediction and extrapolation require their own evaluation; NIST explicitly cautions about extrapolation and unusual observations. [3] [8]
6. Write the result without adding an untested claim
“For eight invented teaching pairs, Pearson r = 0.9687. The simple unweighted regression of points on hours, with an intercept, gave b = 2.4286 points/hour and R² = 0.9383. These descriptive calculations do not establish a causal effect or validate prediction for new observations.”
For an actual study, add the sample definition, missing-data treatment, software/version, relevant uncertainty estimates and diagnostics you actually performed. Report the exact model and coefficient units. Do not copy the example as a real result or describe a plot you have not inspected.
Reproduce both teaching examples in R
x <- 1:8
y <- c(55, 58, 57, 63, 62, 68, 70, 71)
minutes <- 60*x
cor(x, y)
coef(lm(y ~ x))
coef(lm(y ~ minutes))
summary(lm(y ~ x))$r.squared
u <- -3:3
cor(u, u^2)
R.version.stringTwo interpretation traps
Does a significant regression coefficient establish a causal effect?
The coefficient alone does not establish what an intervention would do. Causal interpretation requires a defensible design and additional assumptions; a fitted equation does not supply them automatically.
Can I choose the method from one normality p-value?
No. First state the question, variable roles and estimand. Distinguish calculating a descriptive coefficient from the assumptions used for its test or interval; then inspect relevant diagnostics.
Sources and review boundaries
Relevant source sections were read on 20 October 2026. The 1994 technical report supports the narrow distinction between observational conditioning and intervention; it is not presented as a verdict on all modern causal methods. No real dataset was analyzed and no journal-specific threshold was verified.
- SciPy: Pearson correlation
Definition, formula, inference conditions and examples of dependence with zero correlation.
- R: correlation and covariance
Usage and Details: Pearson/rank methods and complete-case versus pairwise handling.
- NIST: linear least squares regression
Model definition, minimization of squared deviations, extrapolation and outlier limitations.
- R: fitting linear models
Formula, response and predictor roles, intercept, weights and missing observations.
- SciPy: simple linear regression
Returned slope, intercept, r-value, coefficient of determination and inferential standard errors.
- R: summaries of linear models
Value: coefficients, residuals, R-squared and its intercept-dependent definition.
- NIST: scatter plots and association
Questions answered by a scatter plot; causality is not proved by association.
- Freedman: From association to causation via regression
1994 original technical report, introduction and Section 3: selecting observations versus intervening on a variable.
- NIST: checking model fit
R-squared is not enough; residual definitions and graphical validation.
- R: linear-model diagnostic plots
Description and Details: residual/fitted, Q-Q, scale-location and influence diagnostics.
- R: tests for correlation
Details: Pearson test conditions, complete pairs and Fisher-transform confidence intervals.
Continue from the coefficient to the analysis plan
- Distinguish a normality result from proof of model validity
- Read p-values alongside effect sizes and confidence intervals
- Place verified results in a clearly labeled table