Maths4UBETA

Maths4U · Learning together

Discrete variables, tables and unknown probabilities

← Mixed constructions and conditional counting probabilitiesDistributions from finite experiments →

Notes

Objective

Build a valid table and recover unknown probabilities from total probability and moments.

Before you start

Use exact fractions, mutually exclusive outcomes and conditional probabilities. Selection models also use combinations from the preceding chapter. This chapter covers finite discrete distributions; named binomial and geometric models follow in the next chapter.

Key ideas

A variable attaches a number to an outcome

A random variable X records a numerical result of a chance experiment. Its possible values form its support. Capital X denotes the variable; lower-case x denotes a value it can take. A finite distribution lists every possible value once and assigns its total probability.

Check the table before using it

0≤p(x)≤1,∑xp(x)=1.0\le p(x)\le1,\qquad\sum_xp(x)=1.

The probabilities, not the values of X, sum to one. A parameter obtained from an equation is acceptable only if every table entry remains non-negative. Negative values of X are allowed; negative probabilities are not.

Expectation is a weighted long-run average

E(X)=∑xxp(x).\mathrm E(X)=\sum_x xp(x).

Multiply each value by its probability and add. The mean need not itself be a possible outcome, and it need not be the most probable value. Over n comparable repetitions, the expected frequency of a value is np(x); it is not a guarantee about a particular run.

Variance uses the second moment

E(X2)=∑xx2p(x),Var⁡(X)=E(X2)−[E(X)]2.\begin{aligned}\mathrm E(X^2)&=\sum_xx^2p(x),\\\operatorname{Var}(X)&=\mathrm E(X^2)-[\mathrm E(X)]^2.\end{aligned}

Square the value before weighting it. Do not square the probability. Variance is non-negative and has squared units; the standard deviation is its non-negative square root. Keep fractions exact until a requested final rounding.

Unknown entries require independent equations

Normalisation supplies one equation. A stated mean or second moment can supply another. Solve, reconstruct the full table, then test every entry and the stated moment. If variance is supplied, first recover the second moment by adding the square of the mean.

A discrete distribution with separated probability bars and total mass one

Method

  1. Define the numerical random variable and list its possible values.
  2. Choose elementary outcomes and justify their probabilities.
  3. Combine every route giving the same value; check non-negative probabilities summing to one.
  4. Find the weighted first and second moments, then subtract the square of the mean.
  5. For a condition, restrict and renormalise the table before recalculating its moments.
  6. Interpret the result in its units and check any parameter against the original model.

Common mistakes

  • The mean is not the unweighted average of the listed values.
  • E(X squared) differs from the square of E(X).
  • Do not square probabilities when finding the second moment.
  • A normalised table can still be invalid if one entry is negative.

Worked examples

Weights must be normalised

X has the following distribution, with positive k.

xx−3-30022
P(X=x)\mathrm P(X=x)kk3k3 k2k2 k

Find k, E(X)\mathrm E(X), Var⁡(X)\operatorname{Var}(X), and P(X>E(X))\mathrm P(X>\mathrm E(X)).

Follow the solution

Sum the probability coefficients, then divide one by that sum. Form the weighted moments. For the final probability, compare each possible value with the exact mean and add only the entries above it.

xxP(X=x)\mathrm P(X=x)
−3-316\frac{1}{6}
0012\frac{1}{2}
2213\frac{1}{3}
xxxp(x)xp(x)x2p(x)x^2p(x)
−3-3−12- \frac{1}{2}32\frac{3}{2}
000000
2223\frac{2}{3}43\frac{4}{3}
E(X)=16,E(X2)=176,Var⁡(X)=176−(16)2=10136.\begin{aligned}\mathrm E(X)&=\frac{1}{6},\\\mathrm E(X^2)&=\frac{17}{6},\\\operatorname{Var}(X)&=\frac{17}{6}-(\frac{1}{6})^2\\&=\frac{101}{36}.\end{aligned}

Complete answers

Normalising constant k: 16\frac{1}{6}.

Expected value: 16\frac{1}{6}.

Variance: 10136\frac{101}{36}.

Probability above the mean: 13\frac{1}{3}.

Recover two unknown probabilities

X has mean 83\frac{8}{3} and this distribution.

xx003377
P(X=x)\mathrm P(X=x)13\frac{1}{3}ppqq

Find p, q, E(X)\mathrm E(X) and Var⁡(X)\operatorname{Var}(X).

Follow the solution

Use normalisation and the stated moment as separate equations. Solve simultaneously and check that both probabilities lie between zero and one. Use squared values in a second-moment equation.

p+q=23,3p+7q=83.\begin{aligned}p+q&=\frac{2}{3},\\3p+7q&=\frac{8}{3}.\end{aligned}
xxP(X=x)\mathrm P(X=x)
0013\frac{1}{3}
3312\frac{1}{2}
7716\frac{1}{6}
xxxp(x)xp(x)x2p(x)x^2p(x)
000000
3332\frac{3}{2}92\frac{9}{2}
7776\frac{7}{6}496\frac{49}{6}
E(X)=83,E(X2)=383,Var⁡(X)=383−(83)2=509.\begin{aligned}\mathrm E(X)&=\frac{8}{3},\\\mathrm E(X^2)&=\frac{38}{3},\\\operatorname{Var}(X)&=\frac{38}{3}-(\frac{8}{3})^2\\&=\frac{50}{9}.\end{aligned}

Complete answers

Probability p: 12\frac{1}{2}.

Probability q: 16\frac{1}{6}.

Expected value: 83\frac{8}{3}.

Variance: 509\frac{50}{9}.

A second moment is not a mean

X has second moment 33 and this distribution.

xx−3-30022
P(X=x)\mathrm P(X=x)pp12\frac{1}{2}qq

Find p, q, E(X)\mathrm E(X) and Var⁡(X)\operatorname{Var}(X).

Follow the solution

Use normalisation and the stated moment as separate equations. Solve simultaneously and check that both probabilities lie between zero and one. Use squared values in a second-moment equation.

p+q=12,9p+4q=3.\begin{aligned}p+q&=\frac{1}{2},\\9p+4q&=3.\end{aligned}
xxP(X=x)\mathrm P(X=x)
−3-315\frac{1}{5}
0012\frac{1}{2}
22310\frac{3}{10}
xxxp(x)xp(x)x2p(x)x^2p(x)
−3-3−35- \frac{3}{5}95\frac{9}{5}
000000
2235\frac{3}{5}65\frac{6}{5}
E(X)=0,E(X2)=3,Var⁡(X)=3−(0)2=3.\begin{aligned}\mathrm E(X)&=0,\\\mathrm E(X^2)&=3,\\\operatorname{Var}(X)&=3-(0)^2\\&=3.\end{aligned}

Complete answers

Probability p: 15\frac{1}{5}.

Probability q: 310\frac{3}{10}.

Expected value: 00.

Variance: 33.

Normalisation and a mean determine a parameter

X takes values −1, 0, 2 with probabilities t, 1−3t, 2t respectively. Its mean is 35\frac{3}{5}. Find t, P(X=0)\mathrm P(X=0), E(X2)\mathrm E(X^2), Var⁡(X)\operatorname{Var}(X), then choose the correct variance rule.

Follow the solution

The mean equation is −t+4t=3t-t+4t=3t. Check 0≤t≤130\le t\le\frac13, then reconstruct the table. Variance subtracts the square of the mean, not the mean itself.

xxP(X=x)\mathrm P(X=x)
−1-115\frac{1}{5}
0025\frac{2}{5}
2225\frac{2}{5}
xxxp(x)xp(x)x2p(x)x^2p(x)
−1-1−15- \frac{1}{5}15\frac{1}{5}
000000
2245\frac{4}{5}85\frac{8}{5}
E(X)=35,E(X2)=95,Var⁡(X)=95−(35)2=3625.\begin{aligned}\mathrm E(X)&=\frac{3}{5},\\\mathrm E(X^2)&=\frac{9}{5},\\\operatorname{Var}(X)&=\frac{9}{5}-(\frac{3}{5})^2\\&=\frac{36}{25}.\end{aligned}

Complete answers

Parameter t: 15\frac{1}{5}.

Probability of zero: 25\frac{2}{5}.

Second moment: 95\frac{9}{5}.

Variance: 3625\frac{36}{25}.

Correct conclusion: Subtract the square of the mean from the second moment.

Practise this topic