finding variance and mean of guests who got the correct key for their room
$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
probability statistics covariance
$endgroup$
add a comment |
$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
probability statistics covariance
$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
add a comment |
$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
probability statistics covariance
$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
probability statistics covariance
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
add a comment |
$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
add a comment |
0
active
oldest
votes
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%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
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%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
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
$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