Simple Linear Regression Calculator
Instructions:
- Paste your two-column data below, with a header row.
- Click "Load Data" and then select your X and Y variables.
- 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̄
b₀ = ȳ - b₁x̄
R-squared (R²):
R² = SSReg / SSTotal
Where:
x̄, ȳ = Means of X and Y
b₁ = Slope
b₀ = Y-intercept