Skip to main content

Jinsi ya kukokotoa Linear Regression

Linear Regression ni nini?

The slope and intercept of a linear regression line (ŷ = mx + b) describe the best-fit straight line through a scatter of data points, minimising the sum of squared vertical residuals (OLS).

Mwongozo wa Hatua kwa Hatua

  1. 1m = Σ(xi−x̄)(yi−ȳ) / Σ(xi−x̄)²
  2. 2b = ȳ − m × x̄
  3. 3Slope m has units of y/x
  4. 4Use for prediction: plug x into equation to get ŷ

Mifano Iliyotatuliwa

Ingizo
Height vs weight → slope = 0.65 kg/cm
Matokeo
Each cm of height adds 0.65 kg to predicted weight
Slope interpretation depends on units

Je, uko tayari kukokotoa? Jaribu Kikokotoo kisicholipishwa cha Linear Regression

Jaribu mwenyewe →

Mipangilio

FaraghaMashartiKuhusu© 2026 PrimeCalcPro