Grinstead-Snell-Probability · Problem 3.3.3

Conditional Probability

Mathematics · card-shuffling-coding

Problem

Let DD be a deck of nn cards. We have seen that there are ana^n aa-shuffles of DD. A coding of the set of aa-unshuffles was given in the proof of Theorem 3.9. We will now give a coding of the aa-shuffles which corresponds to the coding of the aa-unshuffles. Let SS be the set of all nn-tuples of integers, each between 00 and a−1a-1. Let M=(m1,m2,…,mn)M = (m_1, m_2, \ldots, m_n) be any element of SS. Let nin_i be the number of ii's in MM, for 0≤i≤a−10 \leq i \leq a-1. Suppose that we start with the deck in increasing order (i.e., the cards are numbered from 1 to nn). We label the first n0n_0 cards with a 0, the next n1n_1 cards with a 1, etc. Then the aa-shuffle corresponding to MM is the shuffle which results in the ordering in which the cards labelled ii are placed in the positions in MM containing the label ii. The cards with the same label are placed in these positions in increasing order of their numbers. For example, if n=6n = 6 and a=3a = 3, let M=(1,0,2,2,0,2)M = (1, 0, 2, 2, 0, 2). Then n0=2n_0 = 2, n1=1n_1 = 1, and n2=3n_2 = 3. So we label cards 1 and 2 with a 0, card 3 with a 1, and cards 4, 5, and 6 with a 2. Then cards 1 and 2 are placed in positions 2 and 5, card 3 is placed in position 1, and cards 4, 5, and 6 are placed in positions 3, 4, and 6, resulting in the ordering (3,1,4,5,2,6)(3, 1, 4, 5, 2, 6). (a) Using this coding, show that the probability that in an aa-shuffle, the first card (i.e., card number 1) moves to the iith position, is given by the following expression: (a−1)i−1an−i+(a−2)i−1(a−1)n−i+⋯+1i−12n−ian.\frac{(a-1)^{i-1}a^{n-i} + (a-2)^{i-1}(a-1)^{n-i} + \cdots + 1^{i-1}2^{n-i}}{a^n}. (b) Give an accurate estimate for the probability that in three riffle shuffles of a 52-card deck, the first card ends up in one of the first 26 positions. Using a computer, accurately estimate the probability of the same event after seven riffle shuffles.

Browse the problem library