5.02d, 5.02e - Binomial and discrete uniform models

5.02d, 5.02e - Binomial and discrete uniform models

Use binomial means and variances, recognise a discrete uniform model, and calculate its probabilities and moments. Learn to distinguish a model for counting successes from a model in which each listed integer is equally likely.

Binomial means and variances

Two games can have the same average score but quite different uncertainty. How can you tell their spreads apart without constructing every probability? For standard distributions, their parameters give the mean and variance directly.

You already know

X∼B(n,p)X\sim\mathrm{B}(n,p) counts successes in nn independent trials with a common success probability pp. The possible values are 0,1,…,n0,1,\ldots,n, and the probability formula and calculator functions are A-level Mathematics content. The preceding lesson taught expectation, variance and linear coding.

Each trial contributes an average of pp successes. Across nn trials, npnp is the average total. The variance also depends on the chance of failure: if success is certain, the count is constant and has no spread. The following results may be used without proof.

Binomial moments

For X∼B(n,p)X\sim\mathrm{B}(n,p), with nn a positive integer and 0≤p≤10\le p\le1,

E(X)=np,Var(X)=np(1−p)\mathrm{E}(X)=np,\qquad \mathrm{Var}(X)=np(1-p)

In the formula booklet.

When 0<p<10<p<1, the variance is smaller than the mean. This is a property of the distribution, not a requirement that a finite sample's calculated moments satisfy an exact identity.

Worked example 1: moments from the parameters

Question. X∼B(20,0.3)X\sim\mathrm{B}(20,0.3). Find the mean and variance of XX.

Plan. Substitute the two parameters into the binomial moment formulae.

E(X)=20(0.3)=6use npVar(X)=20(0.3)(0.7)=4.2use np(1−p)\begin{aligned} \mathrm{E}(X)&=20(0.3)=6 &&\text{use }np\\ \mathrm{Var}(X)&=20(0.3)(0.7)=4.2 &&\text{use }np(1-p) \end{aligned}

Why this step? The final factor is the probability of failure, 1−0.31-0.3, rather than a second copy of the success probability.

Answer. Mean 66, variance 4.24.2.

Check. Both are non-negative, the mean lies in [0,20][0,20], and 4.2<64.2<6.

Change only what is known: the moments are supplied instead of the parameters. Dividing the two equations removes nn.

Worked example 2: parameters from the moments

Question. A binomial random variable has mean 66 and variance 4.24.2. Determine its parameters.

Plan. Divide variance by mean to find 1−p1-p, then use the mean to find nn.

np=6,np(1−p)=4.2moment equations1−p=4.26=0.7dividep=0.3,n=60.3=20solve\begin{aligned} np&=6,\qquad np(1-p)=4.2 &&\text{moment equations}\\ 1-p&=\frac{4.2}{6}=0.7 &&\text{divide}\\ p&=0.3,\qquad n=\frac6{0.3}=20 &&\text{solve} \end{aligned}

Why this step? The mean is non-zero, so division is valid and cancels the unknown product npnp.

Answer. X∼B(20,0.3)X\sim\mathrm{B}(20,0.3).

Check. Substitution gives mean 66 and variance 4.24.2; 2020 is an integer and 0.30.3 is a probability.

An algebraic solution for nn must pass the integer check. Exact proposed moments giving a non-integer nn cannot belong to a binomial distribution, although rounded sample summaries need more cautious interpretation.

Watch out

Wrong: variance np2np^2. Right: np(1−p)np(1-p). Also, np(1−p)\sqrt{np(1-p)} is the standard deviation, not the variance.

Reverse the calculation with new moments.

Equally likely integers

A discrete uniform distribution is appropriate when every integer in a specified consecutive list is equally likely. The word uniform describes the probabilities, not the spacing alone: an ordinary loaded die still has consecutive integer labels.

Discrete uniform distribution

X∼U(n)X\sim\mathrm{U}(n) means that XX takes each integer 1,2,…,n1,2,\ldots,n with probability 1/n1/n, where nn is a positive integer. A fair numbered spinner with nn equal sectors is an example. A spinner with unequal sectors is not, unless its construction nevertheless gives equal probabilities.

The notation is specific: U(8)\mathrm{U}(8) means 11 to 88, not 00 to 88, and not every real value between the endpoints. Selecting uniformly from a larger consecutive integer list can be handled by coding a variable of this form.

[DIAGRAM: asset_name: Discrete uniform probability masses; asset_slug: h245_5_02_uniform_masses; caption: U(8) has eight probability masses of height 1/8, with no probability between the integers. The masses for X greater than 6 are highlighted; description: A probability-mass plot on white axes has points and stems at integers 1 through 8, all of height 0.125. The stems at 7 and 8 are clay, the others blue. Text identifies two qualifying values out of eight and distinguishes point probabilities from a continuous area]
U(8) has eight probability masses of height 1/8, with no probability between the integers. The masses for X greater than 6 are highlighted

For any event involving a subset of those integers, count the qualifying values and divide by nn. This follows by adding their equal probabilities; it is not a separate formula in the booklet. The individual probability 1/n1/n is provided in its discrete-distributions table.

Continue this lesson.

You’re previewing NovaLearn without an account. Create a free account to read the rest.

Create free account