Expected Value for uniform random permutations using random variables












1















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.










share|cite|improve this question
























  • 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
















1















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.










share|cite|improve this question
























  • 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














1












1








1








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.










share|cite|improve this question
















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






share|cite|improve this question















share|cite|improve this question













share|cite|improve this question




share|cite|improve this question








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


















  • 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










1 Answer
1






active

oldest

votes


















2














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}$$






share|cite|improve this answer





















  • 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











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%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









2














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}$$






share|cite|improve this answer





















  • 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
















2














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}$$






share|cite|improve this answer





















  • 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














2












2








2






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}$$






share|cite|improve this answer












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}$$







share|cite|improve this answer












share|cite|improve this answer



share|cite|improve this answer










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


















  • 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


















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.





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.




draft saved


draft discarded














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





















































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

Quarter-circle Tiles

build a pushdown automaton that recognizes the reverse language of a given pushdown automaton?

Mont Emei