Module 2
Module 2
Chapter 2
PROBABILITY
Introduction
Probability is simply how likely an event is to happen. “The chance of rain today is
50%” is a statement that enumerates our thoughts on the possibility of rain. The likelihood
percentage from 0 to 100%. The higher the number means the event is more likely to
happen than the lower number. A zero (0) probability indicates that the outcome is
impossible to happen while a probability of one (1) indicates that the outcome will occur
inevitably.
This module intends to discuss the concept of probability for discrete sample
spaces, its application, and ways of solving the probabilities of different statistical data.
Learning Objectives
At the end of this module, it is expected that the students will be able to:
1. Understand and describe sample spaces and events for random experiments
13
MATH 403- ENGINEERING DATA ANALYSIS
Probability
For example, the probability of flipping a coin and it being heads is ½, because
there is 1 way of getting a head and the total number of possible outcomes is 2 (a head
The probability of something not happening is 1 minus the probability that it will
happen.
Sample space is the set of all possible outcomes or results of a random experiment.
Sample space is represented by letter S. Each outcome in the sample space is called an
element of that set. An event is the subset of this sample space and it is represented by
14
MATH 403- ENGINEERING DATA ANALYSIS
letter E. This can be illustrated in a Venn Diagram. In Figure 2.1, the sample space is
represented by the rectangle and the events by the circles inside the rectangle.
The events A and B (in a to c) and A, B and C (in d and e) are all subsets of the
sample space S.
Figure 2.1 Venn diagrams of sample space with events (adapted from Montgomery et
al., 2003)
For example if a dice is rolled we have {1, 2, 3, 4, 5, and 6} as sample space. The event
can be {1, 3, and 5} which means set of odd numbers. Similarly, when a coin is tossed
15
MATH 403- ENGINEERING DATA ANALYSIS
experiment and event is the subset of sample space. Let us try to understand this with
few examples. What happens when we toss a coin thrice? If a coin is tossed three times
All these are the outcomes of the experiment of tossing a coin three times. Hence,
Now, suppose the event be the set of outcomes in which there are only two heads.
The outcomes in which we have only two heads are HHT, HTH and THH hence the event
is given by,
There can be more than one event. In this case, we can have an event as getting only
one tail or event of getting only one head. If we have more than one event we can
represent these events by E1, E2, E3 etc. We can have more than one event for a Sample
space but there will be one and only one Sample space for an Event. If we have Events
E1, E2, E3, …… En as all the possible subset of sample space then we have,
S = E1 ∪ E2 ∪ E3 ∪ …….∪ En
16
MATH 403- ENGINEERING DATA ANALYSIS
We can understand this with the help of a simple example. Consider an experiment of
S = {1, 2, 3, 4, 5, 6}
even number as outcome for this experiment then we can represent E 1 and E2 as the
following set,
E1 = {1, 3, 5}
E2 = {2, 4, 6}
So we have
Or S = E1 ∪ E2
Null space – is a subset of the sample space that contains no elements and is denoted
Intersection of events
event containing all elements that are common to A and B. This is illustrated as the
17
MATH 403- ENGINEERING DATA ANALYSIS
For example,
Let X = {q, w, e, r, t,} and Y = {a, s, d, f}; then X Y = , since X and Y have no
elements in common.
We can say that an event is mutually exclusive if they have no elements in common.
This is illustrated in Figure 2.1 (b) where we can see that A B =.
Union of Events
The union of events A and B is the event containing all the elements that belong
For example,
Compliment of an Event
The complement of an event A with respect to S is the set of all elements of S that
are not in A and is denoted by A’. The shaded region in Figure 2.1 (e) shows (A C)’.
For example,
18
MATH 403- ENGINEERING DATA ANALYSIS
Probability of an Event
Sample space and events play important roles in probability. Once we have
sample space and event, we can easily find the probability of that event. We have
𝑛(𝐸)
𝑃(𝐸) =
𝑛(𝑆)
Where,
When probabilities are assigned to the outcomes in a sample space, each probability
must lie between 0 and 1 inclusive, and the sum of all probabilities assigned must be
equal to 1. Therefore,
Let us try to understand this with the help of an example. If a die is tossed, the
sample space is {1, 2, 3, 4, 5, 6}. In this set, we have a number of elements equal to 6.
Now, if the event is the set of odd numbers in a dice, then we have {1, 3, and 5} as an
event. In this set, we have 3 elements. So, the probability of getting odd numbers in a
3 1
𝑃𝑟𝑜𝑏𝑎𝑏𝑖𝑙𝑖𝑡𝑦 = =
6 2
19
MATH 403- ENGINEERING DATA ANALYSIS
Multiplicative Rule
Suppose you have j sets of elements, n1 in the first set, n2 in the second set, ...
and nj in the jth set. Suppose you wish to form a sample of j elements by taking one
element from each of the j sets. The number of possible sets is then defined by:
𝑛1 ∙ 𝑛2 ∙ … ∙ 𝑛𝑗
Permutation Rule
single set of n distinctively different elements, you wish to select k elements from the n
and arrange them within k positions. The number of different permutations of the n
𝑛!
𝑃𝑘𝑛 =
(𝑛 − 𝑘)!
Partitions rule
partition them into k sets, with the first set containing n1 elements, the second containing
n2 elements, ..., and the kth set containing nk elements. The number of different partitions
is
𝑛!
𝑛1 ! 𝑛2 ! … 𝑛𝑘 !
Where,
n1 + n2 + … + nk = n
20
MATH 403- ENGINEERING DATA ANALYSIS
The numerator gives the permutations of the n elements. The terms in the
denominator remove the duplicates due to the same assignments in the k sets
(multinomial coefficients).
Combinations Rule
𝑛 𝑛!
( )=
𝑘 𝑘! (𝑛 − 𝑘)!
Two events are mutually exclusive or disjoint if they cannot occur at the same
time.
The probability that Event A occurs, given that Event B has occurred, is called a
The complement of an event is the event not occurring. The probability that Event
The probability that Events A and B both occur is the probability of the intersection
21
MATH 403- ENGINEERING DATA ANALYSIS
The probability that Events A or B occur is the probability of the union of A and B.
If the occurrence of Event A changes the probability of Event B, then Events A and
B are dependent. On the other hand, if the occurrence of Event A does not change
Rule of Addition
Example 1. A student goes to the library. The probability that she checks out (a) a work
of fiction is 0.40, (b) a work of non-fiction is 0.30, and (c) both fiction and non-fiction is
0.20. What is the probability that the student checks out a work of fiction, non-fiction, or
both?
Solution:
22
MATH 403- ENGINEERING DATA ANALYSIS
Rule of Multiplication
𝑃(𝐴 ∩ 𝐵) = 𝑃(𝐴)𝑃(𝐵)
Dependent - Two outcomes are said to be dependent if knowing that one of the
outcomes has occurred affects the probability that the other occurs
that event B occurs after event A has already occurred. The probability is denoted
by 𝑃(𝐵|𝐴).
Rule 2: When two events are dependent, the probability of both occurring is:
𝑃(𝐴 ∩ 𝐵) = 𝑃(𝐴)𝑃(𝐵|𝐴)
𝑃(𝐴 ∩ 𝐵)
Where 𝑃(𝐵|𝐴) = , provided that P (A) 0
𝑃(𝐴)
Example 1. A day’s production of 850 manufactured parts contains 50 parts that do not
meet customer requirements. Two parts are selected randomly without replacement from
the batch. What is the probability that the second part is defective given that the first part
is defective?
Solution:
P (B|A) =?
If the first part is defective, prior to selecting the second part, the batch contains
P (B|A) = 49/849
23
MATH 403- ENGINEERING DATA ANALYSIS
Example 2. An urn contains 6 red marbles and 4 black marbles. Two marbles are drawn
without replacement from the urn. What is the probability that both of the marbles are
black?
Solution:
In the beginning, there are 10 marbles in the urn, 4 of which are black. Therefore,
P (A) = 4/10.
After the first selection, there are 9 marbles in the urn, 3 of which are black.
4 3
𝑃(𝐴 ∩ 𝐵) = ( ) ( ) = 𝟎. 𝟏𝟑𝟑
10 9
Example 3. Two cards are selected from a pack of cards. What is the probability that they
Solution:
We require P (A B). Notice that these events are dependent because the
probability that the second card is a queen depends on whether or not the first card is a
queen.
24
MATH 403- ENGINEERING DATA ANALYSIS
P (A B) = P (A) P (B|A)
Rule of Subtraction
The probability that event A will occur is equal to 1 minus the probability that event
𝑃(𝐴) = 1 − 𝑃(𝐴′ )
Example 1.The probability of Bill not graduating in college is 0.8. What is the probability
Solution:
𝑃(𝐴) = 1 − 0.8 = 𝟎. 𝟐
REFERENCES:
Montgomery, D. C. et al. (2003). Applied Statistics and Probability for Engineers 3rd Edition. USA.
John Wiley & Sons, Inc.
Walpole, R. E. et al. (2016). Probability & Statistics for Engineers & Scientists 9th Edition. England.
Pearson Education Limited
https://math.tutorvista.com/statistics/sample-space-and-events.html
https://stattrek.com/probability/probability-rules.aspx
https://www.ck12.org/book/CK-12-Probability-and-Statistics-Advanced-Second-
Edition/section/3.6/
25