Free tools › Linear regression calculator

Linear regression calculator

Paste matching x and y values (same order, same count). You get the fitted line, the statistics and a plot.

Formulas

Slope b₁ = Sxy / Sxx example: 0.1994 Intercept b₀ = ȳ − b₁x̄ example: 10.0533 R² 1 − SSE / SST example: 0.9972 Slope test t = b₁ / (s / √Sxx), df = n − 2 example: t = 38.00, p = 2.86e-6

Read more: Linear regression guide · Regression in DMAIC · t table

FAQ

What does R² mean?

The share of the variation in y that the straight line explains. R² = 0.9 means 90% of the variation in y moves with x. It does not prove that x causes y, and a high R² can still hide a curve: always look at the residuals.

How do I know if the slope is significant?

Test H₀: slope = 0 with t = b₁ / SE(b₁) and n − 2 degrees of freedom. A small p-value means the data give evidence of a linear relationship.

What are residuals for?

A residual is the actual y minus the fitted y. If the line fits, residuals scatter randomly around zero. A curve, a funnel shape or a trend over time means the straight-line model is missing something.

Correlation or regression?

Correlation (r) measures how tightly two variables move together, with no direction. Regression fits an equation that predicts y from x, and depends on which variable you call y.

Can I predict outside my data range?

Be careful. The line is supported only between the smallest and largest x you measured. Extrapolating assumes the relationship stays straight where you have no data.

Regression is tested on the CQE and both Six Sigma exams

This shows up on the exams as a calculation question. Practice it with new numbers every time, and every wrong answer explained.

Free CQE quiz (5 questions)
Free Black Belt diagnostic (25 questions)
Free Green Belt diagnostic (20 questions)

Related free tools

t-test calculator · Confidence interval calculator · DOE effects calculator · F-distribution table · All tools

Link to this calculator

Using it in a training deck, an SOP or a forum answer? Copy this link. It stays free.

Studying for the CQE?

Try 5 free practice questions with an explanation for every wrong answer.

Take the free CQE quiz