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

Clash 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$?
probability combinatorics permutations
add a comment |Â
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$?
probability combinatorics permutations
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
add a comment |Â
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$?
probability combinatorics permutations
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$?
probability combinatorics permutations
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
add a comment |Â
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
add a comment |Â
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
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
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
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
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
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
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