Binomial models and calculator tails

Choose a binomial model, translate exact and conditional tails, recover parameters and combine component and box counts.

More
Reading settingsKeep track of this lesson

Read offline with Premium

Save lessons and their figures on this device to read without an internet connection. Offline saving is included with Premium.

Connect at least once every 30 days to confirm Premium. Topic checks, coaching and sync need a connection.

Find this activity in your course
On this page

Reading settings

Colour theme, text size, line spacing and reading width for your lessons.

Colour theme
Text size
Line spacing
Reading width
Revision Mode

Keep just the revision notes by hiding embedded questions and activities, including worked examples. Your choice follows your account across both subjects and devices. Turn off to show the full lesson again.

Checking Premium access…

Explore Premium

Live preview

Take a moment to read at your own pace. Choose the text size and spacing that feel comfortable for you.

Pause after each idea, then explain it in your own words before moving on.

Narrower lines take effect when the screen has room.

Enlarged diagram

A count needs a trial model

Let X count defective components among five tested components. Before calculating, decide what one trial is and what counts as a success. In probability, “success” means the event being counted; it need not be desirable. Here one trial tests one component, and a success is finding a defect.

Write X∼ B(n,p) when all four conditions hold:

  • there is a fixed number n of trials;
  • each trial is classified as success or failure;
  • the trials are independent;
  • the success probability p is the same on every trial.

The parameters satisfy n = 0,1,2,… and 0 ≤ p ≤ 1. The possible counts run from 0 to n. At the boundary p = 0, X is always zero; at p = 1, X is always n. A binomial model can therefore include a count with no variability.

A fixed sample size does not establish the other conditions. Components made during the same machine fault may have related defect outcomes. Testing a large stable production run might support an independent constant-p approximation, but the manufacturing setting must justify it.

Check your understanding 1 Which experiment supports the count?

For each experiment, decide whether a binomial model is justified by the stated information. Identify the failed condition where it is not.

  • Test ten components whose defect outcomes are independent, each with probability 0.1. Count defects.
  • Draw three balls uniformly without replacement from a bag containing three red and two blue balls. Count red balls.
  • Make independent attempts, each successful with probability 0.4, until the third success. Count the number of attempts.
  • Make eight independent attempts with success probabilities 0.2 for the first four and 0.6 for the next four. Count successes.
Show answer

The component count is B(10,0.1): ten trials, two classifications, independence and constant probability are all stated.

The bag draws are dependent. After a red first draw the next red probability is 2/4; after blue it is 3/4. A B(3,3/5) model would even allow zero reds, which is impossible when the bag has only two blue balls.

Stopping at the third success does not give a fixed number of attempts. The variable counts trials until a target, rather than successes in a fixed number of trials.

The eight-attempt count has a fixed trial number and independence, but no common success probability. Replacing the probabilities by their average does not make its distribution binomial.

Count all orders for an exact result

For X∼ B(n,p) with 0 < p < 1,

P(X = r) = (n choose r) p^r(1-p)^(n-r), r = 0,1,…,n.

The product p^r(1-p)^(n-r) is the probability of one particular order of r successes and n − r failures. The combination counts the different choices of success positions. Independence allows multiplication, and constant p makes all those orders have the same probability.

For five independent trials with p = 0.3, exactly two successes can occupy (5 choose 2) = 10 different pairs of positions. Thus

P(X = 2) = 10(0.3)²(0.7)³ = 0.3087.

Using only (0.3)²(0.7)³ counts one specified order, such as success-success-failure-failure-failure. It misses the other nine orders.

The complete distribution in this small example provides a useful check:

Success count rP(X = r)
00.16807
10.36015
20.30870
30.13230
40.02835
50.00243

These probabilities sum to one. They are not six equally likely outcomes: each count collects a different set of trial sequences.

Mean and variance describe repeated experiments

For a binomial count,

E(X) = np, Var(X) = np(1-p).

Use these results without needing their proofs. For B(5,0.3), the mean is 1.5, the variance is 1.05 and the standard deviation is square root of 1.05 ≈ 1.025.

A mean of 1.5 does not say that one experiment produces 1.5 successes; every observed count is an integer. Across many independent repetitions of the whole five-trial experiment, the average count tends towards 1.5. The standard deviation describes spread in counts; it is the square root of the variance.

The two formulas can also recover unknown parameters. If a binomial variable has mean 6 and variance 4.2, divide variance by the non-zero mean:

1-p = 4.2/6 = 0.7.

So p = 0.3, then n = 6/0.3 = 20. Check that n is an integer and p lies between zero and one before accepting the model. When the mean is zero, this division is unavailable; the count is always zero, and those summaries do not identify a unique n and p.

Check your understanding 2 Do the summaries describe a possible binomial count?

A proposed binomial model has mean 3 and variance 2.25. Find its parameters and standard deviation. Another proposal has mean 3 and variance 4. Explain whether it is possible, rather than rounding any recovered parameter into range.

Show answer

For the first proposal, 1-p = 2.25/3 = 0.75, so p = 0.25 and n = 12. Both parameter conditions hold, and the standard deviation is 1.5.

For the second, 1-p = 4/3 gives p = -1/3, which is not a probability. A binomial variance cannot exceed its mean because np(1-p) ≤ np for valid parameters. These summaries contradict the proposed binomial model; they do not mean that all random variables must have variance below their mean.

Translate a tail into allowed integers

A calculator’s point-probability command gives P(X = r). A cumulative binomial command commonly gives P(X ≤ r); check the tool’s own definition and the order of its n, p and boundary inputs. These two commands answer different questions.

For X∼ B(5,0.3):

WordsCounts includedCalculation
At least three3, 4, 51-P(X ≤ 2)
More than three4, 51-P(X ≤ 3)
At most three0, 1, 2, 3P(X ≤ 3)
Fewer than three0, 1, 2P(X ≤ 2)

For example, P(X ≥ 3) = 0.16308, while P(X > 3) = 0.03078. The difference is exactly P(X = 3) = 0.13230. Writing 1-P(X ≤ 3) for “at least three” wrongly removes the boundary count.

For an inclusive interval, subtract everything below its first allowed count:

P(2 ≤ X ≤ 4) = P(X ≤ 4)-P(X ≤ 1) = 0.46935.

Keep the model, integer event and probability expression in your working. A screen output alone does not show whether you entered the correct tail. Use stored precision in later calculations and round only the final requested answer.

Precision is part of the requested result. For example, P(X = 2) = 0.3087 is 0.309 to three significant figures, or 3.09 × 10⁻¹ in scientific notation. Writing 0.3090 states four significant figures. Three decimal places happens to give 0.309 here too, but the two requests differ for much smaller probabilities: 0.000622 has three significant figures and six decimal places.

Check your understanding 3 Translate the words before using a command

For X∼ B(8,0.4), express “more than three but fewer than seven successes” using two cumulative probabilities, then evaluate it to three significant figures. Separately, express the probability of at least four successes given at least two successes. Is the conditioned count simply B(6,0.4) plus two?

Show answer

The first event contains counts 4, 5 and 6, so its probability is P(X ≤ 6)-P(X ≤ 3) = 0.39739392 ≈ 0.397.

Since the event X ≥ 4 is contained in X ≥ 2, the conditional probability is

P(X ≥ 4)/(P(X ≥ 2)) = (1-P(X ≤ 3))/(1-P(X ≤ 1)) ≈ 0.454.

The condition tells you that the total in eight trials is at least two. It does not identify two particular trials as successes and leave six fresh trials. Dividing by the probability of the observed condition describes the selected experiments; resetting the binomial trial count would describe a different experiment.

Find a minimum trial count with its neighbouring integer

Suppose each independent trial succeeds with probability 0.2. To have probability at least 0.99 of one or more successes in n trials, require

1-0.8ⁿ ≥ 0.99.

Equivalently, 0.8ⁿ ≤ 0.01. Taking logarithms gives n ln 0.8 ≤ ln 0.01. Since ln 0.8 is negative, division reverses the inequality:

n ≥ (ln 0.01)/(ln 0.8) ≈ 20.638.

The least integer is 21. Check it in the original probability: n = 20 gives about 0.988471, while n = 21 gives about 0.990777. This also verifies a calculator’s integer search and prevents rounding 20.638 down to 20. The probability increases with n because 0.8ⁿ decreases.

Check your understanding 4 An equality can change the least trial count

For each non-negative integer n, let X∼ B(n,1/2). Find the least n for which P(X ≥ 1) ≥ 0.75, then find the least n for which P(X ≥ 1) > 0.75. Check the preceding integer for each answer.

Show answer

The probability is 1-(1/2)ⁿ. At n = 1 it is 0.5; at n = 2 it is exactly 0.75; at n = 3 it is 0.875. Thus the first least count is 2 and the strict inequality’s least count is 3. The probability is increasing with n, so these preceding-integer checks establish minimality. A rounded screen output of 0.75 cannot decide whether an underlying value is strictly above 0.75; use the exact probability at the boundary.

Try it yourself 1

Inspect a delivery of boxes

Minimal support

Problem

A box contains five components. Every component in the delivery independently has probability 0.1 of being defective. Reject a box if it contains at least two defective components. A delivery contains eight boxes. Find the probability that exactly two boxes are rejected, to three significant figures. Define each random variable and justify the model at each stage. Explain why B(8,0.1) would answer a different question.

Write your answer, then compare it with the solution

Hints

Hint 1

Decide what a success means for a box

First use the component count within one box to find the chance that this box is rejected. Then decide what the eight trials count and whether their outcomes are independent.

Show full solution
  1. Model one box's defect count

    Method

    Let D be the number of defective components in one box.

    Reason

    The five component outcomes are independent with the same defect probability.

    Working

    Answer

    D∼ B(5,0.1). The box rejection probability is q = P(D ≥ 2) = 1-P(D = 0)-P(D = 1) = 1-0.9⁵-5(0.1)(0.9)⁴ = 0.08146.
  2. Change the trial from a component to a box

    Method

    Let R count rejected boxes among the eight.

    Reason

    Different boxes use disjoint sets of independent component outcomes. Each box has the same rejection rule and probability q.

    Working

    Answer

    R∼ B(8,0.08146). The new success probability is the probability of rejecting a whole box, not the probability that one component is defective.
  3. Count exactly two rejected boxes

    Method

    Include all choices of the two rejected positions.

    Reason

    The delivery event fixes a box count, rather than a component count or a cumulative tail.

    Working

    Answer

    P(R = 2) = (8 choose 2)(0.08146)²(0.91854)⁶ ≈ 0.111592571. The answer is 0.112 to three significant figures. The model B(8,0.1) would count defects in eight independent individual components; it does not use the specified box rejection event.

Keep track of this lesson

Mark the lesson done when you have worked through it.

Lesson progress is optional and kept on this device.

Your lesson mark records your own study. Checks are kept separately in My Learning.