Simple linear regression: Difference between revisions

Content deleted Content added
Expanded Formulas: added a citation showing what has proved to be correct matrix polarity
m Expanded Formulas: Minor clarifications
Line 44:
 
=== Expanded Formulas ===
The above equations are efficient to use if the mean of the x and y variables (<math>\bar{x} \text{ and } \bar{y}</math>) are known. If the means are not known at the time of calculation, it may be more efficient to use the expanded version of the <math>\widehat\alpha\text{ and }\widehat\beta</math> equations. These expanded equations may be derived from the more general [[polynomial regression]] equations<ref name=":1" /><ref>{{Cite web |title=Mathematics of Polynomial Regression |url=http://polynomialregression.drque.net/math.html |website=Polynomial Regression, A PHP regression class}}</ref> by defining the regression polynomial to be of order 1, as follows.
 
<math>\begin{bmatrix}
Line 62:
</math>
 
StandThe above linear equations may be solved directly, or stand-alone equations for <math>\widehat\alpha\text{ and }\widehat\beta</math> may be derived by expanding the matrix equations above. The resultant equations are algebraically equivalent to the ones shown in the prior paragraph, and are shown below without proof.<ref>{{Cite web |title=Numeracy, Maths and Statistics - Academic Skills Kit, Newcastle University |url=https://www.ncl.ac.uk/webtemplate/ask-assets/external/maths-resources/statistics/regression-and-correlation/simple-linear-regression.html |url-status=live |access-date=30 Jan 2024 |website=Simple Linear Regression}}</ref><ref name=":1">{{Cite web |last=Muthukrishnan |first=Gowri |date=17 Jun 2018 |title=Maths behind Polynomial regression, Muthukrishnan |url=https://muthu.co/maths-behind-polynomial-regression/ |url-status=live |access-date=30 Jan 2024 |website=Maths behind Polynomial regression}}</ref>
 
<math>\begin{align}