Expected Value for uniform random permutations using random variables
Question: Let $n geq 2$ be an integer. You are given n beer bottles $B_1, B_2,...B_n$ and one cider bottle $C$. Consider a uniformly random permutation of these $n + 1$ bottles. The positions in this permutation are numbered as $1, 2, 3,...,n + 1$.
Define the random variable X to be:
X= the position of the leftmost beer bottle.
What is the expected value E(X) of the random variable X?
Answer: $frac{(n+2)}{(n+1)}$
Attempt:
Total ways to arrange bottles: (n+1)! ways
The position of the leftmost beer: 1 way
E(X) = $$ sum_{i=0}^{n+1} i*Pr(X = position, of, the, leftmost, beer)$$
E(X) = $$ sum_{i=0}^{n+1} = 1*frac{{n+1 choose 1}*1}{(n+1)!} $$
$$ sum_{i=0}^{n+1} = frac{1}{(n-1)!} $$
Can't seem to simplify it to get the correct answer.
probability probability-theory discrete-mathematics random-variables expected-value
add a comment |
Question: Let $n geq 2$ be an integer. You are given n beer bottles $B_1, B_2,...B_n$ and one cider bottle $C$. Consider a uniformly random permutation of these $n + 1$ bottles. The positions in this permutation are numbered as $1, 2, 3,...,n + 1$.
Define the random variable X to be:
X= the position of the leftmost beer bottle.
What is the expected value E(X) of the random variable X?
Answer: $frac{(n+2)}{(n+1)}$
Attempt:
Total ways to arrange bottles: (n+1)! ways
The position of the leftmost beer: 1 way
E(X) = $$ sum_{i=0}^{n+1} i*Pr(X = position, of, the, leftmost, beer)$$
E(X) = $$ sum_{i=0}^{n+1} = 1*frac{{n+1 choose 1}*1}{(n+1)!} $$
$$ sum_{i=0}^{n+1} = frac{1}{(n-1)!} $$
Can't seem to simplify it to get the correct answer.
probability probability-theory discrete-mathematics random-variables expected-value
Please be extremely careful in writing summations. Remember that the expectation of a random variable $X$ is summing all products of the form $i cdot mathrm{Pr}(X = i).$ Adjust this in edits.
– Sean Roberson
Nov 27 '18 at 20:08
add a comment |
Question: Let $n geq 2$ be an integer. You are given n beer bottles $B_1, B_2,...B_n$ and one cider bottle $C$. Consider a uniformly random permutation of these $n + 1$ bottles. The positions in this permutation are numbered as $1, 2, 3,...,n + 1$.
Define the random variable X to be:
X= the position of the leftmost beer bottle.
What is the expected value E(X) of the random variable X?
Answer: $frac{(n+2)}{(n+1)}$
Attempt:
Total ways to arrange bottles: (n+1)! ways
The position of the leftmost beer: 1 way
E(X) = $$ sum_{i=0}^{n+1} i*Pr(X = position, of, the, leftmost, beer)$$
E(X) = $$ sum_{i=0}^{n+1} = 1*frac{{n+1 choose 1}*1}{(n+1)!} $$
$$ sum_{i=0}^{n+1} = frac{1}{(n-1)!} $$
Can't seem to simplify it to get the correct answer.
probability probability-theory discrete-mathematics random-variables expected-value
Question: Let $n geq 2$ be an integer. You are given n beer bottles $B_1, B_2,...B_n$ and one cider bottle $C$. Consider a uniformly random permutation of these $n + 1$ bottles. The positions in this permutation are numbered as $1, 2, 3,...,n + 1$.
Define the random variable X to be:
X= the position of the leftmost beer bottle.
What is the expected value E(X) of the random variable X?
Answer: $frac{(n+2)}{(n+1)}$
Attempt:
Total ways to arrange bottles: (n+1)! ways
The position of the leftmost beer: 1 way
E(X) = $$ sum_{i=0}^{n+1} i*Pr(X = position, of, the, leftmost, beer)$$
E(X) = $$ sum_{i=0}^{n+1} = 1*frac{{n+1 choose 1}*1}{(n+1)!} $$
$$ sum_{i=0}^{n+1} = frac{1}{(n-1)!} $$
Can't seem to simplify it to get the correct answer.
probability probability-theory discrete-mathematics random-variables expected-value
probability probability-theory discrete-mathematics random-variables expected-value
edited Nov 27 '18 at 20:14
greedoid
38.2k114795
38.2k114795
asked Nov 27 '18 at 20:03
Toby
1577
1577
Please be extremely careful in writing summations. Remember that the expectation of a random variable $X$ is summing all products of the form $i cdot mathrm{Pr}(X = i).$ Adjust this in edits.
– Sean Roberson
Nov 27 '18 at 20:08
add a comment |
Please be extremely careful in writing summations. Remember that the expectation of a random variable $X$ is summing all products of the form $i cdot mathrm{Pr}(X = i).$ Adjust this in edits.
– Sean Roberson
Nov 27 '18 at 20:08
Please be extremely careful in writing summations. Remember that the expectation of a random variable $X$ is summing all products of the form $i cdot mathrm{Pr}(X = i).$ Adjust this in edits.
– Sean Roberson
Nov 27 '18 at 20:08
Please be extremely careful in writing summations. Remember that the expectation of a random variable $X$ is summing all products of the form $i cdot mathrm{Pr}(X = i).$ Adjust this in edits.
– Sean Roberson
Nov 27 '18 at 20:08
add a comment |
1 Answer
1
active
oldest
votes
Left most beer bottle can be on position 1 or 2. If it is on position 1 then cider bootle can be on any position between 2 and n+1, so we have $n$ possibilities for cider bootle among all $n+1$ positions. Else if cider bottle is on position 1 and leftmost bottle is on position 2. So we have: $$E(X) = 1cdot P(X=1)+2cdot P(X=2) $$
$$ = {nover n+1}+2{1over n+1}$$
why are you basing it off the cider bottle's probability of positioning?
– Toby
Nov 27 '18 at 20:24
3
All the permutations depend only on the cider bottle. It uniqely determine each permuatiton.
– greedoid
Nov 27 '18 at 20:27
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%2f3016234%2fexpected-value-for-uniform-random-permutations-using-random-variables%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
Left most beer bottle can be on position 1 or 2. If it is on position 1 then cider bootle can be on any position between 2 and n+1, so we have $n$ possibilities for cider bootle among all $n+1$ positions. Else if cider bottle is on position 1 and leftmost bottle is on position 2. So we have: $$E(X) = 1cdot P(X=1)+2cdot P(X=2) $$
$$ = {nover n+1}+2{1over n+1}$$
why are you basing it off the cider bottle's probability of positioning?
– Toby
Nov 27 '18 at 20:24
3
All the permutations depend only on the cider bottle. It uniqely determine each permuatiton.
– greedoid
Nov 27 '18 at 20:27
add a comment |
Left most beer bottle can be on position 1 or 2. If it is on position 1 then cider bootle can be on any position between 2 and n+1, so we have $n$ possibilities for cider bootle among all $n+1$ positions. Else if cider bottle is on position 1 and leftmost bottle is on position 2. So we have: $$E(X) = 1cdot P(X=1)+2cdot P(X=2) $$
$$ = {nover n+1}+2{1over n+1}$$
why are you basing it off the cider bottle's probability of positioning?
– Toby
Nov 27 '18 at 20:24
3
All the permutations depend only on the cider bottle. It uniqely determine each permuatiton.
– greedoid
Nov 27 '18 at 20:27
add a comment |
Left most beer bottle can be on position 1 or 2. If it is on position 1 then cider bootle can be on any position between 2 and n+1, so we have $n$ possibilities for cider bootle among all $n+1$ positions. Else if cider bottle is on position 1 and leftmost bottle is on position 2. So we have: $$E(X) = 1cdot P(X=1)+2cdot P(X=2) $$
$$ = {nover n+1}+2{1over n+1}$$
Left most beer bottle can be on position 1 or 2. If it is on position 1 then cider bootle can be on any position between 2 and n+1, so we have $n$ possibilities for cider bootle among all $n+1$ positions. Else if cider bottle is on position 1 and leftmost bottle is on position 2. So we have: $$E(X) = 1cdot P(X=1)+2cdot P(X=2) $$
$$ = {nover n+1}+2{1over n+1}$$
answered Nov 27 '18 at 20:08
greedoid
38.2k114795
38.2k114795
why are you basing it off the cider bottle's probability of positioning?
– Toby
Nov 27 '18 at 20:24
3
All the permutations depend only on the cider bottle. It uniqely determine each permuatiton.
– greedoid
Nov 27 '18 at 20:27
add a comment |
why are you basing it off the cider bottle's probability of positioning?
– Toby
Nov 27 '18 at 20:24
3
All the permutations depend only on the cider bottle. It uniqely determine each permuatiton.
– greedoid
Nov 27 '18 at 20:27
why are you basing it off the cider bottle's probability of positioning?
– Toby
Nov 27 '18 at 20:24
why are you basing it off the cider bottle's probability of positioning?
– Toby
Nov 27 '18 at 20:24
3
3
All the permutations depend only on the cider bottle. It uniqely determine each permuatiton.
– greedoid
Nov 27 '18 at 20:27
All the permutations depend only on the cider bottle. It uniqely determine each permuatiton.
– greedoid
Nov 27 '18 at 20:27
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.
Some of your past answers have not been well-received, and you're in danger of being blocked from answering.
Please pay close attention to the following guidance:
- 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.
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%2f3016234%2fexpected-value-for-uniform-random-permutations-using-random-variables%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
Please be extremely careful in writing summations. Remember that the expectation of a random variable $X$ is summing all products of the form $i cdot mathrm{Pr}(X = i).$ Adjust this in edits.
– Sean Roberson
Nov 27 '18 at 20:08