Random Picks Not So Random

Andy picks a number uniformly from { 0 , 1 } \{0,1 \} .
Brandy picks a number uniformly from { 0 , 1 , 2 } \{ 0, 1, 2 \} .
Candy picks a number uniformly from { 0 , 1 , 2 , 3 } \{ 0, 1, 2, 3 \} .
Dandy picks a number uniformly from { 0 , 1 , 2 , 3 , 4 } \{ 0, 1, 2, 3, 4 \} .
Endy picks a number uniformly from { 0 , 1 , 2 , 3 , 4 , 5 } \{ 0, 1, 2, 3, 4, 5 \} .

What is the probability that these 5 numbers in that order are non-decreasing?

1 5 \frac{1}{5} 7 20 \frac {7}{20} 7 30 \frac{ 7} { 30 } 11 60 \frac{11}{60}

This section requires Javascript.
You are seeing this because something didn't load right. We suggest you, (a) try refreshing the page, (b) enabling javascript if it is disabled on your browser and, finally, (c) loading the non-javascript version of this page . We're sorry about the hassle.

2 solutions

Calvin Lin Staff
Nov 21, 2016

Let's consider the general problem, where the kth person picks from { 0 , 1 , 2 , , k } \{ 0, 1, 2, \ldots, k \} .

Claim: The number of non-decreasing sequences that can be picked is equal to C ( n + 1 ) C(n+1) , the nth catalan number .

Proof: One of the classifications of Catalan numbers, is that they are the number of ways to walk n n blocks north and n n blocks east, without crossing the diagonal line. This means that the line might touch ( x , x ) (x,x) , but would not reach a point ( x , y ) (x,y) with y > x y > x .
Given such a walk, we can easily create a set of numbers picked, where the kth number is equal to the maximum y-value when x = k x = k . We then have y x = k y \leq x = k which satisfies the constraints of the problem. In this case, we ignore the walk on x = n + 1 x = n+1 .
Conversely, given any non-decreasing sequence that satisfies the constraints, we can convert it into a walk that doesn't cross the diagonal line, by letting the person walk to the point ( k , f ( k ) (k, f(k) , walk east one square and then walk up (if any) to the point ( k + 1 , f ( k + 1 ) ) (k+1, f(k+1)) . After the final person, the walk goes from n , f ( n ) n, f(n) , walks east one square and then walks north to the point ( n + 1 , n + 1 ) (n+1, n+1) .
We see that these 2 maps are inverses of each other. Thus, this establishes the bijection. _\square

Hence, the number of such sequences is C ( 6 ) = 132 C(6) = 132 . The probability is thus C ( 6 ) 6 ! = 132 720 = 11 60 \frac{ C(6) } { 6!} = \frac{132}{720} = \frac{ 11}{60} .


Note: Can you explain why the walk to went for n + 1 n+1 blocks by n + 1 n+1 blocks instead of n n blocks by n n blocks? Hint: How does the end point affect the count?

Geoff Pilling
Nov 20, 2016

There is likely a more elegant solution, but this is what I came up with...

I worked backwards, starting with Dandy and Endy.

Let D ( n ) = D(n) = Probaility of non-decreasing numbers if Dandy chooses n n .

D ( n ) = 6 n 6 D(n) = \frac{6-n}{6}

Now lets add in Candy.

Let C ( n ) = C(n) = Probability of non-decreasing numbers if Candy chooses n n .

C ( n ) = i = n 4 D ( n ) 5 C(n) = \sum_{i=n}^{4}\frac{D(n)}{5}

Now lets add in Brandy.

Let B ( n ) = B(n) = Probability of non-decreasing numbers if Brandy chooses n n .

B ( n ) = i = n 3 C ( n ) 4 B(n) = \sum_{i=n}^{3}\frac{C(n)}{4}

Finally lets add in Andy.

Let A ( n ) = A(n) = Probability of non-decreasing numbers if Andy chooses n n .

A ( n ) = i = n 2 B ( n ) 3 A(n) = \sum_{i=n}^{2}\frac{B(n)}{3}

This leaves,

A ( 0 ) = 1 2 A(0) = \frac{1}{2}

A ( 1 ) = 7 60 A(1) = \frac{7}{60}

So, the probability of non-decreasing results is:

P = A ( 0 ) + A ( 1 ) 2 = 11 60 P = \frac{A(0) + A(1)}{2} = \boxed{\frac{11}{60}}

There is a bijection to the catalan numbers . It's asking for C ( 6 ) = 132 C(6) = 132 .

I can add my solution.

Calvin Lin Staff - 4 years, 6 months ago

Log in to reply

Ah yes. The Catalan numbers will likely be much more pedagogical! :^)

Geoff Pilling - 4 years, 6 months ago

0 pending reports

×

Problem Loading...

Note Loading...

Set Loading...