跳到主要内容

题型分析 — Probability Generating Functions

Question Type 1: Constructing PGF from a Discrete Distribution

如何识别

题目给出一个离散随机变量的概率分布(可能以文字描述——如从袋中取球、掷骰子等),要求写出 G(t)=P(X=x)txG(t) = \sum P(X = x)t^x

标准解题方法
  1. 确定随机变量 XX 的所有可能取值
  2. 计算每个取值对应的概率 P(X=x)P(X = x)
  3. 代入 G(t)=P(X=x)txG(t) = \sum P(X = x)t^x
  4. 若有需要,化简合并同类项
评分标准(MS 模式)
  • M1 列出所有 xx 并正确计算至少一个概率
  • A1 G(t)G(t) 表达式完全正确(通常接受未化简形式)
  • B1 特别标注的概率(如 P(X=0)P(X = 0)

Example 1 (S20 Q4): A bag contains 4 red balls and 2 blue balls. Two balls are drawn without replacement. Let XX be the number of blue balls drawn. Find the probability generating function of XX.

📝 MS 展开查看

XX can take values 0, 1, 2.

P(X=0)=C24C26=615=25P(X = 0) = \frac{C^4_2}{C^6_2} = \frac{6}{15} = \frac{2}{5} B1

P(X=1)=C14×C12C26=815P(X = 1) = \frac{C^4_1 \times C^2_1}{C^6_2} = \frac{8}{15} M1

P(X=2)=C22C26=115P(X = 2) = \frac{C^2_2}{C^6_2} = \frac{1}{15} A1

GX(t)=25+815t+115t2G_X(t) = \frac{2}{5} + \frac{8}{15}t + \frac{1}{15}t^2 A1

[Total: 4]

Example 2 (W20 Q5): A biased coin has probability pp of showing heads. It is tossed 3 times. Let YY be the number of heads obtained. Find GY(t)G_Y(t).

📝 MS 展开查看

YB(3,p)Y \sim B(3, p)

P(Y=0)=(1p)3P(Y = 0) = (1-p)^3, P(Y=1)=3p(1p)2P(Y = 1) = 3p(1-p)^2

P(Y=2)=3p2(1p)P(Y = 2) = 3p^2(1-p), P(Y=3)=p3P(Y = 3) = p^3 M1 A1

GY(t)=(1p)3+3p(1p)2t+3p2(1p)t2+p3t3G_Y(t) = (1-p)^3 + 3p(1-p)^2 t + 3p^2(1-p) t^2 + p^3 t^3 A1

Alternatively: GY(t)=(1p+pt)3G_Y(t) = (1-p + pt)^3 B1

[Total: 4]

Example 3 (S21 Q6): A fair dice is rolled once. Let ZZ be the score shown. Write down GZ(t)G_Z(t).

📝 MS 展开查看

ZZ takes values 1, 2, 3, 4, 5, 6 each with probability 16\frac{1}{6}. M1

GZ(t)=16(t+t2+t3+t4+t5+t6)G_Z(t) = \frac{1}{6}(t + t^2 + t^3 + t^4 + t^5 + t^6) M1 A1

[Total: 3]

常见陷阱
  • 不放回抽样时注意使用组合数,而非二项概率
  • 区分 XX 的取值起点(0 还是 1)——几何分布有不同的定义
  • 不要遗漏 t0=1t^0 = 1 项(即常数项)

Question Type 2: Finding E(X)E(X) and Var(X)\text{Var}(X) from PGF

如何识别

给出 G(t)G(t)(可能是多项式或有理函数),要求求 E(X)E(X)Var(X)\text{Var}(X),或直接给出一组概率表达式要求利用 PGF 求矩。

标准解题方法
  1. G(t)G(t) 求导得 G(t)G'(t)
  2. 代入 t=1t = 1E[X]=G(1)E[X] = G'(1)
  3. 求二阶导 G(t)G''(t),代入 t=1t = 1E[X(X1)]=G(1)E[X(X-1)] = G''(1)
  4. Var(X)=G(1)+G(1)[G(1)]2\text{Var}(X) = G''(1) + G'(1) - [G'(1)]^2
评分标准(MS 模式)
  • M1G(t)G(t) 求导(至少正确求出一阶导)
  • A1 G(1)G'(1)E(X)E(X) 正确
  • M1 求二阶导并代入
  • A1 Var(X)\text{Var}(X) 正确

Example 1 (W21 Q5): The probability generating function of XX is GX(t)=16(t+t2+t3+t4+t5+t6)G_X(t) = \frac{1}{6}(t + t^2 + t^3 + t^4 + t^5 + t^6). Find E(X)E(X) and Var(X)\text{Var}(X).

📝 MS 展开查看

GX(t)=16(1+2t+3t2+4t3+5t4+6t5)G_X'(t) = \frac{1}{6}(1 + 2t + 3t^2 + 4t^3 + 5t^4 + 6t^5) M1

GX(1)=16(1+2+3+4+5+6)=216=3.5G_X'(1) = \frac{1}{6}(1 + 2 + 3 + 4 + 5 + 6) = \frac{21}{6} = 3.5 A1

GX(t)=16(2+6t+12t2+20t3+30t4)G_X''(t) = \frac{1}{6}(2 + 6t + 12t^2 + 20t^3 + 30t^4) M1

GX(1)=16(2+6+12+20+30)=706=353G_X''(1) = \frac{1}{6}(2 + 6 + 12 + 20 + 30) = \frac{70}{6} = \frac{35}{3}

Var(X)=G(1)+G(1)[G(1)]2=353+72(72)2\text{Var}(X) = G''(1) + G'(1) - [G'(1)]^2 = \frac{35}{3} + \frac{7}{2} - \left(\frac{7}{2}\right)^2 M1

Var(X)=353+72494=140+4214712=35122.917\text{Var}(X) = \frac{35}{3} + \frac{7}{2} - \frac{49}{4} = \frac{140 + 42 - 147}{12} = \frac{35}{12} \approx 2.917 A1

[Total: 6]

Example 2 (S22 Q2): GX(t)=(12+12t)4G_X(t) = \left(\frac{1}{2} + \frac{1}{2}t\right)^4. Find E(X)E(X) and Var(X)\text{Var}(X).

📝 MS 展开查看

GX(t)=4(12+12t)312=2(12+12t)3G_X'(t) = 4\left(\frac{1}{2} + \frac{1}{2}t\right)^3 \cdot \frac{1}{2} = 2\left(\frac{1}{2} + \frac{1}{2}t\right)^3 M1

GX(1)=2(12+12)3=2(1)3=2G_X'(1) = 2\left(\frac{1}{2} + \frac{1}{2}\right)^3 = 2(1)^3 = 2 A1

GX(t)=6(12+12t)212=3(12+12t)2G_X''(t) = 6\left(\frac{1}{2} + \frac{1}{2}t\right)^2 \cdot \frac{1}{2} = 3\left(\frac{1}{2} + \frac{1}{2}t\right)^2 M1

GX(1)=3(1)2=3G_X''(1) = 3(1)^2 = 3

Var(X)=3+2(2)2=1\text{Var}(X) = 3 + 2 - (2)^2 = 1 A1

[Alternatively: XB(4,0.5)X \sim B(4, 0.5), E(X)=2E(X) = 2, Var(X)=1\text{Var}(X) = 1]

[Total: 5]

Example 3 (S24 Q4): The probability generating function of YY is GY(t)=18(1+t)3G_Y(t) = \frac{1}{8}(1 + t)^3. Find E(Y)E(Y) and Var(Y)\text{Var}(Y).

📝 MS 展开查看

GY(t)=18(1+3t+3t2+t3)G_Y(t) = \frac{1}{8}(1 + 3t + 3t^2 + t^3)

GY(t)=18(3+6t+3t2)G_Y'(t) = \frac{1}{8}(3 + 6t + 3t^2) M1

GY(1)=18(3+6+3)=128=1.5G_Y'(1) = \frac{1}{8}(3 + 6 + 3) = \frac{12}{8} = 1.5 A1

GY(t)=18(6+6t)G_Y''(t) = \frac{1}{8}(6 + 6t) M1

GY(1)=18(6+6)=128=1.5G_Y''(1) = \frac{1}{8}(6 + 6) = \frac{12}{8} = 1.5

Var(Y)=1.5+1.5(1.5)2=32.25=0.75\text{Var}(Y) = 1.5 + 1.5 - (1.5)^2 = 3 - 2.25 = 0.75 A1

[Alternatively: YB(3,0.5)Y \sim B(3, 0.5), E(Y)=1.5E(Y) = 1.5, Var(Y)=0.75\text{Var}(Y) = 0.75]

[Total: 5]

常见陷阱
  • G(1)=E[X]G'(1) = E[X],不是 E[X2]E[X^2]
  • Var(X)=G(1)+G(1)[G(1)]2\text{Var}(X) = G''(1) + G'(1) - [G'(1)]^2,忘记加 G(1)G'(1) 是典型错误
  • 展开多项式时注意合并同类项;若 G(t)G(t)(a+bt)n(a+bt)^n 形式,直接用链式法则

Question Type 3: Sum of Independent Random Variables

如何识别

题目给出两个或多个独立随机变量(有时是同分布),要求求 X+YX+Y 的 PGF,或由和的 PGF 求概率分布。

标准解题方法
  1. 写出每个变量的 PGF:GX(t)G_X(t)GY(t)G_Y(t)
  2. 乘积得和 PGF:GX+Y(t)=GX(t)GY(t)G_{X+Y}(t) = G_X(t) \cdot G_Y(t)
  3. 展开多项式(或幂级数),tkt^k 的系数即为 P(X+Y=k)P(X + Y = k)
评分标准(MS 模式)
  • B1 正确写出每个变量的 PGF
  • M1 GXGYG_X \cdot G_Y 乘积
  • A1 乘积表达式正确
  • M1 从展开系数提取概率
  • A1 最终概率值正确

Example 1 (S20 Q6): XB(3,0.4)X \sim B(3, 0.4) and YB(2,0.4)Y \sim B(2, 0.4) are independent. Find P(X+Y=3)P(X + Y = 3) using PGFs.

📝 MS 展开查看

GX(t)=(0.6+0.4t)3G_X(t) = (0.6 + 0.4t)^3 B1

GY(t)=(0.6+0.4t)2G_Y(t) = (0.6 + 0.4t)^2 B1

GX+Y(t)=(0.6+0.4t)3(0.6+0.4t)2=(0.6+0.4t)5G_{X+Y}(t) = (0.6 + 0.4t)^3 \cdot (0.6 + 0.4t)^2 = (0.6 + 0.4t)^5 M1

P(X+Y=3)=(53)(0.4)3(0.6)2P(X+Y = 3) = \binom{5}{3}(0.4)^3(0.6)^2 M1

P(X+Y=3)=10×0.064×0.36=0.2304P(X+Y = 3) = 10 \times 0.064 \times 0.36 = 0.2304 A1

[Total: 5]

Example 2 (W22 Q4): XX and YY are independent discrete random variables with GX(t)=12(1+t)G_X(t) = \frac{1}{2}(1 + t) and GY(t)=14(1+t)2G_Y(t) = \frac{1}{4}(1 + t)^2. Find P(X+Y=2)P(X + Y = 2).

📝 MS 展开查看

GX+Y(t)=GX(t)GY(t)=12(1+t)14(1+t)2G_{X+Y}(t) = G_X(t) \cdot G_Y(t) = \frac{1}{2}(1 + t) \cdot \frac{1}{4}(1 + t)^2 M1

GX+Y(t)=18(1+t)3G_{X+Y}(t) = \frac{1}{8}(1 + t)^3 A1

18(1+t)3=18(1+3t+3t2+t3)\frac{1}{8}(1 + t)^3 = \frac{1}{8}(1 + 3t + 3t^2 + t^3) M1

P(X+Y=2)=38P(X + Y = 2) = \frac{3}{8} A1

[Total: 4]

Example 3 (W23 Q5): X1,X2,,X5X_1, X_2, \dots, X_5 are independent identically distributed random variables with GX(t)=13(1+t+t2)G_X(t) = \frac{1}{3}(1 + t + t^2). Let S=X1+X2++X5S = X_1 + X_2 + \cdots + X_5. Find P(S=2)P(S = 2).

📝 MS 展开查看

GS(t)=[GX(t)]5=[13(1+t+t2)]5G_S(t) = [G_X(t)]^5 = \left[\frac{1}{3}(1 + t + t^2)\right]^5 M1

P(S=2)P(S = 2) is coefficient of t2t^2 in (13)5(1+t+t2)5\left(\frac{1}{3}\right)^5(1 + t + t^2)^5 M1

Consider (1+t+t2)5(1 + t + t^2)^5. To get t2t^2, possibilities:

  • Two tt's and three 11's: (52)=10\binom{5}{2} = 10 ways
  • One t2t^2 and four 11's: (51)=5\binom{5}{1} = 5 ways

Coefficient of t2=10+5=15t^2 = 10 + 5 = 15 M1

P(S=2)=15×(13)5=15243=581P(S = 2) = 15 \times \left(\frac{1}{3}\right)^5 = \frac{15}{243} = \frac{5}{81} A1

[Total: 5]

常见陷阱
  • 和的 PGF 是乘积(GXGYG_X \cdot G_Y)而非和(GX+GYG_X + G_Y
  • 展开多项式时注意大型系数,可考虑组合解释而非完全展开
  • 多个独立同分布变量的 PGF 是 [GX(t)]n[G_X(t)]^n,不要误写为 nGX(t)n \cdot G_X(t)

Question Type 4: Working Backwards from Sum-PGF

如何识别

给出 S=X1+X2++XnS = X_1 + X_2 + \cdots + X_n 的 PGF(如 GS(t)=[GX(t)]nG_S(t) = [G_X(t)]^n 形式),要求反推单个变量 XiX_i 的 PGF 或概率分布。

标准解题方法
  1. 写出 GS(t)=[GX(t)]nG_S(t) = [G_X(t)]^n
  2. 两边同时开 nn 次方:GX(t)=[GS(t)]1/nG_X(t) = [G_S(t)]^{1/n}
  3. 展开或通过系数匹配求 P(X=x)P(X = x)
评分标准(MS 模式)
  • M1 识别 GS(t)=[GX(t)]2G_S(t) = [G_X(t)]^2nn 次方关系
  • M1 开方运算
  • A1 GX(t)G_X(t) 正确
  • M1/A1GX(t)G_X(t) 系数得出概率分布

Example 1 (W25 Q7): S=X1+X2S = X_1 + X_2 where X1,X2X_1, X_2 are independent and identically distributed. Given GS(t)=14(1+t)2G_S(t) = \frac{1}{4}(1 + t)^2, find the distribution of X1X_1.

📝 MS 展开查看

GS(t)=[GX(t)]2G_S(t) = [G_X(t)]^2 M1

[GX(t)]2=14(1+t)2[G_X(t)]^2 = \frac{1}{4}(1 + t)^2 M1

GX(t)=12(1+t)G_X(t) = \frac{1}{2}(1 + t) (positive root) A1

Hence X1X_1 takes values 0 and 1, each with probability 12\frac{1}{2}. A1

[Total: 4]

Example 2 (S23 Q5): Y1,Y2,Y3Y_1, Y_2, Y_3 are independent and identically distributed. Given GY1+Y2+Y3(t)=127(1+t+t2)3G_{Y_1+Y_2+Y_3}(t) = \frac{1}{27}(1 + t + t^2)^3, find GY1(t)G_{Y_1}(t) and P(Y1=1)P(Y_1 = 1).

📝 MS 展开查看

GY1+Y2+Y3(t)=[GY1(t)]3G_{Y_1+Y_2+Y_3}(t) = [G_{Y_1}(t)]^3 M1

[GY1(t)]3=127(1+t+t2)3[G_{Y_1}(t)]^3 = \frac{1}{27}(1 + t + t^2)^3 M1

GY1(t)=13(1+t+t2)G_{Y_1}(t) = \frac{1}{3}(1 + t + t^2) A1

P(Y1=1)=P(Y_1 = 1) = coefficient of t1t^1 in GY1(t)=13G_{Y_1}(t) = \frac{1}{3} A1

[Total: 4]

Example 3 (S25 Q6): S=X1+X2S = X_1 + X_2 where X1,X2X_1, X_2 are i.i.d. with unknown distribution. GS(t)=116(1+t)4G_S(t) = \frac{1}{16}(1 + t)^4. Find GX(t)G_X(t) and P(X=2)P(X = 2).

📝 MS 展开查看

GS(t)=[GX(t)]2=116(1+t)4=[14(1+t)2]2G_S(t) = [G_X(t)]^2 = \frac{1}{16}(1 + t)^4 = \left[\frac{1}{4}(1 + t)^2\right]^2 M1

GX(t)=14(1+t)2G_X(t) = \frac{1}{4}(1 + t)^2 A1

GX(t)=14(1+2t+t2)G_X(t) = \frac{1}{4}(1 + 2t + t^2) M1

P(X=2)=14P(X = 2) = \frac{1}{4} A1

[Total: 4]

常见陷阱
  • 开平方/开 nn 次方时只取正根(概率非负)
  • 注意区分 GS(t)=[GX(t)]nG_S(t) = [G_X(t)]^nGS(t)=[GX(t)]nG_S(t) = [G_X(t)]^n 的不同 nn
  • 开方后检查各项系数是否在 [0,1][0, 1] 范围内