Q. 2.21

Question

Consider Example 5o, which is concerned with the number of runs of wins obtained whenn wins and mlosses are randomly permuted. Now consider the total number of runs—that is, win runs plus loss runs—and show that


P(2k runs)=n-1k-1m-1k-1n+mnP(2k+1 runs)=n-1km-1k-1+n-1k-1m-1kn+mn

Step-by-Step Solution

Verified
Answer

Use the procedure from the Example50

Since runs of wins and losses are alternating, in2k runs there arek runs of wins and kruns of losses, in 2k+1runs, there can be eitherk+1 run of wins and kof losses or vice versa.

1Step 1 Given Information.

A number of runs of wins are obtained when nwins andm losses are randomly permuted.

2Step 2 Explanation.

Experiment: The distribution ofn wins and mlosses in runs (consecutive wins or losses).

Wanted probabilities - precisely2k run, P(2k)and precisely 2k+1runs P(2 k+1).

As explained in the example 50there arem+nn equally likely outcomes (we differentiate only the order of wins and losses, choosen places for wins fromm+n )

2kruns.

Since runs of wins and runs of losses alternate, 2kruns are precise kruns of wins andk runs of losses.

Say thatx1,x2,,xk are the lengths ofIst, 2nd, .k-th run of wins.

x1,x2,,xkcan be any positive numbers such that:

x1+x2++xk=n

Since there are nwins in total.

Similarly, if y1,y2,,ykare the lengths of runs of losses, the number of possibilities y1,y2,,ykis the number of positive solutions to:

y1+y2++yk=m

From the chapter1.6, the number of possible solutions x1,x2,,xkisn-1k-1 and the number of y1,y2,,ykism-1k-1.

So the total number of dividing nwins and mlosses into 2kruns is:

n-1k-1m-1k-1

So by the formula for probability on the sample spaces of equally likely outcomes:

P(2k)=n-1k-1m-1k-1n+mn

3Step 3 Explanation.

2 k+1runs.

Since runs of wins and runs of losses alternate, 2kruns are either kruns of wins and k+1runs of losses ork+1 runs of wins and kruns of losses.

Both of the cases are analogous to the procedure above.

Say that x1,x2,,xkare the lengths of 1st, 2nd, kth run of wins.

x1,x2,,xkcan be any positive numbers such that:

x1+x2++xk=n

Since there are nwins in total.

The name y1,y2,,yk,yk+1is the length of k+1runs of losses, the number of possibilities y1,y2,,yk,yk+1is the number of positive solutions to:

y1+y2++yk+yk+1=m

From the chapter 1.6, the number of possible solutions x1,x2,,xkis n-1k-1and the number of y1,y2,,ykism-1k.

So the total number of dividingn wins andm losses into kruns of wins and k+1runs of losses isn-1k-1m-1k.

And if there are k+1runs of wins and kruns of losses there aren-1km-1k-1

possible distributions of wins and losses into runs.

So by the formula for probability on the sample spaces of equally likely outcomes:

P(2k+1)=n-1km-1k-1+n-1k-1m-1kn+mn