Module 1
Module 1
Fundamentals of Probability
and Random Variables
Mani Bhushan and Sachin Patawardhan
Department of Chemical Engineering
I.I.T. Bombay
1/5/2022 Fundamentals 1
Automation Lab
Outline
IIT Bombay
Sample Space
Probability Space
Computing Probabilities
1/5/2022 Fundamentals 2
Automation Lab
Note
IIT Bombay
1/5/2022 Fundamentals 3
Automation Lab
lim N ( A)
P ( A)
N N
provided that this limit in fact exists.
Although this is a conceptually appealing basis for probability
theory, it does not allow precise treatment of many problems
and issues of direct importance.
1/5/2022 Fundamentals 4
Automation Lab
Sample Space
IIT Bombay
(Maybeck, 1979)
Sample Space
IIT Bombay
company
1/5/2022 Fundamentals 6
Automation Lab
Field
IIT Bombay
(Papoulous and Pillai, 2002)
Field or - algebra(F)
A field F is a non - empty class of sets such that if
(a) A F then A F and
(b) A, B F then A B F
Using these properties, it can be shown that
(a) If A,B F then A B F
________
A B F A B A B F
(b) The field contains the " certain event" ( S A A )
and the " impossible event" ( A A )
Example: Consider experiment of rolling a die once
We can define sample space as S 1,2,3,4,5,6
1/5/2022 Fundamentals 7
Automation Lab
IIT Bombay
1/5/2022 Fundamentals 8
Automation Lab
IIT Bombay
1/5/2022 Fundamentals 10
Automation Lab
Borel Field
IIT Bombay
Here we think S = Rn
1/5/2022 Fundamentals 11
Automation Lab
Borel Field
IIT Bombay
Consider the very special semi-open sets defined on the real line
A1 w : w a1, a1
A2 w : w a2 , a2
• The sigma algebra generated from such sets are so commonly used
that they have their own name called Borel Field.
A1 :
A2 :
A1 A2 :
1
Let Bk {w : b w b}, k I then k 1 Bk {b}
k
• It can be shown that the Borel field consists of all semi-open, open
and closed subsets of the real line including singleton sets.
Automation Lab
IIT Bombay
Example 2: Error in temperature measurement
1/5/2022 Fundamentals 13
Automation Lab
IIT Bombay
Example 2: Measurement Errors
1/5/2022 Fundamentals 14
Automation Lab
IIT Bombay
Example 2: Meas. Errors (Cont.)
Axioms of Probability
IIT Bombay
1/5/2022 Fundamentals 16
Automation Lab
IIT Bombay
1/5/2022 Fundamentals 17
Automation Lab
Note
IIT Bombay
(Papoulous and Pillai, 2002)
Probability Space
Probability space : Defined by the triplet ( S , F, P)
of the sample space, the underlying - field, and
the probability function, all defined axiomatically.
Define
P2 (1,3,5) p
P2 (2,4,6) 1 p, P2 ( ) 0 and P2 ( S1 ) 1, with 1 p 0
Triplet ( S1,F2 ,P2 ) forms a probability space
1/5/2022 Fundamentals 20
Automation Lab
IIT Bombay
1/5/2022 Fundamentals 21
Automation Lab
IIT Bombay
Points to Note
1/5/2022 Fundamentals 22
Automation Lab
IIT Bombay
Computing Probabilities
Consider a probability sapce ( S , B, P ).
Given an event A B, in some cases, it is easier to find P( A ) than P( A).
Then, using the fact A A S and ( A, A ) are disjoint, we can write
P( S ) P( A) P( A ) 1 P( A) 1 P( A )
Odds of event A P( A) / P ( A ) P( A) / 1 P( A)
Non-Disjoint Events
Let A and B be two events in B that are NOT disjoint.
We can write
A A B A B
which are disjoint.
P ( A) P A B P A B ........ ( I )
1/5/2022 Fundamentals 23
Automation Lab
IIT Bombay
Computing Probabilities
Non-Disjoint Events (contd.)
1/5/2022 Fundamentals 24
Automation Lab
Example
IIT Bombay
(Ross, 2009)
1/5/2022 Fundamentals 25
Automation Lab
1/5/2022 Fundamentals 29
Automation Lab
IIT Bombay
Random Variable
1/5/2022 Fundamentals 30
Automation Lab
IIT Bombay
Random Variable
Problem 2: We often have to consider multiple random
phenomena simultaneously. Even if the sample spaces
associated with these random phenomenon consists of
numbers, their ranges can be widely different.
Example: Temperature, pressure and feed
concentration fluctuations in a chemical reactor.
To understand the reactor behavior, these
multiple random phenomenon have to be
considered simultaneously.
Random Variable
1/5/2022 Fundamentals 32
Automation Lab
Random Variable
IIT Bombay
Advantage
IIT Bombay
1/5/2022 Fundamentals 36
Automation Lab
Advantage
IIT Bombay
1/5/2022 Fundamentals 37
Automation Lab
Pictorial Representation
IIT Bombay
1/5/2022 Fundamentals 38
Automation Lab
IIT Bombay
1/5/2022 Fundamentals 39
Automation Lab
IIT Bombay
Property 4
The function Fx ( x ) is continuous from the right, i.e.,
Fx ( x ) Fx ( x ).
Property 5
P( x x ) Fx ( x ) Fx ( x ).
Property 6
P( x1 x x2 ) Fx ( x2 ) Fx ( x1 )
1/5/2022 Fundamentals 40
Automation Lab
Points to Note
IIT Bombay
1/5/2022 Fundamentals 42
Automation Lab
IIT Bombay
Probability of Other Events
Event {x 6} in B R Event in B4
because there is no outcome x(Ci ) 6
1/5/2022 Fundamentals 46
Automation Lab
IIT Bombay
Note
(1) An event in B4 can correspond to
Multiple events in B R
(2) Event in B R is NOT the same as event in B4
1/5/2022 Fundamentals 47
Automation Lab
Probability Measured
IIT Bombay
A Probability Measure on B 4
P(Ci ) 1 / 6 for i 1,2,...,6
An equivalent probability measure on B R
No. of pts. 10,20,..., 60
Fx ( x ) P((-,x]) = (1/ 6) ×
which (-, x] contains
Note :
Unlike P (Ci ),
Fx ( x ) is a continuous function
defined over entire R
(with discontinuities
only at 6 points)
1/5/2022 Fundamentals 48
Automation Lab
IIT Bombay
Example 1: Rolling a Die (contd.)
In particular
1
Fx (38) P {- x 38} in B R PC1, C2, C3 in B 4 3
6
1
Fx (31.9) P{- x 31.9} in B R PC1, C2, C3 in B 4 3
6
1
Fx (29.5) P{- x 29.5} in B R PC1, C2 in B 4 2
6
Fx (6) P {- x 6} in B R P{ } in B 4 0
Fx (82) P {- x 82} in B R P{S4 } in B 4 1
1/5/2022 Fundamentals 49
Automation Lab
1/5/2022 Fundamentals 51
Automation Lab
x
p ( a )d f
i i x ( ai )
i i , ai x
Probability Function on B
t2 t1
P(t1 t2 ) for any 0 t1 t2 T
T
1/5/2022 Fundamentals 56
Automation Lab
Define a continuous RV as
x() when [0,T ]
New sample space ( S R ) R
Event [0, t ] B Event x ( , t ] B R
(for 0 t T )
0 if - t 0
Define Fx (t ) P( x t ) (t/T ) if 0 t T
1 if T t
Now consider t1 , t2 [0, T ] such that t1 t2
Suppose we want to find out the probability
of occurrence of a call in interval (t1 x t2 )
Since (x t2 ) ( x t1 ) (t1 x t2 )
and events ( x t1 ) and (t1 x t2 ) are disjoint,
from the axioms of probability, it follows that
P ( x t2 ) P( x t1 ) P (t1 x t2 )
1/5/2022 Fundamentals 58
Automation Lab
P(t1 x t2 ) P(x t2 ) P( x t1 )
t2 t1
Thus, P(t1 x t2 ) Fx (t2 ) Fx (t1 ) ,
T
Note
Now, suppose t1 t and t2 t
where 0 is a small number, then
2
P (t x t ) 0 as 0
T
1/5/2022 Fundamentals 59
Automation Lab
1/5/2022 Fundamentals 60
Automation Lab
Typical f x (x )
Note
IIT Bombay
(Dekking et al., 2005)
Note
IIT Bombay
f
a
X ( x )dx 2 f X ( x )
Important to note :
In general, f x (a ), can have a very large value
and is NOT the value of probability of x at a.
1/5/2022 Fundamentals 63
Automation Lab
Uniform Distribution
IIT Bombay
0 if - x a
The distribution is not
Fx ( x ) ( x/ (b a )) if a x b differentiable at a and at b.
1 if b x
Differentiating Fx ( x ), we get
0 xa
f x ( x ) 1 /(b a ) a xb
0 xb
Uniform Density Function
1/5/2022 Fundamentals 64
Automation Lab
1/5/2022 Fundamentals 66
Automation Lab
1/5/2022 Fundamentals 67
Automation Lab
By letting n
lim qt 1 n qt
P(x t ) 1- exp
n V n V
It follows that the distribution function of x equals
0 for t 0
Fx (t ) P (x t ) qt
1 exp for t 0
V
and associated probability density function is
0 for t 0
q
f x (t ) qt
exp for t 0
V V
This is an example of the exponential distribution.
1/5/2022 Fundamentals 69
Automation Lab
Exponential Distribution
IIT Bombay
fx (t ) Fx (t )
t t
Probability Density Function Probability Distribution Function
1/5/2022 Fundamentals 70
Automation Lab
Exponential Distribution
IIT Bombay
Points to Note
IIT Bombay
Points to Note
IIT Bombay
Histogram
IIT Bombay
1/5/2022 Fundamentals 74
Automation Lab
Summary
IIT Bombay
1/5/2022 Fundamentals 75
Automation Lab
Summary
IIT Bombay
Moreover
a generic probability function, P (.), is defined
for all events of the form A ( , x ]
Fx ( x ) P(( , x ]) where 0 1
for all problems.
1/5/2022 Fundamentals 76
Automation Lab
IIT Bombay
Appendix
Conditional Probabilities
and Independence
(Dekking et al., 2005)
1/5/2022 Fundamentals 77
Automation Lab
Conditional Probability
IIT Bombay
Note
The conditional probability function
satisfies all the axioms of probability, and,
thus, is a valid probability function in itself.
Conditional Probability
IIT Bombay
Conditional Probability
Knowing that an event B has occurred sometimes
forces us to reassess the probability of event A. The
new probability is the conditional probability.
Independence
If the conditional probability of A equals what the
probability of A was before, then events A and B
are called independent.
1/5/2022 Fundamentals 79
Automation Lab
Conditional Probability
IIT Bombay
Note
P( A B )
P( A | B )
P( B)
P( A B ) P( A B )
P( A | B) P( A | B)
P( B ) P( B )
P ( A B ) ( A B ) P( B )
1
P( B ) P( B )
1/5/2022 Fundamentals 80
Automation Lab
Note : S B B
P( B ) 0.02 P( B ) 0.98
Problem is to find P(T )
Since T (T B ) (T B )
P(T ) P(T B ) P (T B )
P(T ) P (T | B ) P( B ) P(T | B ) P( B )
0.7 0.02 0.1 0.98 0.112
1/5/2022 Fundamentals 82
Automation Lab
1/5/2022 Fundamentals 84
Automation Lab
Interpretation
If we know nothing about a cow, we would say
that there is a 2% chance it is infected.
However, if we know it tested positive, then we
can say there is a 12.5% chance the cow is
infected.
1/5/2022 Fundamentals 86
Automation Lab
Bayes’ Rule
IIT Bombay
1/5/2022 Fundamentals 87
Automation Lab
Independence
IIT Bombay
Result 2 : A independent of B P( A B ) P( A) P( B )
By application of the multiplication rule,
if A is independent of B
P( A B ) P( A|B ) P( B ) P( A) P( B )
1/5/2022 Fundamentals 88
Automation Lab
Independence
IIT Bombay
Note :
If A and B are independent
and B and C are independent, then
it does NOT imply that A and C are independent
1/5/2022 Fundamentals 90
Automation Lab
References
IIT Bombay
1/5/2022 Fundamentals 91