2 Expectation and variance of the binomial distribution
For a binomial distribution , 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 .
The case
Essentially, we have a random variable which follows a binomial distribution so that the values taken by (and - needed to calculate the variance) are shown in the following table:
P | P | P | ||
0 | 0 | 0 | 0 | |
1 | 1 | |||
2 | 4 | |||
We can now calculate the mean of this distribution:
Similarly, the variance is given by
Task!
Calculate the mean and variance of a random variable which follows a binomial distribution .
The table of values appropriate to this case is:
0 | 0 | 0 | 0 | |
1 | 1 | |||
2 | 4 | |||
3 | 9 |
Hence
From the results given above, it is reasonable to asert the following result in Key Point 5.
Key Point 5
Expectation and Variance of the Binomial Distribution
If a random variable which can assume the values follows a binomial distribution so that
then the expectation and variance of the distribution are given by the formulae
Task!
A die is thrown repeatedly 36 times in all. Find and where is the number of sixes obtained.
Consider the occurrence of a six, with being the number of sixes thrown in 36 trials.
The random variable 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 . We have so that
Hence the standard deviation is
implies that in 36 throws of a fair die we would expect, on average, to see 6 sixes. This makes perfect sense, of course.
Exercises
-
The probability that a mountain-bike rider travelling along a certain track will have a tyre burst
is 0.05. Find the probability that among 17 riders:
- exactly one has a burst tyre
- at most three have a burst tyre
- two or more have burst tyres.
-
- A transmission channel transmits zeros and ones in strings of length 8, called ‘words’. Possible distortion may change a one to a zero or vice versa; assume this distortion occurs with probability .01 for each digit, independently. An error-correcting code is employed in the construction of the word such that the receiver can deduce the word correctly if at most one digit is in error. What is the probability the word is decoded incorrectly?
- Assume that a word is a sequence of 10 zeros or ones and, as before, the probability of incorrect transmission of a digit is .01. If the error-correcting code allows correct decoding of the word if no more than two digits are incorrect, compute the probability that the word is decoded correctly.
- An examination consists of 10 multi-choice questions, in each of which a candidate has to deduce which one of five suggested answers is correct. A completely unprepared student guesses each answer completely randomly. What is the probability that this student gets 8 or more questions correct? Draw the appropriate moral!
-
The probability that a machine will produce all bolts in a production run within specification
is 0.998. A sample of 8 machines is taken at random. Calculate the probability
that
- all 8 machines,
- 7 or 8 machines,
-
at least 6 machines
will produce all bolts within specification
- The probability that a machine develops a fault within the first 3 years of use is 0.003. If 40 machines are selected at random, calculate the probability that 38 or more will not develop any faults within the first 3 years of use.
-
A computer installation has 10 terminals. Independently, the probability that any one terminal
will require attention during a week is 0.1. Find the probabilities that
- 0,
- 1,
- 2,
- 3 or more, terminals will require attention during the next week.
-
The quality of electronic chips is checked by examining samples of 5. The frequency
distribution of the number of defective chips per sample obtained when 100 samples have been
examined is:
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 distribution holds, use this value to calculate the expected frequencies corresponding to the observed frequencies in the table.
-
In a large school, 80% of the pupils like mathematics. A visitor to the school asks each of 4
pupils, chosen at random, whether they like mathematics.
- Calculate the probabilities of obtaining an answer yes from 0, 1, 2, 3, 4 of the pupils
-
Find the probability that the visitor obtains the answer
yes
from at least 2
pupils:
- when the number of pupils questioned remains at 4
- when the number of pupils questioned is increased to 8.
-
A machine has two drive belts, one on the left and one on the right. From time to time the drive
belts break. When one breaks the machine is stopped and both belts are replaced. Details of
consecutive breakages are recorded. Assume that the left and right belts are equally likely to break
first. Let
be the number of times the break is on the left.
- How many possible different sequences of “left” and “right” are there?
- How many of these sequences contain exactly “lefts”?
- Find an expression, in terms of and for the probability that
- Let Find the probability distribution of
- A machine is built to make mass-produced items. Each item made by the machine has a probability of being defective. Given the value of the items are independent of each other. Because of the way in which the machines are made, could take one of several values. In fact where has a discrete uniform distribution on the interval The machine is tested by counting the number of items made before a defective is produced. Find the conditional probability distribution of given that the first defective item is the thirteenth to be made.
-
Seven batches of articles are manufactured. Each batch contains ten articles. Each article has,
independently, a probability of 0.1 of being defective. Find the probability that there is at least
one defective article
- in exactly four of the batches,
- in four or more of the batches.
-
A service engineer is can be called out for maintenance on the photocopiers in
the offices of four large companies, A, B, C and D. On any given week there is a
probability of 0.1 that he will be called to each of these companies. The event of being
called to one company is independent of whether or not he is called to any of the
others.
-
Find the probability that, on a particular day,
- he is called to all four companies,
- he is called to at least three companies,
- he is called to all four given that he is called to at least one,
- he is called to all four given that he is called to Company A.
- Find the expected value and variance of the number of these companies which call the engineer on a given day.
-
Find the probability that, on a particular day,
- There are five machines in a factory. Of these machines, three are working properly and two are defective. Machines which are working properly produce articles each of which has independently a probability of 0.1 of being imperfect. For the defective machines this probability is 0.2. A machine is chosen at random and five articles produced by the machine are examined. What is the probability that the machine chosen is defective given that, of the five articles examined, two are imperfect and three are perfect?
-
A company buys mass-produced articles from a supplier. Each article has a probability
of
being defective, independently of other articles. If the articles are manufactured correctly then
However, a cheaper method of manufacture can be used and this results in
-
Find the probability of observing exactly three defectives in a sample of twenty
articles
- given that
- given that
- 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.
- 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?
- 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.
-
Find the probability of observing exactly three defectives in a sample of twenty
articles
-
Binomial distribution
where
is the probability of single ‘success’
which is ‘tyre burst’.
-
-
(distortion)
for each digit. This is a binomial situation in which the probability of ‘success’ is
and
there are
trials.
A word is decoded incorrectly if there are two or more digits in error - Same as (a) with . Correct decoding if
-
(distortion)
for each digit. This is a binomial situation in which the probability of ‘success’ is
and
there are
trials.
-
Let
be a random variable ‘number of answers guessed correctly’ then for each question
(i.e. trial) the probability of a ‘success’ = . It is clear that follows a binomial distribution
with and .
(randomly choosing correct answer)
-
- 0.9841
- 0.9999
- 1.0000
-
- 0.3487
- 0.3874
- 0.1937
- 0.0702
- 0.15 (total defectives = 0 + 34 + 32 + 9 + 0 out of 500 tested); 44, 39, 14, 2, 0, 0
-
- 0.0016, 0.0256, 0.1536, 0.4096, 0.4096;
-
- 0.9728
- 0.9988
-
- There are possible sequences.
-
The number containing exactly
“lefts” is
-
-
With
the
distribution of
is
0 1 2 3 4 5 6 0.015625 0.09375 0.234375 0.3125 0.234375 0.09375 0.015625
-
Let
be the number of the first defective item.
since for
0 0.00000 0.0000 1 0.00886 0.0707 2 0.01569 0.1251 3 0.02082 0.1660 4 0.02451 0.1954 5 0.02702 0.2154 6 0.02856 0.2277 Total 0.12546 1 -
The probability of at least one defective in a batch is
Let the probability of at least one defective in exactly batches be
-
The probability of at least one defective in four or more of the batches is
-
-
Let
be the number of companies to which the engineer is called and let
denote the event that the engineer is called to company A.
- The mean is The variance is
-
Let
be the number of companies to which the engineer is called and let
denote the event that the engineer is called to company A.
-
Let
denote the event that the chosen machine is defective and
denote the event
“not ”.
Let be the number of imperfect articles in the sample of five.
Then
-
-
-
The total probability is 0.867.
- The required probability is the probability of at most 2 out of 16.
-