Chapter 1 Probability Spaces 主講人:虞台文
Content Sample Spaces and Events Event Operations Probability Spaces Conditional Probabilities Independence of Events Reliabilities Bayes’ Rule
Chapter 1 Probability Spaces Sample Spaces and Events
Definitions Sample Spaces and Events The set of all possible outcomes of a random experiment is called the sample space, denoted by , of that experiment. An element is called a sample point. A subset A is called an event.
Example 1 Tossing a die. sample space of tossing a die The set of all possible outcomes of a random experiment is called the sample space, denoted by , of that experiment. An element is called a sample point. A subset A is called an event. Example 1 Tossing a die. sample space of tossing a die an event whose face number is less than 4 an event whose face number is lager than 3 an event whose face number is odd an event whose face number is even
Notations A a sample space an event the probability for the occurrence of event A an sample point
Example 2 Suppose that the die in Example 1 is fair. Find the probability of each event. Suppose that the die is unfair, and with Find the probability of each event.
Example 2 Suppose that the die in Example 1 is fair. Find the probability of each event. Suppose that the die is unfair, and with Find the probability of each event.
Example 2 Suppose that the die in Example 1 is fair. Find the probability of each event. Suppose that the die is unfair, and with Find the probability of each event.
Example 2 Suppose that the die in Example 1 is fair. Find the probability of each event. Suppose that the die is unfair, and with Find the probability of each event.
Example 3 Bulb Life (Months) sample space of a bulb life the life of a bulb is not less than 10 months the life of a bulb is not less than 10 but less than 20 months the life of a bulb is less than 10 months the life of a bulb is larger than 15 but not larger than 30 months
Example 3 Bulb Life (Months) 5 10 15 20 25 30 35 40 45 50 sample space of a bulb life the life of a bulb is not less than 10 months the life of a bulb is not less than 10 but less than 20 months the life of a bulb is less than 10 months the life of a bulb is larger than 15 but not larger than 30 months
Example 3 Bulb Life (Months) 5 10 15 20 25 30 35 40 45 50
Example 4 Tossing three balanced coins Write the sample space of this experiment. Write the event A to denote that at least two coins land heads. P(A) =?
Example 4 Tossing three balanced coins Write the sample space of this experiment. Write the event A to denote that at least two coins land heads. P(A) =?
Example 4 Tossing three balanced coins Write the sample space of this experiment. Write the event A to denote that at least two coins land heads. P(A) =? The method to define a sample space is not unique, e.g.,
Chapter 1 Probability Spaces Events Operations
Event Operations Intersection And Union Or Complement Not
Intersection () And A B AB Venn Diagram
Example 5 A1 A3 = {1, 3} A2 A4 = {4, 6} A1 A2 = The face number is less than 4 and odd. The face number is larger than 3 and even. A null event.
Example 5 A1 A3 = {1, 3} A2 A4 = {4, 6} A1 A2 = The face number is less than 4 and odd. The face number is larger than 3 and even. Remark: Two events A and B are said to be mutually exclusive if A ∩ B = . A null event.
Example 5 A1 A3 = {1, 3} A2 A4 = {4, 6} A1 A2 = Assume the die is fair.
Example 6 Bulb Life (Months) 5 10 15 20 25 30 35 40 45 50 A null event.
Example 6 Bulb Life (Months) 5 10 15 20 25 30 35 40 45 50 The bulb life is lager than 15 but less than 20 months
Example 6 Bulb Life (Months) 5 10 15 20 25 30 35 40 45 50
Union () Or AB A B Venn Diagram
Example 7 A1 A3 = {1, 2, 3, 5} A2 A4 = {2, 4, 5, 6} A1 A2 = 1 The face number is less than 4 or odd. The face number is larger than 3 or even. A universal event.
Example 8 Bulb Life (Months) 5 10 15 20 25 30 35 40 45 50 A universal event.
Example 8 Bulb Life (Months) 5 10 15 20 25 30 35 40 45 50 The bulb life is not less than 10 but not large than 30 months
Example 8 Bulb Life (Months) 5 10 15 20 25 30 35 40 45 50
Complement Not Ac A Venn Diagram
Example 9-1 The face number is not less than 4.
Example 9-2 Bulb Life (Months) 5 10 15 20 25 30 35 40 45 50
Laws of Event Algebra Associative laws Commutative laws Distributive laws
Laws of Event Algebra Identity laws Complementation laws Idempotent laws
Laws of Event Algebra Domination laws Absorption laws De Morgan’s laws
More on De Morgan’s laws
Chapter 1 Probability Spaces
-Field A nonempty collection of subsets A is called -field of a set provided that the following two properties hold: A
Example 10 Let = {1, 2, 3, 4, 5, 6}. Let A1 = {A0 = , A1 = {1, 2, 3}, A2 = {4, 5, 6}, A3 = } . Whether or not A1 forms a -field of ? Let A2 = {A1 = {1, 6}, A2 = {2, 5}, A3 = {3, 4}}. Add minimum number of subsets of into A2 such that A2 becomes a -field of .
The Axioms of Probability A probability measure P on a -field of subset A of a set is a real-valued function having domain A satisfying the following properties: P() = 1; P(A) 0 for all A A; If Ai A, i=1,2,. . . are mutually disjoint then A2 A3 A A1 A4
Definition Probability Space A probability measure P on a -field of subset A of a set is a real-valued function having domain A satisfying the following properties: P() = 1; P(A) 0 for all A A; If Ai A, i=1,2,. . . are mutually disjoint then A probability space, denoted by (, A, P), is a set , a -field of subsets A, and a probability measure P defined on A.
Example 11 (, A, P) A probability space? = {1, 2, 3, 4, 5, 6}. A = {A0 = , A1 = {1, 2, 3}, A2 = {4, 5, 6}, A3 = } P (A0) = 0, P (A1) = 1/2, P (A2) = 1/2, P (A3) = 1 (, A, P) A probability space?
Example 11 (, A, P) A probability space? = {1, 2, 3, 4, 5, 6}. A = {A0 = , A1 = {1, 2, 3}, A2 = {4, 5, 6}, A3 = } P (A0) = 0, P (A1) = 1/3, P (A2) = 2/3, P (A3) = 1 (, A, P) A probability space?
Example 11 (, A, P) A probability space? = {1, 2, 3, 4, 5, 6}. A = {A0 = , A1 = {1, 2, 3}, A2 = {4, 5, 6}, A3 = } P (A0) = 1/3, P (A1) = 1/3, P (A2) = 1/3, P (A3) = 1 (, A, P) A probability space?
Example 11 (, A, P) A probability space? = {1, 2, 3, 4, 5, 6}. A = {A0 = , A1 = {1, 2, 3}, A2 = {4, 5, 6}, A3 = } P (A0) = 0, P (A1) = 1/3, P (A2) = 1/3, P (A3) = 2/3 (, A, P) A probability space?
Theorem 1-1 For any event A, P(Ac) = 1 P(A). Pf) Facts:
Theorem 1-2 B A For any two events A and B, P(A B) = P(A) + P(B) P(A B) Pf)
More on Theorem 1-2 A C B
See the text for the proof. Theorem 1-3
Theorem 1-3 S1 S2 S3 Sn
Example 12 Let A, B be two events of a sample space with P(A) = 1/2 , P(B) = 1/2, P(A B) = 2/3 Find the probabilities of the following events: (1) P(Ac) (2) P(Bc) (3) P(A B) (4) P(Ac B) (5) P(Ac B) (6) P(A Bc) (7) P(Ac Bc) (8) P(Ac Bc). Are A, B mutually exclusive? A B 1/6 1/6 1/3
Chapter 1 Probability Spaces Conditional Probabilities
A B Definition Let A, B be two events such that P(A) > 0. Then the conditional probability of B given A, written P(B|A), is defined by If P(A) = 0, then P(B|A) is undefined.
Example 13 Toss three balanced coins. Let A denote the event that two coins land heads, B denote that the first coin lands heads. Find P(A), P(B), P(B|A), and P(A|B).
By Product
Chapter 1 Probability Spaces Independence of Events
Definition A B Two events A and B are independent if and only if
Example 14 Toss one balanced coin three times. Let A denote the event that the first two tosses land heads, B denote that exactly one toss lands heads, and C denote that the third toss lands tails. 1. Are A, B independent? 2. Are A, C independent? 3. Are B, C independent?
Toss one balanced coin three times Toss one balanced coin three times. Let A denote the event that the first two tosses land heads, B denote that exactly one toss lands heads, and C denote that the third toss lands tails. 1. Are A, B independent? 2. Are A, C independent? 3. Are B, C independent? Example 14
Theorem 1-4 Ac B A Bc A B
Theorem 1-5 A B P(B|A)=P(B) Pf)
Definition n events A1, A2, . . . , An are said to be mutually independent if and only if for any different k = 2, . . . , n events satisfy
Example 15 Given the following Venn Diagram, are events A, B, C mutually independent? P(A) = 0.6, P(B) = 0.8, P(C) = 0.5 P(ABC) = 0.24 = P(A)P(B)P(C) P(AB) = 0.48 = P(A)P(B) P(AC) = 0.30 = P(A)P(C) P(BC) = 0.38 P(B)P(C)
Remarks P(A1 A2 · · · An) = P(A1)P(A2) · · · P(An) does not imply that A1, A2, . . . , An are pairwise independent (Example 15). A1, A2, . . . , An are pairwise independent does not imply that they are mutually independent.
Example 16 Toss two dice. Let A = “The 1st die is 1,2, or 3” B = “The 2nd die is 4,5, or 6” C = “The sum of two dice is 7” Show that A, B, C are pairwise independent but not mutually independent.
Chapter 1 Probability Spaces Reliabilities
Reliabilities Reliability of a component Let Ri denote the probability of a component in a system which is functioning properly (event Ai). We will assume that the failure events of components in a system are mutually independent. Reliabilities of systems 1. series systems — The entire system will fail if any one of its component fails. 2. parallel systems — The entire system will fail only if all its component fail.
Reliability of a Series System (Rss) C1 C2 Cn A B
Reliability of a Parallel System (Rps) C1 C2 Cn A B .
Example 17 Consider the following system. C1 C2 C3 A B Let R1 = R2 = R3 = 0.95. Find the reliability of the system.
Example 17
Chapter 1 Probability Spaces Bayes’ Rule
A Story The umbrella must have been made in Taiwan
Event Space A Partition of Sample Space 日 德 法 B1 B2 a partition of B3 台 義 B5 B4
Event Interests Us (A) 日 德 法 B1 B2 a partition of B3 台 A 義 B5 B4
A Preliminaries B1 B2 B3 B5 B4 Prior Probabilities: 日 德 法 台 A 義 B5 Likelihoods: B4
Law of Total Probability 日 德 法 Prior Probabilities: B1 B2 B3 台 A 義 B5 Likelihoods: B4
Law of Total Probability 日 德 法 Prior Probabilities: B1 B2 B3 台 A 義 B5 Likelihoods: B4
Goal: Posterior Probabilities 日 德 法 Prior Probabilities: B1 B2 B3 台 A 義 B5 Likelihoods: B4
Goal: Posterior Probabilities Prior Probabilities: Likelihoods:
Bayes’ Rule Given
S NS 0.5 M W 0.4 0.5 Example 18 0.3 0.6 0.7 Suppose that the population of a certain city is 40% male and 60% female. Suppose also that 50% of the males and 30% of the females smoke. Find the probability that a smoker is male. M : A selected person is male W : A selected person is female S : A selected person who smokes We are given Define
Example 19 Consider a binary communication channel. Owing to noise, error may occur. For a given channel, assume a probability of 0.94 that a transmitted 0 is correctly received as a 0 and a probability of 0.91 that a transmitted 1 is received as a 1. Further assumed a probability of 0.45 of transmitting of a 0. Determine 1. Probability that a 1 is received. 2. Probability that a 0 is received. 3. Probability that a 1 was transmitted, given that a 1 was received. 4. Probability that a 0 was transmitted, given that a 0 was received. 5. Probability of an error.
Example 19 1 1 T0 R0 T1 R1 T0 : A 0 is transmitted 0.94 1 1 0.45 0.06 Example 19 0.09 0.55 0.91 T1 R1 Consider a binary communication channel. Owing to noise, error may occur. For a given channel, assume a probability of 0.94 that a transmitted 0 is correctly received as a 0 and a probability of 0.91 that a transmitted 1 is received as a 1. Further assumed a probability of 0.45 of transmitting of a 0. Determine 1. Probability that a 1 is received. 2. Probability that a 0 is received. 3. Probability that a 1 was transmitted, given that a 1 was received. 4. Probability that a 0 was transmitted, given that a 0 was received. 5. Probability of an error. T0 : A 0 is transmitted T1 : A 1 is transmitted R0 : A 0 is received R1 : A 1 is received Define
T0 R0 0.94 1 1 0.45 0.06 Example 19 0.09 0.55 0.91 T1 R1
Example 20 There are n boxes each contains a white and b black balls. Now randomly select one ball from the 1st box to put it into the 2nd box, then randomly select one ball from the 2nd box to put it into the 3rd box, . . . This procedure is continued. Let Wi and Bi denote the events that the chosen ball from the ith box being white and black, respectively. Determine 1. P(Wn) = ?; 2. P(Wn|W1) = ?; 3. limn→∞P(Wn|W1) = ?
Example 20 There are n boxes each contains a white and b black balls. Now randomly select one ball from the 1st box to put it into the 2nd box, then randomly select one ball from the 2nd box to put it into the 3rd box, . . . This procedure is continued. Let Wi and Bi denote the events that the chosen ball from the ith box being white and black, respectively. Determine 1. P(Wn) = ?; 2. P(Wn|W1) = ?; 3. limn→∞P(Wn|W1) = ? a b 1 2 3 n1 n . . .
Example 20 Define pi=P(Wi). 1. P(Wn) = ?; 2. P(Wn|W1) = ?; 3. limn→∞P(Wn|W1) = ? Define pi=P(Wi).
Example 20 1. P(Wn) = ?; 2. P(Wn|W1) = ?; 3. limn→∞P(Wn|W1) = ? .
Example 20 1. P(Wn) = ?; 2. P(Wn|W1) = ?; 3. limn→∞P(Wn|W1) = ? .
Example 20 1. P(Wn) = ?; 2. P(Wn|W1) = ?; 3. limn→∞P(Wn|W1) = ? .
Example 20 1. P(Wn) = ?; 2. P(Wn|W1) = ?; 3. limn→∞P(Wn|W1) = ?
Example 20 1. P(Wn) = ?; 2. P(Wn|W1) = ?; 3. limn→∞P(Wn|W1) = ?