WB35 All
WB35 All
WB35 All
HELM
Contacts:
Post:
HELM,
Mathematics
Education
Centre,
Loughborough
University,
Loughborough,
LE11
3TU.
Email:
[email protected]
Web:
http://helm.lboro.ac.uk
Contents 35
Sets and Probability
35.1 Sets 2
Learning outcomes
In this Workbook you will learn about probability. In the first Section you will learn about
sets and how they may be combined together using the operations of union and
intersection. Then you will learn how to apply the notation of sets to the notion of
probability and learn about the fundamental laws of probability.
Sets 35.1
Introduction
If we can identify a property which is common to several objects, it is often useful to group them
together. Such a grouping is called a set. Engineers for example, may wish to study all components
of a production run which fail to meet some specified tolerance. Mathematicians may look at sets of
numbers with particular properties, for example, the set of all even numbers, or the set of all numbers
greater than zero. In this block we introduce some terminology that is commonly used to describe
sets, and practice using set notation. This notation will be particularly useful when we come to study
probability in Section 35.2.
2 HELM (2015):
Workbook 35: Sets and Probability
®
1. Sets
A set is any collection of objects. Here, the word ‘object’ is used in its most general sense: an object
may be a diode, an aircraft, a number, or a letter, for example.
A set is often described by listing the collection of objects - these are the members or elements of
the set. We usually write this list of elements in curly brackets, and denote the full set by a capital
letter. For example,
C = {the resistors produced in a factory on a particular day}
D = {on, off}
E = {0, 1, 2, 3, 4, 5, 6, 7, 8, 9}
The elements of set C, above, are the resistors produced in a factory on a particular day. These
could be individually labeled and listed individually but as the number is large it is not practical or
sensible to do this. Set D lists the two possible states of a simple switch, and the elements of set E
are the digits used in the decimal system.
Sometimes we can describe a set in words. For example,
‘A is the set all odd numbers’.
Clearly all the elements of this set A cannot be listed.
Similarly,
‘B is the set of binary digits’ i.e. B = {0, 1}.
B has only two elements.
A set with a finite number of elements is called a finite set. B, C, D and E are finite sets. The set
A has an infinite number of elements and so is not a finite set. It is called an infinite set.
Two sets are equal if they contain exactly the same elements. For example, the sets {9, 10, 14} and
{10, 14, 9} are equal since the order in which elements are written is unimportant. Note also that
repeated elements are ignored. The set {2, 3, 3, 3, 5, 5} is equal to the set {2, 3, 5}.
Subsets
Sometimes one set is contained completely within another set. For example if X = {2, 3, 4, 5, 6} and Y =
{2, 3, 6} then all the elements of Y are also elements of X. We say that Y is a subset of X and
write Y ⊆ X.
Example 1
Given A = {0, 1, 2, 3}, B = {0, 1, 2, 3, 4, 5, 6} and C = {0, 1}, state which sets
are subsets of other sets.
Solution
A is a subset of B, that is A ⊆ B
C is a subset of B, that is C ⊆ B
C is a subset of A, that is C ⊆ A.
HELM (2015): 3
Section 35.1: Sets
Task
A factory produces cars over a five day period; Monday to Friday. Consider the
following sets,
Your solution
Answer
(a) B is a subset of A, that is, B ⊆ A.
(b) C is a subset of A, that is, C ⊆ A.
(c) D is a subset of A, that is, D ⊆ A.
(d) E is a subset of A, that is, E ⊆ A.
(e) D is a subset of B, that is, D ⊆ B.
(f) E is a subset of B, that is, E ⊆ B.
(g) D is a subset of E, that is, D ⊆ E.
4 HELM (2015):
Workbook 35: Sets and Probability
®
The symbol ∈
To show that an element belongs to a particular set we use the symbol ∈. This symbol means is a
member of or ‘belongs to’. The symbol 6∈ means is not a member of or ‘does not belong to’.
For example if X = {all even numbers} then we may write 4 ∈ X, 6 ∈ X, 7 6∈ X and 11 6∈ X.
Example 2
Given A = {2, 3, 7}, B = {0, 1, 2, 3, 4} and S = {0, 1, 2, 3, 4, 5, 6, 7, 8, 9} state
(a) A0 (b) B 0
Solution
Sometimes a set is described in a mathematical way. Suppose the set Q contains all numbers which
are divisible by 4 and 7. We can write
Q = {x : x is divisible by 4 and x is divisible by 7}
The symbol : stands for ‘such that ’. We read the above as ‘Q is the set comprising all elements x,
such that x is divisible by 4 and by 7’.
HELM (2015): 5
Section 35.1: Sets
2. Venn diagrams
Sets are often represented pictorially by Venn diagrams (see Figure 1).
A B
D
C
Figure 1
Here A, B, C, D represent sets. The sets A, B have no items in common so are drawn as non-
intersecting regions whilst the sets C, D have some items in common so are drawn overlapping.
In a Venn diagram the universal set is represented by a rectangle and sets of interest by area regions
within this rectangle.
Example 3
Represent the sets A = {0, 1} and B = {0, 1, 2, 3, 4} using a Venn diagram.
Solution
The elements 0 and 1 are in set A, represented by the small circle in the diagram. The large circle
represents set B and so contains the elements 0,1,2,3 and 4. A suitable universal set in this case is
the set of all integers. The universal set is shown by the rectangle.
Note that A ⊆ B. This is shown in the Venn diagram by A being completely inside B.
0
1 A
2
3
4
B
S
6 HELM (2015):
Workbook 35: Sets and Probability
®
Task
Given A = {0, 1} and B = {2, 3, 4} draw Venn diagrams showing
(a) A and B (b) A0 (c) B 0
Your solution
(a)
Answer
Note that A and B have no elements in common. This is represented pictorially in the Venn
diagram by circles which are totally separate from each other as shown in the diagram.
A B
0 2
3
1 4
Your solution
(b)
Answer
The complement of A is the set whose elements do not belong to A. The set A0 is shown shaded
in the diagram.
A A'
A
HELM (2015): 7
Section 35.1: Sets
Your solution
(c)
Answer
The set B 0 is shown shaded in the diagram.
B' B
Key Point 1
Intersection of Sets
A ∩ B = {x : x ∈ A and x ∈ B}
This says that the intersection contains all the elements x such that x belongs to A and also x
belongs to B.
Note that A ∩ B and B ∩ A are identical. The intersection of two sets can be represented by a Venn
diagram as shown in Figure 3.
8 HELM (2015):
Workbook 35: Sets and Probability
®
A B
S
A∩B
Example 4
Given A = {3, 4, 5, 6}, B = {3, 5, 9, 10, 15} and C = {4, 6, 10} state
(a) A ∩ B, (b) B ∩ C and draw a Venn diagram representing these intersections.
Solution
(a) The elements common to both A and B are 3 and 5. Hence A ∩ B = {3, 5}
(b) The only element common to B and C is 10. Hence B ∩ C = {10}
5
3 6 4
B C
9 15
10
S
Figure 4
Task
Given D = {a, b, c} and F = {the entire alphabet} state D ∩ F .
Your solution
Answer
The elements common to D and F are a, b and c, and so D ∩ F = {a, b, c}
Note that D is a subset of F and so D ∩ F = D.
The intersection of three or more sets is possible, and is the subject of the next Example.
HELM (2015): 9
Section 35.1: Sets
Example 5
Given A = {0, 1, 2, 3}, B = {1, 2, 3, 4, 5} and C = {2, 3, 4, 7, 9} state
Solution
The example illustrates a general rule. For any sets A, B and C it is true that
(A ∩ B) ∩ C = A ∩ (B ∩ C)
The position of the brackets is thus unimportant. They are usually omitted and we write A ∩ B ∩ C.
Suppose that sets A and B have no elements in common. Then their intersection contains no
elements and we say that A and B are disjoint sets. We express this as
A∩B =∅
Recall that ∅ is the empty set. Disjoint sets are represented by separate area regions in the Venn
diagram.
Union
The union of two sets A and B is a set which contains all the elements of A together with all the
elements of B. We write A ∪ B to denote the union of A and B. We can describe the set A ∪ B
formally by:
Key Point 2
Union of Sets
A ∪ B = {x : x ∈ A or x ∈ B or both}
10 HELM (2015):
Workbook 35: Sets and Probability
®
Thus the elements of the set A ∪ B are those quantities x such that x is a member of A or a member
of B or a member of both A and B. The deeply shaded areas of Figure 5 represents A ∪ B.
A B A B
S S
A∪B A∪B
(a) (b)
Figure 5
In Figure 5(a) the sets intersect, whereas in Figure 5(b) the sets have no region in common. We say
they are disjoint.
Example 6
Given A = {0, 1}, B = {1, 2, 3} and C = {2, 3, 4, 5} write down
(a) A ∪ B
(b) A ∪ C
(c) B ∪ C
Solution
(a) A ∪ B = {0, 1, 2, 3}
(b) A ∪ C = {0, 1, 2, 3, 4, 5}
(c) B ∪ C = {1, 2, 3, 4, 5}.
Recall that there is no need to repeat elements in a set. Clearly the order of the union is unimportant
so A ∪ B = B ∪ A.
HELM (2015): 11
Section 35.1: Sets
Task
Given A = {2, 3, 4, 5, 6}, B = {2, 4, 6, 8, 10} and C = {3, 5, 7, 9, 11} state
(a) A ∪ B (b) (A ∪ B) ∩ C (c) A ∩ B (d) (A ∩ B) ∪ C (e) A ∪ B ∪ C
Your solution
Answer
(a) A ∪ B = {2, 3, 4, 5, 6, 8, 10}
(b) We need to look at the sets (A ∪ B) and C. The elements common to both of these
sets are 3 and 5. Hence (A ∪ B) ∩ C = {3, 5}.
(c) A ∩ B = {2, 4, 6}
(d) We consider the sets (A ∩ B) and C. We form the union of these two sets to obtain
(A ∩ B) ∪ C = {2, 3, 4, 5, 6, 7, 9, 11}.
(e) The set formed by the union of all three sets will contain all the elements from all the
sets:
12 HELM (2015):
Workbook 35: Sets and Probability
®
Exercises
1. Given a set A, its complement A0 and a universal set S, state which of the following expressions
are true and which are false.
(a) A ∪ A0 = S (b) A ∩ S = ∅ (c) A ∩ A0 = ∅
(d) A ∩ A0 = S (e) A ∪ ∅ = S (f) A ∪ ∅ = A
(g) A ∪ ∅ = ∅ (h) A ∩ ∅ = A (i) A ∩ ∅ = ∅
(j) A ∪ S = A (k) A ∪ S = ∅ (l) A ∪ S = S
2. Given A = {a, b, c, d, e, f }, B = {a, c, d, f, h} and C = {e, f, x, y} obtain the sets:
(a) A ∪ B (b) B ∩ C (c) A ∩ (B ∪ C)
(d) C ∩ (B ∪ A) (e) A ∩ B ∩ C (f) B ∪ (A ∩ C)
3. List the elements of the following sets:
(a) A = {x : x is odd and x is greater than 0 and less than 12}
(b) B = {x : x is even and x is greater than 19 and less than 31}
4. Given A = {5, 6, 7, 9}, B = {0, 2, 4, 6, 8} and S = {0, 1, 2, 3, 4, 5, 6, 7, 8, 9} list the elements
of each of the following sets:
(a) A0 (b) B 0 (c) A0 ∪ B 0
(d) A0 ∩ B 0 (e) A ∪ B (f) (A ∪ B)0
(g) (A ∩ B)0 (h) (A0 ∩ B)0 (i) (B 0 ∪ A)0
What do you notice about your answers to (c) and (g)?
Answers
1.(a) T, (b) F, (c) T, (d) F, (e) F, (f) T, (g) F, (h) F, (i) T, (j) F, (k) F), (l) T.
2.(a) {a, b, c, d, e, f, h}, (b) {f }, (c) {a, c, d, e, f }, (d) {e, f }, (e) {f }, (f) {a, c, d, e, f, h}.
3.(a) {1, 3, 5, 7, 9, 11}, (b) {20, 22, 24, 26, 28, 30}.
4.(a) {0, 1, 2, 3, 4, 8}, (b) {1, 3, 5, 7, 9}, (c) {0, 1, 2, 3, 4, 5, 7, 8, 9}, (d) {1, 3},
(e) {0, 2, 4, 5, 6, 7, 8, 9}, (f) {1, 3}, (g) {0, 1, 2, 3, 4, 5, 7, 8, 9}, (h) {1, 3, 5, 6, 7, 9},
(i) {0, 2, 4, 8}.
5.
A B A B A B A B A B
S S S S S
HELM (2015): 13
Section 35.1: Sets
Elementary
Probability 35.2
Introduction
Probability is about the study of uncertainty. Engineers are expected to design and produce systems
which are both useful and reliable. Essentially we are dealing with situations where ‘chance’ is at
work and probability theory gives us the theoretical underpinning necessary for a full understanding
of any experimental results we observe in practice. Probability theory also gives us the tools to set up
mathematical models of systems and processes which are affected by random occurrences or ‘chance’.
In fact the study of probability enables engineers to discuss the reliability of the processes they use
and the systems they produce in terms that other engineers, scientists and designers can understand.
It is worth noting that ‘chance’ is taken to be responsible for variations in simple manufactured
products such as screws, bolts, and light bulbs as well as complex products such as cars, ships and
aircraft. In each of these products, small chance variations in raw materials and production processes
may have a substantial effect on a product.
14 HELM (2015):
Workbook 35: Sets and Probability
®
1. Introductory probability
Probability as an informal idea is something you will have been familiar with for a long time. In
conversation with friends, you must have used sentences such as
• ‘It might start raining soon’
• ‘I might be lucky and pass all my examinations’
• ‘It is very unlikely that my team will not win the Premiership this year’
• ‘Getting a good degree will improve my chances of getting a good job’
Essentially, when you are talking about whether some event is likely to happen, you are using the
concept of probability. In reality, we need to agree on some terminology so that misunderstanding
may be avoided.
Terminology
To start with there are four terms − experiment, outcome, event and sample space − that need
formal definition. There will, of course, be others as you progress through this Workbook.
Some of the experiments outlined above have a very limited set of results (tossing a coin)
while others (destruction testing) may give a widely variable set of results. Also it is worth
noting that destruction testing is not appropriate for all products. Companies manufacturing
say trucks or explosives could not possibly test to destruction on a large scale - they would
have little or nothing left to market!
3. Event - this is just an outcome or set of outcomes to an experiment of interest to the experi-
menter.
4. Sample Space - a sample space is the set of all possible outcomes of an experiment.
HELM (2015): 15
Section 35.2: Elementary Probability
For example, if we throw a die then the sample space is {1, 2, 3, 4, 5, 6} and two possible events are
(a) a score of 3 or more, represented by the set: {3, 4, 5, 6}
(b) a score which is even, represented by the set: {2, 4, 6}.
Everyday examples include games of chance.
Example 7
Obtain the sample space of the experiment throwing a single coin.
Solution
Consider the experiment of throwing a coin which can land Heads up (H) or Tails up (T ). We list
the outcomes as a set {H, T } − the order being unimportant. {H, T } is the sample space. On
any particular throw of a coin, Heads or Tails are equally likely to occur. We say that, for a fair
coin, H and T are equally likely outcomes.
If the sample space can be written in the form of a list (possibly infinite) then it is called a discrete
sample space (e.g. number of tosses of a fair coin before Heads occurs). If this is not possible then
it is called a continuous sample space (e.g. positions where shells land in a tank battle).
Task
List the equally likely outcomes to the experiments:
(a) throwing a fair die with six faces labelled 1 to 6
[Note: ‘die’ is the singular of ‘dice’, although most people use ‘dice’ instead.]
(b) throwing three fair coins.
Your solution
Answer
(a) {1, 2, 3, 4, 5, 6} (b) {T T T, T T H, T HT, T HH, HT T, HT H, HHT, HHH}
16 HELM (2015):
Workbook 35: Sets and Probability
®
Task
For the following list of experiments, list (if possible) a suitable sample space. If
you cannot write out a suitable sample space, describe one in words.
Your solution
Answer
Sample spaces might be
HELM (2015): 17
Section 35.2: Elementary Probability
Example 8
A car manufacturer offers certain options on its family cars. Customers may order:
Find the number of outcomes in the sample space of options that it is possible to
order and represent them using a suitable diagram.
Solution
A suitable diagram is shown in Figure 6. The diagram makes it easy to find the number of outcomes
simply by counting. It also points the way to a formula for calculating the number of outcomes.
auto manual
metallic
metallic
metallic
metallic
solid
metallic
metallic
metallic
solid
solid
solid
solid
solid
solid
solid
Diagrams such as the one above are called tree diagrams. They are only suitable in simple situations.
18 HELM (2015):
Workbook 35: Sets and Probability
®
Events
As we have already noted a collection of some or all of the outcomes of an experiment is called an
event. So an event is a subset of the sample space. For example, if we throw a die then the sample
space is {1, 2, 3, 4, 5, 6} and two possible events are
(a) a score of 3 or more, represented by the set: {3, 4, 5, 6}
(b) a score which is even, represented by the set: {2, 4, 6}.
Example 9
Two coins are thrown. List the ordered outcomes for the event when just one Tail
is obtained.
Solution
{H, T }, {T, H}
Note that here the order does matter unlike for sets in general.
Task
Three coins are thrown. List the ordered outcomes which belong to each of the
following events.
(a) two Tails are obtained
(b) at least two Tails are obtained
(c) at most two Tails are obtained
State the relationship between (a) and (b) and that between (a) and (c).
Your solution
Answer
(a) {T T H, T HT, HT T }
(b) {T T T, T T H, T HT, HT T }
(c) {T T H, T HT, HT T, T HH, HT H, HHT, HHH}
(a) is a subset of (b) and (a) is also a subset of (c).
HELM (2015): 19
Section 35.2: Elementary Probability
Task
A new type of paint to be used in the manufacture of garden equipment is tested
for impact shock resistance to damage and scratch resistance to damage. The
results (50 samples) are as follows
Shock Resistance
Good Poor
Good 20 15
Scratch Resistance
Poor 12 3
Your solution
Answer
(a) The event A ∪ B consists of those samples which have either good shock and good
scratch resistance (or both).
n(A ∪ B) = 47.
(b) The event A∩B consists of those samples which have both good shock and good scratch
resistance.
n(A ∩ B) = 20.
(c) The event A0 consists of those samples which do not have good shock resistance.
n(A0 ) = 18.
(d) The event B 0 consists of those samples which do not have good scratch resistance.
n(B 0 ) = 15.
20 HELM (2015):
Workbook 35: Sets and Probability
®
Complement
We have met the complement before (Section 35.1 page 5) in relation to sets. We consider it again
here in relation to sample spaces and events. The complement of an event is the set of outcomes
which are not members of the event.
For example, the experiment of throwing a 6-faced die has sample space S = {1, 2, 3, 4, 5, 6}.
The event “score of 3 or more is obtained” is the set {3, 4, 5, 6}.
The complement of this event is {1, 2} which can be described in words as “score of 3 or more is
not obtained” or “score of 1 or 2 is obtained”.
Task
State, in words, what are the complements of each of the following events in
relation to the experiment of throwing three coins (avoid using the word not):
(a) two Heads are obtained (b) at least two Heads are obtained (c) at most
two Heads are obtained.
Your solution
Answer
(a) no Heads, one Head or three Heads
(b) no Heads or one Head
(c) three Heads
Notation: It is customary to use a capital letter to denote an event. For example, A = {two Heads
are thrown}. The complementary event is denoted A0 .
Hence, in the case where A = {at least two Heads are thrown}, A0 is the event {fewer than two
Heads are thrown}.
HELM (2015): 21
Section 35.2: Elementary Probability
2. Definitions of probability
0.70
0.50
0.45
10 20 30 40 50 60 70 80 90 100 n
Figure 7
1
As n increases the relative frequency settles down near the value . This is an experimental estimate
2
of the probability of throwing a Head with this particular coin. Note that when n = 50 this estimate
was 0.49 and when n = 100 this estimate was 0.51. When we repeated the whole experiment again,
r
the value of when n = 100 was 0.46. Hence the use of the word estimate. Normally, as the
n
number of trials is increased the estimate tends to settle down but this is not certain to occur.
1
Theoretically, the probability of obtaining a Head when a fair coin is thrown is . Experimentally,
2
1
we expect the relative frequency to approach as n increases.
2
22 HELM (2015):
Workbook 35: Sets and Probability
®
S = {1, 2, 3, 4, 5, 6}
Of the sample spaces above all are equi-probable spaces except for (d).
Key Point 3
The Principle of Equally Likely Outcomes
This states that each simple outcome in an equi-probable space is equally likely to occur. This
principle enables us to deduce the probabilities that simple events (and hence more complicated
events which are combinations of simple events) occur.
Notation
If A is an event associated with a sample space S the the probability of A occurring is denoted by
P(A).
Referring to the examples above we may immediately deduce that
1
(a) P{H} = P{T } = 2
1
(b) P{1} = P{2} = P{3} = P{4} = P{5} = P{6} = 6
(c) P{HHH} = P{HHT } = P{HT H} = P{T HH} =
1
P{HT T } = P{T HT } = P{T T H} = P{T T T } = 8
HELM (2015): 23
Section 35.2: Elementary Probability
Definition
We can now define probability using the Principle of Equally Likely Outcomes as follows:
If a sample space S consists of n simple outcomes which are equally likely and an event A consists
of m of those simple outcomes, then
m the number of simple outcomes in A
P(A) = =
n the number of simple outcomes in S
It follows from this definition that 0 ≤ P(A) ≤ 1.
The set with no outcomes in it is called the empty set and written ∅; therefore P(∅) = 0.
Task
For each of the following events A, B, C, list and count the number of outcomes
it contains and hence calculate the probability of A, B or C occurring.
Your solution
Answer
(a) There are six possible equally likely outcomes of the experiment and four of them, {3, 4, 5, 6},
constitute the event A; hence P(A) = 46 = 23 .
(b) There are eight equally likely outcomes of which three, {HHT, HT H, T HH} are elements
of B; hence P(B) = 38 .
(c) It is impossible to throw a total higher than 12 so that C = ∅ and P(C) = 0.
Not surprisingly, the probabilities of an event A and its complement are related. The probability of
the event A0 is easily found from the identity
number of outcomes in A number of outcomes not in A
+ ≡1
total number of outcomes total number of outcomes
so that P(A) + P(A0 ) ≡ 1
24 HELM (2015):
Workbook 35: Sets and Probability
®
Key Point 4
The Complement Rule
P(A0 ) = 1 − P(A)
In words:
The probability of the complement of A occurring
is equal to 1 minus the probability of A occurring.
Task
For the events in (a) and (b) of the previous Task find P(A0 ) and P(B 0 ) and
describe in words what A0 and B 0 are in this case.
Your solution
Answer
(a) P(A) = 2
3
so that P(A0 ) = 13 .
A0 is the event of throwing a score of less than 3 on one die.
(b) P(B) = 3
8
so that P(B 0 ) = 5
8
B 0 is the event of throwing no Heads, exactly one Head or exactly three Heads with three
coins.
The use of the event A0 can sometimes simplify the calculation of the probability P(A). For example,
suppose that two dice are thrown and we require the probability of the event
A: that we obtain a total score of at least four.
There are many combinations that produce a total score of at least four; however there are only 3
combinations that produce a total score of two or three which is the complementary event to the
one of interest. The event A0 = {(1, 1), (1, 2), (2, 1)} (where we use an obvious notation of stating
the total score on the first die followed by the score on the second die) is the complement of A.
Now P(A0 ) = 3
36
since there are 6 × 6 possible combinations in throwing two dice. Thus
3 33 11
P(A) = 1 − P(A0 ) = 1 − = = .
36 36 12
HELM (2015): 25
Section 35.2: Elementary Probability
Task
Find the probability of obtaining a total score of at least five when three dice are
thrown. Hint: identify A and A0 , then calculate P(A0 ), then P(A).
Your solution
Answer
There are 6 × 6 × 6 = 216 possible outcomes. If, for example, (1, 3, 6) denotes the scores of 1 on
die one, 3 on die two and 6 on die three and if A is the event ‘a total score of five or more’ then A0
is the event ‘a total score of less than 5’ i.e.
A0 = {(1, 1, 1), (2, 1, 1), (1, 2, 1), (1, 1, 2)}
4 212
There are four outcomes in A0 and hence P(A0 ) = so that P(A) = .
216 216
26 HELM (2015):
Workbook 35: Sets and Probability
®
Exercises
1. For each of the following experiments, state whether the variable is discrete or continuous. In
each case state the sample space.
2. An experiment consists of throwing two four-faced dice (regular tetrahedra) with faces labelled
1, 2, 3, 4.
3. A lot consists of 10 good articles, 4 articles with minor defects and 2 with major defects. One
article is chosen at random from the lot. Find the probability that:
4. Propeller shafts for marine applications are inspected to ensure that they satisfy both diameter
requirements and surface finish requirements. The results of 400 inspections are as follows:
Diameter Requirements
Good Poor
Good 200 50
Surface Finish
Poor 80 70
(a) What is the probability that a shaft selected at random satisfies the surface finish require-
ments?
(b) What is the probability that a shaft selected at random satisfies both diameter and surface
finish requirements?
(c) What is the probability that a shaft selected at random satisfies either the diameter or
the surface finish requirements?
(d) What is the probability that a shaft selected at random satisfies neither the diameter nor
the surface finish requirements?
HELM (2015): 27
Section 35.2: Elementary Probability
Answers
{(1, 2), (1, 3), (1, 4), (2, 1), (2, 3), (3, 1), (3, 2), (4, 1)}.
8 1
Hence the probability of this event occurring is = .
16 2
3. Let G be the event ‘article is good’ , Mn be the event ‘article has minor defect’ and Mj be
the event ‘article has major defect’
10 5
(a) Here we require P(G). Obviously P(G) = =
16 8
2 7
(b) We require P(Mj0 ) = 1− P(Mj ) = 1 − =
16 8
(c) The event we require is the complement of the event Mn .
4 1 1 3
Since P(Mn ) = = we have P(Mn0 ) = P(G or Mj ) = 1 − = .
16 4 4 4
10 2 12 3
Equivalently P(G) + P(Mn ) = + = =
16 16 16 4
250 200 330 70
4. (a) = 0.625 (b) = 0.5 (c) = 0.825 (d) = 0.175
400 400 400 400
28 HELM (2015):
Workbook 35: Sets and Probability
®
Addition and
Multiplication Laws
of Probability 35.3
Introduction
When we require the probability of two events occurring simultaneously or the probability of one or
the other or both of two events occurring then we need probability laws to carry out the calculations.
For example, if a traffic management engineer looking at accident rates wishes to know the probability
that cyclists and motorcyclists are injured during a particular period in a city, he or she must take
into account the fact that a cyclist and a motorcyclist might collide. (Both events can happen
simultaneously.)
• understand the ideas of sets and subsets
Prerequisites
• understand the concepts of probability and
Before starting this Section you should . . . events
'
$
• state and use the addition law of probability
HELM (2015): 29
Section 35.3: Addition and Multiplication Laws of Probability
1. The addition law
As we have already noted, the sample space S is the set of all possible outcomes of a given experiment.
Certain events A and B are subsets of S. In the previous Section we defined what was meant by
P(A), P(B) and their complements in the particular case in which the experiment had equally likely
outcomes.
Events, like sets, can be combined to produce new events.
• A ∪ B denotes the event that event A or event B (or both) occur when the experiment is
performed.
Types of events
There are two types of events you will need to able to identify and work with: mutually exclusive
events and independent events. (We deal with independent events in subsection 3.)
Task
Decide which of the following pairs of events (A and B) arising from the experi-
ments described are mutually exclusive.
30 HELM (2015):
Workbook 35: Sets and Probability
®
Your solution
Answer
(a) A and B are not mutually exclusive.
(b) A and B are mutually exclusive.
(c) A and B are not mutually exclusive.
Key Point 5
The Addition Law of Probability - Simple Case
If two events A and B are mutually exclusive then
P(A ∪ B) = P(A) + P(B)
Key Point 6
The Addition Law of Probability - General Case
If two events are A and B then
If A ∩ B = ∅, i.e. A and B are mutually exclusive, then P(A ∩ B) = P(∅) = 0, and this general
expression reduces to the simpler case.
This rule can be extended to three or more events, for example:
HELM (2015): 31
Section 35.3: Addition and Multiplication Laws of Probability
Example 10
Consider a pack of 52 playing cards. A card is selected at random. What is the
probability that the card is either a diamond or a ten?
Solution
If A is the event {a diamond is selected} and B is the event {a ten is selected} then obviously
13 4
P(A) = and P(B) = . The intersection event A ∩ B consists of only one member - the ten
52 52
1
of diamonds - which gets counted twice hence P(A ∩ B) = .
52
13 4 1 16
Therefore P(A ∪ B) = + − = .
52 52 52 52
Task
A bag contains 20 balls, 3 are coloured red, 6 are coloured green, 4 are coloured
blue, 2 are coloured white and 5 are coloured yellow. One ball is selected at
random. Find the probabilities of the following events.
Your solution
32 HELM (2015):
Workbook 35: Sets and Probability
®
Answer
Note that a ball has only one colour, designated by the letters R, G, B, W, Y .
3 6 9
(a) P(R ∪ G) = P(R) + P(G) = + = .
20 20 20
4 16 4
(b) P(B 0 ) = 1 − P(B) = 1 − = = .
20 20 5
6 5 11
(c) The complementary event is G ∪ Y , P(G ∪ Y ) = + = .
20 20 20
11 9
Hence P(R ∪ W ∪ B) = 1 − =
20 20
In the last Task part (c) we could alternatively have used an obvious extension of the law of addition
for mutually exclusive events:
3 2 4 9
P(R ∪ W ∪ B) = P(R) + P(W ) + P(B) = + + = .
20 20 20 20
Task
The diagram shows a simplified circuit in which two independent components a
and b are connected in parallel.
The circuit functions if either or both of the components are operational. It is known that if A is the
event ‘component a is operating’ and B is the event ‘component b is operating’ then P(A) = 0.99,
P(B) = 0.98 and P(A ∩ B) = 0.9702. Find the probability that the circuit is functioning.
Your solution
Answer
The probability that the circuit is functioning is P(A ∪ B). In words: either a or b or both must be
functioning if the circuit is to function. Using the keypoint:
Not surprisingly the probability that the circuit functions is greater than the probability that either
of the individual components functions.
HELM (2015): 33
Section 35.3: Addition and Multiplication Laws of Probability
Exercises
1. The following people are in a room: 5 men aged 21 and over, 4 men under 21, 6 women aged
21 and over, and 3 women under 21. One person is chosen at random. The following events are
defined: A = {the person is aged 21 and over}; B = {the person is under 21}; C = {the
person is male}; D = { the person is female}. Evaluate the following:
(a) P(B ∪ D)
(b) P(A0 ∩ C 0 )
Express the meaning of these events in words.
2. A card is drawn at random from a deck of 52 playing cards. What is the probability that it is
an ace or a face card (i.e. K, Q, J)?
3. In a single throw of two dice, what is the probability that neither a double nor a sum of 9 will
appear?
Answers
34 HELM (2015):
Workbook 35: Sets and Probability
®
Key Point 7
Conditional Probability
P(A ∩ B)
P(B|A) = or, equivalently P(A ∩ B) = P(B|A)P(A)
P(A)
To illustrate the use of conditional probability concepts we return to the example of the bag containing
3 red and 3 white balls in which we consider two events:
• R is event “first ball is red” • W is event “second ball is white”
Let the red balls be numbered 1 to 3 and the white balls 4 to 6. If, for example, (3, 5) represents
the fact that the first ball is 3 (red) and the second ball is 5 (white) then we see that there are
6 × 5 = 30 possible outcomes to the experiment (no ball can be selected twice).
HELM (2015): 35
Section 35.3: Addition and Multiplication Laws of Probability
If the first ball is red then only the fifteen outcomes (1, x), (2, y), (3, z) are then possible (here x 6= 1,
y 6= 2 and z 6= 3). Of these fifteen, the six outcomes {(1, 2), (1, 3), (2, 1), (2, 3), (3, 1), (3, 2)}
will produce the required result, i.e. the event in which both balls chosen are red, giving a probability:
6 2
P(B|A) = = .
15 5
Example 11
A box contains six 10 Ω resistors and ten 30 Ω resistors. The resistors are all
unmarked and are of the same physical size.
(a) One resistor is picked at random from the box; find the probability that:
(i) It is a 10 Ω resistor.
(ii) It is a 30 Ω resistor.
(b) At the start, two resistors are selected from the box. Find the proba-
bility that:
(i) Both are 10 Ω resistors.
(ii) The first is a 10 Ω resistor and the second is a 30 Ω resistor.
(iii) Both are 30 Ω resistors.
Solution
(a) (i) As there are six 10 Ω resistors in the box that contains a total of 6 + 10 = 16
resistors, and there is an equally likely chance of any resistor being selected, then
6 3
P(10 Ω) = =
16 8
(ii) As there are ten 30 Ω resistors in the box that contains a total of 6 + 10 = 16
resistors, and there is an equally likely chance of any resistor being selected, then
10 5
P(30 Ω) = =
16 8
(b) (i) As there are six 10 Ω resistors in the box that contains a total of 6 + 10 = 16
resistors, and there is an equally likely chance of any resistor being selected, then
6 3
P(first selected is a 10 Ω resistor) = =
16 8
If the first resistor selected was a 10 Ω one, then when the second resistor is selected,
there are only five 10 Ω resistors left in the box which now contains 5 + 10 = 15
resistors.
5 1
Hence, P(second selected is also a 10 Ω resistor) = =
15 3
3 1 1
And, P(both are 10 Ω resistors) = × =
8 3 8
36 HELM (2015):
Workbook 35: Sets and Probability
®
Solution (contd.)
6 3
(b) (ii) As before, P(first selected is a 10 Ω resistor) = =
18 8
If the first resistor selected was a 10 Ω one, then when the second resistor is selected, there are
still ten 30 Ω resistors left in the box which now contains 5 + 10 = 15 resistors. Hence,
10 2
P(second selected is a 30 Ω resistor) = =
15 3
3 2 1
And, P(first was a 10 Ω resistor and second was a 30 Ω resistor) = × =
8 3 4
(b) (iii) As there are ten 30 Ω resistors in the box that contains a total of 6 + 10 = 16 resistors,
and there is an equally likely chance of any resistor being selected, then
10 5
P(first selected is a 30 Ω resistor) = ×
16 8
If the first resistor selected was a 30 Ω one, then when the second resistor is selected,
there are only nine 30 Ω resistors left in the box which now contains 5 + 10 = 15 resistors.
9 3
Hence, P(second selected is also a 30 Ω resistor) = =
15 5
5 3 3
And, P(both are 30 Ω resistors) = × =
8 5 8
3. Independent events
If the occurrence of one event A does not affect, nor is affected by, the occurrence of another event
B then we say that A and B are independent events. Clearly, if A and B are independent then
P(B|A) = P(B) and P(A|B) = P(A)
Then, using the Key Point 7 formula P(A ∩ B) =P(B|A)P(A) we have, for independent events:
Key Point 8
The Multiplication Law
If A and B are independent events then
In words
‘The probability of independent events A and B occurring is the product of the probabilities of the
events occurring separately.’
HELM (2015): 37
Section 35.3: Addition and Multiplication Laws of Probability
In Figure 8 two components a and b are connected in series.
a b
Figure 8
Define two events
Previous testing has indicated that P(A) = 0.99, and P(B) = 0.98. The circuit functions only if a
and b are both operating simultaneously. The components are assumed to be independent.
Then the probability that the circuit is operating is given by
P(A ∩ B) = P(A)P(B) = 0.99 × 0.98 = 0.9702
Note that this probability is smaller then either P(A) or P(B).
Task
Decide which of the following pairs (A and B) of events arising from the experi-
ments described are independent.
38 HELM (2015):
Workbook 35: Sets and Probability
®
Your solution
Answer
(a), (b), (c): A and B are independent. (d) A and B are not independent.
Key Point 9
Laws of Elementary Probability
Let a sample space S consist of the n simple distinct events E1 , E2 . . . En and let A and B be
events contained in S.
Then:
(a) 0 ≤ P(A) ≤ 1. P(A) = 0 is interpreted as meaning that the event A cannot occur and
P(A) = 1 is interpreted as meaning that the event A is certain to occur.
(b) P(A) + P(A0 ) = 1 where the event A0 is the complement of the event A
(c) P(E1 ) + P(E2 ) + · · · + P(En ) = 1 where E1 , E2 , . . . En form the sample space
(d) If A and B are any two events then P(A ∪ B) = P(A) + P(B) − P(A ∩ B)
(e) If A and B are two mutually exclusive events then P(A ∪ B) = P(A) + P(B)
(f) If A and B are two independent events then P(A ∩ B) = P(A) × P(B).
Example 12
A circuit has three independent switches A, B and C wired in parallel as shown in
the figure below.
A
B
C
Figure 9
Current can only flow through the bank of switches if at least one of them is closed.
The probability that any given switch is closed is 0.9. Calculate the probability
that current can flow through the bank of switches.
HELM (2015): 39
Section 35.3: Addition and Multiplication Laws of Probability
Solution
Assume that A is the event {switch A is closed}. Similarly for switches B and C. We require
P(A ∪ B ∪ C), the probability that at least one switch is closed. Using set theory,
P(A ∪ B ∪ C) = P(A) + P(B) + P(C) − [P(A ∩ B) + P(B ∩ C) + P(C ∩ A)] + P(A ∩ B ∩ C)
Using the fact that the switches operate independently,
P(A ∪ B ∪ C) = 0.9 + 0.9 + 0.9 − [0.9 × 0.9 + 0.9 × 0.9 + 0.9 × 0.9] + 0.9 × 0.9 × 0.9 = 0.999
Note that the result implies that the system is more likely to allow current to flow than any single
switch in the system. This is why replication is built into systems requiring a high degree of reliability
such as aircraft control systems.
Alternative solution:
Task
A circuit has four independent switches A, B, C and D wired in parallel as shown
below.
A
B
C
D
Current can only flow through the bank of switches if at least one is closed. The
probabilities that A, B, C and D are closed are 0.9, 0.8, 0.7 and 0.6 respectively.
Calculate the probability that current can flow through the bank of switches.
Answer
Denoting the switches by A, B, C and D we have:
P(A ∪ B ∪ C ∪ D)
= P(A) + P(B) + P(C) + P(D)
−P(A ∩ B) − P(B ∩ C) − P(C ∩ D) − P(D ∩ A) − P(A ∩ C) − P(B ∩ D)
+P(A ∩ B ∩ C) + P(B ∩ C ∩ D) + P(C ∩ D ∩ A) + P(D ∩ A ∩ B)
−P(A ∩ B ∩ C ∩ D)
Using the fact that the switches operate independently and substituting gives:
P(A ∪ B ∪ C ∪ D) = 3 − 3.35 + 1.65 − 0.3024 = 0.9976
Hence, the probability that current can flow through the bank of switches is 0.9976.
Alternative solution:
P(A ∪ B ∪ C ∪ D) = 1 − P(A0 ∩ B 0 ∩ C 0 ∩ D0 )
= 1 − 0.1 × 0.2 × 0.3 × 0.4 = 0.9976
40 HELM (2015):
Workbook 35: Sets and Probability
®
Exercises
1. A box contains 4 bad tubes and 6 good tubes. Two are drawn out together. One of them is
tested and found to be good. What is the probability that the other one is also good?
2. A man owns a house in town and a cottage in the country. In any one year the probability of
the town house being burgled is 0.01 and the probability of the country cottage being burgled
is 0.05. In any one year what is the probability that:
(a) both will be burgled? (b) one or the other (but not both) will be burgled ?
3. In a Baseball Series, teams A and B play until one team has won 4 games. If team A has
probability 2/3 of winning against B in a single game, what is the probability that the Series
will end only after 7 games are played?
4. The probability that a single aircraft engine will fail during flight is q. A multi-engine plane
makes a successful flight if at least half its engines run. Assuming that the engines operate
independently, find the values of q for which a two-engine plane is to be preferred to a four-
engine plane.
5. Current flows through a relay only if it is closed. The probability of any relay being closed is
0.95. Calculate the probability that a current will flow through a circuit composed of 3 relays
in parallel. What assumption must be made?
6. A central heating installation and maintenance engineer keeps a record of the causes of failure
of systems he is called out to repair. The causes of failure are classified as ‘electrical’, ‘gas’,
or in some cases ‘other’. A summary of the records kept of failures involving either gas or
electrical faults is as follows:
Electrical
Yes No
Yes 53 11
Gas
No 23 13
(a) Find the probability that failure involves gas given that it involves electricity.
(b) Find the probability that failure involves electricity given that it involves gas.
HELM (2015): 41
Section 35.3: Addition and Multiplication Laws of Probability
Answers
P(one or the other (but not both)) = P((H ∩ C 0 ) ∪ (H 0 ∩ C)) = P(H ∩ C 0 ) + P(H 0 ∩ C)
P(required event) = 6C3 P(A1 ∩ A2 ∩ A3 ∩ A04 ∩ A05 ∩ A06 ) = 6C3 [P(A1 )]3 P[A01 ]3 = 160
729
Let y = (3q − 1)(q − 1). By drawing a graph of this quadratic you will quickly see that a
two-engine plane is preferred if 31 < q < 1.
42 HELM (2015):
Workbook 35: Sets and Probability
®
Answers
5. Let A be event {relay A is closed}: Similarly for B, C
required event is {A ∩ B ∩ C} ∪ {A0 ∩ B ∩ C} ∩ {A0 ∩ B 0 ∩ C}
| {z } | {z }
3C 3C
1 2
HELM (2015): 43
Section 35.3: Addition and Multiplication Laws of Probability
Total Probability and
Introduction
When the ideas of probability are applied to engineering (and many other areas) there are occasions
when we need to calculate conditional probabilities other than those already known. For example, if
production runs of ball bearings involve say, four machines, we might know the probability that any
given machine produces faulty ball bearings. If we are inspecting the total output prior to distribution
to users, we might need to know the probability that a faulty ball bearing came from a particular
machine. Even though we do not address the area of statistics known as Bayesian Statistics here, it
is worth noting that Bayes’ theorem is the basis of this branch of the subject.
' $
• understand the ideas of sets and subsets.
Before starting this Section you should . . . • understand the addition and multiplication
laws and the concept of conditional
probability.
&
' %
$
• understand the term ‘partition of a sample
space’
44 HELM (2015):
Workbook 35: Sets and Probability
®
A5
A6
A2
Figure 10
If B is any event within S then we can express B as the union of subsets:
B = (B ∩ A1 ) ∪ (B ∩ A2 ) ∪ · · · ∪ (B ∩ An )
The definition is illustrated in Figure 11 in which an event B in S is represented by the shaded region.
S
A1 A4
A3
B
A5
A6
A2
Figure 11
The bracketed events (B ∩ A1 ), (B ∩ A2 ) . . . (B ∩ An ) are mutually exclusive (if one occurs then none
of the others can occur) and so, using the addition law of probability for mutually exclusive events:
P(B) = P(B ∩ A1 ) + P(B ∩ A2 ) + · · · + P(B ∩ An )
Each of the probabilities on the right-hand side may be expressed in terms of conditional probabilities:
P(B ∩ Ai ) = P(B|Ai )P(Ai ) for all i
Using these in the expression for P(B), above, gives:
P(B) = P(B|A1 )P(A1 ) + P(B|A2 )P(A2 ) + · · · + P(B|An )P(An )
Xn
= P(B|Ai )P(Ai )
i=1
This is the theorem of Total Probability. A related theorem with many applications in statistics can
be deduced from this, known as Bayes’ theorem.
HELM (2015): 45
Section 35.4: Total Probability and Bayes’ Theorem
2. Bayes’ theorem
We again consider the conditional probability statement:
P(A ∩ B) P(A ∩ B)
P(A|B) = =
P(B) P(B|A1 )P(A1 ) + P(B|A2 )P(A2 ) + · · · + P(B|An )P(An )
in which we have used the theorem of Total Probability to replace P(B). Now
P(A ∩ B) = P(B ∩ A) = P(B|A) × P(A)
Substituting this in the expression for P(A|B) we immediately obtain the result
P(B|A) × P(A)
P(A|B) =
P(B|A1 )P(A1 ) + P(B|A2 )P(A2 ) + · · · + P(B|An )P(An )
This is true for any event A and so, replacing A by Ai gives the result, known as Bayes’ theorem as
P(B|Ai ) × P(Ai )
P(Ai |B) =
P(B|A1 )P(A1 ) + P(B|A2 )P(A2 ) + · · · + P(B|An )P(An )
3. Special cases
In the case where we consider A to be an event in a sample space S (the sample space is partitioned
by A and A0 ) we can state simplified versions of the theorem of Total Probability and Bayes theorem
as shown below.
A B
A ∩ B! A∩B B ∩ A!
Figure 12
It is easy to see that the event B consists of the union of the (disjoint) events A ∩ B and B ∩ A0 so
that we may write B as the union of these disjoint events. We have
B = (A ∩ B) ∪ (B ∩ A0 )
Since the events A ∩ B and B ∩ A0 are disjoint, they must be independent and so
P(B) = P(A ∩ B) + P(B ∩ A0 )
46 HELM (2015):
Workbook 35: Sets and Probability
®
Example 13
At a certain university, 4% of men are over 6 feet tall and 1% of women are over
6 feet tall. The total student population is divided in the ratio 3:2 in favour of
women. If a student is selected at random from among all those over six feet tall,
what is the probability that the student is a woman?
Solution
Let M ={Student is Male}, F ={Student is Female}.
Note that M and F partition the sample space of students.
Let T ={Student is over 6 feet tall}.
We know that P(M ) = 2/5, P(F ) = 3/5, P(T |M ) = 4/100 and P(T |F ) = 1/100.
We require P(F |T ). Using Bayes’ theorem we have:
P(T |F )P(F )
P(F |T ) =
P(T |F )P(F ) + P(T |M )P(M )
1 3
×
= 100 5
1 3 4 2
× + ×
100 5 100 5
3
=
11
HELM (2015): 47
Section 35.4: Total Probability and Bayes’ Theorem
Example 14
A factory production line is manufacturing bolts using three machines, A, B and
C. Of the total output, machine A is responsible for 25%, machine B for 35% and
machine C for the rest. It is known from previous experience with the machines
that 5% of the output from machine A is defective, 4% from machine B and 2%
from machine C. A bolt is chosen at random from the production line and found
to be defective. What is the probability that it came from
(a) machine A (b) machine B (c) machine C?
Solution
Let
D={bolt is defective},
A={bolt is from machine A},
B={bolt is from machine B},
C={bolt is from machine C}.
We know that P(A) = 0.25, P(B) = 0.35 and P(C) = 0.4.
Also
P(D|A) = 0.05, P(D|B) = 0.04, P(D|C) = 0.02.
A statement of Bayes’ theorem for three events A, B and C is
P(D|A)P(A)
P(A|D) =
P(D|A)P(A) + P(D|B)P(B) + P(D|C)P(C)
0.05 × 0.25
=
0.05 × 0.25 + 0.04 × 0.35 + 0.02 × 0.4
= 0.362
Similarly
0.04 × 0.35
P(B|D) =
0.05 × 0.25 + 0.04 × 0.35 + 0.02 × 0.4
= 0.406
0.02 × 0.4
P(C|D) =
0.05 × 0.25 + 0.04 × 0.35 + 0.02 × 0.4
= 0.232
48 HELM (2015):
Workbook 35: Sets and Probability
®
Task
An engineering company advertises a job in three newspapers, A, B and C. It
is known that these papers attract undergraduate engineering readerships in the
proportions 2:3:1. The probabilities that an engineering undergraduate sees and
replies to the job advertisement in these papers are 0.002, 0.001 and 0.005 respec-
tively. Assume that the undergraduate sees only one job advertisement.
Your solution
HELM (2015): 49
Section 35.4: Total Probability and Bayes’ Theorem
Answer
Let
A = {Person is a reader of paper A},
B = {Person is a reader of paper B},
C = {Person is a reader of paper C},
R = {Reader applies for the job}.
We have the probabilities
(a)
Similarly
1 5
P(B|R) = and P(C|R) =
4 12
(b) Now, assuming that the replies and readerships are independent
50 HELM (2015):
Workbook 35: Sets and Probability
®
Exercises
1. Obtain the sample space of an experiment that consists of a fair coin being tossed four times.
Consider the following events:
What is the probability that a person from the group, selected at random;
(a) is in the modal group
(b) has been working there for less than 4 years
(c) has been working there for at least 8 years.
3. It is a fact that if A and B are independent events then it is also true that A0 and B 0 are
independent events. If A and B are independent events such that the probability that they
1 3
both occur simultaneously is and the probability that neither of them will occur is , find:
8 8
(a) the probability that event A will occur
(b) the probability that event B will occur.
4. If A and B are two events associated with an experiment and P(A) = 0.4,
P(A ∪ B) = 0.7 and P(B) = p, find:
(a) the choice of p for which A and B are mutually exclusive
(b) the choice of p for which A and B are independent.
5. The probability that each relay closes in the circuit shown below is p. Assuming that each relay
functions independently of the others, find the probability that current can flow from L to R.
A B
L R
C D
HELM (2015): 51
Section 35.4: Total Probability and Bayes’ Theorem
6. From a batch of 100 items of which 20 are defective, exactly two items are chosen, one at a
time, without replacement. Calculate the probabilities that:
(a) the first item chosen is defective
(b) both items chosen are defective
(c) the second item chosen is defective.
7. A garage mechanic keeps a box of good springs to use as replacements on customers cars. The
box contains 5 springs. A colleague, thinking that the springs are for scrap, tosses three faulty
springs into the box. The mechanic picks two springs out of the box while servicing a car. Find
the probability that:
(a) the first spring drawn is faulty (b) the second spring drawn is faulty.
8. Two coins are tossed. Find the conditional probability that two Heads will occur given that at
least one occurs.
9. Machines A and B produce 10% and 90% respectively of the production of a component
intended for the motor industry. From experience, it is known that the probability that machine
A produces a defective component is 0.01 while the probability that machine B produces a
defective component is 0.05. If a component is selected at random from a day’s production
and is found to be defective, find the probability that it was made by
(a) machine A (b) machine B.
Answers
2 4 11 17
1. P(A) = , P(B) = , P(C) = , P(A) + P(B) + P(C) =
16 16 16 16
A, B and C are not mutually exclusive since events A and C have outcomes in common. This
17
is the reason why P(A) + P(B) + P(C) = ; we are adding the probabilities corresponding
16
to common outcomes more than once.
15
2. (a) P(person falls in the modal group) =
50
27
(b) P(person has been working for less than 4 years) =
50
8
(c) P(person has been working for more than 8 years) =
50
1 3
3. P(A) × P(B) = and (1 − P(A)) × (1 − P(B)) =
8 8
1 3
Treat these equations as xy = and (1 − x)(1 − y) = and solve to get:
8 8
1 1 1 1
P(A) = (or ) and P(B) = (or )
2 4 4 2
4. (a) P(A ∪ B) = P(A) + P(B) so 0.7 = 0.4 + p implying p = 0.3
(b) P(A ∪ B) = P(A) + P(B) − P(A) × P(B) so 0.7 = 0.4 + p − 0.4 × p implying p = 0.5.
52 HELM (2015):
Workbook 35: Sets and Probability
®
Answers
5. P((A ∩ B) ∪ (C ∩ D)) = P(A ∩ B) + P(C ∩ D) − P(A ∩ B ∩ C ∩ D)
= p 2 + p2 − p4
= 2p2 − p4
6. Let A={first item chosen is defective}, B ={second item chosen is defective}
20 1
(a) P(A) = =
100 5
19 20 19
(b) P(A ∩ B) = P(A|B)P(A) = × =
99 100 495
19 20 20 80 198 1
(c) P(B) = P(B|A)P(A) + P(B|A0 )P(A0 ) = × + × = =
99 100 99 100 990 5
(a)
P(D|A)P(A)
P(A|D) =
P(D|A)P(A) + P(D|B)P(B)
0.01 × 0.1
=
0.01 × 0.1 + 0.05 × 0.9
= 0.02
HELM (2015): 53
Section 35.4: Total Probability and Bayes’ Theorem
NOTES
Index for Workbook 35
Outcome 15 EXERCISES
13, 27, 34, 41, 51