Skip to content

Mathematics · Ch 14 — Probability Distributions

Probability Mass Function (p. m. f.)

14.3.1

Probability Mass Function (p. m. f.)

Sometimes the probability pip_i of XX taking the value xix_i can be written as an explicit function of xix_i, valid for every possible value of XX; such a function is called the probability mass function (p.m.f.) of the discrete random variable XX. A first illustration is the coin-tossing experiment where XX is the number of tosses needed to get the first head. If the probability of a head on a single toss is tt (so the probability of a tail is 1−t1 - t), then XX can equal any positive integer and P[X=i]=(1−t)i−1tP[X = i] = (1-t)^{i-1} t for i=1,2,3,…i = 1, 2, 3, \ldots. This is easy to justify: getting the first head on toss ii means the first i−1i-1 tosses were all tails (probability (1−t)i−1(1-t)^{i-1}) followed by a head on toss ii (probability tt).

Formally: let the possible values of a discrete random variable XX be x1,x2,x3,…x_1, x_2, x_3, \ldots, with pi=P[X=xi]p_i = P[X = x_i] for i=1,2,…i = 1, 2, \ldots. The function pp is called the probability mass function of XX if (i) pi≥0p_i \ge 0 for every ii, and (ii) ∑i=1npi=1\sum_{i=1}^n p_i = 1. As a concrete illustration, toss a fair coin 4 times and let XX be the number of heads; XX can be 0, 1, 2, 3 or 4, and its p.m.f. is exactly Table 7.3. This distribution follows the closed-form rule P[X=x]=4Cx(12)4P[X = x] = {}^4C_x \left(\dfrac{1}{2}\right)^4, x=0,1,2,3,4x = 0, 1, 2, 3, 4, where 4Cx{}^4C_x counts the number of ways of getting xx heads out of 4 tosses — the same counting idea used throughout the worked examples below.

Worked examples.

Example 1. Two persons A and B toss a coin thrice; each head gives A ₹2 from B, each tail gives B ₹1.5 from A. Let XX be the net amount gained (or lost) by A. Show XX is a discrete random variable and describe it as a function on the sample space.

Since XX is a number that depends on the outcome of a random experiment, it is a random variable; because the sample space has only 23=82^3 = 8 outcomes, XX is discrete. With S={HHH,HHT,HTH,THH,HTT,THT,TTH,TTT}S = \{HHH, HHT, HTH, THH, HTT, THT, TTH, TTT\}, the value of XX in rupees for each outcome is: X(HHH)=2×3=₹6X(HHH) = 2 \times 3 = ₹6; X(HHT)=X(HTH)=X(THH)=2(2)−1.5(1)=₹2.50X(HHT) = X(HTH) = X(THH) = 2(2) - 1.5(1) = ₹2.50; X(HTT)=X(THT)=X(TTH)=2(1)−1.5(2)=−₹1.00X(HTT) = X(THT) = X(TTH) = 2(1) - 1.5(2) = -₹1.00; X(TTT)=−1.5×3=−₹4.50X(TTT) = -1.5 \times 3 = -₹4.50 (a negative value means a loss to A). Every outcome maps to a unique value of XX, confirming XX is a function on SS, with possible values −4.50,−1,2.50,6-4.50, -1, 2.50, 6.

Example 2. A bag has 1 red and 2 green balls (r,g1,g2r, g_1, g_2). A ball is drawn, its colour noted, and replaced; a second ball is then drawn and noted. Let XX be the number of red balls drawn. Derive the probability distribution of XX.

The sample space (9 equally likely outcomes) is S={rr,rg1,rg2,g1r,g2r,g1g1,g1g2,g2g1,g2g2}S = \{rr, rg_1, rg_2, g_1r, g_2r, g_1g_1, g_1g_2, g_2g_1, g_2g_2\}. Here X(rr)=2X(rr) = 2; X(rg1)=X(rg2)=X(g1r)=X(g2r)=1X(rg_1) = X(rg_2) = X(g_1r) = X(g_2r) = 1 (4 outcomes); X(g1g1)=X(g1g2)=X(g2g1)=X(g2g2)=0X(g_1g_1) = X(g_1g_2) = X(g_2g_1) = X(g_2g_2) = 0 (4 outcomes). So X∈{0,1,2}X \in \{0, 1, 2\} with P[X=0]=4/9P[X=0] = 4/9, P[X=1]=4/9P[X=1] = 4/9, P[X=2]=1/9P[X=2] = 1/9.

Example 3. Two cards are drawn with replacement from a well-shuffled deck of 52. Find the probability distribution of the number of aces drawn.

Since the draws are independent (with replacement), P[ace]=4/52=1/13P[\text{ace}] = 4/52 = 1/13 and P[non-ace]=12/13P[\text{non-ace}] = 12/13. With XX the number of aces among the two draws, X∈{0,1,2}X \in \{0, 1, 2\}: P[X=0]=(12/13)2=144/169P[X=0] = (12/13)^2 = 144/169; P[X=1]=2×(1/13)(12/13)=24/169P[X=1] = 2 \times (1/13)(12/13) = 24/169; P[X=2]=(1/13)2=1/169P[X=2] = (1/13)^2 = 1/169.

Example 4. A fair die is thrown; XX is the number of factors of the number shown on top. Find the probability distribution of XX.

The number of positive factors of 1,2,3,4,5,6 are 1,2,2,3,2,4 respectively, so X(1)=1X(1)=1, X(2)=X(3)=X(5)=2X(2)=X(3)=X(5)=2, X(4)=3X(4)=3, X(6)=4X(6)=4. Hence p1=P[X=1]=P{1}=1/6p_1 = P[X=1] = P\{1\} = 1/6; p2=P[X=2]=P{2,3,5}=3/6p_2 = P[X=2] = P\{2,3,5\} = 3/6; p3=P[X=3]=P{4}=1/6p_3 = P[X=3] = P\{4\} = 1/6; p4=P[X=4]=P{6}=1/6p_4 = P[X=4] = P\{6\} = 1/6.

Example 5. Find the probability distribution of the number of doublets in three throws of a pair of dice. …

Table 1Table 7.3 – p.m.f. of the number of heads in four coin tosses

| x | 0 | 1 | 2 | 3 | 4 |

|---|---|---|---|---|---| …