Given a random permutation of 1 to N, what is probability to get $N-1$ with a certain strategy?

The name of the pictureThe name of the pictureThe name of the pictureClash Royale CLAN TAG#URR8PPP











up vote
2
down vote

favorite












Given a random permutation of $1$ to $N$, let the sequence be $a_1,a_2,cdots,a_N$.



Erase the first $k$ items, and find out the item (let it be $a_I$) which is first item greater than the fist $k$ items.



I already know that $$P(a_I = N)=fracknsum_i=k+1^Nfrac1i-1.$$



But what is the probability of $a_I=N-1$?



Furthermore, what is the expected value of $a_I$?







share|cite|improve this question






















  • I'm assuming this is related somehow to the secretary problem/sultan's dowry problem/etc.?
    – Brian Tung
    Aug 10 at 17:21






  • 2




    I think you should use $a_I$ where $I$ is a random index. Of course, you would also need to define what happens if number $N$ lies in the first $k$ items, since then there would be no "first item greater than [all of?] the first $k$ items."
    – Michael
    Aug 10 at 17:35










  • Also, your expression for $P(a_i=N)$ isn't a probability; e.g., if $k=frac n2$ and $n$ is sufficiently large, you're summing several terms near $frac12$, so the result is greater than $1$.
    – joriki
    Aug 10 at 19:02










  • It seems you've edited the question to address one of three issues but not the other two?
    – joriki
    Aug 11 at 6:55














up vote
2
down vote

favorite












Given a random permutation of $1$ to $N$, let the sequence be $a_1,a_2,cdots,a_N$.



Erase the first $k$ items, and find out the item (let it be $a_I$) which is first item greater than the fist $k$ items.



I already know that $$P(a_I = N)=fracknsum_i=k+1^Nfrac1i-1.$$



But what is the probability of $a_I=N-1$?



Furthermore, what is the expected value of $a_I$?







share|cite|improve this question






















  • I'm assuming this is related somehow to the secretary problem/sultan's dowry problem/etc.?
    – Brian Tung
    Aug 10 at 17:21






  • 2




    I think you should use $a_I$ where $I$ is a random index. Of course, you would also need to define what happens if number $N$ lies in the first $k$ items, since then there would be no "first item greater than [all of?] the first $k$ items."
    – Michael
    Aug 10 at 17:35










  • Also, your expression for $P(a_i=N)$ isn't a probability; e.g., if $k=frac n2$ and $n$ is sufficiently large, you're summing several terms near $frac12$, so the result is greater than $1$.
    – joriki
    Aug 10 at 19:02










  • It seems you've edited the question to address one of three issues but not the other two?
    – joriki
    Aug 11 at 6:55












up vote
2
down vote

favorite









up vote
2
down vote

favorite











Given a random permutation of $1$ to $N$, let the sequence be $a_1,a_2,cdots,a_N$.



Erase the first $k$ items, and find out the item (let it be $a_I$) which is first item greater than the fist $k$ items.



I already know that $$P(a_I = N)=fracknsum_i=k+1^Nfrac1i-1.$$



But what is the probability of $a_I=N-1$?



Furthermore, what is the expected value of $a_I$?







share|cite|improve this question














Given a random permutation of $1$ to $N$, let the sequence be $a_1,a_2,cdots,a_N$.



Erase the first $k$ items, and find out the item (let it be $a_I$) which is first item greater than the fist $k$ items.



I already know that $$P(a_I = N)=fracknsum_i=k+1^Nfrac1i-1.$$



But what is the probability of $a_I=N-1$?



Furthermore, what is the expected value of $a_I$?









share|cite|improve this question













share|cite|improve this question




share|cite|improve this question








edited Aug 11 at 0:46

























asked Aug 10 at 17:17









Charles Bao

746919




746919











  • I'm assuming this is related somehow to the secretary problem/sultan's dowry problem/etc.?
    – Brian Tung
    Aug 10 at 17:21






  • 2




    I think you should use $a_I$ where $I$ is a random index. Of course, you would also need to define what happens if number $N$ lies in the first $k$ items, since then there would be no "first item greater than [all of?] the first $k$ items."
    – Michael
    Aug 10 at 17:35










  • Also, your expression for $P(a_i=N)$ isn't a probability; e.g., if $k=frac n2$ and $n$ is sufficiently large, you're summing several terms near $frac12$, so the result is greater than $1$.
    – joriki
    Aug 10 at 19:02










  • It seems you've edited the question to address one of three issues but not the other two?
    – joriki
    Aug 11 at 6:55
















  • I'm assuming this is related somehow to the secretary problem/sultan's dowry problem/etc.?
    – Brian Tung
    Aug 10 at 17:21






  • 2




    I think you should use $a_I$ where $I$ is a random index. Of course, you would also need to define what happens if number $N$ lies in the first $k$ items, since then there would be no "first item greater than [all of?] the first $k$ items."
    – Michael
    Aug 10 at 17:35










  • Also, your expression for $P(a_i=N)$ isn't a probability; e.g., if $k=frac n2$ and $n$ is sufficiently large, you're summing several terms near $frac12$, so the result is greater than $1$.
    – joriki
    Aug 10 at 19:02










  • It seems you've edited the question to address one of three issues but not the other two?
    – joriki
    Aug 11 at 6:55















I'm assuming this is related somehow to the secretary problem/sultan's dowry problem/etc.?
– Brian Tung
Aug 10 at 17:21




I'm assuming this is related somehow to the secretary problem/sultan's dowry problem/etc.?
– Brian Tung
Aug 10 at 17:21




2




2




I think you should use $a_I$ where $I$ is a random index. Of course, you would also need to define what happens if number $N$ lies in the first $k$ items, since then there would be no "first item greater than [all of?] the first $k$ items."
– Michael
Aug 10 at 17:35




I think you should use $a_I$ where $I$ is a random index. Of course, you would also need to define what happens if number $N$ lies in the first $k$ items, since then there would be no "first item greater than [all of?] the first $k$ items."
– Michael
Aug 10 at 17:35












Also, your expression for $P(a_i=N)$ isn't a probability; e.g., if $k=frac n2$ and $n$ is sufficiently large, you're summing several terms near $frac12$, so the result is greater than $1$.
– joriki
Aug 10 at 19:02




Also, your expression for $P(a_i=N)$ isn't a probability; e.g., if $k=frac n2$ and $n$ is sufficiently large, you're summing several terms near $frac12$, so the result is greater than $1$.
– joriki
Aug 10 at 19:02












It seems you've edited the question to address one of three issues but not the other two?
– joriki
Aug 11 at 6:55




It seems you've edited the question to address one of three issues but not the other two?
– joriki
Aug 11 at 6:55















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',
convertImagesToLinks: true,
noModals: false,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
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%2f2878633%2fgiven-a-random-permutation-of-1-to-n-what-is-probability-to-get-n-1-with-a-ce%23new-answer', 'question_page');

);

Post as a guest



































active

oldest

votes













active

oldest

votes









active

oldest

votes






active

oldest

votes










 

draft saved


draft discarded


























 


draft saved


draft discarded














StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmath.stackexchange.com%2fquestions%2f2878633%2fgiven-a-random-permutation-of-1-to-n-what-is-probability-to-get-n-1-with-a-ce%23new-answer', 'question_page');

);

Post as a guest













































































這個網誌中的熱門文章

tkz-euclide: tkzDrawCircle[R] not working

How to combine Bézier curves to a surface?

1st Magritte Awards