Chapitre 2 - Probability Calculation
Chapitre 2 - Probability Calculation
Probability Calculations
1
b) We draw a part at random, and we are interested in the following question:
“this part is made by which machine?” ".
• Question: How many possible outcomes for this experiment?
c) Let us now look, with this same drawing, at the material of the drawn rod.
• Question: give the fundamental set associated with this experience?
• Answer: This random experiment has two possible outcomes
𝛺$ = {brass, steel}.
2. An infinite but countable set of possible outcomes (we can list them as in the
case of integers)
We are talking about a discrete universe and we will define discrete
probability laws for this type of universe.
3. An infinite and uncountable set of possible outcomes (an interval of R for
example). We then speak about continuous universe and we will define
continuous probability laws for this type of universe.
Example 4: The experiment consists of measuring the uptime of a computer. Here
Ω=[0, +∞[ and the event A: "the computer operates at least for a duration t0"
corresponds to the subset A = {t | t0 ≤ t < +∞}.
𝐴̅ = {𝑤 ∈ 𝛺, 𝑤 ∉ 𝐴}
2
4.2 Operations on events
• Union: The set of all the elements which belong to A or B or to both is called
union of A and B, denoted A ∪ B:
ω ∈ A ∪ B ⟺ (ω ∈ A or ω∈B)
• Intersection: The set of all elements that belong to both A and B is called the
intersection of A and B, denoted by A ∩ B:
ω ∈ A ∩ B ⟺ (ω ∈ A and ω ∈B)
• Two events A and B are incompatible or disjoint if they cannot be carried out
simultaneously. We then have: A ∩ B = ∅
1- 7777777
𝐴 ∪ 𝐵 = 𝐴̅ ∩ 𝐵7
2- 7777777
𝐴 ∩ 𝐵 = 𝐴̅ ∪ 𝐵7
3
4.3 Complete events System
1. ∀i , ∀j, Ai ∩ Aj =∅
2. 𝛺 = ⋃"%&# 𝐴%
4.4 Probability
Σ
4.4.1 Definition:
The probability P is a real-valued function whose domain is the set of all events (subsets of
Ω) and the range is the interval [0, 1], i.e. P: P(Ω) → [0, 1] satisfying the following axioms.
4
Proprieties:
1. P(∅) = 0
A ) = 1 −P( A ) .
2. P ( 𝐴
3. If A ⊂ B, then P ( A ) ≤ P ( B )
A ) = P( A ) −P( A ∩B )
4. P ( A\B ) = P ( A ∩𝐵
5. P ( A ∪ B ) = P ( A ) + P ( B ) − P ( A ∩ B )
Demonstration:
Property 1 : As ∅ ∩ ∅ = ∅ , we have :
P (∅ ∪ ∅ ) = P ( ∅ ) + P ( ∅ )=2P(∅) =0 ⇒ P(∅) =0
Property 2 :
We know that:
A ∪ A = Ω and A∩A = ∅
Thus we have P (Ω) = P (A ∪ A) = P (A) + P (A)
But, by definition, P (Ω) = 1. Then we deduce:
A ) = 1- P(A).
P (𝑨
And since:
5
Property 5 :
A ∪ B = (A\B ) ∪ ( A ∩ B ) ∪ (B\A )
Moreover, ( A \ B ) , ( A ∩ B ) , And ( B \ A ) are two by two incompatible, SO :
P ( A ∪ B ) = P ( A \ B ) + P ( A ∩ B ) + P ( B\ A )
Or: P (A\B) = P (A) − P (A ∩ B)
P (B\A) = P (B) − P (A ∩ B)
SO : P ( A ∪ B ) = P ( A ) + P ( B ) − P ( A ∩ B)
4.4.2 Equi-probability
Let ω be an element of Ω. If all elementary events {ω} have the same
probability p (equiprobability), then:
𝟏
p=P({ ω })= 𝑵 , 𝑤𝑖𝑡ℎ 𝑁 = |𝛺|.
𝒄𝒂𝒓𝒅𝑨
P(A) = 𝑪𝒂𝒓𝒅 𝜴
4.4.3 Frequency
The frequentist probability f of an event A refers to the definition of probability
as the quotient between the number k of favorable outcomes and the number N of
total outcomes when N tends to infinity. Mathematically this is expressed by:
𝑘
𝑃(𝐴) = 𝑙𝑖𝑚
.→FG 𝑁
6
Example: if 60% of men are right-handed, we would say that a man taken at
random from a population has a probability of 0.6 to be right-handed or has 60%
of luck to be right-handed.
• 𝑃(A|B) is the probability that A will occur given that B has occurred
Proposal 4.5.2
Be careful !! P( 𝐴| 7𝐵
777) ≠ 1 − P (A| B)
• For three events A, B and C such as: 𝑃(𝐴) ≠ 0 and 𝑃(𝐴 ∩ 𝐵) ≠ 0, we have:
P (A∩B∩C) = P (A) × P (B|A) × P (C|A∩ B) .
7
4.5.2 Total Probability Formula
Let { A 1 , A 2, . . . , A n } be a complete events system of Ω
The total probability of an event B defined on the space Ω can be expressed in terms of
The Bayes Formula is expressed by : For all event B such as P(B)≠ 0, we have :
Remark: The Bayes rule expresses a conditional probability in terms of other conditional
probabilities.
Example 5.
Two machines 𝑀# 𝑎𝑛𝑑 𝑀! manufacture mechanical parts. The machine 𝑀# produces a third
of the total production. The percentage of defective parts is 5% for 𝑀# and 6% 𝑓𝑜𝑟 𝑀! . Let’s
note by A, B and C, the following events:
8
1. We randomly draw a part in the total production. Calculate the following
probabilities:
A ), 𝑃(𝐵
𝑃(𝐴), 𝑃(𝐵), 𝑃(𝐴 777), P(D|A), P(D|B).
Answer:
# !
A ) =1- 𝑃(𝐴)= ! ; 𝑃(𝐵
P(A) = $ ; P(B) = $ ; 𝑃(𝐴 777)=1- 𝑃(𝐵)= # ; P(D|A ) = N ; P(D|B)= P
$ $ #OO #OO
2. We take a part from the total production. What is the probability, 𝑝# , that it comes
from 𝑀# and it is defective?
Answer:
𝟏 𝟓 𝟏
𝒑𝟏 =P(A∩ 𝑫) = 𝑷(𝑨)𝑷(𝑫|𝑨) = 𝟑 × 𝟏𝟎𝟎 = 𝟔𝟎 =0.0166
3. We take a part from the total production. What is the probability 𝑝! that it is defective?
Answer:
A part being manufactured either by 𝑀# or by 𝑀! , we therefore use
the total probability formula:
𝟏 𝟓 𝟐 𝟔 #V
𝒑𝟐 = P (D) = P ( A ) ×P ( D|A ) + P ( B ) ×P ( D|B ) =𝟑 × 𝟏𝟎𝟎 + 𝟑 × 𝟏𝟎𝟎 = $OO= 0.0566
4. Calculate the probability 𝑝$ for a defective part to have been manufactured by M1?
𝑃(𝐴)𝑃(𝐷|𝐴 ) 1 300 5
𝒑𝟑 = 𝑃(𝐴|𝐷) = = × = = 𝟎. 𝟐𝟗𝟒
𝑃(𝐷) 60 17 17
9
Remark 1: Independence is then the fact that the achievement (realization) of one
does not depend on the achievement of the other. So, if A and B are two independent
events then: P(B|A) = P(B) and P(A|B) = P(A)
Remark 2: Do not confuse independent events (the occurrence of one does not
modify the probability of the other) and incompatible events (the occurrence of one
prevents the occurrence of the other).
P( A ∩B ∩C ) = P( A ) ×P( B ) ×P( C ) .
The realization of C doesn’t influence that of E. Therefore, C and E are two independent
events. So,
N P
𝒑𝟒 = P(C∩E) = P(C)×P(E) = P(D|A) P(D|B) = #OO × #OO = 𝟎. 𝟎𝟎𝟑2.
10