返回题库

不公平得分游戏

Winning an Unfair Game

专题
Probability / 概率
难度
L4

题目详情

概率题:不公平得分:应选多少局。

英文原题

A game consists of a sequence of plays; on each play either you or your opponent scores a point, you with probability pp (less than 12\frac{1}{2} ), he with probability 1p1 - p . The number of plays is to be even - 2 or 4 or 6 and so on. To win the game you must get more than half the points. You know pp , say 0.45 , and you get a prize if you win. You get to choose in advance the number of plays. How many do you choose? Matching Problems (45 and 46)

解析

每局你得分概率 p<1/2p<1/2,总局数必须为偶数 2m2m,要赢需得分 >m>m

由于 p<1/2p<1/2Bin(2m,p)\mathrm{Bin}(2m,p) 的均值为 2mp<m2mp<m,随着 mm 增大,“超过一半”的上尾概率会更小(直观上偏离均值更远;可用 Chernoff 界/大数定律严格化)。

因此应选择最小的偶数局数:

2 局.\boxed{2\text{ 局}}.

英文解析

Don’t balk just because the game is unfair; after all you are the only one eligible for a prize. Let us call you player AA and your opponent player BB . Let the total number of plays be N=2nN = 2n . On a given play, your chance of winning a point is pp , your opponent’s q=1pq = 1 - p .

At first blush, most people notice that the game is unfair and therefore that, as NN increases, the expected value of the difference ( AA ’s points B- B ’s points) grows more and more negative. They conclude that AA should play as little as he can and still win- that is, two plays.

Had an odd number of plays been allowed, this reasoning based on expected values

would have led to the correct answer, and AA should choose only one play. With an even number of plays, two opposing effects are at work: (1) the bias in favor of BB , and (2) the redistribution of the probability in the middle term of the binomial distribution (the probability of a tie) as the number of plays increases.

Consider, for a moment, a fair game (p=12)\left(p = \frac{1}{2}\right) . Then the larger NN , the larger AA 's chance to win because as 2n2n increases, the probability of a tie tends to zero, and the limiting value of AA 's chance to win is 12\frac{1}{2} . For N=2,4,6N = 2,4,6 , his probabilities are 14,516,2264\frac{1}{4}, \frac{5}{16}, \frac{22}{64} . Continuity suggests that for pp slightly less than 12\frac{1}{2} , AA should choose a large but finite number of plays. But if pp is small, N=2N = 2 should be optimum for AA . It turns out that for p<13p < \frac{1}{3} , N=2N = 2 is optimum.

Your probability of winning in a game of 2n2n trials is the sum of the probabilities of getting n+1,n+2,,2nn + 1, n + 2, \ldots , 2n points, a sum given by

P2n=x=n+12n(2nx)pxq2nx.P_{2n} = \sum_{x = n + 1}^{2n} \binom{2n}{x} p^x q^{2n - x}.

In a game of 2n+22n + 2 plays, the probability of winning at least n+2n + 2 points and the game is

P2n+2=x=n+22n+2(2n+2x)pxq2n+2x.P_{2n + 2} = \sum_{x = n + 2}^{2n + 2} \binom{2n + 2}{x} p^x q^{2n + 2 - x}.

A game composed of 2n+22n + 2 plays can be regarded as having been created by adding two plays to a game of 2n2n plays. Unless player AA has won either nn or n+1n + 1 times in the 2n2n game, his status as a winner or loser cannot differ in the 2n+22n + 2 game from that in the 2n2n game.

Except for these two possibilities, P2n+2P_{2n + 2} would be identical with P2nP_{2n} . These exceptions are: (1) having n+1n + 1 successes in the first 2n2n plays, AA loses the next two, thus reducing his probability of winning in the 2n+22n + 2 game by

q2(2nn+1)pn+1qn1q^{2} \binom{2n}{n + 1} p^{n + 1} q^{n - 1}

or (2) having won nn plays in the 2n2n game, he wins the next two, increasing his prob-

ability by

p2(2nn)pnqnp^{2}\left( \begin{array}{c}2n \\ n \end{array} \right) p^{n} q^{n}

If N=2nN = 2n is the optimum, value, then both PN2PNP_{N - 2} \leq P_{N} and PNPN+2P_{N} \geq P_{N + 2} must hold. The results of the previous paragraph imply that these inequalities are equivalent to the following two inequalities:

q2(2n2n)pnqn2p2(2n2n1)pn1qn1,q2(2nn+1)pn+1qn1p2(2nn)pnqn.\begin{array}{l}{{q^{2}\left(\begin{array}{c}{{2n-2}}\\ {{n}}\end{array}\right)p^{n}q^{n-2}\leq p^{2}\left(\begin{array}{c}{{2n-2}}\\ {{n-1}}\end{array}\right)p^{n-1}q^{n-1},}}\\ {{q^{2}\left(\begin{array}{c}{{2n}}\\ {{n+1}}\end{array}\right)p^{n+1}q^{n-1}\geq p^{2}\left(\begin{array}{c}{{2n}}\\ {{n}}\end{array}\right)p^{n}q^{n}.}}\end{array}

After some simplifications, which you may wish to verify (we exclude the trivial case p=0p = 0 ), we reduce inequalities (1) to

(n1)qnp;nq(n+1)p(n - 1)q \leq np; \quad nq \geq (n + 1)p

These inequalities yield, after a little algebra, the condition

112p12n112p+1.\frac{1}{1 - 2p} - 1 \leq 2n \leq \frac{1}{1 - 2p} + 1.

Thus unless 1/(12p)1 / (1 - 2p) is an odd integer, NN is uniquely determined as the nearest even integer to 1/(12p)1 / (1 - 2p) . When 1/(12p)1 / (1 - 2p) is an odd integer, both adjacent even integers give the same optimum probability. And we can incidentally prove that when 1/(12p)=2n+11 / (1 - 2p) = 2n + 1 , P2n=P2n+2P_{2n} = P_{2n + 2} .

Consequently for p=0.45p = 0.45 , we have 1/(10.9)=101 / (1 - 0.9) = 10 as the optimum number of plays to choose.

This material is abbreviated from "Optimal length of play for a binomial game," Mathematics Teacher, Vol. 54, 1961, pp. 411- 412.

P.
G. Fox originally alluded to a result which gives rise to this game in "A primer for chumps," which appeared in the Saturday Evening Post, November 21, 1959, and discussed the idea further in private correspondence arising from that article in a note entitled "A curiosity in the binomial expansion-and a lesson in logic." I am indebted to Clayton Rawson and John Scarne for alerting me to Fox's paper and to Fox for

helpful correspondence.