Table of Contents
Fetching ...

Matching adjacent cards

Kent E. Morrison

TL;DR

This paper analyzes the distribution of adjacent-rank matches in a shuffled deck with $k$ suits and $n$ ranks, focusing on the exact distribution of the random variable $M$ counting adjacent equal-rank pairs. It develops an exact combinatorial framework using partitions of $k$ across ranks and generating functions $A(x)$ and $B(x)$, with the core relation $A(x)=B(x-1)$, to enumerate the distribution of $M$, and specializes to both the standard deck ($k=4$) and general $k$. The authors show that a binomial model with $N=kn-1$ trials and $p=(k-1)/(kn-1)$ and a Poisson limit with parameter $\lambda=k-1$ both approximate $M$, proving variance equality and a Poisson limit as $n\to\infty$ (via Soon's bound), and validating the theory with numerical comparisons for the standard deck. They also provide exact results for the case $n=2$ and establish connections to Carlitz permutations and lattice-path interpretations, offering practical guidance for estimating the distribution of adjacent matches in decks.

Abstract

In a well-shuffled deck of cards, what is the probability that somewhere in the deck there are adjacent cards of the same rank? What is the average number of adjacent matches? What is the probability distribution for the number of matches? We answer these and related questions for both the standard $52$-card deck with four suits and $13$ ranks and for generalized decks with $k$ suits and $n$ ranks. We also determine the limiting distribution as $n$ goes to infinity with $k$ fixed.

Matching adjacent cards

TL;DR

This paper analyzes the distribution of adjacent-rank matches in a shuffled deck with suits and ranks, focusing on the exact distribution of the random variable counting adjacent equal-rank pairs. It develops an exact combinatorial framework using partitions of across ranks and generating functions and , with the core relation , to enumerate the distribution of , and specializes to both the standard deck () and general . The authors show that a binomial model with trials and and a Poisson limit with parameter both approximate , proving variance equality and a Poisson limit as (via Soon's bound), and validating the theory with numerical comparisons for the standard deck. They also provide exact results for the case and establish connections to Carlitz permutations and lattice-path interpretations, offering practical guidance for estimating the distribution of adjacent matches in decks.

Abstract

In a well-shuffled deck of cards, what is the probability that somewhere in the deck there are adjacent cards of the same rank? What is the average number of adjacent matches? What is the probability distribution for the number of matches? We answer these and related questions for both the standard -card deck with four suits and ranks and for generalized decks with suits and ranks. We also determine the limiting distribution as goes to infinity with fixed.
Paper Structure (4 sections, 11 theorems, 55 equations, 1 figure, 1 table)

This paper contains 4 sections, 11 theorems, 55 equations, 1 figure, 1 table.

Key Result

Theorem 1

In a randomly arranged deck of $kn$ cards consisting of $k$ suits with $n$ cards in each suit, the expected number of matches is $k-1$.

Figures (1)

  • Figure 1: A histogram displaying the results of playing our card-matching game $100$,$000$ times.

Theorems & Definitions (21)

  • Theorem 1
  • proof
  • Theorem 2
  • Corollary 3
  • Remark
  • Corollary 4
  • Example 5
  • Lemma 6
  • proof
  • Lemma 7
  • ...and 11 more