Unit 2 PPT Probability
Unit 2 PPT Probability
PROBABILITY
1. Sample Space and Relationship among Events
2. Counting Rules Useful in Probability
3. Rules of Probability
Experiment (Random)
Element or Member
Union of Events
• Union of events: The union of events A and B, denoted by A ∪ B , consists of all
outcomes that are in A or in B or in both A and B.
Intersection of Events
• The intersection of events A and B, denoted by A ∩ B , consists of all outcomes
that are in both A and B.
Complement of Events
• The complement of an event A (denoted by A’ or 𝐴)ҧ is the set containing all the
elements in the universal set that are not members of A.
Exercise:
If S = {0, 1, 2, 3, 4, 5, 6, 7, 8, 9} and
A = {0, 2, 4, 6, 8} B = {1, 3, 5, 7, 9}
C = {2, 3, 4, 5}, and D = {1, 6, 7},
list the elements of the sets corresponding to the following events:
a. A ∪ C =
b. A ∩ B =
ത=
c. C
ത ∩ D) ∪ B =
d. (C
e. (S ∩ C) =
f. A ∩ C ∩ D ഥ=
Exercise:
• There are times when the sample space is very large and is not
feasible to write out.
• In that case, it helps to have mathematical tools for counting the
size of the sample space.
• These tools are known as counting techniques or counting rules.
TOPIC 2:
COUNTING RULES USEFUL IN PROBABILITY
• The Fundamental Counting Principle (often called the
Multiplication Rule) is a way of finding how many possibilities can
exist when combining choices, objects, or results.
• This is done by multiplying each total choice count from each
group being combined.
Multiplication Rule: 𝒏𝟏 × 𝒏𝟐 × ⋯ × 𝒏𝒌
TOPIC 2:
COUNTING RULES USEFUL IN PROBABILITY
Multiplication Rule: 𝒏𝟏 × 𝒏𝟐 × ⋯ × 𝒏𝒌
Examples:
In the design of a casing for a gear housing, we can use four different
types of fasteners, three different bolt lengths, and three different bolt
locations. How many different designs are possible?
TOPIC 2:
COUNTING RULES USEFUL IN PROBABILITY
Multiplication Rule: 𝒏𝟏 × 𝒏𝟐 ×
⋯ × 𝒏𝒌
Example 2:
Sam is going to assemble a computer by himself. He has the choice of
chips from two brands, a hard drive from four, memory from three,
and an accessory bundle from five local stores. How many different
ways can Sam order the parts?
TOPIC 2:
COUNTING RULES USEFUL IN PROBABILITY
Factorial Rule
• The number of different ways to arrange n objects where repetitions
are not allowed is n!
• A factorial is used to find how many ways objects can be arranged
in order. In a factorial, all of the objects are used and none of
the objects can be used more than once.
Factorial Rule: 𝒏!
TOPIC 2:
COUNTING RULES USEFUL IN PROBABILITY
Permutation
• A permutation is an arrangement of all or part of a set of objects
with a specified order.
• The arrangements are different/distinct.
The number of permutations of n distinct objects taken r at a time
Permutations of Subsets:
𝒏!
𝒏𝑷𝒓 = 𝒏−𝒓 !
TOPIC 2:
COUNTING RULES USEFUL IN PROBABILITY
Permutations of Subsets:
𝒏!
𝑷
𝒏 𝒓 =
𝒏−𝒓 !
Example:
A printed circuit board has eight different locations in which a
component can be placed. If four different components are to be
placed on the board, how many different designs are possible?
TOPIC 2:
COUNTING RULES USEFUL IN PROBABILITY
Example 1:
A part is labeled by printing with four thick lines, three medium lines,
and two thin lines. If each ordering of the nine lines represents a
different label, how many different labels can be generated by using
this scheme?
TOPIC 2:
COUNTING RULES USEFUL IN PROBABILITY
Example 2:
Consider a machining operation in which a piece of sheet metal needs
two identical-diameter holes drilled and two identical-size notches cut.
We denote a drilling operation as d and a notching operation as n.
TOPIC 2:
COUNTING RULES USEFUL IN PROBABILITY
Example:
In how many ways can 5 persons arrange themselves around a round
table?
TOPIC 2:
COUNTING RULES USEFUL IN PROBABILITY
Combination
• Arranging or partitioning a set of n objects into r cells/subsets and the
order of the elements within a cell is of no important
Combinations:
𝒏 𝒏!
n 𝑪𝒓 = 𝒓
=
𝒓! 𝒏−𝒓 !
NOTE.
(1) We must have a total of n different items available.
(2) We must select r of the n items (without replacement).
(3) We must consider rearrangements of the same items to be the same. (The
combination ABC is the same as CBA.)
TOPIC 2:
COUNTING RULES USEFUL IN PROBABILITY
Example 1:
A printed circuit board has eight different locations in which a component
can be placed. If five identical components are to be placed on the board,
how many different designs are possible?
Example 2:
A bin of 50 manufactured parts contains three defective parts and 47 non-
defective parts. A sample of six parts is selected from the 50 parts without
replacement. That is, each part can only be selected once and the sample is a
subset of the 50 parts. How many different samples are there of size six that
contain exactly two defective parts?
TOPIC 2:
COUNTING RULES USEFUL IN PROBABILITY
Example 3:
A young boy asks his mother to get 5 GameBoy cartridges
from his collection of 10 arcade and 5 sports games. How
many ways are there that his mother can get 3 arcade and 2
sports games?
TOPIC 2:
COUNTING RULES USEFUL IN PROBABILITY
Rules Formula
Multiplication Rule 𝒏𝟏 × 𝒏𝟐 × ⋯ × 𝒏𝒌
Factorial Rule 𝒏!
𝒏!
Permutations of Subsets 𝒏 𝑷𝒓 =
𝒏−𝒓 !
𝒏!
Permutations of Similar Objects 𝒏𝟏 ! 𝒏𝟐 !… 𝒏𝒌 !
Circular Permutations (𝒏 − 𝟏)!
𝒏!
Combinations n𝑪𝒓 =
𝒓! 𝒏 − 𝒓 !
WRAP-UP ACTIVITY
Consider the design of a communication system.
1. How many three-digit phone prefixes that are used to represent
a particular geographic area (such as an area code) can be
created from the digits 0 through 9?
2. As in part (1), how many three-digit phone prefixes are possible
that do not start with 0 or 1, but contain 0 or 1 as the middle
digit?
3. How many three-digit phone prefixes are possible in which no
digit appears more than once in each prefix?
WRAP-UP ACTIVITY
Example:
Assume that 30% of the laser diodes in a batch of 100 meet the
minimum power requirements of a specific customer. If a laser diode is
selected randomly, that is, each laser diode is equally likely to be
selected, our intuitive feeling is that the probability of meeting the
customer’s requirements is 0.30.
TOPIC 3:
RULES OF PROBABILITY
Probability of an Event:
𝒏 𝒆𝒗𝒆𝒏𝒕
𝑷 𝑨 = =
𝑵 𝒆𝒙𝒑𝒆𝒓𝒊𝒎𝒆𝒏𝒕
Examples:
• Three bolts and three nuts are put in a box. If two parts are chosen
at random, find the probability that one is a bolt and one is a nut.
• A shipment of 50 calculators contains three that are defective.
When an inspector chooses 3 calculators, what is the probability
that
TOPIC 3:
RULES OF PROBABILITY
Axioms of Probability
• The first axiom states that a probability is nonnegative.
𝟎 ≤ 𝑷(𝑬) ≤ 𝟏
• The second axiom states that the probability of the sample space is equal to 1.
𝑷(𝑺) = 𝟏
• The third axiom states that for every collection of mutually exclusive events,
the probability of their union is the sum of the individual probabilities.
If 𝑬𝟏 ∩ 𝑬𝟐 = ∅, then 𝑷(𝑬𝟏 ∪ 𝑬𝟐 ) = 𝑷(𝑬𝟏 ) + 𝑷(𝑬𝟐 )
NOTE:
An axiom is a starting point in mathematics.
More precisely, an axiom is a statement which we have assumed to be true.
TOPIC 3:
RULES OF PROBABILITY
Conditional Probability
𝑷 𝑨∩𝑩
𝑷 𝑩𝑨 = 𝒑𝒓𝒐𝒗𝒊𝒅𝒆𝒅 𝒕𝒉𝒂𝒕 𝑷 𝑨 > 𝟎
𝑷 𝑨
Conditional Probability
𝑷 𝑨∩𝑩
𝑷 𝑩𝑨 = 𝒑𝒓𝒐𝒗𝒊𝒅𝒆𝒅 𝒕𝒉𝒂𝒕 𝑷 𝑨 > 𝟎
𝑷 𝑨
Because a new medical procedure has been shown to be effective in the early
detection of an illness, a medical screening of the population is proposed. The
probability that the test correctly identifies someone with the illness as positive is
0.99, and the probability that the test correctly identifies someone without the illness
as negative is 0.95. The incidence of the illness in the general population is 0.0001.
You take the test, and the result is positive. What is the probability that you have the
illness?
TOPIC 3:
RULES OF PROBABILITY
Bayes’ Theorem
𝐏 𝐁 𝐄𝟏 𝐏 𝐄 𝟏
𝐏 𝐄𝟏 𝐁 =
𝐏 𝐁 𝐄𝟏 𝐏 𝐄𝟏 +𝐏 𝐁 𝐄𝟐 𝐏 𝐄𝟐 +⋯+𝐏 𝐁 𝐄𝐤 𝐏 𝐄𝐤
Bayesian networks are used on the Web sites of high-technology manufacturers to allow
customers to quickly diagnose problems with products. An oversimplified example is
presented here. A printer manufacturer obtained the following probabilities from a database
of test results. Printer failures are associated with three types of problems: hardware,
software, and other (such as connectors), with probabilities 0.1, 0.6, and 0.3, respectively.
The probability of a printer failure given a hardware problem is 0.9, given a software
problem is 0.2, and given any other type of problem is 0.5. If a customer enters the
manufacturer’s Web site to diagnose a printer failure, what is the most likely cause of the
problem?
TOPIC 3:
RULES OF PROBABILITY
• 𝑛 𝑒𝑣𝑒𝑛𝑡
Probability of an Event: 𝑃 𝐴 = 𝑁 = 𝑒𝑥𝑝𝑒𝑟𝑖𝑚𝑒𝑛𝑡
• Probability of Complementary Events: P(𝐴)ҧ = 1 − P(A)
• Probability of Mutually Exclusive Events: P(A ∪ B) = P(A) + P(B)
• Conditional Probability: 𝑃 𝐵 𝐴 =
𝑃 𝐴∩𝐵
𝑃 𝐴
𝑝𝑟𝑜𝑣𝑖𝑑𝑒𝑑 𝑡ℎ𝑎𝑡 𝑃 𝐴 > 0
• Probability of Independent Events: P(A1 ∩ A2 ∩ ·· · ∩ Ak) = P(A1)P(A2) · · · P(Ak)
• Theorem of Total Probability or the Rule of Elimination: 𝑃 𝐴 = σ𝑘𝑖=1 𝑃 𝐵𝑖 ∩ 𝐴 = σ𝑘𝑖=1 𝑃 𝐵𝑖 𝑃 𝐴 𝐵𝑖
𝑃 𝐵 𝐸1 𝑃 𝐸1
• Bayes’ Theorem: 𝑃 𝐸1 𝐵 = 𝑃 𝐵 𝐸 𝑃 𝐸 +𝑃 𝐵 𝐸 𝑃 𝐸 +⋯+𝑃 𝐵 𝐸 𝑃 𝐸
1 1 2 2 𝑘 𝑘
WRAP-UP ACTIVITY
Strands of copper wire from a manufacturer are analyzed for strength
and conductivity. The results from 100 strands are as follows:
Strength
Conductivity High Low
High 74 8
Low 15 3
If a strand is randomly selected, what is the probability that its
conductivity is high and its strength is high?
WRAP-UP ACTIVITY
A lot contains 15 castings from a local supplier and 25 castings from a
supplier in the next state. Suppose three castings are selected at
random, without replacement, from the lot of 40.
Let A be the event that the first casting selected is from the local
supplier, B the event that the second casting is selected from the local
supplier, and C denote the event that the third casting selected is from
the local supplier.
Determine (P(A∩B∩ 𝐶). ҧ
WRAP-UP ACTIVITY
Plastic parts produced by an injection-molding operation are checked
for conformance to specifications. Each tool contains 12 cavities in
which parts are produced, and these parts fall into a conveyor when the
press opens. An inspector chooses three parts from among the 12 at
random. Two cavities are affected by a temperature malfunction that
results in parts that do not conform to specifications. What is the
probability that the inspector finds exactly one nonconforming part?
WRAP-UP ACTIVITY
A researcher receives 100 containers of oxygen. Of those
containers, 20 have oxygen that is not ionized, and the rest are
ionized. Two samples are randomly selected, without
replacement, from the lot. What is the probability that the
second one selected is not ionized given that the first one was
ionized?
WRAP-UP ACTIVITY
An optical storage device uses an error recovery procedure that
requires an immediate satisfactory readback of any written data. If the
readback is not successful after three writing operations, that sector of
the disk is eliminated as unacceptable for data storage. On an
acceptable portion of the disk, the probability of a satisfactory readback
is 0.98. Assume the readbacks are independent. What is the probability
that an acceptable portion of the disk is eliminated as unacceptable for
data storage?
WRAP-UP ACTIVITY
The probability that a customer’s order is not shipped on time is 0.05.
A particular customer places three orders, and the orders are placed far
enough apart in time that they can be considered to be independent
events. What is the probability that two or more orders are not shipped
on time?
WRAP-UP ACTIVITY
The probability that an automobile being filled with gasoline also needs
an oil change is 0.25; the probability that it needs a new oil filter is 0.40;
and the probability that both the oil and the filter need changing is
0.14. What is the probability that a new oil filter is needed, given that
the oil has to be changed?
WRAP-UP ACTIVITY
Samples of laboratory glass are in small, light packaging or heavy, large
packaging. Suppose that 2% and 1% of the sample shipped in small
and large packages, respectively, break during transit. If 60% of the
samples are shipped in large packages and 40% are shipped in small
packages, what proportion of samples break during shipment?
WRAP-UP ACTIVITY
Incoming calls to a customer service center are classified as complaints (75% of
calls) or requests for information (25% of calls). Of the complaints, 40% deal with
computer equipment that does not respond and 57% deal with incomplete
software installation; in the remaining 3% of complaints the user has improperly
followed the installation instructions. The requests for information are evenly
divided on technical questions (50%) and requests to purchase more products
(50%). What is the probability that an incoming call to the customer service center
will be from a customer who has not followed installation instructions properly?
Math 50: Engineering Data Analysis
Get in Touch
With Us
Send us a message or
visit us
City of Batac, Ilocos Norte,
Philippines
(63) 77-600-0459
[email protected]