How many times does it take to look at the six sides of a dice – Penden’s Notes on Probability Theory
source
When I was watching the video a few days ago, I found such a question
answer
Reduced to the coin problem
general practice
- Assuming that you can see the front and back of the coin twice, then the situation may be "front and back" or "anyway" (the other two are "front and back", "reverse and negative"), and the probability is 1 2 \frac{ 1 }{2}21;
- Assuming that you can only see the front and back of the coin three times, then the situation may be "heads and tails" or "heads and tails" (the other two are "heads and heads" and "reversal and back"), and the probability is 1 4 \ frac {1}{4}41(Because of "positive positive", the probability of "anti-negative" is 1 2 \frac{1}{2}21);
- And so on...
n | 2 | 3 | ⋯ \cdots ⋯ | k |
---|---|---|---|---|
p | 1 2 \frac{1}{2} 21 | 1 4 \frac{1}{4} 41 | ⋯ \cdots⋯ | 1 2 k − 1 \frac{1}{2^{k-1}} 2k−11 |
E n = 2 ∗ 1 2 + 3 ∗ 1 4 + ⋯ + k ∗ 1 2 k − 1 2 E n = 2 + 3 ∗ 1 2 + ⋯ + k ∗ 1 2 k − 2 minus E n = 2 + 1 2 + 1 4 + ⋯ + 1 2 k − 2 − k ∗ 1 2 k − 1 = 3 \begin{aligned} En &= 2*\frac{1}{2}+3*\frac{1}{ 4}+\dots+k*\frac{1}{2^{k-1}} \\ 2En&= 2+3*\frac{1}{2}+\dots+k*\frac{1}{ 2^{k-2}} \\ lower minus upper \quad En &= 2 +\frac{1}{2} + \frac{1}{4} + \dots + \frac{1}{2^{ k-2}} - k*\frac{1}{2^{k-1}} = 3 \end{aligned}in _2 E ndown minus upin _=2∗21+3∗41+⋯+k∗2k−11=2+3∗21+⋯+k∗2k−21=2+21+41+⋯+2k−21−k∗2k−11=3
recursive method
General E 2 E_2E2Recorded as the average number of times used to see two people, E 1 E_1E1Recorded as the average number of times E 2 used to see one side
= 1 2 ( 1 + E 1 ) + 1 2 ( 1 + E 1 ) \begin{aligned} E_2 &= \frac{1}{2}(1+E_1) + \frac{1}{2}(1+E_1) \\ \end{aligned}E2=21(1+E1)+21(1+E1)
Where the previous 1 2 ( 1 + E 1 ) \frac{1}{2}(1+E_1)21(1+E1) represents the average number of times required to cast heads for the first time (thisE 1 E_1E1Indicates the average number of times required to cast to the tail), the latter 1 2 ( 1 + E 1 ) \frac{1}{2}(1+E_1)21(1+E1) represents the average number of times required to cast tails for the first time (thisE 1 E_1E1represents the average number of tosses required to land heads);
E 1 E_1E1If it means the average number of times
E 1 = 1 2 + 1 2 ( 1 + E 1 ) E_1 = \frac{1}{2} + \frac{1}{2}(1+E_1)E1=21+21(1+E1)
where the previous1 2 \frac{1}{2}21Indicates that the first cast is negative, and the next one is 1 2 E 1 \frac{1}{2} E_121E1Indicates the first time it was voted heads;
E 1 = 2 E 2 = 3 can be solved from E_1 = 2 \\ E_2 = 3
E1=2E2=3
back to the dice problem
If the general solution is still used for dice, it will be very complicated; so take the recursive method
E 6 = 1 6 ( 1 + E 5 ) + ⋯ + 1 6 ( 1 + E 5 ) = ( 1 + E 5 ) E 5 = 1 6 ( 1 + E 5 ) + 5 6 ( 1 + E 4 ) = 6 5 + E 4 E 4 = 2 6 ( 1 + E 4 ) + 4 6 ( 1 + E 3 ) = 6 4 + E 3 E 3 = 3 6 ( 1 + E 3 ) + 3 6 ( 1 + E 2 ) = 6 3 + E 2 E 2 = 4 6 ( 1 + E 2 ) + 3 6 ( 1 + E 1 ) = 6 2 + E 1 E 1 = 5 6 ( 1 + E 1 ) + 1 6 \begin{aligned} E_6 &= \frac{1}{6}(1+E_5) + \dots + \frac{1}{6}(1 +E_5) \\ &=(1+E_5) \\ E_5 &= \frac{1}{6}(1+E_5) + \frac{5}{6}(1+E_4) \\ &=\frac {6}{5} + E_4 \\ E_4 &= \frac{2}{6}(1+E_4) + \frac{4}{6}(1+E_3) \\ &=\frac{6}{ 4} + E_3 \\ E_3 &= \frac{3}{6}(1+E_3) + \frac{3}{6}(1+E_2) \\ &=\frac{6}{3} + E_2 \\ E_2 &= \frac{4}{6}(1+E_2) + \frac{3}{6}(1+E_1) \\ &=\frac{6}{2} + E_1 \\ E_1 & = \frac{5}{6}(1+E_1) + \frac{1}{6} \\ \end{aligned}E6E5E4E3E2E1=61(1+E5)+⋯+61(1+E5)=(1+E5)=61(1+E5)+65(1+E4)=56+E4=62(1+E4)+64(1+E3)=46+E3=63(1+E3)+63(1+E2)=36+E2=64(1+E2)+63(1+E1)=26+E1=65(1+E1)+61
解得
E 1 = 6 E 6 = 1 + 6 5 + 6 4 + 6 3 + 6 2 + 6 E_1 = 6 \\ E_6 = 1 + \frac{6}{5} + \frac{6}{4} + \frac{6}{3} + \frac{6}{2} + 6 \\E1=6E6=1+56+46+36+26+6