Siksha Sarovar

Siksha Sarovar (sikshasarovar.com) is a free educational web application that helps students in India learn programming and prepare for academic and competitive exams. The platform offers structured coding courses (C, C++, Python, Java, HTML, CSS, PHP, Power BI, AI, Machine Learning, Data Science), complete university curriculum notes for BCA/MCA students with previous year question papers, Class 10 and Class 12 CBSE/HBSE school notes, and dedicated preparation material for SSC, UPSC, Banking, Railway and other government exams. Browsing the site is completely free and requires no account. Users may optionally sign in with Google solely to save their learning progress, quiz scores and personal preferences across devices.

Privacy Policy | Terms of Service | Contact Siksha Sarovar | About Siksha Sarovar

v4.0.9 · PWA
Siksha Sarovar logo
Siksha Sarovar
Your Learning Universe

Siksha Sarovar is a free e-learning platform for coding courses, BCA university notes and competitive exam preparation. Optional Google sign-in saves your learning progress across devices.

Initializing knowledge base…
Compiling modules 0%

Probability Generating Function (PGF)

Lesson 8 of 11 in the free Probability and Statistics- BCA-DS-23-204 notes on Siksha Sarovar, written by Rohit Jangra.

3. Probability Generating Function (PGF)

Concept

The PGF is a power series representation of the probability distribution of a discrete random variable. It converts a probability problem into an algebraic problem.

Definition

For a discrete random variable $X$ taking non-negative integer values: $$ G_X(t) = E[t^X] = \sum_{x=0}^{\infty} t^x P(X=x) $$

How to use PGF to find Moments

  1. Probabilities: Differentiate $G_X(t)$ once.
  2. $$ P(X=x) = \frac{1}{x!} \left[ \frac{d^x G_X(t)}{dt^x} \right]_{t=0} $$

  3. Mean: Differentiate once and set $t=1$.
  4. $$ E[X] = G'_X(1) $$

  5. Variance: Requires second derivative.
  6. $$ Var(X) = G''_X(1) + G'_X(1) - [G'_X(1)]^2 $$

Detailed Example

Problem: Find the PGF, Mean, and Variance for a Bernoulli distribution (Success/Failure) where $P(1)=p$ and $P(0)=q$.

Solution:

  1. Construct PGF:
  2. $$ G_X(t) = t^0 P(0) + t^1 P(1) = q + pt $$

  3. Find Mean:
  4. Differentiate: $G'_X(t) = p$. Evaluate at $t=1$: $G'_X(1) = p$. Mean $\mu = p$.

  5. Find Variance:
  6. Second derivative: $G''_X(t) = 0$. Formula: $Var(X) = 0 + p - p^2 = p(1-p) = pq$. Variance $= pq$.