Gebruiker:Pjetter/klad: verschil tussen versies

Verwijderde inhoud Toegevoegde inhoud
Pjetter (overleg | bijdragen)
Pjetter (overleg | bijdragen)
Regel 208:
:<math>\hat{y} = 49.48 + 1.96{x}</math>
 
: <math> y_i = \beta x_i + \varepsilon_i. \, </math>
 
The sum of squares to be minimized is
 
:<math> S = \sum_{i=1}^{n} \left(y_iY_i - \hat\beta x_i\right)^2. </math>
 
So we do some derivation and you get for minimization the derivative is set to 0:
 
:<math> \frac {\delta} {\delta {\beta}} \sum_{i=1}^{n} \left(y_iY_i - \hat\beta x_i\right)^2 = -2 \sum_{i=1}^{n} \left(y_iY_i - \hat\beta x_i\right) = 0</math>
 
Divide both sides by -2 and you get:
 
:<math> \sum_{i=1}^{n} \left(y_iY_i - \hat\beta x_i\right) = 0</math>
 
This you can rewrite as:
 
:<math> \sum_{i=1}^{n} y_iY_i = \hat\beta \sum_{i=1}^{n} x_i </math>
 
Let's multiply with:
Regel 231:
and you get:
 
:<math> \sum_{i=1}^{n} x_i \sum_{i=1}^{n} y_iY_i = \hat\beta (\sum_{i=1}^{n} x_i)^2 </math>
 
This can be rewritten as:
 
:<math> \sum_{i=1}^{n} x_i y_iY_i = \hat\beta (\sum_{i=1}^{n} x_i)^2 </math>
 
And therefore the least squares estimate for ''&beta;'', is given by
 
:<math>\hat \beta=\frac{\sum_i^{n} x_i y_iY_i}{\sum_i^{n} x_iY_i^2}.</math>
 
:<math>\hat \beta=\frac{\sum_i^{n} x_i y_i}{\sum_i^{n} x_i^2}</math>
 
==SSR==
Informatie afkomstig van https://nl.wikibooks.org Wikibooks NL.
Wikibooks NL is onderdeel van de wikimediafoundation.