Chapter #2 Probability Part I
Chapter #2 Probability Part I
1
Review of Set Theory
Definition: A set is any collection of objects, things or states
We use capital letters , e.g. A, B, etc, to represent sets
One way to describe a set is to list the whole collection of members or elements
and enclose them in braces, { }.
Example:
A = {0; 1} is the set of binary objects 1 and 0.
B = { Toyota cars, Hyundai cars, BMW cars }
Another way of defining a set is to give a rule by which all members can be
found.
Eg. A = {x | x ∈ 𝑅𝑅; x ≤ 2}, where R is the set of all real numbers. Note that A ≡ (−∞; 2]
Example:
Use the set notation to describe the (i) [0; 2) (ii) [−7; 9]
2
Review of Set Theory (2)
Equal Sets: Two sets are said to be equal if they contain exactly the same members
Examples:
1,2,7 = 2,7,1 = 2,7,1 ?
1,2,7 ≜ {1,1,7,2,7,2} ?
Venn Diagrams: Visual aids to understand and describe sets
Example I: Suppose we are interested in discussing the set of positive integers between 1
and 10. Let A = {2, 3, 4, 5} and B = {1, 3, 5, 7, 9}. The set containing all the numbers of
interest is called the universal set G. A, B and G are represented in the Venn diagram
below:
Intersection: A ∩ B = {x | x ∈ A and x ∈ B}
In example I:
Union: A ∪ B = {x | x ∈ A or x ∈ B}
In example I:
3
Review of Set Theory (3)
Subset: A ⊂ B.
Definition: If x ∈ A ⇒x ∈ B, we say that A is a subset of B. i.e. A ⊂ B
� = 𝒙𝒙/𝒙𝒙 ∈ 𝑮𝑮 ∩ 𝒙𝒙 ∉ 𝑨𝑨
Compliment: 𝑨𝑨
See Venn Diagram
� ∪ 𝑨𝑨 = 𝑮𝑮 𝒂𝒂𝒂𝒂𝒂𝒂 𝑨𝑨 ∩ 𝑨𝑨
Clearly 𝑨𝑨 �=∅
4
5
Random Experiments
An experiment that can result in different outcomes,
even though it is repeated in the same manner every
time, is called a random experiment.
Example:
6
Example: Random Experiments
Communication system such as voice communication network
The information capacity available (number of external lines) to service customers (answer their
calls) is an important design consideration.
Assuming that each line can carry only one conversation, how many lines should be purchased
(too few or too many)?
To answer this question, we need to develop a model that shows the number of calls and the
duration of calls.
If you know that on average, a call is received every 5 minutes and it lasts for 5 minutes? Is that
enough? If you deal with this problem in a deterministic manner, how many lines will be
purchased?
Deterministic based on
average values
Real-life Stochastic
model is needed
Example:
Determine the sample space associated with each of the following
random experiences
8
Example: Sample Space
Consider an experiment in which you select a “1kg” of
pasta, and:
count its measure its
number of weight
pasta units
9
Example: Sample Space
Consider an experiment in which you select a molded plastic part, such as a connector,
and measure its thickness. The possible values for thickness depend on the resolution of the
Measuring instrument, and they also depend on upper and lower bounds for thickness.
11
Example: Sample Spaces
Determine the sample space associated with each of the
following random experiences
12
Tree Diagrams
Sample spaces can also be described graphically with tree
diagrams
When a sample space can be constructed in several steps or
stages, we can represent each of the 𝑛𝑛1 ways of completing the
first step as a branch of a tree
Each of the ways of completing the second step can be
represented as 𝑛𝑛2 branches starting from the ends of the original
branches, and so forth
13
Example: Tree Diagrams
A car manufacturer provides vehicles equipped with selected options.
Each vehicle is ordered:
1. With or without an automatic transmission (2 choices)
2. With or without air conditioning (2 choices)
3. With one of three choices of a stereo system (3 choices)
4. With one of four exterior colors (4 choices)
14
Example: Tree Diagrams
16
Representing Events with Sets
17
Representing Events with Sets
Venn Diagrams
18
Events - Example
Example: Throwing a fair die:
19
Mutually Exclusive Events
Two events are mutually exclusive if the occurrence of either event excludes the
possibility of the occurrence of the other event, i.e., the corresponding sets are
disjoint.
20
Non-Mutually Exclusive Events
If the sets A and B are non-mutually exclusive, i.e., A ∩ B ≠ ∅ then
P(A ∪ B) = P(A) + P(B) − P(A ∩ B) (3)
Proof:
𝒓𝒓+𝒔𝒔−𝒕𝒕 𝒓𝒓 𝒔𝒔 𝒕𝒕
𝑷𝑷 𝑨𝑨 ∪ 𝑩𝑩 = = + − = 𝑷𝑷 𝑨𝑨 + 𝑷𝑷 𝑩𝑩 − 𝑷𝑷(A∩ 𝑩𝑩)
𝒏𝒏 𝒏𝒏 𝒏𝒏 𝒏𝒏
Example:
Two unbiased tetrahedral dice numbered 1 to 4 are thrown.
(a) Set up the sample space.
21
Compound Event
If events A and B both occur then this compound event is denoted by A ∩ B.
If event A or event B occurs then this compound event is denoted by A ∪ B.
𝑆𝑆 = {1,2,3,4,5,6}
22
Independent Events
Two events are independent if the occurrence or non-occurrence of one event
has no influence on the occurrence or non-occurrence of other event
Example: Tossing a coin and a fair die
Solution:
Sample space: 𝐺𝐺 = {𝐻𝐻 ∩ 1, 𝐻𝐻 ∩ 2, ⋯ , 𝐻𝐻 ∩ 6, 𝑇𝑇 ∩ 1, 𝑇𝑇 ∩ 2 ⋯ 𝑇𝑇 ∩ 6}
P(𝐻𝐻 ∩ 6) = 𝑃𝑃(𝐻𝐻6) = 𝑃𝑃(𝐻𝐻) × 𝑃𝑃(6) = 1/2 × 1/6 = 1/12
Example: Two coins are tossed simultaneously. What is the probability that
the first coin landed head and the second coin landed tail.
Solution:
P(𝐻𝐻1 ∩ 𝑇𝑇2 ) = 𝑃𝑃(𝐻𝐻1 ) × 𝑃𝑃(𝑇𝑇2 ) = 1/2 × 1/2 = 1/4
23
Example: Sample Spaces, Events, and Probability
Consider a machine which manufactures electronic components. These must meet
a certain specification. The quality control department regularly samples the
components. Suppose on average, 92 out 100 components meet the
specification. Imagine that a component is selected at random and let A be the
outcome that a component meets the specification; let B the outcome that a
component does not meet the specification. Then, we say the probability of A
occurring is 92/100 and the probability of B occurring is 8/100. The probability is
thus a measure of the likelihood of the occurrence of a particular outcome. We
write
P(A) = probability of A occurring = 92/100 = 0.92
P(B) = probability of B occurring = 8/100 = 0.08
Definitions:
Trial - the process of selecting a component
Event - A possible outcome (result)
Sample Space - Set of all possible outcomes. We represent this set by the
universal set G
At random - all possibilities are equally likely
24
Example: Sample Spaces, Events and Probability (2)
25
2-1.4 Counting Techniques
Counting the number of outcomes in the sample space is used to analyze
the random experiment
26
Multiplication Rule (for Counting Techniques)
27
Example: Counting Techniques
For a sequence of n events in which the first event can occur in k1 ways
Second event can occur in k2 ways and the third event can occur in k3 ways, and so on
Total number of ways the sequence can occur is = k1×k2×k3…×kn
EXAMPLE: In order to paint a room, a person has a choice of four colors: white light,
blue, yellow, and light green; two types of paint: oil or latex; and three types of texture: flat,
semi-glass, or satin. How many different selections can be made?
SOLUTION: 4 x 2 x 3 = 24 ways
EXAMPLE: There are four blood types A, B, AB, and O. Blood can be Rh+ or Rh-.
Finally, a donor can be male or female. How many different classifications can be made?
Solution: 4 x 2 x 2 = 16 ways
EXAMPLE: The employees of a company are given a 4-digit identification number. How
many different numbers are available if repetitions are permitted?
Solution: 10 x 10 x 10 x 10 = 10000 ways
EXAMPLE: The employees of a company are given 4-digit identification numbers;
however, repetitions are not allowed. How many different numbers are available?
SOLUTION: 10 x 9 x 8 x 7 = 5040 ways
28