Minimum Sample size between two samples for a specified confidence interval/level with sigma known












1












$begingroup$


Hi math stack exchange,



I came across the following question and found it quite interesting and am struggling to solve it. I haven't seen anything like it because it is both two sample and has sigma known. If anyone could give me some insight as to how to begin looking at the problem would be appreciated



Let $X_1, ldots , X_n$ and $Y_1, ldots , Y_n$ be independent random samples from the $N(mu_{X}, 2)$ and
$N(mu_{Y} , 2)$ distributions, respectively. Calculate the minimal value of $n$ so that one can be
95% confident the interval
$[bar{X} − bar{Y}− 1, bar{X} − bar{Y}+ 1]$
contains the true value of $mu_X − mu_Y$.



My idea is to set up the usual confidence interval for one side for a sigma unknown as the following form:



$1= sqrt{(sigma^2/n) +(sigma^2/n)}cdot 1.96$



$1= sigmacdot sqrt{1/n +1/n}cdot 1.96$



$1=2cdot(2/n)cdot 1.96$ ($2$ here at the start subbed in for sigma



And then solve for $n$?



Does this approach work?



Thanks










share|cite|improve this question











$endgroup$








  • 1




    $begingroup$
    Yes, it is a good approach. Note that you lost sqrt in the last equation.
    $endgroup$
    – NCh
    Jan 11 at 0:05










  • $begingroup$
    You can edit your existing posts to get them 'out of hold' by adding context as you have done here, instead of a new post.
    $endgroup$
    – StubbornAtom
    Jan 11 at 19:06
















1












$begingroup$


Hi math stack exchange,



I came across the following question and found it quite interesting and am struggling to solve it. I haven't seen anything like it because it is both two sample and has sigma known. If anyone could give me some insight as to how to begin looking at the problem would be appreciated



Let $X_1, ldots , X_n$ and $Y_1, ldots , Y_n$ be independent random samples from the $N(mu_{X}, 2)$ and
$N(mu_{Y} , 2)$ distributions, respectively. Calculate the minimal value of $n$ so that one can be
95% confident the interval
$[bar{X} − bar{Y}− 1, bar{X} − bar{Y}+ 1]$
contains the true value of $mu_X − mu_Y$.



My idea is to set up the usual confidence interval for one side for a sigma unknown as the following form:



$1= sqrt{(sigma^2/n) +(sigma^2/n)}cdot 1.96$



$1= sigmacdot sqrt{1/n +1/n}cdot 1.96$



$1=2cdot(2/n)cdot 1.96$ ($2$ here at the start subbed in for sigma



And then solve for $n$?



Does this approach work?



Thanks










share|cite|improve this question











$endgroup$








  • 1




    $begingroup$
    Yes, it is a good approach. Note that you lost sqrt in the last equation.
    $endgroup$
    – NCh
    Jan 11 at 0:05










  • $begingroup$
    You can edit your existing posts to get them 'out of hold' by adding context as you have done here, instead of a new post.
    $endgroup$
    – StubbornAtom
    Jan 11 at 19:06














1












1








1





$begingroup$


Hi math stack exchange,



I came across the following question and found it quite interesting and am struggling to solve it. I haven't seen anything like it because it is both two sample and has sigma known. If anyone could give me some insight as to how to begin looking at the problem would be appreciated



Let $X_1, ldots , X_n$ and $Y_1, ldots , Y_n$ be independent random samples from the $N(mu_{X}, 2)$ and
$N(mu_{Y} , 2)$ distributions, respectively. Calculate the minimal value of $n$ so that one can be
95% confident the interval
$[bar{X} − bar{Y}− 1, bar{X} − bar{Y}+ 1]$
contains the true value of $mu_X − mu_Y$.



My idea is to set up the usual confidence interval for one side for a sigma unknown as the following form:



$1= sqrt{(sigma^2/n) +(sigma^2/n)}cdot 1.96$



$1= sigmacdot sqrt{1/n +1/n}cdot 1.96$



$1=2cdot(2/n)cdot 1.96$ ($2$ here at the start subbed in for sigma



And then solve for $n$?



Does this approach work?



Thanks










share|cite|improve this question











$endgroup$




Hi math stack exchange,



I came across the following question and found it quite interesting and am struggling to solve it. I haven't seen anything like it because it is both two sample and has sigma known. If anyone could give me some insight as to how to begin looking at the problem would be appreciated



Let $X_1, ldots , X_n$ and $Y_1, ldots , Y_n$ be independent random samples from the $N(mu_{X}, 2)$ and
$N(mu_{Y} , 2)$ distributions, respectively. Calculate the minimal value of $n$ so that one can be
95% confident the interval
$[bar{X} − bar{Y}− 1, bar{X} − bar{Y}+ 1]$
contains the true value of $mu_X − mu_Y$.



My idea is to set up the usual confidence interval for one side for a sigma unknown as the following form:



$1= sqrt{(sigma^2/n) +(sigma^2/n)}cdot 1.96$



$1= sigmacdot sqrt{1/n +1/n}cdot 1.96$



$1=2cdot(2/n)cdot 1.96$ ($2$ here at the start subbed in for sigma



And then solve for $n$?



Does this approach work?



Thanks







statistics statistical-inference confidence-interval interval-arithmetic






share|cite|improve this question















share|cite|improve this question













share|cite|improve this question




share|cite|improve this question








edited Jan 11 at 0:04









NCh

6,8273825




6,8273825










asked Jan 10 at 9:41









JamesJames

61




61








  • 1




    $begingroup$
    Yes, it is a good approach. Note that you lost sqrt in the last equation.
    $endgroup$
    – NCh
    Jan 11 at 0:05










  • $begingroup$
    You can edit your existing posts to get them 'out of hold' by adding context as you have done here, instead of a new post.
    $endgroup$
    – StubbornAtom
    Jan 11 at 19:06














  • 1




    $begingroup$
    Yes, it is a good approach. Note that you lost sqrt in the last equation.
    $endgroup$
    – NCh
    Jan 11 at 0:05










  • $begingroup$
    You can edit your existing posts to get them 'out of hold' by adding context as you have done here, instead of a new post.
    $endgroup$
    – StubbornAtom
    Jan 11 at 19:06








1




1




$begingroup$
Yes, it is a good approach. Note that you lost sqrt in the last equation.
$endgroup$
– NCh
Jan 11 at 0:05




$begingroup$
Yes, it is a good approach. Note that you lost sqrt in the last equation.
$endgroup$
– NCh
Jan 11 at 0:05












$begingroup$
You can edit your existing posts to get them 'out of hold' by adding context as you have done here, instead of a new post.
$endgroup$
– StubbornAtom
Jan 11 at 19:06




$begingroup$
You can edit your existing posts to get them 'out of hold' by adding context as you have done here, instead of a new post.
$endgroup$
– StubbornAtom
Jan 11 at 19:06










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
});


}
});














draft saved

draft discarded


















StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmath.stackexchange.com%2fquestions%2f3068440%2fminimum-sample-size-between-two-samples-for-a-specified-confidence-interval-leve%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
















draft saved

draft discarded




















































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.




draft saved


draft discarded














StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmath.stackexchange.com%2fquestions%2f3068440%2fminimum-sample-size-between-two-samples-for-a-specified-confidence-interval-leve%23new-answer', 'question_page');
}
);

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







Popular posts from this blog

Human spaceflight

Can not write log (Is /dev/pts mounted?) - openpty in Ubuntu-on-Windows?

File:DeusFollowingSea.jpg