R squared calculator

R squared calculator can be used to determine how well a linear regression model fits the data by providing the total sum of squares (SST), the sum of squares of the regression (SSR), and optionally, the sum of squares of the residuals (SSE).

Input Parameters

Calculation Results

Calculation Formula

R² = 1 - (SSE / SST)

Where:
R² is the coefficient of determination.
SST is the total sum of squares.
SSR is the sum of squares of regression.
SSE is the sum of squares of residuals.

Result

R² =

R squared calculator Calculator Usage Guide

Learn how to use the R squared calculator calculator and its working principles

Introduction

R-squared, or the coefficient of determination, is a statistical measure that represents the proportion of the variance for a dependent variable that's explained by an independent variable or variables in a regression model.

How to Use the Calculator

  1. Enter the Total Sum of Squares (SST). This is the sum of the squared differences between the observed values and the mean of the observed values.
  2. Enter the Sum of Squares of Regression (SSR). This is the sum of the squared differences between the predicted values and the mean of the observed values.
  3. Optionally, enter the Sum of Squares of Residuals (SSE). If not provided, it will be calculated as SST - SSR.
  4. Click the "Calculate" button to compute the R-squared value.

Interpreting the Result

The R-squared value ranges from 0 to 1. A value closer to 1 indicates that a large proportion of the variance in the dependent variable is explained by the independent variable(s), suggesting a better fit of the model to the data. Conversely, a value closer to 0 indicates that the model explains very little of the variability of the response data around its mean.