Size: 486
Comment: Partial 3?
|
Size: 724
Comment: Simplify
|
Deletions are marked like this. | Additions are marked like this. |
Line 1: | Line 1: |
= Ordinary Least Squares Multivariate Proof = | = OLS Multivariate Derivation = |
Line 21: | Line 21: |
The partial derivative of this constraint with regard to ''b'' is calculated like: | The [[Calculus/PartialDerivatives|partial derivative]] of this constraint with respect to ''b'' is calculated like: |
Line 23: | Line 23: |
{{attachment:b1.svg}} {{attachment:b2.svg}} Set this derivative to 0 to find the minimum with respect to ''b''. {{attachment:b3.svg}} {{attachment:b4.svg}} {{attachment:b5.svg}} {{attachment:b6.svg}} |
OLS Multivariate Derivation
The model is constructed like:
where:
y and ε are vectors of size n
β is a vector of size p
X is a matrix of shape n by p
This is estimated as:
with the constraint:
The partial derivative of this constraint with respect to b is calculated like:
Set this derivative to 0 to find the minimum with respect to b.