Probability generating functions
แนะนำใหม่
8:10
ความน่าจะเป็นและสถิติเพิ่มเติม
เดลินบ์, สิบเก้า-โอ-เอท. ภายในโรงงานเบียร์กินเนสส์ นักเคมีหนุ่มชื่อ วิลเลียม กอสเซต กำลังเผชิญกับปัญหาเชิงปฏิบัติมาก เขาสามารถทดสอบเพียงไม่กี่ล็อตของ…
บรรยายภาษาอังกฤษ · สลับคำบรรยายภาษาอังกฤษและภาษาจีนได้
ในบทเรียนนี้
| English | ความหมาย |
|---|---|
| coefficient/ˌkəʊɪˈfɪʃənt/ | สัมประสิทธิ์ |
| probability generating function/ˌprɒbəˈbɪlɪti ˈdʒenəreɪtɪŋ ˈfʌŋkʃn/ | ฟังก์ชันสร้าง概率母函数 (probability generating function) |
| PGF | |
| derivative/dɪˈrɪvətɪv/ | อนุพันธ์ |
| variance/ˈveərɪəns/ | ความแปรปรวน |
| independent/ˌɪndɪˈpendənt/ | เป็นอิสระ |
ฟังก์ชันเดียวในการแสดงการแจกแจง
- การแจกแจงแบบดิสครีตคือรายการของความน่าจะเป็น — จัดการยาก
- ฟังก์ชันสร้าง概率 (PGF) รวบรวมข้อมูลทั้งหมดลงในฟังก์ชันเดียวที่กระชับ เปลี่ยนผลบวกความน่าจะเป็นที่ยากให้เป็นแคลคูลัสที่ง่าย
นิยาม PGF
- สำหรับตัวแปรดิสครีต $X$ ที่รับค่า $0, 1, 2, \dots$:
- สัมประสิทธิ์ของ $t^x$ เท่ากับ $P(X = x)$ พอดี — ฟังก์ชันนี้ เข้ารหัส การแจกแจง

ฟังก์ชันสร้างความน่าจะเป็นเก็บความน่าจะเป็นทั้งหมดเป็นสัมประสิทธิ์
Probability generating function lab
G(x) = p0 + p1 x + p2 x^2 + ...
Change x and see how a PGF stores probabilities in powers of x.
The probability generating function of X is defined as:
ความยาก 1/5 · 100 เหรียญ + บอนัสน้อยๆ เมื่อทำสำเร็จครั้งแรกในวันนี้
G(t) = E(tˣ) = Σ P(X=x) tˣ.
ค่าเฉลี่ยและความแปรปรวนจากอนุพันธ์
- หาอนุพันธ์แล้วแทนค่า $t = 1$:
ตัวอย่างที่คำนวณแล้ว. $G(t) = 0.5 + 0.3t + 0.2t^2$. จากนั้น $G'(t) = 0.3 + 0.4t$, ดังนั้น $E(X) = G'(1) = 0.3 + 0.4 = 0.7$.
Which distribution has PGF e^(3t − 3)?
ความยาก 1/5 · 100 เหรียญ + บอนัสน้อยๆ เมื่อทำสำเร็จครั้งแรกในวันนี้
e^(3t − 3) = e^(3(t − 1)), the PGF of Po(λ) with λ = 3.
ผลรวมของตัวแปรอิสระ
- คุณสมบัติที่มีประโยชน์ที่สุด: PGF ของ ผลรวมของตัวแปรอิสระ คือ ผลคูณ ของ PGFs ของพวกมัน:
- สิ่งนี้ทำให้การบวกตัวแปรอิสระ (เช่น ผลรวมของลูกเต๋าหลายลูก) ทำได้ง่ายขึ้นอย่างเห็นได้ชัด

X has G(t) = 0.5 + 0.3t + 0.2t². Since E(X) = G′(1) and G′(t) = 0.3 + 0.4t, what is E(X)?
ความยาก 2/5 · 140 เหรียญ + บอนัสน้อยๆ เมื่อทำสำเร็จครั้งแรกในวันนี้
G'(1) = 0.3 + 0.4(1) = 0.7.
The mean is found from the PGF by E(X) = G′(______).
ความยาก 1/5 · 100 เหรียญ + บอนัสน้อยๆ เมื่อทำสำเร็จครั้งแรกในวันนี้
E(X) = G'(1).
For G(t) = 0.2 plus 0.5 t plus 0.3 t squared, what is E(X), and what must G(1) equal?
The expectation is the derivative of the generating function at 1. The probabilities themselves must add to 1.
G(t) = 0.2 + 0.5t + 0.3t². Find Var(X).
ความยาก 2/5 · 140 เหรียญ + บอนัสน้อยๆ เมื่อทำสำเร็จครั้งแรกในวันนี้
G′(1) = 0.5 + 0.6 = 1.1 and G″(1) = 0.6, so Var(X) = 0.6 + 1.1 − 1.21 = 0.49.
ตรวจสอบว่าเป็น PGF ที่ถูกต้องหรือไม่
$G(1)$ ต้องเท่ากับ 1. เนื่องจาก $G(1) = \sum P(X = x)$, PGF ที่ถูกต้องจะให้ค่า $G(1) = 1$ เสมอ — เป็นการตรวจสอบเบื้องต้นอย่างรวดเร็วก่อนหาอนุพันธ์

The PGF of a sum of two independent variables is the sum of their PGFs.
ความยาก 1/5 · 100 เหรียญ + บอนัสน้อยๆ เมื่อทำสำเร็จครั้งแรกในวันนี้
False. For independent X and Y, G_{X+Y}(t) = G_X(t) G_Y(t): the PGFs multiply.
Two fair dice are rolled. Using the coefficient of t⁷ in (t + t² + … + t⁶)²/36, find P(total = 7) to 4 decimal places.
ความยาก 2/5 · 140 เหรียญ + บอนัสน้อยๆ เมื่อทำสำเร็จครั้งแรกในวันนี้
t⁷ arises from 6 pairs: (1,6), (2,5), …, (6,1). So the probability is 6/36 = 0.1667.
คุณเข้าใจแล้ว
- PGF: $G(t) = E(t^X) = \sum P(X=x)\,t^x$ (และ $G(1) = 1$)
- $E(X) = G'(1)$; $\text{Var}(X) = G''(1) + G'(1) - (G'(1))^2$
- PGF ของ ผลรวมของตัวแปรอิสระ คือ ผลคูณ ของ PGFs ของพวกมัน
เขียนจากค่าคาดหวัง 1.1
- ฟังก์ชันสร้าง probability เป็น 0.2 บวกกับ 0.5 t บวกกับ 0.3 t สี่เหลี่ยม
- หาค่าคาดหวังจากอนุพันธ์ที่ 1 ฟังก์ชันสร้าง valid จะเท่ากับ 1 ที่ t = 1
For any valid PGF, what is the value of G(1)?
ความยาก 2/5 · 140 เหรียญ + บอนัสน้อยๆ เมื่อทำสำเร็จครั้งแรกในวันนี้
G(1) = Σ P(X=x) = 1, since probabilities sum to 1.
การ์ดนี้เป็นการ์ดใหม่ จึงแสดงเป็นภาษาอังกฤษจนกว่าคำแปลจะพร้อม
Worked exam question: a PGF with a constant
Question (7 marks). The PGF of $X$ is $G_X(t)=k(2+t)^2$. (a) Find $k$. (b) Find $E(X)$ and $\text{Var}(X)$. (c) $Y$ is independent 独立 of $X$ and takes the values 1 and 2 with equal probability. Find $P(X+Y=2)$.
- (a) $G_X(1)=9k=1$, so $k=\tfrac19$ (B1).
- (b) $G_X'(t)=\tfrac29(2+t)$, so $E(X)=\tfrac69=\tfrac23$ (M1 A1). $G_X''(t)=\tfrac29$, so (M1 A1):
- Check: $\tfrac19(2+t)^2=\left(\tfrac23+\tfrac13t\right)^2$, which is $B(2,\tfrac13)$: $np=\tfrac23$, $npq=\tfrac49$.
- (c) $G_Y(t)=\tfrac12(t+t^2)$. Multiply (M1):
- The coefficient of $t^2$: $P(X+Y=2)=\tfrac8{18}=\tfrac49$ (A1). The coefficients add to 18, so $G(1)=1$.
Why answers lose marks: using the variance formula without the $+G'(1)$ term, or adding the PGFs instead of multiplying them.

The PGF of X is k(1 + 3t)³. Find k, E(X) and Var(X).
Same method as the worked question.
การ์ดนี้เป็นการ์ดใหม่ จึงแสดงเป็นภาษาอังกฤษจนกว่าคำแปลจะพร้อม
You've got it
- $G(t)=E(t^X)=\sum P(X=x)\,t^x$; the coefficient 系数 of $t^x$ is $P(X=x)$; $G(1)=1$
- standard PGFs: $(q+pt)^n$, $e^{\lambda(t-1)}$, $\dfrac{pt}{1-qt}$
- $E(X)=G'(1)$; $\text{Var}(X)=G''(1)+G'(1)-(G'(1))^2$
- independent sum → multiply the PGFs
For X with G(t) = 0.2 + 0.5t + 0.3t², what is E(X)?
ความยาก 1/5 · 100 เหรียญ + บอนัสน้อยๆ เมื่อทำสำเร็จครั้งแรกในวันนี้
0.5 plus 0.6 is 1.1. Other options — 0.7 (the lesson expectation); 1 (the value of G(1)).
เกิดปัญหาอะไรขึ้น? เฉพาะทีมเว็บไซต์เท่านั้นที่เห็นข้อมูลนี้