Linear Regression

Simple Linear Regression Calculator

Instructions:

  1. Paste your two-column data below, with a header row.
  2. Click "Load Data" and then select your X and Y variables.
  3. Click "Run Analysis" to get the regression equation and R-squared value.

Formulas Used

This calculator uses the following formulas for simple linear regression:

Regression Equation:

Ŷ = b₀ + b₁X

Coefficients:

b₁ = Σ((xᵢ - x̄)(yᵢ - ȳ)) / Σ(xᵢ - x̄)²
b₀ = ȳ - b₁x̄

R-squared (R²):

R² = SSReg / SSTotal

Where:
x̄, ȳ = Means of X and Y
b₁ = Slope
b₀ = Y-intercept


Featured Post

Research & Study Toolkit

🔊 Listen to This Page Note: You can click the respective Play button for either Hindi or English below. ...