Differences between revisions 4 and 6 (spanning 2 versions)
Revision 4 as of 2023-10-28 05:00:22
Size: 1918
Comment: Regression
Revision 6 as of 2023-10-28 05:32:36
Size: 1022
Comment: Estimates and residuals
Deletions are marked like this. Additions are marked like this.
Line 39: Line 39:
Based on [[Econometrics/LinearRegression|regression]], the estimated outcome for observation ''i'' is:
Line 40: Line 41:
{{attachment:estimate.svg}}
Line 41: Line 43:
== Regression == And the residual is:
Line 43: Line 45:
A regression line passes through two points:

{{attachment:regression1.svg}}

and

{{attachment:regression2.svg}}

Take the generic equation form of a line:

{{attachment:b01.svg}}

Insert the first point into this form.

{{attachment:b02.svg}}

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

{{attachment:b03.svg}}

Insert the second point into the original form.

{{attachment:b04.svg}}

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

{{attachment:b05.svg}}

Expand all terms to produce:

{{attachment:b06.svg}}

This can now be eliminated into:

{{attachment:b07.svg}}

Giving a solution for ''b'':

{{attachment:b08.svg}}

This solution is trivially rewritten as:

{{attachment:b09.svg}}

Expand the formula for correlation as:

{{attachment:b10.svg}}

This can now be eliminated into:

{{attachment:b11.svg}}

Finally, ''b'' can be eloquently written as:

{{attachment:b12.svg}}

Giving a generic formula for the regression line:

{{attachment:b13.svg}}
{{attachment:residual.svg}}

Econometrics Notation

Data

The number of observations is n.

The outcome variable is y. For observation i, the outcome value is yi.

The treatment variable is x1. For observation i, the treatment value is x1i.

The control variables are x2 through xk (up to k - 1 control variables). For observation i, a control value might be x2i.

Statistics

The average outcome is:

average.svg

The variance is:

variance.svg

The standard deviation is:

sd.svg

The covariance between the treatment and outcome is:

covariance.svg

The correlation between the treatment and outcome is:

correlation.svg

Based on regression, the estimated outcome for observation i is:

estimate.svg

And the residual is:

residual.svg


CategoryRicottone

Statistics/EconometricsNotation (last edited 2025-01-10 14:15:50 by DominicRicottone)