如果第 k 张是 A,并且在前 k 张牌中恰好还有另外 1 张 A(即前 k 张一共抽到 2 张 A),则玩家获胜。
问:应选择哪个 k 才能使获胜概率最大?
A player chooses a number k≤52 and the top k cards are drawn one by one from a properly shuffled standard deck of 52 cards. The player wins if the last drawn card is an Ace and if there is exactly one more Ace among the cards drawn. Which k should the player choose to maximize the chance of winning in this game?
解析
Denote by Wk the event that the k - th card is an Ace and that one more card is an Ace among the first k−1 cards. Note that k≤50 since there must be at least two cards (Aces) left after the top 50 cards are drawn. We need to find 1≤k≤50 such that P(Wk) is maximized. Let Nk be the number of ways in which the deck can be shuffled to have one Ace in the k - th position, one Ace in a position from the set {1,2,…,k−1} , and two Aces in positions from the set {k+1,…,52} . Then,
P(Wk)=52!Nk
Denote by Mk the number of ways in which we can choose the positions for four Aces. For each choice of positions for the four Aces, the Aces can be placed in those positions in 4! ways, while the other cards can be placed in the remaining positions in 48! ways. Therefore,
Nk=4!⋅48!⋅Mk
To calculate Mk , note that: the k - th position must be chosen; one position is in {1,2,…,k−1} and can be chosen in k−1 ways; the other two positions are in {k+1,k+2,…,52} and can be chosen in (52−k2) ways. Thus,
Mk=(k−1)⋅(52−k2)=2(k−1)(52−k)(51−k)
From (2.5- 2.7), it follows that the probability of winning, when choosing k , is
Since f(k)=g(k−1) , the maximum of f is attained at k⋆=z⋆+1 , where 0≤z⋆≤49 is the integer for which the function g is the largest; recall that 1≤k≤50 . The derivative of g(z) is
The quadratic function g′(z) is negative on the interval (z1,z2) and positive everywhere else. This implies that g is increasing on (−∞,z1) , decreasing on (z1,z2) , and increasing on (z2,+∞) . Hence, the value 0≤z⋆≤49 where g attains its maximum is either ⌊z1⌋=16 or ⌈z1⌉=17 . In other words, z⋆∈{16,17} , which corresponds to k⋆∈{17,18} . Since f(17)=19040 and f(18)=19072 , we conclude that it is optimal to choose is k=18 .