












Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
Prepare for your exams
Study with the several resources on Docsity
Earn points to download
Earn points by helping other students or get them with a premium plan
Great Online Resource for Basic & Advanced Math Skills
Typology: Exercises
1 / 20
This page cannot be seen from the preview
Don't miss anything!













®
A situation in which an experiment (or trial) is repeated a fixed number of times can be modelled, under certain assumptions, by the binomial distribution. Within each trial we focus attention on a particular outcome. If the outcome occurs we label this as a success. The binomial distribution allows us to calculate the probability of observing a certain number of successes in a given number of trials.
You should note that the term ‘success’ (and by implication ‘failure’) are simply labels and as such might be misleading. For example counting the number of defective items produced by a machine might be thought of as counting successes if you are looking for defective items! Trials with two possible outcomes are often used as the building blocks of random experiments and can be useful to engineers. Two examples are:
The binomial distribution will help you to answer such questions.
Before starting this Section you should...
"!
On completion you should be able to...
HELM (2008): Section 37.2: The Binomial Distribution
We have introduced random variables from a general perspective and have seen that there are two basic types: discrete and continuous. We examine four particular examples of distributions for random variables which occur often in practice and have been given special names. They are the binomial distribution, the Poisson distribution, the Hypergeometric distribution and the Normal distribution. The first three are distributions for discrete random variables and the fourth is for a continuous random variable. In this Section we focus attention on the binomial distribution.
The binomial distribution can be used in situations in which a given experiment (often referred to, in this context, as a trial) is repeated a number of times. For the binomial model to be applied the following four criteria must be satisfied:
For example, if we consider throwing a coin 7 times what is the probability that exactly 4 Heads occur? This problem can be modelled by the binomial distribution since the four basic criteria are assumed satisfied as we see.
The reader will be able to complete the solution to this example once we have constructed the general binomial model.
The following two scenarios are typical of those met by engineers. The reader should check that the criteria stated above are met by each scenario.
Before developing the general binomial distribution we consider the following examples which, as you will soon recognise, have the basic characteristics of a binomial distribution.
Workbook 37: Discrete Probability Distributions
A worn machine is known to produce 10% defective components. If the random variable X is the number of defective components produced in a run of 3 compo- nents, find the probabilities that X takes the values 0 to 3.
Solution Assuming that the production of components is independent and that the probability p = 0. 1 of producing a defective component remains constant, the following table summarizes the production run. We let G represent a good component and let D represent a defective component. Note that since we are only dealing with two possible outcomes, we can say that the probability q of the machine producing a good component is 1 − 0 .1 = 0. 9. More generally, we know that q+p = 1 if we are dealing with a binomial distribution. Outcome Value of X Probability of Occurrence GGG 0 (0.9)(0.9)(0.9) = (0.9)^3 GGD 1 (0.9)(0.9)(0.1) = (0.9)^2 (0.1) GDG 1 (0.9)(0.1)(0.9) = (0.9)^2 (0.1) DGG 1 (0.1)(0.9)(0.9) = (0.9)^2 (0.1) DDG 2 (0.1)(0.1)(0.9) = (0.9)(0.1)^2 DGD 2 (0.1)(0.9)(0.1) = (0.9)(0.1)^2 GDD 2 (0.9)(0.1)(0.1) = (0.9)(0.1)^2 DDD 3 (0.1)(0.1)(0.1) = (0.1)^3 From this table it is easy to see that
P(X = 0) = (0.9)^3 P(X = 1) = 3 × (0.9)^2 (0.1)
P(X = 2) = 3 × (0.9)(0.1)^2
P(X = 3) = (0.1)^3 Clearly, a pattern is developing. In fact you may have already realized that the probabilities we have found are just the terms of the expansion of the expression (0.9 + 0.1)^3 since (0.9 + 0.1)^3 = (0.9)^3 + 3 × (0.9)^2 (0.1) + 3 × (0.9)(0.1)^2 + (0.1)^3
We now develop the binomial distribution from a more general perspective. If you find the theory getting a bit heavy simply refer back to this example to help clarify the situation. First we shall find it convenient to denote the probability of failure on a trial, which is 1 − p, by q, that is:
q = 1 − p.
What we shall do is to calculate probabilities of the number of ‘successes’ occurring in n trials, beginning with n = 1.
nnn === 1 11 With only one trial we can observe either 1 success (with probability p) or 0 successes (with probability q).
Workbook 37: Discrete Probability Distributions
®
nnn === 2 22 Here there are 3 possibilities: We can observe 2, 1 or 0 successes. Let S denote a success and F denote a failure. So a failure followed by a success would be denoted by F S whilst two failures followed by one success would be denoted by F F S and so on. Then
P(2 successes in 2 trials) = P(SS) = P(S)P(S) = p^2
(where we have used the assumption of independence between trials and hence multiplied probabili- ties). Now, using the usual rules of basic probability, we have:
P(1 success in 2 trials) = P[(SF ) ∪ (F S)] = P(SF ) + P(F S) = pq + qp = 2pq
P(0 successes in 2 trials) = P(F F ) = P(F )P(F ) = q^2
The three probabilities we have found − q^2 , 2 qp, p^2 − are in fact the terms which arise in the binomial expansion of (q + p)^2 = q^2 + 2qp + p^2. We also note that since q = 1 − p the probabilities sum to 1 (as we should expect):
q^2 + 2qp + p^2 = (q + p)^2 = ((1 − p) + p)^2 = 1
Task List the outcomes for the binomial model for the case n = 3, calculate their probabilities and display the results in a table.
Your solution
Answer {three successes, two successes, one success, no successes} Three successes occur only as SSS with probability p^3. Two successes can occur as SSF with probability (p^2 q), as SF S with probability (pqp) or as F SS with probability (qp^2 ). These are mutually exclusive events so the combined probability is the sum 3 p^2 q. Similarly, we can calculate the other probabilities and obtain the following table of results.
Number of successes 3 2 1 0 Probability p^3 3 p^2 q 3 pq^2 q^3
HELM (2008): Section 37.2: The Binomial Distribution
®
The Binomial Probabilities Let X be a discrete random variable, being the number of successes occurring in n independent trials of an experiment. If X is to be described by the binomial model, the probability of exactly r successes in n trials is given by P(X = r) = nCrprqn−r.
Here there are r successes (each with probability p), n − r failures (each with probability q) and nC r =^
n! r!(n − r)!
is the number of ways of placing the r successes among the n trials.
If a random variable X follows a binomial distribution in which an experiment is repeated n times each with probability p of success then we write X ∼ B(n, p).
A worn machine is known to produce 10% defective components. If the random variable X is the number of defective components produced in a run of 4 compo- nents, find the probabilities that X takes the values 0 to 4.
Solution From Example 8, we know that the probabilities required are the terms of the expansion of the expression:
(0.9 + 0.1)^4 so X ∼ B(4, 0 .1) Hence the required probabilities are (using the general formula with n = 4 and p = 0. 1 )
P(X = 0) = (0.9)^4 = 0. 6561
P(X = 1) = 4(0.9)^3 (0.1) = 0. 2916
P(X = 2) =
Also, since we are using the expansion of (0.9 + 0.1)^4 , the probabilities should sum to 1, This is a useful check on your arithmetic when you are using a binomial distribution.
HELM (2008): Section 37.2: The Binomial Distribution
In a box of switches it is known 10% of the switches are faulty. A technician is wiring 30 circuits, each of which needs one switch. What is the probability that (a) all 30 work, (b) at most 2 of the circuits do not work?
Solution The answers involve binomial distributions because there are only two states for each circuit - it either works or it doesn’t work.
A trial is the operation of testing each circuit. A success is that it works. We are given P(success) = p = 0. 9 Also we have the number of trials n = 30
Applying the binomial distribution P(X = r) = nCrpr(1 − p)n−r.
(a) Probability that all 30 work is P(X = 30) = 30 C 30 (0.9)^30 (0.1)^0 = 0. 04239 (b) The statement that “at most 2 circuits do not work” implies that 28, 29 or 30 work. That is X ≥ 28
P(X ≥ 28) = P(X = 28) + P(X = 29) + P(X = 30) P(X = 30) = 30 C 30 (0.9)^30 (0.1)^0 = 0. 04239 P(X = 29) = 30 C 29 (0.9)^29 (0.1)^1 = 0. 14130 P(X = 28) = 30 C 28 (0.9)^28 (0.1)^2 = 0. 22766
Hence P(X ≥ 28) = 0. 41135
Workbook 37: Discrete Probability Distributions
Task Using the binomial model, and assuming that a success occurs with probability (^15) in each trial, find the probability that in 6 trials there are (a) 0 successes (b) 3 successes (c) 2 failures.
Let X be the number of successes in 6 independent trials.
Your solution (a) P(X = 0) =
Answer In each case p =
and q = 1 − p =
Here r = 0 and
P(X = 0) = q^6 =
Your solution (b) P(X = 3) =
Answer
r = 3 and P(X = 3) =^6 C 3 p^3 q^3 =
Your solution (c) P(X = 4) =
Answer
Here r = 4 and P(X = 4) =^6 C 4 p^4 q^2 =
Workbook 37: Discrete Probability Distributions
®
For a binomial distribution X ∼ B(n, p), the mean and variance, as we shall see, have a simple form. While we will not prove the formulae in general terms - the algebra can be rather tedious - we will illustrate the results for cases involving small values of n.
The case nnn === 2^22
Essentially, we have a random variable X which follows a binomial distribution X ∼ B(2, p) so that the values taken by X (and X^2 - needed to calculate the variance) are shown in the following table:
x x^2 P(X = x) xP(X = x) x^2 P(X = x) 0 0 q^2 0 1 1 2 qp 2 qp 2 qp 2 4 p^2 2 p^2 4 p^2
We can now calculate the mean of this distribution:
E(X) =
xP(X = x) = 0 + 2qp + 2p^2 = 2p(q + p) = 2p since q + p = 1
Similarly, the variance V (X) is given by
V (X) = E(X^2 ) − [E(X)]^2 = 0 + 2qp + 4p^2 − (2p)^2 = 2qp
Task Calculate the mean and variance of a random variable X which follows a binomial distribution X ∼ B(3, p).
Your solution
HELM (2008): Section 37.2: The Binomial Distribution
®
Answer Consider the occurrence of a six, with X being the number of sixes thrown in 36 trials. The random variable X follows a binomial distribution. (Why? Refer to page 18 for the criteria if necessary). A trial is the operation of throwing a die. A success is the occurrence of a 6 on a particular trial, so p = 16. We have n = 36, p = 16 so that
E(X) = np = 36 ×
= 6 and V (X) = npq = 36 ×
Hence the standard deviation is σ =
E(X) = 6 implies that in 36 throws of a fair die we would expect, on average, to see 6 sixes. This makes perfect sense, of course.
HELM (2008): Section 37.2: The Binomial Distribution
(a) exactly one has a burst tyre (b) at most three have a burst tyre (c) two or more have burst tyres.
(a) all 8 machines, (b) 7 or 8 machines, (c) at least 6 machines
will produce all bolts within specification
(a) 0, (b), 1 (c) 2, (d) 3 or more, terminals will require attention during the next week.
No. of defectives 0 1 2 3 4 5 No. of samples 47 34 16 3 0 0
Calculate the proportion of defective chips in the 500 tested. Assuming that a binomial distri- bution holds, use this value to calculate the expected frequencies corresponding to the observed frequencies in the table.
Workbook 37: Discrete Probability Distributions
(a) Find the probability of observing exactly three defectives in a sample of twenty articles (i) given that p = 0. 05 (ii) given that p = 0. 1.
(b) The articles are made in large batches. Unfortunately batches made by both methods are stored together and are indistinguishable until tested, although all of the articles in any one batch will be made by the same method. Suppose that a batch delivered to the company has a probability of 0.7 of being made by the correct method. Find the conditional probability that such a batch is correctly manufactured given that, in a sample of twenty articles from the batch, there are exactly three defectives. (c) The company can either accept or reject a batch. Rejecting a batch leads to a loss for the company of £150. Accepting a batch which was manufactured by the cheap method will lead to a loss for the company of £400. Accepting a batch which was correctly manufactured leads to a profit of £500. Determine a rule for what the company should do if a sample of twenty articles contains exactly three defectives, in order to maximise the expected value of the profit (where loss is negative profit). Should such a batch be accepted or rejected? (d) Repeat the calculation for four defectives in a sample of twenty and hence, or otherwise, determine a rule for how the company should decide whether to accept or reject a batch according to the number of defectives.
Workbook 37: Discrete Probability Distributions
®
Answers
(a) P(X = 1) = 17 C 1 (0.05)^1 (0.95)^16 = 0. 3741 (b)
P(X ≤ 3) = P(X = 0) + P(X = 1) + P(X = 2) + P(X = 3)
= (0.95)^17 + 17(0.05)(0.95)^16 +
(c) P(X ≥ 2) = 1 − P[(X = 0) ∪ (X = 1)] = 1 − (0.95)^17 − 17(0.05)(0.95)^16 = 0. 2077
(a) P (distortion) = 0. 01 for each digit. This is a binomial situation in which the probability of ‘success’ is 0 .01 = p and there are n = 8 trials. A word is decoded incorrectly if there are two or more digits in error
P(X ≥ 2) = 1 − P[(X = 0) ∪ (X = 1)] = 1 − 8 C 0 (0.99)^8 − 8 C 1 (0.01)(0.99)^7 = 0. 00269
(b) Same as (a) with n = 10. Correct decoding if X ≤ 2
P(X ≤ 2) = P[(X = 0) ∪ (X = 1) ∪ (X = 2)] = (0.99)^10 + 10(0.01)(0.99)^9 + 45(0.01)^2 (0.99)^8 = 0. 99989
P(8 or more correct) = P[(X = 8) ∪ (X = 9) ∪ (X = 10)] = 10 C 8 (0.2)^8 (0.8)^2 + 10 C 9 (0.2)^9 (0.8) + 10 C 10 (0.2)^10 = 0. 000078
HELM (2008): Section 37.2: The Binomial Distribution
®
Answers
The probability of at least one defective in a batch is 1 − 0. 910 = 0. 6513. Let the probability of at least one defective in exactly j batches be pj.
(a) p 4 =
(b)
p 5 =
p 6 =
p 7 =
The probability of at least one defective in four or more of the batches is p 4 + p 5 + p 6 + p 7 = 0. 8023.
(a) Let Y be the number of companies to which the engineer is called and let A denote the event that the engineer is called to company A.
(i) P(Y = 4) = 0. 14 = 0. 0001.
(ii) P(Y ≥ 3) =
(iii) P(Y = 4 | Y ≥ 1) =
(iv) P(Y = 4 | A) =
(b) The mean is E(Y ) = 4 × 0 .1 = 0. 4. The variance is V (Y ) = 4 × 0. 1 × 0 .9 = 0. 36.
HELM (2008): Section 37.2: The Binomial Distribution
Answers
2 5 ×
2 5 ×
(a) (i) p 3 =
(ii)
p 2 =
× 9 × p 3 = 0. 28518
p 1 =
× 9 × p 2 = 0. 27017
p 0 =
The total probability is 0.867.
(iii) The required probability is the probability of at most 2 out of 16.
p′ 0 = P(0 out of 16) = 0. 916 = 0. 185302
p′ 1 = P(1 out of 16) =
× p′ 0 = 0. 3294258
p′ 2 = P(2 out of 16) =
× p′ 1 = 0. 2745215
(b)
Workbook 37: Discrete Probability Distributions