Documenti di Didattica
Documenti di Professioni
Documenti di Cultura
Random Variable
Week 2
L1- Discrete random variable
L2- Continuous random variable
Jan 2012
Random Variable:
A numerical variable whose measured value can change from is one outcome of
random experiment.
Jan 2012
Jan 2012
Jan 2012
X=x
50
200 350
0.2
0.5
tabular form
P( x )
0.5
0.3
0.2
50
200
cost
350
line graph
Jan 2012
F ( x) = P( X x)
f (x )
xi x
50
200 350
0.2
0.5
F( x )
1.0
Graph of F(x)
0.5
0.3
50
200
350
Cost ( RM )
0
0.3
F(x) = P(X x)
0.5
1
Jan 2012
for x 50
for 50 x 200
for 200 x 350
for x 350
10
E ( X ) xi f ( xi )
i 1
Variance of X is given as
n
2 V ( X ) E ( X ) 2 xi2 f ( xi ) 2
i 1
Standard deviation of X is .
Jan 2012
11
Example 2:
Given the probability distribution:
0
x
0.1 0.2
2
k
Find,
12
xi
0.9 k 1 k 0.1
The expected value of X is:
n
E ( X ) xi P( X xi )
i 1
Jan 2012
13
V ( X ) E ( X ) xi2 P( X xi ) 2
2
i 1
P( X 1) 1 P( X 0) 1 0.1 0.9
Jan 2012
14
The CDF of X :
F ( x) P( X x) 0
For 0 x 1, F ( x) P( X 0) P( x 0) 0.1
For x < 0,
For 1 x 2, F ( x) P( X 1) P( x 0) P( x 1)
0.1 0.2 0.3
For 2 x 3, F ( x) P( X 2) P( x 0) P( x 1) P( x 2)
0.1 0.2 0.1 0.4
For 3 x 4,
F ( x) P( X 3) P( x 0) P( x 1) P( x 2) P( x 3)
0.1 0.2 0.1 0.2 0.6
For 4 x 5,
F ( x) P( X 4) P( x 0) P( x 1) P( x 2)
P( x 3) P( x 4)
0.1 0.2 0.1 0.2 0.3 0.9
Jan 2012
15
For x 5,
F ( x) P( X 5) P( x 0) P( x 1) P( x 2)
P( x 3) P( x 4) P( x 5)
0.1 0.2 0.1 0.2 0.3 0.1) 1
So the CDF of X is
,x 0
,0 x 1
,1 x 2
,2 x 3
,3 x 4
,4 x 5
,x 5
0
0.1
0.3
F ( x ) 0.4
0.6
0.9
1
Jan 2012
16
Exercise 1:
0.05
0.15
0.20
0.35
0.15
0.1
17