finding variance and mean of guests who got the correct key for their room












0












$begingroup$


i have a problem with a quite complicated question regarding guests who visit a hotel and hopefuly getting a correct key for their room:



problem: 2n people, n pairs, arrive to an hotel. each pair is assured to obtain a shared room at the hotel. however, the receptionist is a bit confused and hands out, randomly, 2n keys. for each of the n rooms there are 2 identical keys(out of 2n) that open its door.



let X - number of guests who obtained a correct key for their room.



Y - number of guests that can enter to that shared room, meaning number of pairs in which at least one of the people got the correct key to the room.



calculate mean and variance of X and the mean of Y.



what i tried to do: i declared an indicator $x_i$ that is 1 if the i guest got the correct key, and 0 if he doesn't, for each of i=1,...,2n keys available.
next, i calculated the mean of $E[X_i]=P(x_i=1)=frac{binom21}{binom{2n}1}=frac{1}{n}$. the variance is $var(X_i)=P(x_i=1)P(X_i=0)$. then, well, then i am lost. i think i should define two variables that represent whether i, j are pairs or not and somehow calculate the covariance, but i don't know how and it's quite complicated.



i am wondering, is there any smart way to approach it and solve it without tedious computations? would really appreciate an answer in simple terms so i could learn from it and improve.



thank you very much for helping me










share|cite|improve this question









$endgroup$












  • $begingroup$
    You can get the variance more or less the same way you got the mean, since $Var(X)=E[X^2]-E[X]^2$. Here $X=sum X_i$ so, to compute $E[X^2]$ you'll need to cope with terms like $E[X_iX_j]$ but that's not terribly hard.
    $endgroup$
    – lulu
    Jan 29 at 14:37
















0












$begingroup$


i have a problem with a quite complicated question regarding guests who visit a hotel and hopefuly getting a correct key for their room:



problem: 2n people, n pairs, arrive to an hotel. each pair is assured to obtain a shared room at the hotel. however, the receptionist is a bit confused and hands out, randomly, 2n keys. for each of the n rooms there are 2 identical keys(out of 2n) that open its door.



let X - number of guests who obtained a correct key for their room.



Y - number of guests that can enter to that shared room, meaning number of pairs in which at least one of the people got the correct key to the room.



calculate mean and variance of X and the mean of Y.



what i tried to do: i declared an indicator $x_i$ that is 1 if the i guest got the correct key, and 0 if he doesn't, for each of i=1,...,2n keys available.
next, i calculated the mean of $E[X_i]=P(x_i=1)=frac{binom21}{binom{2n}1}=frac{1}{n}$. the variance is $var(X_i)=P(x_i=1)P(X_i=0)$. then, well, then i am lost. i think i should define two variables that represent whether i, j are pairs or not and somehow calculate the covariance, but i don't know how and it's quite complicated.



i am wondering, is there any smart way to approach it and solve it without tedious computations? would really appreciate an answer in simple terms so i could learn from it and improve.



thank you very much for helping me










share|cite|improve this question









$endgroup$












  • $begingroup$
    You can get the variance more or less the same way you got the mean, since $Var(X)=E[X^2]-E[X]^2$. Here $X=sum X_i$ so, to compute $E[X^2]$ you'll need to cope with terms like $E[X_iX_j]$ but that's not terribly hard.
    $endgroup$
    – lulu
    Jan 29 at 14:37














0












0








0





$begingroup$


i have a problem with a quite complicated question regarding guests who visit a hotel and hopefuly getting a correct key for their room:



problem: 2n people, n pairs, arrive to an hotel. each pair is assured to obtain a shared room at the hotel. however, the receptionist is a bit confused and hands out, randomly, 2n keys. for each of the n rooms there are 2 identical keys(out of 2n) that open its door.



let X - number of guests who obtained a correct key for their room.



Y - number of guests that can enter to that shared room, meaning number of pairs in which at least one of the people got the correct key to the room.



calculate mean and variance of X and the mean of Y.



what i tried to do: i declared an indicator $x_i$ that is 1 if the i guest got the correct key, and 0 if he doesn't, for each of i=1,...,2n keys available.
next, i calculated the mean of $E[X_i]=P(x_i=1)=frac{binom21}{binom{2n}1}=frac{1}{n}$. the variance is $var(X_i)=P(x_i=1)P(X_i=0)$. then, well, then i am lost. i think i should define two variables that represent whether i, j are pairs or not and somehow calculate the covariance, but i don't know how and it's quite complicated.



i am wondering, is there any smart way to approach it and solve it without tedious computations? would really appreciate an answer in simple terms so i could learn from it and improve.



thank you very much for helping me










share|cite|improve this question









$endgroup$




i have a problem with a quite complicated question regarding guests who visit a hotel and hopefuly getting a correct key for their room:



problem: 2n people, n pairs, arrive to an hotel. each pair is assured to obtain a shared room at the hotel. however, the receptionist is a bit confused and hands out, randomly, 2n keys. for each of the n rooms there are 2 identical keys(out of 2n) that open its door.



let X - number of guests who obtained a correct key for their room.



Y - number of guests that can enter to that shared room, meaning number of pairs in which at least one of the people got the correct key to the room.



calculate mean and variance of X and the mean of Y.



what i tried to do: i declared an indicator $x_i$ that is 1 if the i guest got the correct key, and 0 if he doesn't, for each of i=1,...,2n keys available.
next, i calculated the mean of $E[X_i]=P(x_i=1)=frac{binom21}{binom{2n}1}=frac{1}{n}$. the variance is $var(X_i)=P(x_i=1)P(X_i=0)$. then, well, then i am lost. i think i should define two variables that represent whether i, j are pairs or not and somehow calculate the covariance, but i don't know how and it's quite complicated.



i am wondering, is there any smart way to approach it and solve it without tedious computations? would really appreciate an answer in simple terms so i could learn from it and improve.



thank you very much for helping me







probability statistics covariance






share|cite|improve this question













share|cite|improve this question











share|cite|improve this question




share|cite|improve this question










asked Jan 29 at 14:34









q123q123

75




75












  • $begingroup$
    You can get the variance more or less the same way you got the mean, since $Var(X)=E[X^2]-E[X]^2$. Here $X=sum X_i$ so, to compute $E[X^2]$ you'll need to cope with terms like $E[X_iX_j]$ but that's not terribly hard.
    $endgroup$
    – lulu
    Jan 29 at 14:37


















  • $begingroup$
    You can get the variance more or less the same way you got the mean, since $Var(X)=E[X^2]-E[X]^2$. Here $X=sum X_i$ so, to compute $E[X^2]$ you'll need to cope with terms like $E[X_iX_j]$ but that's not terribly hard.
    $endgroup$
    – lulu
    Jan 29 at 14:37
















$begingroup$
You can get the variance more or less the same way you got the mean, since $Var(X)=E[X^2]-E[X]^2$. Here $X=sum X_i$ so, to compute $E[X^2]$ you'll need to cope with terms like $E[X_iX_j]$ but that's not terribly hard.
$endgroup$
– lulu
Jan 29 at 14:37




$begingroup$
You can get the variance more or less the same way you got the mean, since $Var(X)=E[X^2]-E[X]^2$. Here $X=sum X_i$ so, to compute $E[X^2]$ you'll need to cope with terms like $E[X_iX_j]$ but that's not terribly hard.
$endgroup$
– lulu
Jan 29 at 14:37










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%2f3092243%2ffinding-variance-and-mean-of-guests-who-got-the-correct-key-for-their-room%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%2f3092243%2ffinding-variance-and-mean-of-guests-who-got-the-correct-key-for-their-room%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

MongoDB - Not Authorized To Execute Command

in spring boot 2.1 many test slices are not allowed anymore due to multiple @BootstrapWith

How to fix TextFormField cause rebuild widget in Flutter