Home / Statistics Topics

Module 6 · Regression & Correlation · Topic 6

R-Squared

Coefficient of Determination (R²). R² is the proportion of the total variation in y that is explained by the linear relationship with x. For the usual in-sample least-squares regression with an intercept and nonconstant y, it ranges from 0 (no explanatory power) to 1 (perfect prediction).

Relationship to r. For simple linear regression, R² = r². If r = 0.8, then R² = 0.64, meaning 64% of the variation in y is explained by x.

Open the interactive lessonAll topics

Key formulas

R² Formula

R² = 1 − (SSE / SST), where SST = Σ(yᵢ − ȳ)² and SSE = Σ(yᵢ − ŷᵢ)²

From the Regression & Correlation formula sheet

  • Least-Squares Regression Line: yhat = a + bx — Line that minimizes the sum of squared residuals.
  • Pearson Correlation: r = sum((x_i-xbar)(y_i-ybar)) / sqrt(sum((x_i-xbar)^2)sum((y_i-ybar)^2)) — Measures direction and strength of a linear association.

See the full formula reference

Worked example

Interpretation Example

A regression of test scores on study hours gives R² = 0.72. This means 72% of the variation in test scores can be explained by the linear relationship with study hours. The remaining 28% is unexplained by this linear model.

Related glossary terms

  • Residual: The observed value minus the predicted value. Example: If y = 12 and yhat = 9, the residual is 3.

Browse the full glossary

Go interactive

Work this topic in StatRise

Start with the free descriptive-statistics module and daily practice; this module's tracked lesson unlocks with Premium.

Regression & Correlation lesson (Premium)Regression calculatorsRegression Lab simulationPractice questions

Free statistics guides

Related in-depth guides

  • How to Choose the Right Statistical Test8 min read
  • Hypothesis Testing Explained: The Five Steps, Worked Through8 min read

Keep reading

More topics

Previous: Least Squares MethodNext: Residual AnalysisAll statistics topics
CalculatorsLessonsPracticeGuidesTopicsPremiumRestore purchasePrivacyTerms

© 2026 StatRise. Statistics calculators, lessons, practice, and simulations — progress stays in your browser, no account required.

More study tools: CalcRef · Discretica · ScoreMint · PhysRef