Chapter 1
Chapter 1
Chapter 1
0-0
We will learn
• the logic of probability theory
• how to apply probability theory to solving engineering
problems
• Union/Intersection
• Complement
• Mutually Exclusive/Collectively Exhaustive
2
Set Theory
The mathematical basis of probability is the theory of sets.
• A ⊂ B iff x ∈ A ⇒ x ∈ B
• A = B iff A ⊂ B and B ⊂ A
• universal set S
• null set φ
• x ∈ A ∪ B iff x ∈ A or x ∈ B
• x ∈ A ∩ B iff x ∈ A and x ∈ B
• x ∈ Ac iff x ∈ A
• x ∈ A − B (the difference between A and B) iff x ∈ A and x ∈ B
(A − B = A ∩ B c and Ac = S − A)
3
Set Theory
• A collection of sets A1 , A2 , · · · , An is mutually exclusive iff
Ai ∩ Aj = φ, i = j.
• A and B are disjoint iff A ∩ B = φ.
4
1.2 Applying Set Theory to Probability
The mathematics of probability can be abstract, just as we defined sets and
set operations without any reference to physical phenomena.
5
What is Probability
• a number between 0 and 1.
• relative frequency of occurrence?
• subjective belief?
6
Experiments
• Procedure + Observations
• Real Experiments are TOO complicated
7
Example 1.1
An experiment consists of the following procedure, observation and model:
• Procedure: Flip a coin and let it land on a table.
• Observation: Observe which side (head or tail) faces you after the coin
lands.
• Model: Heads and tails are equally likely. The result of each flip is
unrelated to the results of previous flips.
8
Definitions 1.1 Outcome, 1.2 Sample Space, 1.3 Event
An outcome of an experiment is any possible observation of that experiment.
The sample space of an experiment is the (finest-grain, mutually exclusive,
collectively exhaustive) set of all possible outcomes.
An event is a set of outcomes of an experiment.
Examples 1.6–1.8
9
Correspondences
Set Algebra Probability
set event
universal set sample space
element outcome
10
Example 1.9
Flip four coins, a penny, a nickel, a dime, and a quarter. Examine the coins in
order (penny, then nickel, then dime, then quarter) and observe whether each
coin shows a head (h) or a tail (t). What is the sample space? How many
elements are in the sample space?
......................................................................
The sample space consists of 16 four-letter words:
11
Definition 1.4 Event Spaces
• An event space is a collectively exhaustive, mutually exclusive set of
events.
12
Event Spaces
• Example 1.10: For i = 0, 1, 2, 3, 4,
13
Theorem 1.2
• For an event space B = {B1 , B2 , . . .} and any event A, let Ci = A ∩ Bi .
•
A = C1 ∪ C2 ∪ · · ·
Example 1.11
14
Axioms of Probability
A probability measure P [·] is a function that maps events in the sample space
to real numbers that satisfies the following axioms:
Axiom 1 P [A] ≥ 0 for every event A.
Axiom 2 P [S] = 1.
Axiom 3 For any countable collection A1 , A2 , . . . of mutually exclusive
events
∞
P [∪∞
i=1 Ai ] = P [Ai ]
i=1
15
Consequences of the Axioms
• Theorem 1.4: If A = A1 ∪ A2 ∪ · · · ∪ Am and Ai ∩ Aj = φ for i = j,
then
m
P [A] = P [Ai ]
i=1
16
Consequences of the Axioms
• Theorem 1.3: Given events A and B such that A ∩ B = φ, then
P [A ∪ B] = P [A] + P [B]
17
Equally Likely Outcomes
• Theorem 1.6: For an experiment with sample space
S = {s1 , s2 , · · · , sn } in which each outcome si is equally likely,
1
P [si ] = , 1≤i≤n
n
18
Consequences of the Axioms
Theorem 1.7: The probability measure P [·] satisfies
• P [φ] = 0.
• P [Ac ] = 1 − P [A].
P [A ∪ B] = P [A] + P [B] − P [A ∩ B]
19
Defintion 1.6 Conditional Probability
• The conditional probability of the event A given the occurrence of the
event B is
P [AB]
P [A|B] =
P [B]
20
Theorem 1.9
A conditional probability measure P [A|B] has the following properties that
correspond to the axioms of probability.
Axiom 1 P [A|B] ≥ 0.
Axiom 2 P [B|B] = 1.
Axiom 3 If A = A1 ∪ A2 ∪ · · · with Ai ∩ Aj = φ for i = j, then
21
Theorem 1.10 Law of Total Probability
• If B1 , B2 , . . . , Bm is an event space and P [Bi ] > 0 for i = 1, . . . , m,
then
m
P [A] = P [A|Bi ]P [Bi ]
i=1
22
Theorem 1.11 Bayes’ Theorem
•
P [A|B]P [B]
P [B|A] =
P [A]
• For an event space B1 , B2 , . . . , Bm ,
P [A|Bi ]P [Bi ]
P [Bi |A] = m
i=1 P [A|Bi ]P [Bi ]
23
Definition 1.7 Two Independent Events
Events A and B are independent if and only if
......................................................................
From Definition 1.7, it follows that
24
Definition 1.8 Three Independent Events
A1 , A2 , and A3 are independent if and only if
• A1 and A2 are independent.
25
Fundamental Principle of Counting
• Experiment A has n possible outcomes,
• Experiment B has k possible outcomes,
26
Permutations
• k-permutation: an ordered sequence of k distinguishable objects
• (n)k = no. of k-permutations of n dist. objects.
n!
(n)k = n(n − 1)(n − 2) · · · (n − k + 1) =
(n − k)!
27
Combinations
• Pick a subset of k out of n objects.
• Order of selection doesn’t matter
28
How Many Combinations
n
• k = “n choose k”
• Two steps for a k-permutation:
1. Choose a k-combination out of n objects.
2. Choose a k-permutation of the k objects in the k-combination.
n n n!
(n)k = k! =
k k k!(n − k)!
29
Problem 1.8.6
A basketball team has
• 3 pure centers, 4 pure forwards, 4 pure guards
A pure player can play only the designated position. How many lineups are
there (1 center, 2 forwards, 2 guards)
30
Problem 1.8.6 Solution
Three possibilities:
1. swingman plays guard: N1 lineups
2. swingman plays forward N2 lineups
3. swingman doesn’t play. N3 lineups
N = N1 + N2 + N3
3 4 4
N1 = = 72
1 2 1
3 4 4
N2 = = 72
1 1 2
3 4 4
N3 = = 108
1 2 2
31
1.9 Independent Trials
• Independent trials: (i) each time, a success occurs with constant
probability p; otherwise, a failure occurs with probability 1 − p, (ii) the
results of each trial is independent of the results of all other trials.
• For n independent trial,
Each outcome with k successes has probability pk (1 − p)n−k
n
There are k outcomes that have k successes
n k
• P [Sk,n ] = k p (1 − p)n−k : Binomial distribution
32
Multiple Outcomes
• n independent trials
• r possible trial outcomes (s1 , . . . , sr )
• P [sk ] = pk
33
Multiple Outcomes (2)
• Outcome is a sequence:
– Example: s3 s4 s3 s1
P [s3 s4 s3 s1 ] = p3 p4 p3 p1 = p1 p23 p4
= pn1 1 pn2 2 pn3 3 pn4 4
34
Multiple Outcomes (3)
• Ni = no. of time si occurs
M = Multinomial Coefficient
n n − n1 n − (n1 + n2 ) nr
= ···
n1 n2 n3 nr
n!
=
n1 !n2 ! · · · nr !
35
Example 1.47 (MATLAB Demo)
Simulate the testing of 100 microprocessors as described in Example 1.43.
Your output should be a 4 × 1 vector X such that Xi is the number of grade i
microprocessors.
36
Virtual Laboratories
• Buffon’s Coin Experiment
• Buffon’s Needle Experiment
37
Chapter Summary
• Sample space, event, and outcome
• Probability measure P [A]
• Independent events
• Counting methods
38