WB35 All

Download as pdf or txt
Download as pdf or txt
You are on page 1of 58

About

 the  HELM  Project  


HELM   (Helping   Engineers   Learn   Mathematics)   materials   were   the   outcome   of   a   three-­‐year   curriculum  
development  project  undertaken  by  a  consortium  of  five  English  universities  led  by  Loughborough  University,  
funded   by   the   Higher   Education   Funding   Council   for   England   under   the   Fund   for   the   Development   of   Teaching  
and  Learning  for  the  period  October  2002  –  September  2005,  with  additional  transferability  funding  October  
2005  –  September  2006.  
HELM  aims  to  enhance  the  mathematical  education  of  engineering  undergraduates  through  flexible  learning  
resources,  mainly  these  Workbooks.  
HELM  learning  resources  were  produced  primarily  by  teams  of  writers  at  six  universities:  Hull,  Loughborough,  
Manchester,  Newcastle,  Reading,  Sunderland.  
HELM   gratefully   acknowledges   the   valuable   support   of   colleagues   at   the   following   universities   and   colleges  
involved  in  the  critical  reading,  trialling,  enhancement  and  revision  of  the  learning  materials:    
Aston,  Bournemouth  &  Poole  College,  Cambridge,  City,  Glamorgan,  Glasgow,  Glasgow  Caledonian,  Glenrothes  
Institute   of   Applied   Technology,   Harper   Adams,   Hertfordshire,   Leicester,   Liverpool,   London   Metropolitan,  
Moray   College,   Northumbria,   Nottingham,   Nottingham   Trent,   Oxford   Brookes,   Plymouth,   Portsmouth,  
Queens   Belfast,   Robert   Gordon,   Royal   Forest   of   Dean   College,   Salford,   Sligo   Institute   of   Technology,  
Southampton,   Southampton   Institute,   Surrey,   Teesside,   Ulster,   University   of   Wales   Institute   Cardiff,   West  
Kingsway  College  (London),  West  Notts  College.  
 

HELM  Contacts:  
Post:  HELM,  Mathematics  Education  Centre,  Loughborough  University,  Loughborough,  LE11  3TU.  
Email:  [email protected]          Web:  http://helm.lboro.ac.uk  
 

HELM  Workbooks  List  


1   Basic  Algebra   26   Functions  of  a  Complex  Variable  
2   Basic  Functions   27   Multiple  Integration  
3   Equations,  Inequalities  &  Partial  Fractions   28   Differential  Vector  Calculus  
4   Trigonometry   29   Integral  Vector  Calculus  
5   Functions  and  Modelling   30   Introduction  to  Numerical  Methods  
6   Exponential  and  Logarithmic  Functions   31   Numerical  Methods  of  Approximation  
7   Matrices   32   Numerical  Initial  Value  Problems  
8   Matrix  Solution  of  Equations   33   Numerical  Boundary  Value  Problems  
9   Vectors   34   Modelling  Motion  
10   Complex  Numbers   35   Sets  and  Probability  
11   Differentiation   36   Descriptive  Statistics  
12   Applications  of  Differentiation   37   Discrete  Probability  Distributions  
13   Integration   38   Continuous  Probability  Distributions  
14   Applications  of  Integration  1   39   The  Normal  Distribution  
15   Applications  of  Integration  2   40   Sampling  Distributions  and  Estimation  
16   Sequences  and  Series   41   Hypothesis  Testing  
17   Conics  and  Polar  Coordinates   42   Goodness  of  Fit  and  Contingency  Tables  
18   Functions  of  Several  Variables   43   Regression  and  Correlation  
19   Differential  Equations   44   Analysis  of  Variance  
20   Laplace  Transforms   45   Non-­‐parametric  Statistics  
21   z-­‐Transforms   46   Reliability  and  Quality  Control  
22   Eigenvalues  and  Eigenvectors   47   Mathematics  and  Physics  Miscellany  
23   Fourier  Series   48   Engineering  Case  Study  
24   Fourier  Transforms   49   Student’s  Guide  
25   Partial  Differential  Equations   50   Tutor’s  Guide  
 
©  Copyright    Loughborough  University,  2015
 
 
 
Production  of  this  2015  edition,  containing  corrections  and  minor  
revisions  of  the  2008  edition,  was  funded  by  the  sigma  Network.    

 
 
 
Contents 35
Sets and Probability
35.1 Sets 2

35.2 Elementary Probability 14

35.3 Addition and Multiplication Laws of Probability 29

35.4 Total Probability and Bayes’ Theorem 44

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.

 

Prerequisites • have knowledge of basic algebra


Before starting this Section you should . . .

' 
$
• state what is meant by a set

• use set notation

• explain the concepts of the intersection and


Learning Outcomes union of two sets
On completion you should be able to . . . • define what is meant by the complement of a
set

• use Venn diagrams to illustrate sets


& %

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,

(a) A = {cars produced from Monday to Friday}


(b) B = {cars produced from Monday to Thursday}
(c) C = {cars produced on Friday}
(d) D = {cars produced on Wednesday}
(e) E = {cars produced on Wednesday or Thursday}

State which sets are subsets of other 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.

The empty set and the universal set


Sometimes a set will contain no elements. For example, suppose we define the set K by
K = {all odd numbers which are divisible by 4}
Since there are no odd numbers which are divisible by 4, then K has no elements. The set with no
elements is called the empty set, and it is denoted by ∅.
On the other hand, the set containing all the objects of interest in a particular situation is called the
universal set, denoted by S. The precise universal set will depend upon the context. If, for example,
we are concerned only with whole numbers then S = {· · · − 5, −4, −3, −2, −1, 0, 1, 2, 3, 4, 5, . . . }.
If we are concerned only with the decimal digits then S = {0, 1, 2, 3, 4, 5, 6, 7, 8, 9}.

The complement of a set


Given a set A and a universal set S we can define a new set, called the complement of A and
denoted by A0 . The complement of A contains all the elements of the universal set that are not in
A.

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

(a) The elements of A0 are those which belong to S but not to A.


A0 = {0, 1, 4, 5, 6, 8, 9}
(b) B 0 = {5, 6, 7, 8, 9}

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

Figure 2: The set A is contained completely within B

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

The complement of A contains elements which are not in A.

HELM (2015): 7
Section 35.1: Sets
Your solution
(c)

Answer
The set B 0 is shown shaded in the diagram.

B' B

3. The intersection and union of sets


Intersection
Given two sets, A and B, the intersection of A and B is a set which contains elements that are
common both to A and B. We write A ∩ B to denote the intersection of A and B. Mathematically
we write this as:

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

Figure 3: The overlapping area represents 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

(a) A ∩ B (b) (A ∩ B) ∩ C (c) B ∩ C (d) A ∩ (B ∩ C)

Solution

(a) The elements common to A and B are 1, 2 and 3 so A ∩ B = {1, 2, 3}.


(b) We need to consider the sets (A ∩ B) and C. A ∩ B is given in (a). The elements
common to (A ∩ B) and C are 2 and 3. Hence (A ∩ B) ∩ C = {2, 3}.
(c) The elements common to B and C are 2, 3 and 4 so B ∩ C = {2, 3, 4}.
(d) We look at the sets A and (B ∩ C). The common elements are 2 and 3. Hence
A ∩ (B ∩ C) = {2, 3}.
Note from (b) and (d) that here (A ∩ B) ∩ C = A ∩ (B ∩ C).

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:

A ∪ B ∪ C = {2, 3, 4, 5, 6, 7, 8, 9, 10, 11}

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)?

What do you notice about your answers to (d) and (f)?


5. Given that A and B are intersecting sets, i.e. are not disjoint, show on a Venn diagram the
following sets
(a) A0 (b) B 0 (c) A ∪ B 0 (d) A0 ∪ B 0 (e) A0 ∩ B 0

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

(a) (b) (c) (d) (e)

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.

 

Prerequisites • understand the ideas of sets and subsets


Before starting this Section you should . . .

' 
$
• explain the terms ‘random experiment’ and
‘event’
Learning Outcomes • calculate the probability of an event occurring
On completion you should be able to . . .
• calculate the probability that an event does
not occur
& %

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.

1. Experiment: - an activity with an observable result, or set of results, for example

(a) tossing a coin, the result being a Head or a Tail


(b) testing a component, the result being a defective or non-defective component
(c) maximum speed testing of standard production cars;
(d) testing to destruction armour plating intended for use on tanks.

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!

2. Outcome - an outcome is simply an observable result of an experiment, for example

(a) tossing a coin, the possible outcomes are Heads or Tails


(b) testing a component, the outcome being a defective or non-defective component
(c) maximum speed testing of standard production cars, the outcomes being a set of numbers
representing the maximum speeds of a set of vehicles
(d) testing to destruction armour plating intended for use on tanks, the outcomes might be
(for example) the numbers of direct hits sustained before destruction.

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.

(a) Test a light switch


(b) Count the daily traffic accidents in Loughborough involving cyclists
(c) Measure the tensile strength of small gauge steel wire
(d) Test the maximum current carrying capacity of household mains cabling
(e) Test the number of on-off switchings that a new type of fluorescent
tube will cope with before failure
(f) Pressure test an underwater TV camera.

Your solution

Answer
Sample spaces might be

(a) {works, fails}


(b) {0,1, 2, 3, . . . }, hopefully a small upper limit!
(c) {Suitable continuous range (0 → ) depending on the wire}
(d) {Suitable continuous range (0 → ) depending on the type of cable}
(e) {0,1, 2, 3, . . . . }, hopefully a high upper limit!
(f) {Suitable continuous range (0 → ) }

HELM (2015): 17
Section 35.2: Elementary Probability
Example 8
A car manufacturer offers certain options on its family cars. Customers may order:

(a) either automatic gearboxes or manual gearboxes


(b) either sunroof or air-conditioning
(c) either steel wheels or allow wheels
(d) either solid colour paint or metallic paint

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

sun air-cond sun air-cond


roof roof

steel alloy steel alloy steel alloy steel alloy


metallic

metallic

metallic

metallic

metallic
solid

metallic

metallic

metallic
solid

solid

solid

solid

solid

solid

solid

Figure 6: Tree diagram


In this case there is a total of 16 outcomes in the sample space of options. Note that in each case
the customer makes two choices. This implies that there are
2 × 2 × 2 × 2 = 16
options in total.

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

If A is the event {High Shock Resistance} and B is the event


{High Scratch Resistance}, describe the following events and determine the
number of samples in each event.
(a) A ∪ B (b) A ∩ B (c) A0 (d) B 0

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”.

The event: “even score is obtained” is the set {2, 4, 6}.


The complement of this event is {1, 3, 5} or, in words “ even score is not obtained” or “odd score
is obtained”.

In the last but one Task concerning tossing three coins:


• the complement of event (a) is {T T T, T HH, HT H, HHT, HHH},
• the complement of event (b) is {T HH, HT H, HHT, HHH}
• the complement of event (c) is {T T T }.

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

Relative frequency applied to probability


Consider the experiment of throwing a single coin many times.
Suppose we throw a coin 10 times and obtain six Heads and four Tails; does this suggest that the
coin is biased? Clearly not! What about the case when we obtain 9 Heads and 1 Tail?
We conducted an experiment in which a coin was thrown 100 times and the result recorded each
time as 1 if a Head appeared face up and 0 if a Tail appeared. In Figure 7 we have plotted the
r
average score , where r is the number of Heads and n is the total number of throws, against n for
n
r
n = 10, 20, . . . , 100. The quantity is called the relative frequency of Heads.
n
r
n

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

Equi-probable spaces and the principle of equally likely outcomes


An equi-probable space is a sample space in which the chance that any one sample point occurs is
equal to the chance that any other sample point occurs. Whether a sample space is an equi-probable
space is usually determined by inspection or logic.
(a) Tossing a coin: the sample space S is, using an obvious notation:
S = {H, T }
H and T are the two simple outcomes and are equally likely to occur.

22 HELM (2015):
Workbook 35: Sets and Probability
®

(b) Rolling a die: a sample space is:

S = {1, 2, 3, 4, 5, 6}

Each number from 1 to 6 is a simple outcome and is equally likely to occur.


(c) Tossing three coins: a sample space comprised of simple outcomes is:

S = {HHH, HHT, HT H, HT T, T HH, T HT, T T H, T T T }

Each of the eight outcomes stated is equally likely to occur.


(d) Counting the number of heads when three coins are tossed. Here S = {3 Heads, 2
Heads, 1 Head, 0 Heads}. This is not an equi-probable space and the outcomes are not
equally likely. (For example: the event {2 Heads} is the union of three simple events
{HHT, HT H, T HH} so must occur more often than the event {HHH}.

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.

• If P(A) = 1 we say that the event A is certain because A is identical to S.

• If P(A) = 0 we say that the event A is impossible because A is empty.

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.

(a) A = “throwing 3 or higher with one die”,


(b) B = “throwing exactly two Heads with three coins”,
(c) C = “throwing a total score of 14 with two dice”.

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.

(a) The number of defective items in a batch of twenty is noted.


(b) The weight, in kg, of lubricating oil drained from a machine is determined using a spring
balance.
(c) The natural logarithm of the weight, in kg, according to a spring balance, of lubricating
oil drained from a machine, is noted.

2. An experiment consists of throwing two four-faced dice (regular tetrahedra) with faces labelled
1, 2, 3, 4.

(a) Write down the sample space of this experiment.


(b) If A is the event ‘total score is at least 4’ list the outcomes belonging to A0 .
(c) If each die is fair find the probability that the total score is at least 6 when the two dice
are thrown. What is the probability that the total score is less than 6?
(d) What is the probability that a double: i.e. (1, 1), (2, 2), (3, 3), (4, 4) will not be thrown?
(e) What is the probability that a double is not thrown and the score is less than 6?

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:

(a) it has no defects,


(b) it has no major defects,
(c) it is either good or has major defects.

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. (a) The variable is discrete. The sample space is {1, 2, . . . , 20}.


(b) The variable is continuous. The sample space is the set of real numbers x such that
0 ≤ x < ∞.
(c) The variable is continuous. The sample space is the set of real numbers x such that
−∞ < x < ∞.

2. (a) S = {(1, 1), (1, 2), (1, 3), (1, 4)

(2, 1), (2, 2), (2, 3), (2, 4)

(3, 1), (3, 2), (3, 3), (3, 4)

(4, 1), (4, 2), (4, 3), (4, 4)}

(b) A0 = {(1, 1), (1, 2), (2, 1)}


(c) The outcomes in the event are {(2, 4), (3, 3), (3, 4), (4, 2), (4, 3), (4, 4)} so the probability
6 3 3 5
of this event occurring is = . The probability of the complement event is 1− = .
16 8 8 8
4
(d) The probability of a double occurring is so the probability of the complement (i.e,
16
4 3
double not thrown) is 1 − = .
16 4
(e) Here, consider the sample space in (a). If the doubles and those outcomes with a score
greater than 6 are removed we have left the event :

{(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

• define the term independent events


Learning Outcomes • state and use the multiplication law of
probability
On completion you should be able to . . .
• understand and explain the concept of
conditional 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.

• A ∩ B denotes the event that both A and B occur together.


In this Section we obtain expressions for determining the probabilities of these combined events,
which are written P(A ∪ B) and P(A ∩ B) respectively.

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.)

Mutually exclusive events


Mutually exclusive events are events that by definition cannot happen together. For example, when
tossing a coin, the events ‘head’ and ‘tail’ are mutually exclusive; when testing a switch ‘operate’
and ‘fail’ are mutually exclusive; and when testing the tensile strength of a piece of wire, ‘hold’ and
‘snap’ are mutually exclusive. In such cases, the probability of both events occurring together must
be zero. Hence, using the usual set theory notation for events A and B, we may write:
P(A ∩ B) = 0, provided that A and B are mutually exclusive events

Task
Decide which of the following pairs of events (A and B) arising from the experi-
ments described are mutually exclusive.

(a) Two cards are drawn from a pack

A = {a red card is drawn}


B = {a picture card is drawn}
(b) The daily traffic accidents in Loughborough involving pedal cyclists and
motor cyclists are counted

A = {three motor cyclists are injured in collisions with cars}


B = {one pedal cyclist is injured when hit by a bus}
(c) A box contains 20 nuts. Some have a metric thread, some have a
British Standard Fine (BSF) thread and some have a British Standard
Whitworth (BSW) thread.

A = {first nut picked out of the box is BSF}


B = {second nut picked out of the box is metric }

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

P(A ∪ B) = P(A) + P(B) − P(A ∩ B)

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:

P(A ∪ B ∪ C) = P(A) + P(B) + P(C) − P(A ∩ B) − P(A ∩ C) − P(B ∩ C) + P(A ∩ B ∩ C)

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.

(a) the ball is either red or green


(b) the ball is not blue
(c) the ball is either red or white or blue. (Hint: consider the complementary event.)

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:

P(A ∪ B) = P(A) + P(B) − P(A ∩ B)


= 0.99 + 0.98 − 0.9702 = 0.9998

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

1. (a) P(B ∪ D) = P(B) + P(D) − P(B ∩ D)


7 9 3
P(B) = , P(D) = , P(B ∩ D) =
18 18 18
7 9 3 13
∴ P(B ∪ D) = + − =
18 18 18 18
(b) P(A0 ∩ C 0 ) A0 = {people under 21} C 0 = {people who are female}
3 1
∴ P(A0 ∩ C 0 ) = =
18 6
12 4
2. F = {face card} A = {card is ace} P(F ) = , P(A) =
52 52
12 4 16
∴ P(F ∪ A) = P(F ) + P(A) − P(F ∩ A) = + −0=
52 52 52
3. D = {double is thrown} N = {sum is 9}
6
P(D) = (36 possible outcomes in an experiment in which all the outcomes are equally
36
probable).
4
P(N ) = P{(6 ∩ 3) ∪ (5 ∩ 4) ∪ (4 ∩ 5) ∪ (3 ∩ 6)} =
36
6 4 10
P(D ∪ N ) = P(D) + P(N ) − P(D ∩ N ) = + −0=
36 36 36
10 26
P((D ∪ N )0 ) = 1 − P(D ∪ N ) = 1 − =
36 36

34 HELM (2015):
Workbook 35: Sets and Probability
®

2. Conditional probability - dependent events


Suppose a bag contains 6 balls, 3 red and 3 white. Two balls are chosen (without replacement) at
random, one after the other. Consider the two events R, W :
R is event “first ball chosen is red”
W is event “second ball chosen is white”
3 1
We easily find P(R) = = . However, determining the probability of W is not quite so straight-
6 2
forward. If the first ball chosen is red then the bag subsequently contains 2 red balls and 3 white. In
3
this case P(W ) = . However, if the first ball chosen is white then the bag subsequently contains 3
5
2
red balls and 2 white. In this case P(W ) = . What this example shows is that the probability that
5
W occurs is clearly dependent upon whether or not the event R has occurred. The probability of
W occurring is conditional on the occurrence or otherwise of R.
The conditional probability of an event B occurring given that event A has occurred is written
P(B|A). In this particular example
3 2
P(W |R) = and P(W |R0 ) = .
5 5
Consider, more generally, the performance of an experiment in which the outcome is a member of
an event A. We can therefore say that the event A has occurred. What is the probability that B
then occurs? That is what is P(B|A)? In a sense we have a new sample space which is the event
A. For B to occur some of its members must also be members of event A. So, for example, in an
equi-probable space, P(B|A) must be the number of outcomes in A ∩ B divided by the number of
outcomes in A. That is
number of outcomes in A ∩ B
P(B|A) = .
number of outcomes in A
Now if we divide both the top and bottom of this fraction by the total number of outcomes of the
experiment we obtain an expression for the conditional probability of B occurring given that A has
occurred:

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

P(A ∩ B) = P(A) × P(B)

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

• A is the event ‘component a is operating’

• B is the event ‘component b is operating’

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.

(a) One card is drawn from each of two packs

A = {a red card is drawn from pack 1}


B = {a picture card is drawn from pack 2}
(b) The daily traffic accidents in Hull involving pedal cyclists and motor
cyclists are counted

A = {three motor cyclists are injured in separate collisions with cars}


B = {one pedal cyclist is injured when hit by a bus}
(c) Two boxes contains 20 nuts each, some have a metric thread, some
have a British Standard Fine (BSF) threads and some have a British
Standard Whitworth (BSW) thread. A nut is picked out of each box.

A = {nut picked out of the first box is BSF}


B = {nut picked out of the second box is metric }
(d) A box contains 20 nuts, some have a metric thread, some have a
British Standard Fine (BSF) threads and some have British Standard
Whitworth (BSW) thread. Two nuts are picked out of the box.

A = {first nut picked out of the box is BSF}


B = {second nut picked out of the box is metric }

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:

P(A ∪ B ∪ C) = 1 − P(A0 ∩ B 0 ∩ C 0 ) = 1 − 0.1 × 0.1 × 0.1 = 0.999

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

1. Let Gi = {ith tube is good} Bi = {ith tube is bad}


5
P(G2 |G1 ) = 9
(only 5 good tubes left out of 9).

2. (a) H = {house is burgled} C = {cottage is burgled}

(b) P(H ∩ C) = P(H)P(C) = (0.01)(0.05) = 0.0005 since events independent

P(one or the other (but not both)) = P((H ∩ C 0 ) ∪ (H 0 ∩ C)) = P(H ∩ C 0 ) + P(H 0 ∩ C)

= P(H)P(C 0 ) + P(H 0 )P(C)

= (0.01)(0.95) + (0.99)(0.05) = 0.059.

3. Let Ai be event {A wins the ith game}

required event is {A1 ∩ A2 ∩ A3 ∩ A04 ∩ A05 ∩ A06 ) ∩ (. . .)


| {z }
no. of ways of arranging 3 in 6 i.e. 6C3

P(required event) = 6C3 P(A1 ∩ A2 ∩ A3 ∩ A04 ∩ A05 ∩ A06 ) = 6C3 [P(A1 )]3 P[A01 ]3 = 160
729

4. Let Ei be event {ith engine success}

Two-engine plane: flight success if {(E1 ∩ E2 ) ∪ (E 0 1 ∩ E2 ) ∪ (E1 ∩ E 0 2 )} occurs

P(required event) = P(E1 )P(E2 ) + P(E10 )P(E2 ) + P(E1 )P(E20 )


= (1 − q)2 + 2q(1 − q) = 1 − q 2

Four-engine plane: success if following event occurs

{E1 ∩ E2 ∩ E30 ∩ E40 } ∪ {E1 ∩ E2 ∩ E3 ∩ E40 } ∪ {E1 ∩ E2 ∩ E3 ∩ E4 }


| {z } | {z } | {z }
4C ways 4C ways 4C ways
2 1 0

required probability= 6(1 − q)2 q 2 + 4(1 − q)3 q + (1 − q)4 = 3q 4 − 4q 3 + 1

Two-engine plane is preferred if

1 − q 2 > 3q 4 − 4q 3 + 1 i.e. if 0 > q 2 (3q − 1)(q − 1)

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

P(required event) = (0.95)3 + 3(0.95)2 (0.05) + 3(0.95)(0.05)2 = 0.999875


( or 1 − P(all relays open) = 1 − (0.05)3 = 0.999875.)
The assumption is that relays operate independently.
6 (a) A total of 76 failures involved electrical faults. Of the 76 some 53 involved gas. Hence
53
P{Gas Failure | Electrical Failure} = = 0.697
76
6 (b) A total of 64 failures involved electrical faults. Of the 64 some 53 involved gas. Hence
53
P{Electrical Failure | Gas Failure} = = 0.828
64

HELM (2015): 43
Section 35.3: Addition and Multiplication Laws of Probability
Total Probability and  

Bayes’ Theorem 35.4 

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.

• understand the concepts of probability and


Prerequisites events.

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’

• understand the special case of Bayes’


Learning Outcomes theorem arising when a sample space is
On completion you should be able to . . . partitioned by a set and its complement

• be able to apply Bayes’ theorem to solve


basic engineering related problems
& %

44 HELM (2015):
Workbook 35: Sets and Probability
®

1. The theorem of total probability


To establish this result we start with the definition of a partition of a sample space.

A partition of a sample space


The collection of events A1 , A2 , . . . An is said to partition a sample space S if
(a) A1 ∪ A2 ∪ · · · ∪ An = S
(b) Ai ∩ Aj = ∅ for all i, j
(c) Ai 6= ∅ for all i
In essence, a partition is a collection of non-empty, non-overlapping subsets of a sample space whose
union is the sample space itself. The definition is illustrated by Figure 10.
S
A1 A4
A3

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.

The theorem of total probability: special case


This special case enables us to find the probability that an event B occurs taking into account the
fact that another event A may or may not have occurred.
The theorem becomes
P(B) = P(B|A) × P(A) + P(B|A0 ) × P(A0 )
The result is easily seen by considering the general result already derived or it may be derived directly
as follows. Consider Figure 12:

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
®

Using the conditional probability results we already have we may write

P(B) = P(A ∩ B) + P(B ∩ A0 )


= P(B ∩ A) + P(B ∩ A0 )
= P(B|A) × P(A) + P(B|A0 ) × P(A0 )

The result we have derived is


P(B) = P(B|A) × P(A) + P(B|A0 ) × P(A0 )

Bayes’ theorem: special case


This result is obtained by supposing that the sample space S is partitioned by event A and its
complement A0 to give:
P(B|A) × P(A)
P(A|B) =
P(B|A) × P(A) + P(B|A0 ) × P(A0 )

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.

(a) If the engineering company receives only one reply to it advertisements,


calculate the probability that the applicant has seen the job advertised
in place A.

(i) A, (ii) B, (iii) C.


(b) If the company receives two replies, what is the probability that both
applicants saw the job advertised in paper A?

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)

P(A) = 1/3 P(R|A) = 0.002


P(B) = 1/2 P(R|B) = 0.001
P(C) = 1/6 P(R|C) = 0.005
P(R|A)P(A) 1
P(A|R) = =
P(R|A)P(A) + P(R|B)P(B) + P(R|C)P(C) 3

Similarly
1 5
P(B|R) = and P(C|R) =
4 12
(b) Now, assuming that the replies and readerships are independent

P(Both applicants read paperA) = P(A|R) × P(A|R)


1 1
= ×
3 3
1
=
9

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:

A is the event ‘all four results are the same.’


B is the event ‘exactly one Head occurs.’
C is the event ‘at least two Heads occur.’
17
Show that P(A) + P(B) + P(C) = and explain why P(A) + P(B) + P(C) > 1.
16
2. The table below show the number of complete years a group of people have been working in
their current employment.

Years of Employment Number of People


0 or 1 year 15
2 or 3 years 12
4 or 5 years 9
6 or 8 years 6
8 to 11 years 6
12 years and over 2

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

7. Let A ={first spring chosen is faulty}, B ={second spring chosen is faulty}


3
(a) P(A) =
8
2 3 3 5 21 3
(b) P(B) = P(B|A)P(A) + P(B|A0 )P(A0 ) = × + × = =
7 8 7 8 56 8

8. Let A = {at least one Head occurs}, B = {two Heads occur}


1 1
P(A ∩ B) P(A) × P(B) × 1
P(B) = = = 2 2 =
P(A ∪ B) P(A) + P(B) − P(A) × P(B) 1 1 1 1 3
+ − ×
2 2 2 2
9. Let A = {item from machine A}, B = {item from machine B}, D = {item is defective}.
We know that: P(A) = 0.1, P(B) = 0.9, P(D|A) = 0.01, P(D|B) = 0.05.

(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

(b) Similarly P(B|D) = 0.98

HELM (2015): 53
Section 35.4: Total Probability and Bayes’ Theorem
NOTES  
Index for Workbook 35

Addition law 30 Paint


- scratch resistance 20
Bayes’ theorem 46-47 - shock resistance 20
Partition 45
Car accessories 18
Complement of set 5, 21, 25 Probability
Conditional probability 35 - addition 30-31
Continuous sample space 16 - conditional 35
- equally likely outcomes 22-24
Defective components 48 - laws 39
Dependent events 35 - multiplication 37
Discrete sample space 16 - relative frequency 22
- total 45-53
Electric circuit 33, 39, 40
Empty set 5 Relative frequency 22
Equi-probable space 22-24
Event 15, 19 Sample space 15-16, 45
Experiment 15 Set 3
Subset 3
Independent events 37
Intersection of sets 8 Total probability 45-53
Laws of probability 39
Union of sets 10
Manufacturing components 48 Universal set 5
Multiplication law 37
Mutually exclusive events 30 Venn diagram 6

Outcome 15 EXERCISES
13, 27, 34, 41, 51

You might also like