返回题库

不动点方差:Var

Fixed Point Variance

专题
Probability / 概率
难度
L6

题目详情

对集合 (1,2,,1000)(1,2,\dots,1000) 取一个均匀随机置换。

YY 为不动点(fixed points)个数,XX 为非不动点个数。

Var(YX)\mathrm{Var}(Y-X)

You have a uniformly random permutation of (1,2,,1000)(1, 2, \dots, 1000). Let XX be the number of non-fixed points and YY be the number of fixed points. Compute Var(YX)\text{Var}(Y - X).

解析

有恒等式 X+Y=1000X+Y=1000,因此

YX=Y(1000Y)=2Y1000.Y-X=Y-(1000-Y)=2Y-1000.

于是

Var(YX)=Var(2Y1000)=4Var(Y).\mathrm{Var}(Y-X)=\mathrm{Var}(2Y-1000)=4\,\mathrm{Var}(Y).

对随机置换大小为 nn 的不动点数 YY,有 Var(Y)=1\mathrm{Var}(Y)=1(对任意 n2n\ge 2 都成立)。

因此

Var(YX)=41=4.\mathrm{Var}(Y-X)=4\cdot 1=\boxed{4}.