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:
The variance is:
The standard deviation is:
The covariance between the treatment and outcome is:
The correlation between the treatment and outcome is:
Regression
A regression line passes through two points:
and
Take the generic equation form of a line:
Insert the first point into this form.
This can be trivially rewritten to solve for a in terms of b:
Insert the second point into the original form.
Now additionally insert the solution for a in terms of b.
Expand all terms to produce:
This can now be eliminated into:
Giving a solution for b:
This solution is trivially rewritten as:
Expand the formula for correlation as:
This can now be eliminated into:
Finally, b can be eloquently written as:
Giving a generic formula for the regression line: