Differences between revisions 1 and 2
Revision 1 as of 2023-10-28 16:16:10
Size: 1172
Comment: Extracted this content from main page for OLS
Revision 2 as of 2024-06-05 20:41:15
Size: 1289
Comment: Rewrite 1
Deletions are marked like this. Additions are marked like this.
Line 2: Line 2:

The model is constructed like:

{{attachment:model1.svg}}

This is estimated as:

{{attachment:model2.svg}}

Ordinary Least Squares Univariate Proof

The model is constructed like:

model1.svg

This is estimated as:

model2.svg

As a starting point, the regression line must pass through these two points:

[ATTACH]

and

[ATTACH]

Take the generic equation form of a line:

[ATTACH]

Insert the first point into this form.

[ATTACH]

This can be trivially rewritten to solve for a in terms of b:

[ATTACH]

Insert the second point into the original form.

[ATTACH]

Now additionally insert the solution for a in terms of b.

[ATTACH]

Expand all terms to produce:

[ATTACH]

This can now be eliminated into:

[ATTACH]

Giving a solution for b:

[ATTACH]

This solution is trivially rewritten as:

[ATTACH]

Expand the formula for correlation as:

[ATTACH]

This can now be eliminated into:

[ATTACH]

Finally, b can be eloquently written as:

[ATTACH]

Giving a generic formula for the regression line:

[ATTACH]


CategoryRicottone

Statistics/OrdinaryLeastSquares/Univariate (last edited 2025-01-10 14:33:54 by DominicRicottone)