返回题库

匹配问题:恰有 r 个匹配的概率

Probabilities of Matches

专题
Probability / 概率
难度
L4

题目详情

Under the conditions of the previous matching problem, what is the probability of exactly rr matches?

解析

设有 nn 个元素,两排列比较的“匹配数”就是固定点个数。

恰有 rr 个匹配:先选出这 rr 个固定点,再让剩余 nrn-r 个位置构成一个无固定点排列(错排)。

错排数记为 DmD_m,则

P(恰 r 个匹配)=(nr)Dnrn!.\boxed{\mathbb{P}(\text{恰 }r\text{ 个匹配})=\frac{\binom{n}{r}D_{n-r}}{n!}}.

其中

Dm=m!k=0m(1)kk!m!e.D_m=m!\sum_{k=0}^m\frac{(-1)^k}{k!}\approx \frac{m!}{e}.

nn 很大且 rr 固定时,该分布近似 Poisson(1):

P(r)e1r!.\mathbb{P}(r)\approx \frac{e^{-1}}{r!}.