01-Basic Probability Theory1
01-Basic Probability Theory1
01-Basic Probability Theory1
2
Introduction
Events can in general be classified as:
• Random-the event may or may not occur
• Certain- the occurrence of the event is inevitable
• Impossible-the event will never occur
iii. Event
An event is any subset of the sample of the sample space, Ω
Events can be represented by A, B, C, ……
Example-1:
Consider a random experiment of rolling a die once.
i. Sample Space
{1, 2, 3, 4, 5, 6}
5
Sample Space and Events Cont’d….
ii. Some possible events
An event of obtaining even numbers
A {2, 4, 6}
Example-2:
Consider a random experiment of flipping a fair coin twice.
i. Sample space
{HH , HT, TH, TT}
6
Sample Space and Events Cont’d….
7
Basic Set Operations
We can combine events using set operations to obtain other
events.
1. Union
The union of two events A and B is defined as the set of outcomes
that are either in A or B or both and is denoted by A B.
A B { : A or B} A B { : A B}
Ω
A B
E F
AB
8
Basic Set Operations Cont’d…..
2. Intersection
The intersection of two events A and B is defined as the set of
outcomes that are common to both A and B and is denoted by
A B.
A B { : A and B} A B { : A B}
A B
AB
9
Basic Set Operations Cont’d…..
3. Complement
The complement of an event A is defined as the set of all
outcomes that are not in A and is denoted by A.
A { : and A} A { : A}
Ω
EA A
10
Basic Set Operations Cont’d…..
4. Mutually Exclusive (Disjoint) Events
Two events A and B are said to be mutually exclusive or disjoint
if A and B have no elements in common, i.e., A B
A B
A B
5. Equal Events
Two events A and B are said to equal if they contain the same
outcomes and is denoted by A=B.
11
Some Properties of Set Operations
1. Elementary Properties
i. v. A A
ii. vi. A A
iii. A
2. Commutative Properties
vii. A A
iv. A A
3. Associative Properties
A B B A
A B B A
A ( B C ) ( A B ) C
A ( B C ) ( A B ) C
12
Some Properties of Set Operations Cont’d…..
4. Distributive Properties
A ( B C ) ( A B ) ( A C )
A ( B C ) ( A B ) ( A C )
5. DeMorgan’s Rules
( A B) A B
( A B) A B
A
i 1
i A1 A2 .... An
n
A
i 1
i A1 A2 ... An
13
Axioms and Properties of Probability
Probability is a rule that assigns a number to each event A in the
sample space, Ω.
In short , the probability of any event A is given by
n( A)
P ( A)
n ()
where
n( A) - is the number of elements in the event A
n() - is the number of elements in the sample space
14
Axioms and Properties of Probability Cont’d…..
15
Axioms and Properties of Probability Cont’d…..
n n
P Ai P ( Ai )
i 1 i 1
16
Axioms and Properties of Probability Cont’d…..
By using the above probability axioms, other useful
properties of probability can be obtained.
1. P ( A) 1 P ( A)
Proof:
17
Axioms and Properties of Probability Cont’d…..
A B
A B A B A B
P ( A) P ( A B ) P ( A B ) P( B) P( A B) P( A B)
P( A B) P( B) P( A B)
P ( A B ) P ( A) P ( A B )
iv. A B B ( A B )
iii. A B A ( A B )
P( A B) P( B) P( A B)
P ( A B ) P ( A) P ( A B )
v. A B ( A B ) ( A B ) ( A B )
P( A B) P( A B) P( A B) P( A B)
19
Axioms and Properties of Probability Cont’d…..
2. P ( A B ) P ( A) P ( B ) P ( A B )
Proof:
P ( A B ) P ( A) P ( A B )
But, P ( A B ) P ( B ) P ( A B )
P ( A B ) P ( A) P ( B ) P ( A B )
20
Axioms and Properties of Probability Cont’d…..
3. P ( A B ) P ( A) P ( B )
Proof:
P ( A B ) P ( A) P ( B ) P ( A B )
But, P ( A B ) 0
P ( A B ) P ( A) P ( B )
21
Axioms and Properties of Probability Cont’d…..
Example-1:
A box contains 10 identical balls numbered 0, 1, 2,…,9. A single
ball is selected from the box at random. Consider the following
events.
A: number of ball selected is odd
B: number of ball selected is multiple of 3
C: number of ball selected is less than 5
Find the following probabilities.
a. P( A) d. P( A B)
b. P( B) e. P( A B C )
c. P(C )
22
Axioms and Properties of Probability Cont’d…..
Solution:
The sample space and the events are given by:
{0, 1, 2, 3, 4, 5, 6, 7, 8, 9} C {0, 1, 2, 3, 4}
A {1, 3, 5, 7, 9} A B {3, 9}
B {3, 6, 9} A B C {0, 1, 2, 3, 4, 5, 6, 7, 9}
The number of elements in the sample space and events are:
n() 10 n(C ) 5
n( A) 5 n( A B ) 2
n( B ) 3 n ( A B C ) 9
23
Axioms and Properties of Probability Cont’d…..
Thus, probabilities of the given events are given by:
n( A) 5 1 n( A B ) 2 1
a. P( A) d . P( A B)
n() 10 2 n ( ) 10 5
n( B ) 3 n ( A B C ) 9
b. P( B) e. P( A B C )
n() 10 n () 10
n(C ) 5 1
c. P (C )
Example-2: n() 10 2
24
Axioms and Properties of Probability Cont’d…..
Solution:
a. P( A B) P( A) P( B) P( A B) d . P( A B) P( A B) 1 P( A B)
P( A B) 0.9 0.8 0.75 P( A B) 1 0.75
P( A B) 0.95 P( A B) 0.25
b. P( A B) P( A) P( A B) e. P( A B) 1 P( A) P( A B)
P( A B) 0.9 0.75 P( A B) 1 0.9 0.75
P( A B) 0.15 P( A B) 0.85
c. P ( A B ) P ( A B ) 1 P ( A B ) f . P( B) 1 P( B)
P ( A B ) 1 0.95 P( B) 1 0.8
P ( A B ) 0.05 P( B) 0.2
25
Axioms and Properties of Probability Cont’d…..
Exercise:
1. If A B , then show that P ( A) P ( B ).
2. If P ( A) P ( B ) P ( A B ), then show that
P[( A B ) ( A B )] 0.
3. If P ( A) P ( B ) 1, then show that P ( A B ) 1.
4. If P ( A) 0.9 and P ( B ) 0.8, then show that P ( A B ) 0.7
26
Conditional Probability
The conditional probability of an event A given B, denoted by P(A/B), is defined as:
P( A B)
P ( B / A) , P ( A) 0 (2)
P ( A)
P( A B) P( A / B) P( B) P( B / A) P( A) (3)
27
Conditional Probability Cont’d…….
Then using equation (3), we will get
We know that P ( B / A) P ( A) P( A / B) P( B)
P( A / B) OR P ( B / A) (4)
P( B) P ( A)
Substituting equation (5) into equation (4), we will get
P ( B ) P ( A B ) P ( A B)
P ( B ) P ( B / A) P ( A) P ( B / A) P ( A) (5)
P ( B / A) P ( A)
P( A / B) (6)
P ( B / A) P ( A) P ( B / A) P ( A)
28
Conditional Probability Cont’d…….
Similarly,
P( A / B) P( B)
P ( B / A )
Equations (6) and (7) are known as Baye’s Rule. (7)
P( A / B) P( B) P( A / B) P( B)
Baye’s Rule can be extended for n events as follows.
Let events A1, A2, A3, …, An be pairwise mutually exclusive (disjoint ) events and their union be the sample space Ω, i.e.
n
Ai A j and A
i 1
i
n n
P Ai P ( Ai )
i 1 i 1
29
Conditional Probability Cont’d…….
Let B be any event in Ω as shown below.
A2 .....
A1 An 1
B
A3 ..... An
B B ( A1 A2 .... An )
B ( B A1 ) ( B A2 ) ... ( B An )
But, Ai A j ( B Ai ) ( B A j )
30
Conditional Probability Cont’d…….
The events are mutually exclusive events.
B Ai and B A j
In short,
P ( B ) P ( B A1 ) P ( B A2 ) ... P ( B An )
Then using equation (4), we will obtain
P ( B ) P ( B / A1 ) P ( A1 ) P ( B / A2 ) P ( A2 ) ... P ( B / An ) P ( An ) (8)
n n
P( B) P( B Ai ) P( B / Ai ) P( Ai ) (9)
i 1 i 1
P ( B / Ai ) P ( Ai )
P ( Ai / B ) n
(10)
P( B / A ) P( A )
i 1
i i
31
Conditional Probability Cont’d…..
Example-1:
Show that P( A / B) 1 P ( A / B)
Solution:
P( B) P( A B) P( A B)
P( B) P( A / B) P( B) P( A / B) P( B)
Dividing both sides by P( B), we obtain
1 P( A / B) P( A/B)
P( A/B) 1 P( A / B)
32
Conditional Probability Cont’d…..
Example-2:
Let A and B be two events such that P(A)=x, P(B)=y and
P(B/A)=z. Find the following probabilities in terms of x, y and z.
a. P ( A / B )
b. P ( A B )
c. P ( A / B )
Solution:
P ( A B ) P ( B / A) P ( A) xz
P ( A B ) xz
a. P ( A / B )
P( B) y
b. P ( A B ) P ( A B ) 1 P ( A B ) 1 xz
P( A B) P( B) P( A B) xz
c. P ( A / B ) 1
P( B) P( B) y
33
Conditional Probability Cont’d…..
Example-3:
A box contains two black and three white balls. Two balls are
selected at random from the box without replacement. Find the
probability that
Solution:
a. P ( B1 B2 ) P ( B2 / B1 ) P ( B1 ) (1 / 4)( 2 / 5)
P ( B1 B2 ) 1 / 10
b. P (W2 ) P (W2 B1 ) P (W2 W1 )
P (W2 / B1 ) P ( B1 ) P (W2 / W1 ) P (W1 )
(3 / 4)( 2 / 5) ( 2 / 4)(3 / 5)
P (W2 ) 3 / 5
35
Conditional Probability Cont’d…..
Example-4:
36
Conditional Probability Cont’d…..
Solution:
First let us define the events as follows.
A : Box A is selected
P ( A) P ( B ) 1 / 2
B : Box B is selected P ( D / A) 1 / 10
D : Bulb is defective P ( D / B ) 1 / 20
a. P ( D) P ( D / A) P ( A) P ( D / B ) P ( B )
(1 / 10)(1 / 2) (1 / 20)(1 / 2)
P ( D ) 3 / 40
P ( D / A) P ( A) 1 / 20
b. P ( A / D) (1 / 20)(40 / 3)
P( D) 3 / 40
P( A / D) 2 / 3
37
Conditional Probability Cont’d…..
Example-5:
One bag contains 4 white and 3 black balls and a second bag
contains 3 white and 5 black balls. One ball is drawn from the
first bag and placed in the second bag unseen and then one ball
is drawn from the second bag. What is the probability that it is
a black ball?
Solution:
P ( B2 ) P ( B2 B1 ) P ( B2 W1 )
P ( B2 ) P ( B2 / B1 ) P ( B1 ) P ( B2 / W1 ) P (W1 )
P ( B2 ) (6 / 9)(3 / 7) (5 / 9)(4 / 7)
P ( B2 ) 28 / 63
39
Conditional Probability Cont’d…..
Exercise:
1. For three events A, B and C, show that:
a. P[( A B ) / C ] P[ A /( B C )]P ( B / C )
b. P( A B C ) P[ A /( B C )]P( B / C ) P (C )
40
Conditional Probability Cont’d…..
41
Independence of Events
Two events A and B are said to be statistically independent if
and only if
P ( A B ) P ( A) P ( B )
42
Independence of Events Cont’d……
If A and B are independent, then we have
P ( A B ) P ( A) P ( B )
i. P ( A / B ) P ( A)
P( B) P( B)
P ( A / B ) P ( A)
P ( A B ) P ( A) P ( B )
ii. P ( B / A) P( B)
P ( A) P ( A)
P ( B / A) P ( B )
Example-1:
If A and B are independent, then show that A and B are also
independent.
43
Independence of Events Cont’d……
Solution:
P ( A) P ( A B ) P ( A B )
P ( A B ) P ( A) P ( A B ) P ( A) P ( A) P ( B )
P ( A B ) P ( A)[1 P ( B )] P ( A) P ( B )
By the definition of independent events, A and B are independent.
Example-2:
The probability that a husband and a wife will be alive 90 years
from now are given by 0.8 and 0.9 respectively. Find the
probability that in 90 years
a. both will be alive c. at least one will be alive
b. neither will be alive
44
Independence of Events Cont’d……
Solution:
• First let us define the events as follows.
P ( H ) 0 . 8 P ( H ) 1 P ( H ) 1 0 . 8 0 .2
P (W ) 0.9 P (W ) 1 P (W ) 1 0.9 0.1
45
Independence of Events Cont’d……
Solution:
a. P (both) P ( H W ) P ( H ) P (W )
P (both) P ( H W ) (0.8)(0.9)
P (both) P ( H W ) 0.72
b. P (neither) P ( H W ) P ( H ) P (W )
P (neither ) P ( H W ) (0.2)(0.1)
P (neither ) P ( H B ) 0.02
47
Assignment-I
4. The probability that a husband watches a certain television show is
0.4 and the probability that a wife watches the show is 0.5. The
probability that a husband watches the show given that his wife does
is 0.7. Find the probability that
a. both of them watch the show
b. a wife watches the show given that her husband does
c. at least one of them watch the show
5. In a shooting test, the probability of hitting the target is 1/2 for A ,
2/3 for B and 3/4 for C. If all of them fire at the target, find the
probability that
a. none of them hits the target
b. at most two of them hit the target
48