Академический Документы
Профессиональный Документы
Культура Документы
Mathematical Expectation
-Dr. Umesh R A
Random Variable
Definition: A random variable is a variable
whose possible values are numerical outcomes
of a random phenomenon. usually denoted by
‘X’, Each value have its own definite probability.
1 2 3 4 5 6
x
Probability mass function (pmf)
X P(x)
1 P(x=1) = 1/6
2 P(x=2) = 1/6
3 P(x=3) = 1/6
4 P(x=4) = 1/6
5 P(x=5) = 1/6
6 P(x=6) = 1/6
Total 1
Probability Density Function
Definition:
Let X be a continuous random variable, Then the
function
PX(a<x<b) = a∫b fx (x)dx
is called the probability density function (pdf) of X.
p(x)=e-x
1.9976 x
Example:
For example, the probability of x falling within 1 to 2
shown in below diagram;
1
p(x)=e-x
x
1 2
2
2
x x 2 1
P(1 x 2)
e e
1
e e . 135 . 368 . 23
1
Distribution Function
Definition:
•The distribution function F(x), also called the
cumulative distribution function (CDF), describes the
probability that a variate x takes value less than or
equal to x.
•The distribution function is,
F(x) = P( X ≤ x ) ------(Discrete)
F(x) = (-inf)∫x fx (x) dx --(Continuous)
Cumulative Distribution Function
(CDF)
Example: Throwing a die experiment
1.0 P(x)
5/6
2/3
1/2
1/3
1/6
1 2 3 4 5 6
x
Cumulative distribution function
X P(x)
1 P(x≤1) = 1/6
2 P(x≤2) = 2/6
3 P(x≤3) = 3/6
4 P(x≤4) = 4/6
5 P(x≤5) = 5/6
6 P(x≤6) = 6/6
Practice Problem:
The number of patients seen in the ER in any given
hour is a random variable represented by x. The
probability distribution for x is:
x 10 11 12 13 14
P(x) .4 .2 .2 .1 .1
a.1/6
b.1/3
c.1/2
d.5/6
e.1.0
Review Question 1
If you toss a die, what’s the probability that
you roll a 3 or less?
a.1/6
b.1/3
c.1/2
d.5/6
e.1.0
Review Question 2
Two dice are rolled and the sum of the face
values is six. What is the probability that at
least one of the dice came up a 3?
a.1/5
b.2/3
c.1/2
d.5/6
e.1.0
Review Question 2
Two dice are rolled and the sum of the face
values is six. What is the probability that at
least one of the dice came up a 3?
E(X ) x i p(x i
)
all x
E(X) = µ
Example: expected value
x 10 11 12 13 14
P(x) .4 .2 .2 .1 .1
x i p ( x ) 10 (. 4 ) 11 (. 2 ) 12 (. 2 ) 13 (. 1 ) 14 (. 1 ) 11 . 3
i 1
Example: The Lottery
•If you play the lottery once, what are your expected
winnings or losses?
[Cont…]
•Calculate the probability of winning in 1 try:
“49 choose 6”
1 1 1
7.2 x 10
-8
Out of 49 numbers, this is
49
49 ! 13 ,983 ,816
the number of distinct
6 43 ! 6 !
combinations of 6.
Expected Value
Var ( x ) E [( x ) ] (xi )
2 2 2
p(x i
)
all x
Discrete case:
(xi )
2
Var ( X ) p(x i
)
Continuous case: all x
(xi )
2
Var ( X ) p(x i
)dx
all x
Variance
(xi )
2 2
p(x i
)
all x
( x i ) p(x
2 2
i
)
all x
2 2
( 1 200 ,000 ) (. 5 ) ( 400 ,000 200 ,000 ) (. 5 )
2
200 ,000
2
200 ,000 200 ,000
a. .50, .50
b. .50, .25
c. .25, .50
d. .25, .25
Review Question 3
The expected value and variance of a coin toss
(H=1, T=0) are?
a. .50, .50
b. .50, .25
c. .25, .50
d. .25, .25