Beruflich Dokumente
Kultur Dokumente
Fundamentals of Probability
and Random Variables
Mani Bhushan and Sachin Patawardhan
Department of Chemical Engineering
I.I.T. Bombay
1/7/2017 Fundamentals 1
Automation Lab
Outline
IIT Bombay
Sample Space
Probability Space
Computing Probabilities
1/7/2017 Fundamentals 2
1
07-01-2017
Automation Lab
Note
IIT Bombay
1/7/2017 Fundamentals 3
Automation Lab
Probability
IIT Bombay
(Maybeck, 1979)
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/7/2017 Fundamentals 4
2
07-01-2017
Automation Lab
Sample Space
IIT Bombay
(Maybeck, 1979)
Automation Lab
Sample Space
IIT Bombay
company
1/7/2017 Fundamentals 6
3
07-01-2017
Automation Lab
Field
IIT Bombay
(Papoulous and Pillai, 2002)
Field ( 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/7/2017 Fundamentals 7
Automation Lab
IIT Bombay
4
07-01-2017
Automation Lab
IIT Bombay
Automation Lab
IIT Bombay
5
07-01-2017
Automation Lab
IIT Bombay
Example 2: Measurement Errors
1/7/2017 Fundamentals 11
Automation Lab
IIT Bombay
Example 2: Meas. Errors (Cont.)
6
07-01-2017
Automation Lab
IIT Bombay
Axioms of Probability
The probabilit y function (or probabilit y measure) P(.)
is defined to be a real scalar - valued function
defined on Borel field B that assigns a value, P(Ai ),
to each Ai which is a member of B (Ai B) such that :
1. P(Ai ) 0 for all Ai B
2. P(S) 1
3. If A1 , A2 ,...AN are disjoint or mutually exclusive
N N
elements of B then P( Ai ) P(Ai )
i1 i1
Automation Lab
IIT Bombay
1/7/2017 Fundamentals 14
7
07-01-2017
Automation Lab
Automation Lab
IIT Bombay
Probability Space
Probability space : Defined by the triplet ( S, B,P)
of the sample space, the underlying Borel field, and
the probabilit y function, all defined axiomatica lly.
8
07-01-2017
Automation Lab
IIT Bombay
Define
P2 (1,3,5) p
P2 (2, 4,6) 1 p, P2 ( ) 0 and P2 ( S1 ) 1, with 1 p 0
Triplet ( S1,B 2 ,P2 ) forms a probability space
1/7/2017 Fundamentals 17
Automation Lab
IIT Bombay
1/7/2017 Fundamentals 18
9
07-01-2017
Automation Lab
IIT Bombay
Points to Note
1/7/2017 Fundamentals 19
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/7/2017 Fundamentals 20
10
07-01-2017
Automation Lab
IIT Bombay
Computing Probabilities
Non-Disjoint Events (contd.)
1/7/2017 Fundamentals 21
Automation Lab
1/7/2017 Fundamentals 22
11
07-01-2017
Automation Lab
Automation Lab
IIT Bombay
Example: Repeated Coin Toss
12
07-01-2017
Automation Lab
IIT Bombay
Example: Infinite Outcomes
Experiment with infinitely many outcomes
Toss a coin repeatedly until the first head turns up
Outcome of the experiment
No. of tosses it takes to have the first success
(i.e. occurrence of H )
S 1,2,3,......
For i 3, we have
P (3) P (T , T , H ) p (1 p )2
..........
For i n, we have
P ( n ) P (T , T ,...., T , H ) p (1 p ) n 1
1/7/2017 Fundamentals 25
Automation Lab
1/7/2017 Fundamentals 26
13
07-01-2017
Automation Lab
IIT Bombay
Random Variable
1/7/2017 Fundamentals 27
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.
14
07-01-2017
Automation Lab
IIT Bombay
Random Variable
1/7/2017 Fundamentals 29
Automation Lab
1/7/2017 Fundamentals 30
15
07-01-2017
Automation Lab
Random Variable
IIT Bombay
Automation Lab
Advantage
IIT Bombay
16
07-01-2017
Automation Lab
IIT Bombay
The Generic Borel Field
Let x1 and x2 be points on R such that x1 x2 .
Then, the following sets belong to the Borel Field, B R
A1 ( , x1]
A2 ( , x2 ]
A1 ( x1 , )
A1 A2 ( x1 , x2 ]
Taking complement s, unions, and intersections of the sets Ai
leads to finite intervals (open, closed, half open) and point values.
The Borel field, BR , is composed of virtually all sub - intervals
of R of interest in describing a probability problem on R.
1/7/2017 Fundamentals 33
Automation Lab
Advantage
IIT Bombay
1/7/2017 Fundamentals 34
17
07-01-2017
Automation Lab
Pictorial Representation
IIT Bombay
1/7/2017 Fundamentals 35
Automation Lab
IIT Bombay
Property 2
Fx ( x ) is a non - decreasing function of x,
i.e., if x1 x2 then Fx ( x1 ) Fx ( x2 ).
1/7/2017 Fundamentals 36
18
07-01-2017
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/7/2017 Fundamentals 37
Automation Lab
Points to Note
IIT Bombay
19
07-01-2017
Automation Lab
1/7/2017 Fundamentals 39
Automation Lab
IIT Bombay
Probability of Other Events
20
07-01-2017
Automation Lab
IIT Bombay
Automation Lab
IIT Bombay
21
07-01-2017
Automation Lab
IIT Bombay
Event {x 6} in B R Event in B 4
because there is no outcome x(Ci ) 6
1/7/2017 Fundamentals 43
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/7/2017 Fundamentals 44
22
07-01-2017
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/7/2017 Fundamentals 45
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/7/2017 Fundamentals 46
23
07-01-2017
Automation Lab
Automation Lab
1/7/2017 Fundamentals 48
24
07-01-2017
Automation Lab
Automation Lab
x
pi ( ai )d f x ( ai )
i i , ai x
1/7/2017 Fundamentals 50
25
07-01-2017
Automation Lab
1/7/2017 Fundamentals 51
Automation Lab
26
07-01-2017
Automation Lab
Probability Function on B
t2 t1
P (t1 t2 ) for any 0 t1 t2 T
T
1/7/2017 Fundamentals 53
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 )
27
07-01-2017
Automation Lab
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/7/2017 Fundamentals 55
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/7/2017 Fundamentals 56
28
07-01-2017
Automation Lab
1/7/2017 Fundamentals 57
Automation Lab
Typical f x (x )
1/7/2017 Fundamentals 58
29
07-01-2017
Automation Lab
As 0, it follows that P ( a ) 0
Automation Lab
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/7/2017 Fundamentals 60
30
07-01-2017
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/7/2017 Fundamentals 61
Automation Lab
31
07-01-2017
Automation Lab
1/7/2017 Fundamentals 63
Automation Lab
1/7/2017 Fundamentals 64
32
07-01-2017
Automation Lab
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
f x (t ) q qt
exp for t 0
V V
This is an example of the exponentia l distribution.
1/7/2017 Fundamentals 66
33
07-01-2017
Automation Lab
Exponential Distribution
IIT Bombay
fx (t ) Fx (t )
t t
Probability Density Function Probability Distribution Function
1/7/2017 Fundamentals 67
Automation Lab
Exponential Distribution
IIT Bombay
34
07-01-2017
Automation Lab
Points to Note
IIT Bombay
Automation Lab
Points to Note
IIT Bombay
35
07-01-2017
Automation Lab
Histogram
IIT Bombay
1/7/2017 Fundamentals 71
Automation Lab
Summary
IIT Bombay
1/7/2017 Fundamentals 72
36
07-01-2017
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/7/2017 Fundamentals 73
Automation Lab
IIT Bombay
Appendix
Conditional Probabilities
and Independence
(Dekking et al., 2005)
1/7/2017 Fundamentals 74
37
07-01-2017
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.
Automation Lab
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/7/2017 Fundamentals 76
38
07-01-2017
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/7/2017 Fundamentals 77
Automation Lab
39
07-01-2017
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/7/2017 Fundamentals 79
Automation Lab
40
07-01-2017
Automation Lab
1/7/2017 Fundamentals 81
Automation Lab
41
07-01-2017
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/7/2017 Fundamentals 83
Automation Lab
Bayes’ Rule
IIT Bombay
1/7/2017 Fundamentals 84
42
07-01-2017
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/7/2017 Fundamentals 85
Automation Lab
Independence
IIT Bombay
43
07-01-2017
Automation Lab
IIT Bombay
Independence Multiple Events
Note :
If A and B are independen t
and B and C are independen t, then
it does NOT imply that A and C are independen t
1/7/2017 Fundamentals 87
Automation Lab
References
IIT Bombay
1/7/2017 Fundamentals 88
44