Reducing the confidence interval with T distribition
$begingroup$
My question is the following:
The population: weight of apples (in grams). We do not know anything about the population distribution except that it is a normal distribution.
We want to find a 90% confidence interval for the population mean.
So we take a random sample consists of 9 apples, their weights:
$$199, 198, 200,189, 186, 194, 179, 187, 196$$
Since it is a sample with small size $n=9<30$, and the standard deviation $sigma$ is unknown, we need to estimate the variance, the standard deviation and the mean of the population and use the $t$ (student) distribution to calculate the confidence interval:
Estimator for the population mean is the sample mean:
$$hatmu=overline X=frac{1}{n}sum_{i=1}^{n}x_i=192$$
Estimator for the population variance is the sample variance:
$$hatsigma^2=s^2=frac{1}{n-1}sum_{i=1}^{n}(x_i-overline X)^2=51$$
$$ hatsigma=sqrt {(s^2)}=s=7.141 $$
We want 90% confidence interval:
$$1-alpha=0.9 Rightarrow alpha=0.1$$
Calculation of the confidence interval using T distribution:
$$overline X-frac{s}{sqrt{n}}t_{n-1, frac{alpha}{2}}leqslant mu leqslant overline X+frac{s}{sqrt{n}}t_{n-1, frac{alpha}{2}}$$
$$192-frac{7.141}{sqrt{9}}t_{8, frac{0.1}{2}}leqslant mu leqslant 192+frac{7.141}{sqrt{9}}t_{8, frac{0.1}{2}}$$
$$ t_{8, frac{0.1}{2}}=1.860 Rightarrow 187.5725 leqslantmuleqslant 196.4274 $$
Now we can say: We are 90% sure that the population mean ($mu$) is in the range of: $[187.5725, 196.4274].$
We can see that the confidence interval has length of $8.8549$.
What is the problem? Confidence interval of $8.8549$ is too large for us, we want to reduce the size of the confidence interval to be at most of size $4$, that is $2$ for each side around the mean, and still keep the confidence level: 90%.
In other words: What will be the sample size if we want to reduce the size of the confidence interval to be at most $4$, with 90% confidence?
In mathematical terms, We should use this formula (to get the new sample size):
$$frac{s}{sqrt{n}}t_{n-1, frac{0.1}{2}}leqslant 2$$
My question is: how can i play with this equation to find the new sample size? i mean: I need to know what $t_{n-1,frac{0.1}{2}}$ is at the time that $n$ is unknown.
It is the first time i work with such problems with $t$ distribution, I solved a lot of problems like that with $z$ distribution (when the sample size $gt 30$ or $sigma$ is known), with $z$ distribution there is no problem to do that because the $z$ value is function of the confidence level we want $(alpha)$ only.
Thanks for reading the question so far, any suggestions?
Thanks!!!
normal-distribution statistical-inference estimation confidence-interval
$endgroup$
add a comment |
$begingroup$
My question is the following:
The population: weight of apples (in grams). We do not know anything about the population distribution except that it is a normal distribution.
We want to find a 90% confidence interval for the population mean.
So we take a random sample consists of 9 apples, their weights:
$$199, 198, 200,189, 186, 194, 179, 187, 196$$
Since it is a sample with small size $n=9<30$, and the standard deviation $sigma$ is unknown, we need to estimate the variance, the standard deviation and the mean of the population and use the $t$ (student) distribution to calculate the confidence interval:
Estimator for the population mean is the sample mean:
$$hatmu=overline X=frac{1}{n}sum_{i=1}^{n}x_i=192$$
Estimator for the population variance is the sample variance:
$$hatsigma^2=s^2=frac{1}{n-1}sum_{i=1}^{n}(x_i-overline X)^2=51$$
$$ hatsigma=sqrt {(s^2)}=s=7.141 $$
We want 90% confidence interval:
$$1-alpha=0.9 Rightarrow alpha=0.1$$
Calculation of the confidence interval using T distribution:
$$overline X-frac{s}{sqrt{n}}t_{n-1, frac{alpha}{2}}leqslant mu leqslant overline X+frac{s}{sqrt{n}}t_{n-1, frac{alpha}{2}}$$
$$192-frac{7.141}{sqrt{9}}t_{8, frac{0.1}{2}}leqslant mu leqslant 192+frac{7.141}{sqrt{9}}t_{8, frac{0.1}{2}}$$
$$ t_{8, frac{0.1}{2}}=1.860 Rightarrow 187.5725 leqslantmuleqslant 196.4274 $$
Now we can say: We are 90% sure that the population mean ($mu$) is in the range of: $[187.5725, 196.4274].$
We can see that the confidence interval has length of $8.8549$.
What is the problem? Confidence interval of $8.8549$ is too large for us, we want to reduce the size of the confidence interval to be at most of size $4$, that is $2$ for each side around the mean, and still keep the confidence level: 90%.
In other words: What will be the sample size if we want to reduce the size of the confidence interval to be at most $4$, with 90% confidence?
In mathematical terms, We should use this formula (to get the new sample size):
$$frac{s}{sqrt{n}}t_{n-1, frac{0.1}{2}}leqslant 2$$
My question is: how can i play with this equation to find the new sample size? i mean: I need to know what $t_{n-1,frac{0.1}{2}}$ is at the time that $n$ is unknown.
It is the first time i work with such problems with $t$ distribution, I solved a lot of problems like that with $z$ distribution (when the sample size $gt 30$ or $sigma$ is known), with $z$ distribution there is no problem to do that because the $z$ value is function of the confidence level we want $(alpha)$ only.
Thanks for reading the question so far, any suggestions?
Thanks!!!
normal-distribution statistical-inference estimation confidence-interval
$endgroup$
add a comment |
$begingroup$
My question is the following:
The population: weight of apples (in grams). We do not know anything about the population distribution except that it is a normal distribution.
We want to find a 90% confidence interval for the population mean.
So we take a random sample consists of 9 apples, their weights:
$$199, 198, 200,189, 186, 194, 179, 187, 196$$
Since it is a sample with small size $n=9<30$, and the standard deviation $sigma$ is unknown, we need to estimate the variance, the standard deviation and the mean of the population and use the $t$ (student) distribution to calculate the confidence interval:
Estimator for the population mean is the sample mean:
$$hatmu=overline X=frac{1}{n}sum_{i=1}^{n}x_i=192$$
Estimator for the population variance is the sample variance:
$$hatsigma^2=s^2=frac{1}{n-1}sum_{i=1}^{n}(x_i-overline X)^2=51$$
$$ hatsigma=sqrt {(s^2)}=s=7.141 $$
We want 90% confidence interval:
$$1-alpha=0.9 Rightarrow alpha=0.1$$
Calculation of the confidence interval using T distribution:
$$overline X-frac{s}{sqrt{n}}t_{n-1, frac{alpha}{2}}leqslant mu leqslant overline X+frac{s}{sqrt{n}}t_{n-1, frac{alpha}{2}}$$
$$192-frac{7.141}{sqrt{9}}t_{8, frac{0.1}{2}}leqslant mu leqslant 192+frac{7.141}{sqrt{9}}t_{8, frac{0.1}{2}}$$
$$ t_{8, frac{0.1}{2}}=1.860 Rightarrow 187.5725 leqslantmuleqslant 196.4274 $$
Now we can say: We are 90% sure that the population mean ($mu$) is in the range of: $[187.5725, 196.4274].$
We can see that the confidence interval has length of $8.8549$.
What is the problem? Confidence interval of $8.8549$ is too large for us, we want to reduce the size of the confidence interval to be at most of size $4$, that is $2$ for each side around the mean, and still keep the confidence level: 90%.
In other words: What will be the sample size if we want to reduce the size of the confidence interval to be at most $4$, with 90% confidence?
In mathematical terms, We should use this formula (to get the new sample size):
$$frac{s}{sqrt{n}}t_{n-1, frac{0.1}{2}}leqslant 2$$
My question is: how can i play with this equation to find the new sample size? i mean: I need to know what $t_{n-1,frac{0.1}{2}}$ is at the time that $n$ is unknown.
It is the first time i work with such problems with $t$ distribution, I solved a lot of problems like that with $z$ distribution (when the sample size $gt 30$ or $sigma$ is known), with $z$ distribution there is no problem to do that because the $z$ value is function of the confidence level we want $(alpha)$ only.
Thanks for reading the question so far, any suggestions?
Thanks!!!
normal-distribution statistical-inference estimation confidence-interval
$endgroup$
My question is the following:
The population: weight of apples (in grams). We do not know anything about the population distribution except that it is a normal distribution.
We want to find a 90% confidence interval for the population mean.
So we take a random sample consists of 9 apples, their weights:
$$199, 198, 200,189, 186, 194, 179, 187, 196$$
Since it is a sample with small size $n=9<30$, and the standard deviation $sigma$ is unknown, we need to estimate the variance, the standard deviation and the mean of the population and use the $t$ (student) distribution to calculate the confidence interval:
Estimator for the population mean is the sample mean:
$$hatmu=overline X=frac{1}{n}sum_{i=1}^{n}x_i=192$$
Estimator for the population variance is the sample variance:
$$hatsigma^2=s^2=frac{1}{n-1}sum_{i=1}^{n}(x_i-overline X)^2=51$$
$$ hatsigma=sqrt {(s^2)}=s=7.141 $$
We want 90% confidence interval:
$$1-alpha=0.9 Rightarrow alpha=0.1$$
Calculation of the confidence interval using T distribution:
$$overline X-frac{s}{sqrt{n}}t_{n-1, frac{alpha}{2}}leqslant mu leqslant overline X+frac{s}{sqrt{n}}t_{n-1, frac{alpha}{2}}$$
$$192-frac{7.141}{sqrt{9}}t_{8, frac{0.1}{2}}leqslant mu leqslant 192+frac{7.141}{sqrt{9}}t_{8, frac{0.1}{2}}$$
$$ t_{8, frac{0.1}{2}}=1.860 Rightarrow 187.5725 leqslantmuleqslant 196.4274 $$
Now we can say: We are 90% sure that the population mean ($mu$) is in the range of: $[187.5725, 196.4274].$
We can see that the confidence interval has length of $8.8549$.
What is the problem? Confidence interval of $8.8549$ is too large for us, we want to reduce the size of the confidence interval to be at most of size $4$, that is $2$ for each side around the mean, and still keep the confidence level: 90%.
In other words: What will be the sample size if we want to reduce the size of the confidence interval to be at most $4$, with 90% confidence?
In mathematical terms, We should use this formula (to get the new sample size):
$$frac{s}{sqrt{n}}t_{n-1, frac{0.1}{2}}leqslant 2$$
My question is: how can i play with this equation to find the new sample size? i mean: I need to know what $t_{n-1,frac{0.1}{2}}$ is at the time that $n$ is unknown.
It is the first time i work with such problems with $t$ distribution, I solved a lot of problems like that with $z$ distribution (when the sample size $gt 30$ or $sigma$ is known), with $z$ distribution there is no problem to do that because the $z$ value is function of the confidence level we want $(alpha)$ only.
Thanks for reading the question so far, any suggestions?
Thanks!!!
normal-distribution statistical-inference estimation confidence-interval
normal-distribution statistical-inference estimation confidence-interval
edited Dec 10 '18 at 20:26
D.Rotnemer
asked Dec 8 '18 at 21:37
D.RotnemerD.Rotnemer
12616
12616
add a comment |
add a comment |
0
active
oldest
votes
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%2f3031663%2freducing-the-confidence-interval-with-t-distribition%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
0
active
oldest
votes
0
active
oldest
votes
active
oldest
votes
active
oldest
votes
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%2f3031663%2freducing-the-confidence-interval-with-t-distribition%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