Derivation of the ordinary least squares estimator β1 and the sampling distribution?
$begingroup$
I am trying to derive the ordinary least squares and its sampling distribution for the model:
$$y = beta_0 + beta_1 x + epsilon$$
How can I obtain the estimator for $beta_1$
least-squares
$endgroup$
add a comment |
$begingroup$
I am trying to derive the ordinary least squares and its sampling distribution for the model:
$$y = beta_0 + beta_1 x + epsilon$$
How can I obtain the estimator for $beta_1$
least-squares
$endgroup$
add a comment |
$begingroup$
I am trying to derive the ordinary least squares and its sampling distribution for the model:
$$y = beta_0 + beta_1 x + epsilon$$
How can I obtain the estimator for $beta_1$
least-squares
$endgroup$
I am trying to derive the ordinary least squares and its sampling distribution for the model:
$$y = beta_0 + beta_1 x + epsilon$$
How can I obtain the estimator for $beta_1$
least-squares
least-squares
edited Dec 13 '18 at 19:07
Waqas
15913
15913
asked Dec 12 '18 at 19:17
Alex SimionAlex Simion
204
204
add a comment |
add a comment |
1 Answer
1
active
oldest
votes
$begingroup$
You could solve the following optimisation problem:
$$R=min_{beta_0,beta_1}left(y_i-hat{beta}_0+hat{beta}_1x_iright)^2$$
Now differentiating the above with respect to $hat{beta}_0$ and $hat{beta}_1$ and setting to zero i.e.
$$frac{partial R}{partial hat{beta}_0}=sum_{i=1}^N-2(y_i-hat{beta}_0-hat{beta}_1x_i)=0$$
and
$$frac{partial R}{partial hat{beta}_1}=sum_{i=1}^N-2x_i(y_i-hat{beta}_0-hat{beta}_1x_i)=0$$
By simple algebric manupulation and the fact that $sum_i^N y_i=Nbar{y}$ we get the following:
$$hat{beta}_0=bar{y}-hat{beta}_1bar{x}$$
Similarly, by some manipulation you should obtain:
$$hat{beta}_1=frac{sum_{i=1}^N(x_i-bar{x})(y_i-bar{y})}{sum_{i=1}^N(x_i-bar{x})^2}$$
You could also use matrix notation instead i.e. $y,epsiloninmathbb{R}^n$, $betainmathbb{R}^{ktimes 1}$ and $Xinmathbb{R}^{ntimes k}$. So, you are solving essentially:
$$y=Xbeta + epsilon$$
To obtain the estimator you minimise the squared sum of errors i.e. $epsilon'epsilon=y'y-2hat{beta}'X'y+hat{beta}'X'Xhat{beta}$. By doing so we obtain:
$$hat{beta}=(X'X)^{-1}X'y$$
From Gauss-Markov theorem (and assumptions) $hat{beta}$ is normally distributed with mean $beta$ and variance $sigma^2(X'X)^{-1}$. I will stop here. For further details please see this
$endgroup$
add a comment |
Your Answer
StackExchange.ifUsing("editor", function () {
return StackExchange.using("mathjaxEditing", function () {
StackExchange.MarkdownEditor.creationCallbacks.add(function (editor, postfix) {
StackExchange.mathjaxEditing.prepareWmdForMathJax(editor, postfix, [["$", "$"], ["\\(","\\)"]]);
});
});
}, "mathjax-editing");
StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "69"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});
function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
noCode: true, onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});
}
});
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmath.stackexchange.com%2fquestions%2f3037109%2fderivation-of-the-ordinary-least-squares-estimator-%25ce%25b21-and-the-sampling-distribut%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
$begingroup$
You could solve the following optimisation problem:
$$R=min_{beta_0,beta_1}left(y_i-hat{beta}_0+hat{beta}_1x_iright)^2$$
Now differentiating the above with respect to $hat{beta}_0$ and $hat{beta}_1$ and setting to zero i.e.
$$frac{partial R}{partial hat{beta}_0}=sum_{i=1}^N-2(y_i-hat{beta}_0-hat{beta}_1x_i)=0$$
and
$$frac{partial R}{partial hat{beta}_1}=sum_{i=1}^N-2x_i(y_i-hat{beta}_0-hat{beta}_1x_i)=0$$
By simple algebric manupulation and the fact that $sum_i^N y_i=Nbar{y}$ we get the following:
$$hat{beta}_0=bar{y}-hat{beta}_1bar{x}$$
Similarly, by some manipulation you should obtain:
$$hat{beta}_1=frac{sum_{i=1}^N(x_i-bar{x})(y_i-bar{y})}{sum_{i=1}^N(x_i-bar{x})^2}$$
You could also use matrix notation instead i.e. $y,epsiloninmathbb{R}^n$, $betainmathbb{R}^{ktimes 1}$ and $Xinmathbb{R}^{ntimes k}$. So, you are solving essentially:
$$y=Xbeta + epsilon$$
To obtain the estimator you minimise the squared sum of errors i.e. $epsilon'epsilon=y'y-2hat{beta}'X'y+hat{beta}'X'Xhat{beta}$. By doing so we obtain:
$$hat{beta}=(X'X)^{-1}X'y$$
From Gauss-Markov theorem (and assumptions) $hat{beta}$ is normally distributed with mean $beta$ and variance $sigma^2(X'X)^{-1}$. I will stop here. For further details please see this
$endgroup$
add a comment |
$begingroup$
You could solve the following optimisation problem:
$$R=min_{beta_0,beta_1}left(y_i-hat{beta}_0+hat{beta}_1x_iright)^2$$
Now differentiating the above with respect to $hat{beta}_0$ and $hat{beta}_1$ and setting to zero i.e.
$$frac{partial R}{partial hat{beta}_0}=sum_{i=1}^N-2(y_i-hat{beta}_0-hat{beta}_1x_i)=0$$
and
$$frac{partial R}{partial hat{beta}_1}=sum_{i=1}^N-2x_i(y_i-hat{beta}_0-hat{beta}_1x_i)=0$$
By simple algebric manupulation and the fact that $sum_i^N y_i=Nbar{y}$ we get the following:
$$hat{beta}_0=bar{y}-hat{beta}_1bar{x}$$
Similarly, by some manipulation you should obtain:
$$hat{beta}_1=frac{sum_{i=1}^N(x_i-bar{x})(y_i-bar{y})}{sum_{i=1}^N(x_i-bar{x})^2}$$
You could also use matrix notation instead i.e. $y,epsiloninmathbb{R}^n$, $betainmathbb{R}^{ktimes 1}$ and $Xinmathbb{R}^{ntimes k}$. So, you are solving essentially:
$$y=Xbeta + epsilon$$
To obtain the estimator you minimise the squared sum of errors i.e. $epsilon'epsilon=y'y-2hat{beta}'X'y+hat{beta}'X'Xhat{beta}$. By doing so we obtain:
$$hat{beta}=(X'X)^{-1}X'y$$
From Gauss-Markov theorem (and assumptions) $hat{beta}$ is normally distributed with mean $beta$ and variance $sigma^2(X'X)^{-1}$. I will stop here. For further details please see this
$endgroup$
add a comment |
$begingroup$
You could solve the following optimisation problem:
$$R=min_{beta_0,beta_1}left(y_i-hat{beta}_0+hat{beta}_1x_iright)^2$$
Now differentiating the above with respect to $hat{beta}_0$ and $hat{beta}_1$ and setting to zero i.e.
$$frac{partial R}{partial hat{beta}_0}=sum_{i=1}^N-2(y_i-hat{beta}_0-hat{beta}_1x_i)=0$$
and
$$frac{partial R}{partial hat{beta}_1}=sum_{i=1}^N-2x_i(y_i-hat{beta}_0-hat{beta}_1x_i)=0$$
By simple algebric manupulation and the fact that $sum_i^N y_i=Nbar{y}$ we get the following:
$$hat{beta}_0=bar{y}-hat{beta}_1bar{x}$$
Similarly, by some manipulation you should obtain:
$$hat{beta}_1=frac{sum_{i=1}^N(x_i-bar{x})(y_i-bar{y})}{sum_{i=1}^N(x_i-bar{x})^2}$$
You could also use matrix notation instead i.e. $y,epsiloninmathbb{R}^n$, $betainmathbb{R}^{ktimes 1}$ and $Xinmathbb{R}^{ntimes k}$. So, you are solving essentially:
$$y=Xbeta + epsilon$$
To obtain the estimator you minimise the squared sum of errors i.e. $epsilon'epsilon=y'y-2hat{beta}'X'y+hat{beta}'X'Xhat{beta}$. By doing so we obtain:
$$hat{beta}=(X'X)^{-1}X'y$$
From Gauss-Markov theorem (and assumptions) $hat{beta}$ is normally distributed with mean $beta$ and variance $sigma^2(X'X)^{-1}$. I will stop here. For further details please see this
$endgroup$
You could solve the following optimisation problem:
$$R=min_{beta_0,beta_1}left(y_i-hat{beta}_0+hat{beta}_1x_iright)^2$$
Now differentiating the above with respect to $hat{beta}_0$ and $hat{beta}_1$ and setting to zero i.e.
$$frac{partial R}{partial hat{beta}_0}=sum_{i=1}^N-2(y_i-hat{beta}_0-hat{beta}_1x_i)=0$$
and
$$frac{partial R}{partial hat{beta}_1}=sum_{i=1}^N-2x_i(y_i-hat{beta}_0-hat{beta}_1x_i)=0$$
By simple algebric manupulation and the fact that $sum_i^N y_i=Nbar{y}$ we get the following:
$$hat{beta}_0=bar{y}-hat{beta}_1bar{x}$$
Similarly, by some manipulation you should obtain:
$$hat{beta}_1=frac{sum_{i=1}^N(x_i-bar{x})(y_i-bar{y})}{sum_{i=1}^N(x_i-bar{x})^2}$$
You could also use matrix notation instead i.e. $y,epsiloninmathbb{R}^n$, $betainmathbb{R}^{ktimes 1}$ and $Xinmathbb{R}^{ntimes k}$. So, you are solving essentially:
$$y=Xbeta + epsilon$$
To obtain the estimator you minimise the squared sum of errors i.e. $epsilon'epsilon=y'y-2hat{beta}'X'y+hat{beta}'X'Xhat{beta}$. By doing so we obtain:
$$hat{beta}=(X'X)^{-1}X'y$$
From Gauss-Markov theorem (and assumptions) $hat{beta}$ is normally distributed with mean $beta$ and variance $sigma^2(X'X)^{-1}$. I will stop here. For further details please see this
edited Dec 12 '18 at 20:13
answered Dec 12 '18 at 20:07
WaqasWaqas
15913
15913
add a comment |
add a comment |
Thanks for contributing an answer to Mathematics Stack Exchange!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
Use MathJax to format equations. MathJax reference.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmath.stackexchange.com%2fquestions%2f3037109%2fderivation-of-the-ordinary-least-squares-estimator-%25ce%25b21-and-the-sampling-distribut%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown