tutorial 2: sample space and probability 2
TRANSCRIPT
Tutorial 2: Sample Space and Probability 2
Baoxiang WANG bxwang@cse
Spring 2017
Probability models
A probability model is an assignment of probabilities
to every element of the sample space.
Probabilities are nonnegative and add up to one.
S = { HH, HT, TH, TT }
ΒΌ ΒΌ ΒΌ ΒΌ
Examples
models a pair of coins with equally likely outcomes
Elements of a Probabilistic Model
β’ Event: a subset of sample space. β π΄ β Ξ© is a set of possible outcomes
β Example. π΄ = π»π», ππ , the event that the two coins give the same side.
β’ The probability law assigns our knowledge or belief to an event π΄ a number π π΄ β₯ 0. β It specifies the likelihood of any outcome.
Probability Axioms
1. (Non-negativity) π(π΄) β₯ 0, for every event π΄.
2. (Additivity) For any two disjoint events π΄ and π΅, π π΄ βͺ π΅ = π π΄ + π π΅ In general, if π΄1, π΄2, β¦ are disjoint events, then π π΄1 βͺ π΄2 βͺβ― = π π΄1 + π π΄2 +β―
3. (Normalization) π(Ξ©) = 1.
De Morganβs laws
π΄ βͺ π΅ c = Aπ β© π΅π π΄ β© π΅ c = Aπ βͺ π΅π
π΄1 βͺβ―βͺ π΄πc = π΄1
π β©β―β© π΄ππ
π΄1 β©β―β© π΄πc = π΄1
π βͺβ―βͺ π΄ππ
Question
Bonferroniβs inequality.
Prove that for any two events A and B, we have π π΄ β© π΅ β₯ π π΄ + π π΅ β 1
π π΄ + π π΅ β π π΄ β© π΅ = π(π΄ βͺ π΅)
π(π΄ βͺ π΅) β€ 1
Question
Romeo and Juliet have a date. Each will arrive at the meeting place with a delay between 0 and 1 hour, with all pairs of delays being equally likely. The first to arrive will wait for 15 minutes and will leave if the other has not yet arrived.
Question: What is the probability that they will meet?
Question
Sample space: the unit square 0,1 Γ 0,1 , Its elements are the possible pairs of delays. βequally likelyβ pairs of delays: let π π΄ for event π΄ β Ξ© be equal to π΄βs βareaβ.
This satisfies the axioms.
π = π₯, π¦ : π₯ β π¦ β€1
4, 0 β€ π₯ β€ 1, 0 β€ π¦ β€ 1
Question
The event that Romeo and Juliet will meet is the shaded region. Its probability is calculated to be 7/16. = 1 β the area of the two unshaded triangles
= 1 β 2 β 3
4Β·3
4/2
= 7/16. π = π₯, π¦ : π₯ β π¦ β€
1
4, 0 β€ π₯ β€ 1, 0 β€ π¦ β€ 1
Question
A parking lot contains 100 cars, π of which happen to be lemons. We select π of these cars at random and take them for a test drive. Find the probability that π of the cars tested turn out to be lemons.
The sample space Ξ© = random choose π cars
The size of sample space
|Ξ©| =100
π
Question
A parking lot contains 100 cars, π of which happen to be lemons. We select π of these cars at random and take them for a test drive. Find the probability that π of the cars tested turn out to be lemons.
The event π cars are lemons (π β€ π and π β€ π)
ππβ 100βππβπ
The probability
π =π
πβ100 β π
π β π/100
π
β’ Consider ten independent rolls of a 6-sided die. Let π be the number of 6π and let π be the number of 1π obtained.
β’ What is the joint PMF of π and π?
β’ π is a binomial random variable with π = 10 and π =1
6
β’ π π = π π = π is a binomial random variable with π = 10 β π and π =1
5
β’ So the joint PMF is π π = π, π¦ = π = π π = π π π = π π = π
=10
π
1
6
π
(5
6)10βπ10 β π
π(1
5)π(4
5)10βπβπ
12
Question: Conditioning
Total Probability Theorem
β’ Let π΄1, π΄2, . . . , π΄π be disjoint events that form a partition
of the sample space. Assume π(π΄π) > 0 for all π. Then, for
any event π΅, we have
π π΅ = π π΄1 β© π΅ +β―+ π π΄π β© π΅ = π π΄1 π π΅ π΄1 +β―+ π π΄π π π΅ π΄π
β’ Indeed, π΅ is the the disjoint union of π΄1 β© π΅ , β¦, π΄π β© π΅ .
β’ The second equality is given by π π΄π β© π΅ = π π΄π π π΅ π΄π .
Question
We know that a treasure is located in one of two places, with probabilities π½ and 1 β π½, respectively, where 0 < π½ < 1. We search the first place and if the treasure is there, we find it with probability π > 0. Show that the event of not finding the treasure in the first place suggests that the treasure is in the second place
Let π΄ and π΅ be the events π΄ = {the treasure is in the second place} π΅ = {not find the treasure in the first place}
Question
We know that a treasure is located in one of two places, with probabilities π½ and 1 β π½, respectively, where 0 < π½ < 1. We search the first place and if the treasure is there, we find it with probability π > 0. Show that the event of not finding the treasure in the first place suggests that the treasure is in the second place
By the total probability theorem π π΅ = π π΄π π π΅ π΄π + π π΄ π π΅ π΄
= π½ 1 β π + (1 β π½)
Question
We know that a treasure is located in one of two places, with probabilities π½ and 1 β π½, respectively, where 0 < π½ < 1. We search the first place and if the treasure is there, we find it with probability π > 0. Show that the event of not finding the treasure in the first place suggests that the treasure is in the second place
By the total probability theorem
π π΄ π΅ =π(π΄ β© π΅)
π(π΅)=
1 β π½
π½ 1 β π + (1 β π½)
=1 β π½
1 β π½π> 1 β π½ = π(π΄)
Independence
β’ Independent Events
β’ π΄, π΅ are independent π΅ provides no information of π΄
π(π΄|π΅) = π(π΄)
β’ Equivalently
π(π΄ β© π΅) = π(π΄)π(π΅)
Question
A hunter has two hunting dogs. On a two-path road, each dog will choose the correct path with probability π independently. Let each dog choose a path, and if they agree, take that one, and if they disagree, randomly pick a path. Is this strategy better than just letting one of the two dogs decide on a path?
Both dogs agree on the correct path π β π = π2
The dogs disagree π 1 β π β 2
Question
A hunter has two hunting dogs. On a two-path road, each dog will choose the correct path with probability π independently. Let each dog choose a path, and if they agree, take that one, and if they disagree, randomly pick a path. Is this strategy better than just letting one of the two dogs decide on a path?
Hunter chooses the correct path when dogs disagree π 1 β π
The probability that hunter chooses the correct path π2 + π 1 β π = π
Question
There are π different power plants. And each one can produce enough electricity to supply the entire city. Now suppose that the πth power plants fails independently with probability ππ. (a) What is the probability that the city will experience a black-out?
Let π΄ denote the event that the city experiences a black-out. Since the power plants fail independently
π π΄ = ππ
π
π=1
Question
There are π different power plants. And each one can produce enough electricity to supply the entire city. Now suppose that the πth power plants fails independently with probability ππ. (b) Now suppose two power plants are necessary to keep the city from a black-out. Find the probability that the city will experience a black-out.
The city will black out if either all π or any π β1 power plants fail These two events are mutually exclusive
Question
There are π different power plants. And each one can produce enough electricity to supply the entire city. Now suppose that the πth power plants fails independently with probability ππ. (b) Now suppose two power plants are necessary to keep the city from a black-out. Find the probability that the city will experience a black-out.
π π΄ = ππ
π
π=1
+ 1β ππ ππ
πβ π
π
π=1
Thanks
Question are welcome.