MathCalcLab
Language

Linear Regression

Perform linear regression analysis with correlation and prediction

Format: Enter x,y pairs (one per line)

Example: 1, 2 or 1 2 (comma or space separated)

Results

Enter values and click Calculate to see the result.

common.theory.linearRegression

common.theory.linearRegressionDescription

  • Slope (m): common.theory.slopeDescription
  • Intercept (b): common.theory.interceptDescription
  • : common.theory.rSquaredDescription
  • Correlation (r): common.theory.correlationDescription

common.theory.regressionLineExplanation

\(y = mx + b, m = \frac{n\sum xy - \sum x \sum y}{n\sum x^2 - (\sum x)^2}, b = \bar{y} - m\bar{x}\)

Worked Examples

common.theory.example1

\(\text{Points: } (1,2), (2,4), (3,5), (4,4), (5,5) \rightarrow y = 0.6x + 2.2, R^2 = 0.64\)

common.theory.example2

\(\text{Study hours vs test scores} \rightarrow \text{Find relationship and predict outcomes}\)
Linear Regression Calculator | MathCalcLab | MathCalcLab