DATA
One row per participant
Paste columns from Excel, SPSS, or Google Sheets with a header row of variable names. Values can be separated by tabs, spaces, or commas.
Predictors (X):
LINEAR REGRESSION CALCULATOR
DATA
Paste columns from Excel, SPSS, or Google Sheets with a header row of variable names. Values can be separated by tabs, spaces, or commas.
Predictors (X):
METHOD
Simple linear regression predicts one numeric outcome (Y) from one predictor (X): Y = b₀ + b₁X. Multiple regression adds more predictors: Y = b₀ + b₁X₁ + b₂X₂ + … Each coefficient is the expected change in Y for a one-unit increase in that predictor, holding the other predictors constant.
b = (XᵀX)⁻¹Xᵀy, SE(bⱼ) = √[MSE · (XᵀX)⁻¹ⱼⱼ], t = bⱼ ÷ SE(bⱼ), df = N − k − 1Ordinary least squares chooses the coefficients that minimise the sum of squared residuals. The standardised coefficient β = B × SDₓ ÷ SDᵧ lets you compare predictors measured on different scales.
R² = SS_regression ÷ SS_total, adj. R² = 1 − (1 − R²)(N − 1) ÷ (N − k − 1), F = (SS_reg ÷ k) ÷ MSER² is the proportion of variance in the outcome explained by the model. Adjusted R² penalises extra predictors and is better for comparing models. The F test checks whether the model as a whole predicts better than the mean. Cohen's f² = R² ÷ (1 − R²) gives .02 small, .15 medium, and .35 large.
“A multiple linear regression was run to predict exam score from study hours and sleep. The model was significant, F(2, 12) = 27.22, p < .001, R² = .82, adjusted R² = .79. Study hours (B = 3.26, β = .76, t = 6.19, p < .001) and sleep (B = 4.29, β = .44, t = 3.57, p = .004) were both significant predictors.” In a table, report B, SE, β, t, p, and the 95% CI for each predictor.
ABOUT THIS TOOL
Run simple or multiple OLS regression from pasted columns, with SPSS-style model summary, ANOVA and coefficients tables, assumption diagnostics, a residual plot, and a ready APA sentence.
KEY FUNCTIONS
LEARN THE METHOD
Measure the strength and direction of a relationship between two variables, with the right coefficient for your data, a confidence interval, a scatter plot with the regression line, and a ready APA sentence.
Check whether a mediator carries the effect of X on Y, with three classic z tests, the proportion mediated, and clear guidance on when bootstrapping is better.
Get the effect size for any common test in seconds, from raw summary statistics or from a reported t, F, or z value, with benchmarks and APA wording.