The slope and the intercept of the regression line are computed directly from the data with the following formulae.
Property — Least-squares formulae
where and are the means.
The line always passes through the point (centroid of the data).
Links
Topics: Radicals
Concepts: Least squares · Linear regression
Skills: Analytic geometry · Using formulae