Probability Questions

1. find the expected number of rolls of an unbiased 6-sided die to get a 6, under the condition that every roll up to that point has resulted in an even number.

P(N=k∩E)=P((2|4)k−16)=(1/3)k−11/6P(N=k \cap E)=P((2|4)^{k-1}6)=(1/3)^{k-1} 1/6

and so

P(E)=∑n=1..P(N=k∩E)=1/61−1/3=14P(E)=\sum_{n=1..}P(N=k\cap E)=\frac{1/6}{1-1/3} = \frac{1}{4}

and so

P(N=k|E)=(1/3)k−1(2/3)P(N=k|E)=(1/3)^{k-1}(2/3)

so N|EN|E:geom(2/3) and so

𝔼[N|E]=3/2\mathbb{E} [N|E]=3/2

2. find the probability that n rolls of a 6-sided die form a non-increasing sequence.

Let xix_idenote the number of rolls of value i.i. Then given xx there is exactly one way to order the values in non-increasing order. The number of ways to allocate nn rolls of 6 values is the number of ways to allocate nn identical items to 6 bins. Using stars and bars, this is C(n+5,5)C(n+5,5). There are 6n6^npossible rolls and so the probability is C(n+5,5)/6nC(n+5,5)/6^n

3. find the probability that you win a game with a counterpart where you win if you roll a value strictly higher than the prior roll, and you roll first.

Let N be the first roll where the roll is higher than the prior roll. Then the first N−1N-1 rolls is non-increasing. The probability that you win is the probability that NN is odd. Since

P(N>n)=C(n+5,5)6nP(N>n)=\frac{C(n+5,5)}{6^n}

since

P(N=n)=P(N>n−1)−P(N>n)P(N=n)=P(N>n-1)-P(N>n)

it follows that

P(N:odd)=P(N=1)+P(N=3)+P(N=5)+…P(N:\text{odd})=P(N=1)+P(N=3)+P(N=5)+\ldots

and so

P(N:odd)=∑k=1..(P(N>2k)−P(N>2k+1))P(N:\text{odd})= \sum_{k=1..} \left(P(N>2k)-P(N>2k+1)\right)

which works out to

P=(C(7,5)62−C(8,5)63)+(C(9,5)64−C(10,5)65)+…P = \left(\frac{C(7,5)}{6^2} – \frac{C(8,5)}{6^3}\right)+\left(\frac{C(9,5)}{6^4} – \frac{C(10,5)}{6^5} \right) + \ldots

4. You are given a bag with 3 red marbles and 7 blue marbles. You draw marbles one by one without replacement until all 3 red marbles have been drawn.

What is the expected total number of marbles you will draw?

There are C(n−1,2)C(n-1,2) ways to arrange 2 R balls into n−1n-1 slots and 1 R ball in the nth slot. There are C(10,3)C(10,3) ways to arrange 3 R balls into 10 slots. So

∑n=3..9nC(n−1,2)C(10,3)=∑n=3..93C(n,3)C(10,3)=8.25\sum_{n=3..9} n \frac{C(n-1,2)}{C(10,3)} = \sum_{n=3..9} 3\frac{C(n,3)}{C(10,3)} = 8.25

Alternatively, using R balls as separators, B balls can be placed into 4 slots. So there are 7/4 B balls on average in each slot. So the expected number of balls drawn is 3 * 7/4 + 3 = 33/4.

4. You have a bag containing 9 fair coins and one biased coin that lands on heads with probability 0.8. You randomly select a coin and flip it, yielding a heads. What is the probability that a second flip will also yield heads?

The odds of selecting a fair coin vs the biased coin is 9:1. The odds are updated to 45/8 when a heads is observed after selection. Hence the probability that a second flip yields heads is 45/53 * 1/2 + 8/53 * 4/5 = 289/530

5. What is the probability that two 6’s are rolled in a dice game that ends when at least one 2 and one 3 have been rolled?

The number of 6’s is a function defined by N′=N+𝕀(X′=6)N’ = N + \mathbb{I}(X’=6). The game evolves on the markov chain below, which can be aggregated to the simplified chain.

\xymatrix@R=2cm@C=2cm{ *++[o][F]{0} \ar@(ul,dl)[]_{6} \ar[r]^{1} \ar[dr]^(.3){2} & *++[o][F]{1} \ar@(ur,dr)[]_{6} \ar[d]^{3} \\ *++[o][F]{2} \ar@(dl,ul)[]_{6} \ar@(dr,ld)[]^{3} & *++[o][F]{3} \ar@(dr,ur)[]_{6} }

Two 6’s occur in the sequence iff

  • 2 6’s occur at state A, 0 6’s occur at state BC
  • 1 6 occurs at state A, 1 6 occurs at state BC
  • 0 6’s occur at state A, 2 6’s occur at state BC

and so the probability that 2 6’s occur before the process reaches state D is given by

p=(1/3)2(2/3)(1/2)+(1/3)(2/3)(1/2)(1/2)+(2/3)(1/2)2(1/2)=19/108p = (1/3)^2(2/3)(1/2)+(1/3)(2/3)(1/2)(1/2)+(2/3)(1/2)^2(1/2) = 19/108

6. Consider an ant walking along the edges of a cube such that its movements between edges completely random. What is the expected number of moves to reach the vertex opposite its starting vertex?

Let the state of the markov chain denote the number of edges distant from the starting vertex the ant is located at. The Markov chain describing the ant’s behavior is given by

Let NiN_idenote the expected number of steps to reach state 3 from state i. Then we have a system of equations described by

N_0 &= 1 + N_1 \\ N_1 &= 1 + 1/3 N_0 + 2/3 N_2
N0=1+N1N1=1+1/3N0+2/3N2N2=1+2/3N1+1/3N3N3=0N_0 = 1 + N_1 \\ N_1 = 1 + 1/3 N_0 + 2/3 N_2 \\ N_2 = 1 + 2/3 N_1 + 1/3 N_3 \\ N_3 = 0

Solving this system gives N0=10N_0 = 10

Alternative approach: This approach uses martingales and the OST. It is overkill but provides a conceptually distinct alternative to the plain-vanilla method, and is in the style of Conway

Let τ\tau be the stopping time when the ant reaches state 3. First task is to construct a martingale of the form Mn=f(Xn)−nM_n = f(X_n)-n. The martingale conditon is

𝔼[Mn+1|Xn]=Mn\mathbb{E}[ M_{n+1} | X_n ] = M_n

which requires in this case

𝔼[f(Xn+1)|Xn]=f(Xn)+1\mathbb{E} [f(X_{n+1})|X_n] = f(X_n) + 1

and so the unknown function ff must satisfy

f(1)=f(0)+1f(1)=f(0) + 1
2/3f(2)+1/3f(0)=f(1)+12/3 f(2) + 1/3 f(0) = f(1) + 1
1/3f(3)+2/3f(1)=f(2)+11/3 f(3) + 2/3 f(1) = f(2) + 1

Which can be rewritten as

f(1)=f(0)+1f(1)=f(0)+1
f(2)=f(0)+3f(2) = f(0) + 3
f(3)=f(0)+10f(3)=f(0)+10

This is a system of 3 equations in 4 unknowns, so we can choose one of them, say f(3)=0f(3)=0. This gives f(0)=−10,f(1)=−9,f(2)=−7f(0)=-10,f(1)=-9,f(2)=-7

Using the optional samplying theorem, 𝔼Mτ=𝔼M0\mathbb{E} M_\tau = \mathbb{E} M_0 and so

f(3)−𝔼τ=f(0)f(3) – \mathbb{E} \tau = f(0)

and so 𝔼τ=10\mathbb{E} \tau = 10

7. Consider a game where the payoff is zero if the player rolls a 6, and as long as the die roll is not a 6 the player accumulates a fortune of all die rolls. What is the optimal strategy to maximize expected fortune?

Assume the running sum to date is SS. The player has two options, stop or roll again: S|(S+X)𝕀(X≠6)S \; | \; (S+X)\mathbb{I}(X\neq6) where XX is the outcome of the next die roll. To maximize expected fortune, stop iff S≥𝔼(S+X)𝕀(X≠6)S \ge \mathbb{E} (S+X)\mathbb{I}(X\neq6)

Explicit evaluation gives

S≥𝔼[S+X|X≠6](5/6)=5/6(S+3)S \ge \mathbb{E}[S+X|X\neq6](5/6) = 5/6 (S+3)

and so stop when S≥15S \ge 15

8. What is the value of a contract that pays out X1X_1given that max⁡(X1,X2)=70\max(X_1,X_2)=70 where X1,X2X_1,X_2are independent D100 rolls?

Given the information, there are 139 equiprobable outcomes such that there are 70 outcomes of the form (70,*) and 69 outcomes of the form (k,70) where k=1..69. So the fair value is

70∗(70/139)+(69∗70)/2∗(1/139)=7315/13970*(70/139)+(69*70)/2*(1/139)=7315/139

8. Consider a standard 1D random walk, starting from position 0, given that state 3 is reached what is the probability that -1 is never touched?

Let PkP_kbe the probability that state 3 is reached given that state -1 is never reached. Then we have the following system of equations:

P–1=0P3=1P0=1/2P1P1=1/2P0+1/2P2P2=1/2P1+1/2

which gives P0=1/4P_0=1/4

9. A segment of unit length is randomly split into 3 pieces. What is the probability the pieces can form a triangle?


By the triangle law, the sides of a triangle x,y,z satisfy z2=x2+y2−2xycosθz^2 = x^2 +y^2 −2xycosθ where θ is the angle between sides x,y. Since cosθ ∈ [−1,1] and so |x − y| ≤ z ≤ x + y. This condition also is sufficient for the existence of an angle such that the triangle equation is satisfied. Now, let X, Y be the uniform(0,1) random variables where cuts occur. When X ≤ Y the lengths are X, Y − X, 1 − Y and so the condition in this case is

1–Y–X≤Y–X≤1–Y+X1≤2Y≤1+2X1/2≤Y≤1/2+X

and so the probability that the pieces form a triangle is the sum of the areas of the shaded triangular regions, which is 1/4.

10. You shuffle a standad 52-card deck and deal cards one by one from the top until you have seen at least one ace and one king. what is the expected number of cards dealt?

Let TA,TKT_A,T_K be the number of cards to the fist ace and first king, respectively. Note that

min⁡(TA,TB)+max⁡(TA,TB)=TA+TB\min(T_A,T_B) + \max(T_A,T_B)=T_A + T_B

and min⁡(TA,TB),max⁡(TA,TB)\min(T_A,T_B),\max(T_A,T_B) is the number of cards to see either, and to see at least one of both. Since there are 4 aces, 𝔼TA=𝔼TK=48/5+1=53/5\mathbb{E} T_A = \mathbb{E} T_K = 48/5 + 1 = 53/5 and 𝔼min⁡(TA,TB)=44/9+1=53/9\mathbb{E} \min(T_A,T_B) = 44/9 + 1 = 53/9 and by the identity above, 𝔼max⁡(TA,TK)=2⋅53/5−53/9=689/45\mathbb{E} \max(T_A,T_K) = 2\cdot 53/5 – 53/9 = 689/45

11. Starting with $2 and flipping a fair coin where each head returns $1 and each tail loses $1 and where the game ends when either $0$ or $5$ is hit, what is the expected number of coin flips until the game ends?

Let ⟨Xk⟩\left< X_k \right>be the sequence of coin flips such that X0=2X_0=2. Then the sequence is a martingale, as is ⟨Xk2−k⟩\left< X_k^2 – k\right>. Let τ\tau be the number of flips to reach the boundary. By the optional sampling theorem, 𝔼Xτ=X0\mathbb{E} X_\tau = X_0and 𝔼[Xτ2−τ]=𝔼X02\mathbb{E} [X_\tau^2 – \tau] = \mathbb{E} X_0^2. Let pp be the probability that the boundary 5 is hit. Then 5p+0(1−p)=25p+0(1-p)=2 and so p=2/5p=2/5. Also 25p+0(1−p)−𝔼τ=425p+0(1-p)-\mathbb{E}\tau=4 and so 𝔼τ=6\mathbb{E}\tau=6

12. Three numbers X,Y,ZX,Y,Z are independent and uniform(0,1) random variables. What is the probability that the largest of the three numbers is greater than the sum of the other two?

The events X>Y+Z,Y>X+Z,Z>X+YX>Y+Z,Y>X+Z,Z>X+Y are mutually exclusive and equally likely. Conditioning on the outcome that Z=zZ=z the probability that

P[Z>X+Y|Z=z]=12z2P[Z > X+Y | Z = z] = \frac{1}{2}z^2

and so P[X+Y<Z]=16P[X+Y<Z] = \frac{1}{6}. So the probability is 1/6 * 3 = 1/2

13. A standard 52-card deck is shuffled. What is the probability that all four aces appear in the deck before the first king?

There are 4!4! sequences with 4 aces first, then 4 kings, and 8! total sequences, and so the probability is 1/C(8,4).

14. A stick of length 1 is broken into three pieces by picking two break points independently and uniformly along the length. conditional on the fist break being 0.3, what is the probability that the resulting pieces can form a triangle?

The pieces can form a triangle if the sum of the shorter lengths is at least as great as the longest length. If the break qq occurs below 0.3, then this is not satsified since 0.7>q+(0.3−q)=0.30.7 > q + (0.3-q) = 0.3 . If the break occurs above 0.3, then the lengths are 0.3,q−0.3,1−q0.3,q-0.3,1-q. If q>0.5q > 0.5 then the condition is not satisfied. If q>0.8q > 0.8 the condition is not satisfied. hence the condition is satisifed iff 0.5<q<0.80.5 < q < 0.8 which has probability 0.3

15. Starting from a fortune of $1, a game is played where the player can stop or roll a fair D2 die such that the fortune is doubled when i=1i=1 and fortune is 0 when i=6i=6 and the game ends. When is it optimal to stop?

Let X(0)=1X(0) = 1 and let ⟨X(k)⟩\left< X(k) \right> be the fortune sequence. Then 𝔼[X(k+1)|X(k)]=2X(k)(1/2)+0=X(k)\mathbb{E} [X(k+1) \; | \; X(k)]= 2X(k)(1/2)+0=X(k) and so the sequence is a martingale. For any bounded stopping time, the OST implies that 𝔼[X(τ)]=X(0)=1\mathbb{E} [X(\tau)] = X(0) = 1 and so it is optimal to stop at any time. If the game never stops, the process is not uniformly bounded, but the probability of going bankrupt is 1.

Let V(x)V(x) be the maximum fortune playing the game when the starting fortune is xx. Then V(x)=max⁡(x,0.5V(2x))V(x) = \max(x,0.5 V(2x)). Indifference of choice occurs when 2x=V(2x)2x=V(2x). This implies x=V(x)x=V(x) and so assuming we reach the boundary, this implies that V(1)=1V(1)=1 therefore it is optimal not to roll again.

16. Consider a game where each round a player can roll a D6 and generates a running fortune of the current fortune plus the outcome of the D6 when the roll is not equal to 6, and the game ends and the fortune is 0 if the roll is 6. What is the optimal strategy?

V(x)=max⁡(x,𝔼V(x+Y:D6)𝕀(Y≠6))V(x) = \max(x,\mathbb{E} V(x+Y:D6)\mathbb{I}(Y\neq 6))

suppose there is a decision boundary tt such that x≥t→V(x)=xx\ge t \rightarrow V(x)=x at the boundary

6t=6V(t)=t+1+...t+5=5t+156t = 6V(t) = t+1 + … t+5 = 5t+15

and so t=15t=15. The optimal strategy is to continue rolling until one must stop or the fortune has reached a value of 15. To compute the value of the game, note that the optimal values can be computed iteratively:

V(14)=15+…+196=5⋅176V(13)=V(14)+16+…+186=5⋅176+4⋅176

17. How should you fairly price a contract whose payoff is the sum of two D10 dice such that your counterparty knows one values of the dice and you know neither?

Let aa be the ask. The contract value is x+yx+y. The counterparty will purchase the contract iff x+5.5≥ax + 5.5 \ge a. The gain for you is

p=(x+y−a)𝕀(x≥a−5.5)p=(x+y-a)\mathbb{I}(x\ge a – 5.5)

and it is fairly priced when 𝔼p=0\mathbb{E} p = 0. Let b=a−5.5b = a – 5.5. Then by tower law, this gives 𝔼x𝕀(x≥b)=𝔼b𝕀(x≥b)\mathbb{E}x\mathbb{I}(x\ge b)=\mathbb{E}b\mathbb{I}(x\ge b) and b=10b = 10 is a (the) solution. So the ask a=15.5 a = 15.5 . This places the ask price the extreme top end of the valuation.

Navigation

About

Raedwulf ….