Grimmett and Stirzaker P57 (Letter Matching)

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











up vote
2
down vote

favorite












I'm suck on step 4 of the derivation below.



A secretary types n different letters together with matching envelopes, she then drops the pile down the stairs, and then places the letters randomly in the envelopes afterwards. Each arrangement is equally likely, and the task is to find the probability that exactly r are in their correct envelopes.



Solution:

Let $L_1, L_2,...,L_n$ denote the letters

A good letter means that is in the correct envelope

$A_i$ is the event that $L_i$ is good

$I_i$ is the indicator function of $A_i$

$j_1,..,j_r,k_r+1, ..., k_n$ is a random permutation of the numbers $1,...,n$



$S = sum_piI_j_1...I_j_r(1-I_k_r+1),...,(1-I_k_n)tag1$



Where the sum is taken over all the permutations $pi$



beginequation
S =
begincases
0 & textif X $neq$ 0\
r!(n-r)! & textif X = rtag2
endcases
endequation



Clearly the sum in equation 1 is only 1 $m=r$ and zero otherwise.

There are $r!$ permutations of the r matching letters and $(n-r)!$ permutations of the remaining numbers



Hence



$ I = fracSr!(n-r)! tag3$



Is the indicator function the exactly r letters are good.



it then says to take expectations of (4) and multiply out to obtain:



$E(S)=sum_pisum_s=0^n-r(-1)^sbinomn-rsE(I_j_1...I_j_r(I_k_r+1),...,(I_k_r+s))tag4$



They then state



$E(I_j_1...I_j_r(I_k_r+1),...,(I_k_r+s))=frac(n-r-s)!n!tag5$



Where $(n-r-s)!$ is the permutations which allocate $L_i_1,...,L_j_r, L_k_r+1,...,L_k_r+s$ to their correct envelopes.



Q1.) I'm stuck on eqn 4, broadly it seems to be calculating for a given r (number of good envelopes) the number of permutations for the remaining bad envelopes is this correct?



Q2.) Why have the last s envelopes been changed to $ I_k_r+1$ in Eqn (4) instead of $(1- I_k_r+1)$ as in Eqn (1)?



Q2b.) It says after Eqn(5) that $L_i_1,...,L_j_r, L_k_r+1,...,L_k_r+s$ to their correct envelopes? But I thought only the first set up to r was supposed to be in it's correct envelope?



Q3.) Where does the $(-1)^sbinomn-rs$ come from?



We want to find the number of permutations of the s bad letters i.e. we want to find the number of derangements is this correct?



The formula for the number of derangements $n!sum_j=0^n-kfrac(-1)^jj!$:



$(n-r)!sum_s=0^n-r-sfrac(-1)^ss!$



Which is similar but not the same.







share|cite|improve this question















  • 1




    These are sometimes called rencontres numbers and it should be easy to see that the number of ways of having $r$ correct out of $n$ is $n choose r$ times the number of derangements of $n-r$
    – Henry
    Jul 17 at 14:04














up vote
2
down vote

favorite












I'm suck on step 4 of the derivation below.



A secretary types n different letters together with matching envelopes, she then drops the pile down the stairs, and then places the letters randomly in the envelopes afterwards. Each arrangement is equally likely, and the task is to find the probability that exactly r are in their correct envelopes.



Solution:

Let $L_1, L_2,...,L_n$ denote the letters

A good letter means that is in the correct envelope

$A_i$ is the event that $L_i$ is good

$I_i$ is the indicator function of $A_i$

$j_1,..,j_r,k_r+1, ..., k_n$ is a random permutation of the numbers $1,...,n$



$S = sum_piI_j_1...I_j_r(1-I_k_r+1),...,(1-I_k_n)tag1$



Where the sum is taken over all the permutations $pi$



beginequation
S =
begincases
0 & textif X $neq$ 0\
r!(n-r)! & textif X = rtag2
endcases
endequation



Clearly the sum in equation 1 is only 1 $m=r$ and zero otherwise.

There are $r!$ permutations of the r matching letters and $(n-r)!$ permutations of the remaining numbers



Hence



$ I = fracSr!(n-r)! tag3$



Is the indicator function the exactly r letters are good.



it then says to take expectations of (4) and multiply out to obtain:



$E(S)=sum_pisum_s=0^n-r(-1)^sbinomn-rsE(I_j_1...I_j_r(I_k_r+1),...,(I_k_r+s))tag4$



They then state



$E(I_j_1...I_j_r(I_k_r+1),...,(I_k_r+s))=frac(n-r-s)!n!tag5$



Where $(n-r-s)!$ is the permutations which allocate $L_i_1,...,L_j_r, L_k_r+1,...,L_k_r+s$ to their correct envelopes.



Q1.) I'm stuck on eqn 4, broadly it seems to be calculating for a given r (number of good envelopes) the number of permutations for the remaining bad envelopes is this correct?



Q2.) Why have the last s envelopes been changed to $ I_k_r+1$ in Eqn (4) instead of $(1- I_k_r+1)$ as in Eqn (1)?



Q2b.) It says after Eqn(5) that $L_i_1,...,L_j_r, L_k_r+1,...,L_k_r+s$ to their correct envelopes? But I thought only the first set up to r was supposed to be in it's correct envelope?



Q3.) Where does the $(-1)^sbinomn-rs$ come from?



We want to find the number of permutations of the s bad letters i.e. we want to find the number of derangements is this correct?



The formula for the number of derangements $n!sum_j=0^n-kfrac(-1)^jj!$:



$(n-r)!sum_s=0^n-r-sfrac(-1)^ss!$



Which is similar but not the same.







share|cite|improve this question















  • 1




    These are sometimes called rencontres numbers and it should be easy to see that the number of ways of having $r$ correct out of $n$ is $n choose r$ times the number of derangements of $n-r$
    – Henry
    Jul 17 at 14:04












up vote
2
down vote

favorite









up vote
2
down vote

favorite











I'm suck on step 4 of the derivation below.



A secretary types n different letters together with matching envelopes, she then drops the pile down the stairs, and then places the letters randomly in the envelopes afterwards. Each arrangement is equally likely, and the task is to find the probability that exactly r are in their correct envelopes.



Solution:

Let $L_1, L_2,...,L_n$ denote the letters

A good letter means that is in the correct envelope

$A_i$ is the event that $L_i$ is good

$I_i$ is the indicator function of $A_i$

$j_1,..,j_r,k_r+1, ..., k_n$ is a random permutation of the numbers $1,...,n$



$S = sum_piI_j_1...I_j_r(1-I_k_r+1),...,(1-I_k_n)tag1$



Where the sum is taken over all the permutations $pi$



beginequation
S =
begincases
0 & textif X $neq$ 0\
r!(n-r)! & textif X = rtag2
endcases
endequation



Clearly the sum in equation 1 is only 1 $m=r$ and zero otherwise.

There are $r!$ permutations of the r matching letters and $(n-r)!$ permutations of the remaining numbers



Hence



$ I = fracSr!(n-r)! tag3$



Is the indicator function the exactly r letters are good.



it then says to take expectations of (4) and multiply out to obtain:



$E(S)=sum_pisum_s=0^n-r(-1)^sbinomn-rsE(I_j_1...I_j_r(I_k_r+1),...,(I_k_r+s))tag4$



They then state



$E(I_j_1...I_j_r(I_k_r+1),...,(I_k_r+s))=frac(n-r-s)!n!tag5$



Where $(n-r-s)!$ is the permutations which allocate $L_i_1,...,L_j_r, L_k_r+1,...,L_k_r+s$ to their correct envelopes.



Q1.) I'm stuck on eqn 4, broadly it seems to be calculating for a given r (number of good envelopes) the number of permutations for the remaining bad envelopes is this correct?



Q2.) Why have the last s envelopes been changed to $ I_k_r+1$ in Eqn (4) instead of $(1- I_k_r+1)$ as in Eqn (1)?



Q2b.) It says after Eqn(5) that $L_i_1,...,L_j_r, L_k_r+1,...,L_k_r+s$ to their correct envelopes? But I thought only the first set up to r was supposed to be in it's correct envelope?



Q3.) Where does the $(-1)^sbinomn-rs$ come from?



We want to find the number of permutations of the s bad letters i.e. we want to find the number of derangements is this correct?



The formula for the number of derangements $n!sum_j=0^n-kfrac(-1)^jj!$:



$(n-r)!sum_s=0^n-r-sfrac(-1)^ss!$



Which is similar but not the same.







share|cite|improve this question











I'm suck on step 4 of the derivation below.



A secretary types n different letters together with matching envelopes, she then drops the pile down the stairs, and then places the letters randomly in the envelopes afterwards. Each arrangement is equally likely, and the task is to find the probability that exactly r are in their correct envelopes.



Solution:

Let $L_1, L_2,...,L_n$ denote the letters

A good letter means that is in the correct envelope

$A_i$ is the event that $L_i$ is good

$I_i$ is the indicator function of $A_i$

$j_1,..,j_r,k_r+1, ..., k_n$ is a random permutation of the numbers $1,...,n$



$S = sum_piI_j_1...I_j_r(1-I_k_r+1),...,(1-I_k_n)tag1$



Where the sum is taken over all the permutations $pi$



beginequation
S =
begincases
0 & textif X $neq$ 0\
r!(n-r)! & textif X = rtag2
endcases
endequation



Clearly the sum in equation 1 is only 1 $m=r$ and zero otherwise.

There are $r!$ permutations of the r matching letters and $(n-r)!$ permutations of the remaining numbers



Hence



$ I = fracSr!(n-r)! tag3$



Is the indicator function the exactly r letters are good.



it then says to take expectations of (4) and multiply out to obtain:



$E(S)=sum_pisum_s=0^n-r(-1)^sbinomn-rsE(I_j_1...I_j_r(I_k_r+1),...,(I_k_r+s))tag4$



They then state



$E(I_j_1...I_j_r(I_k_r+1),...,(I_k_r+s))=frac(n-r-s)!n!tag5$



Where $(n-r-s)!$ is the permutations which allocate $L_i_1,...,L_j_r, L_k_r+1,...,L_k_r+s$ to their correct envelopes.



Q1.) I'm stuck on eqn 4, broadly it seems to be calculating for a given r (number of good envelopes) the number of permutations for the remaining bad envelopes is this correct?



Q2.) Why have the last s envelopes been changed to $ I_k_r+1$ in Eqn (4) instead of $(1- I_k_r+1)$ as in Eqn (1)?



Q2b.) It says after Eqn(5) that $L_i_1,...,L_j_r, L_k_r+1,...,L_k_r+s$ to their correct envelopes? But I thought only the first set up to r was supposed to be in it's correct envelope?



Q3.) Where does the $(-1)^sbinomn-rs$ come from?



We want to find the number of permutations of the s bad letters i.e. we want to find the number of derangements is this correct?



The formula for the number of derangements $n!sum_j=0^n-kfrac(-1)^jj!$:



$(n-r)!sum_s=0^n-r-sfrac(-1)^ss!$



Which is similar but not the same.









share|cite|improve this question










share|cite|improve this question




share|cite|improve this question









asked Jul 17 at 13:55









Bazman

365211




365211







  • 1




    These are sometimes called rencontres numbers and it should be easy to see that the number of ways of having $r$ correct out of $n$ is $n choose r$ times the number of derangements of $n-r$
    – Henry
    Jul 17 at 14:04












  • 1




    These are sometimes called rencontres numbers and it should be easy to see that the number of ways of having $r$ correct out of $n$ is $n choose r$ times the number of derangements of $n-r$
    – Henry
    Jul 17 at 14:04







1




1




These are sometimes called rencontres numbers and it should be easy to see that the number of ways of having $r$ correct out of $n$ is $n choose r$ times the number of derangements of $n-r$
– Henry
Jul 17 at 14:04




These are sometimes called rencontres numbers and it should be easy to see that the number of ways of having $r$ correct out of $n$ is $n choose r$ times the number of derangements of $n-r$
– Henry
Jul 17 at 14:04















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%2f2854522%2fgrimmett-and-stirzaker-p57-letter-matching%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%2f2854522%2fgrimmett-and-stirzaker-p57-letter-matching%23new-answer', 'question_page');

);

Post as a guest













































































Comments

Popular posts from this blog

What is the equation of a 3D cone with generalised tilt?

Color the edges and diagonals of a regular polygon

Relationship between determinant of matrix and determinant of adjoint?