A Probability Mass Function (PMF) describes the probabilities of a discrete random variable. It tells us how likely each possible outcome is.
If X takes values x1, x2, ..., xn, then the PMF satisfies:
f(x) β₯ 0 for all x β probabilities cannot be negative.Ξ£ f(xi) = 1 β the probabilities of all possible outcomes must add up to 1 (certainty).f(x) = P(X = x) β the function gives the probability that the random variable takes the value x.If X = number of heads in two coin flips, then possible values are {0, 1, 2}:
Here the PMF is f(0)=0.25, f(1)=0.50, f(2)=0.25. Notice how they are all β₯ 0 and add up to 1.
Let X = number of bits in error in the next 4 transmitted bits. Given:
Background: In semiconductor manufacturing, wafers are inspected for large contamination particles. Let the random variable X = the number of wafers analyzed until the first contaminated wafer is found. Suppose each wafer is contaminated independently with probability p = 0.01.
Sample space: each outcome looks like a string of clean wafers (a) followed by one contaminated wafer (p):
{ p, ap, aap, aaap, aaaap, β¦ }
Special cases:
General formula (Geometric PMF):
P(X = x) = (1 - p)^{x-1} \, p ,  for x = 1, 2, 3, β¦To make the distribution concrete, we display just the first five probabilities (the true support is infinite).
Note: The geometric distribution has infinitely many outcomes. Here we cut off at x=5 just to show the pattern; the total probability over all x is 1.
      For a random variable X, the cumulative distribution function (CDF) is
      F(x) = P(X β€ x). It accumulates probability up to the threshold x.
    
0 β€ F(x) β€ 1 for all x.a < b, then F(a) β€ F(b) (probability never goes down as you allow larger outcomes).limxβββ F(x) = 0 and limxβ+β F(x) = 1.F(x) = limhβ0 F(x+h).
        For a discrete X, F has jumps at the support points.
      P(X = x).
        P(X = x) = F(x) β F(xβ), where F(xβ) is the left limit.
      f exists: F(x) = β«ββx f(t) dt and f(x) = Fβ²(x) almost everywhere.P(a < X β€ b) = F(b) β F(a).P(X = x) = F(x) β F(xβ).xp with F(xp) β₯ p and F(xpβ) β€ p.
        The median is a 0.5-quantile.f(x), then E[X] = Ξ£ xΒ·f(x).  
        Using the CDF directly: for nonnegative integer X, E[X] = Ξ£kβ₯1 P(X β₯ k) = Ξ£kβ₯1 (1 β F(kβ)).F(x) approach 1 for large x? (It must.)P(X=x) from the jump sizes? (Yes, thatβs the PMF.)CDF for the βbits in errorβ example (0β4 bits). Each jump size equals the PMF at that x: P(0)=0.6561, P(1)=0.2916, P(2)=0.0486, P(3)=0.0036, P(4)=0.0001.
P(X β€ 5). Explain why itβs small for p=0.01.P(3 < X β€ 8) as F(8) β F(3).p=0.01? (Hint: solve F(x) β 0.5.)Goal: Given a piecewise CDF \(F(x)\), recover the PMF \(f(x)=P(X=x)\) by reading the jump sizes.
\[ F(x)= \begin{cases} 0, & x< -2\\[4pt] 0.2, & -2\le x<0\\[4pt] 0.7, & 0\le x<2\\[4pt] 1.0, & x\ge 2 \end{cases} \]
Right-continuous CDF with jumps at \(x=-2,0,2\).
| \(x=a\) | \(F(a^-)\) | \(F(a)\) | \(f(a)=F(a)-F(a^-)\) | 
|---|---|---|---|
| Sum \(\sum f(a)\) | |||
A random variable X has the following distribution: P(X=0)=0.5, P(X=1)=0.4, P(X=2)=0.1. What is the expected value E[X]?
Solution:
E[X] = Ξ£ xΒ·P(x) = (0)(0.5) + (1)(0.4) + (2)(0.1) = 0 + 0.4 + 0.2 = 0.6
A CDF is defined as:
    F(x) = 0 for x < 0
    F(x) = 0.5 for 0 β€ x < 1
    F(x) = 0.8 for 1 β€ x < 2
    F(x) = 1 for x β₯ 2
    What is P(X = 1)?
Solution:
      P(X = 1) = F(1) - F(1-) = 0.8 - 0.5 = 0.3