CHAPTER 2. Random Variables and Probability Distributions
CHAPTER 2. Random Variables and Probability Distributions
CHAPTER 2. Random Variables and Probability Distributions
-3 -2 -1 0 1 2 3
There are two types of random variables,
discrete and continuous.
b) P ( X b) p ( x )
x b
) 0 F ( ) 1
x) is not decreasing in x
E.g
Red\Green 1 2 3 4 5 6
1 2 3 4 5 6 7
2 3 4 5 6 7 8
3 4 5 6 7 8 9
4 5 6 7 8 9 10
5 6 7 8 9 10 11
6 7 8 9 10 11 12
Rolling 2 Dice – Probability Mass Function
X p(x)
2 1/36
3 2/36
# of ways 2 die can sum to x
4 3/36 p( x)
5 4/36 # of ways 2 die can result in
6 5/36
7 6/36
8 5/36
9 4/36
10 3/36
11 2/36
12 1/36
Rolling 2 Dice – Probability Mass Function
0.18
0.16
0.14
0.12
0.1
p(y)
0.08
0.06
0.04
0.02
0
2 3 4 5 6 7 8 9 10 11 12
y
Expected Value
E( X ) x p(x )
all x
i i
Example 1: expected value
E(X) = ?
x 10 11 12 13 14
P(x) .4 .2 .2 .1 .1
n
E ( X ) xi p ( xi ) ?
i 1
V ( X ) E ( X ) E ( X )
2 2 2
???
Muy= E(X)
V(X)= E(X-E(X))2>=0
2
Example 3
f(x) 0, x f(x)
f ( x) dx 1
a b
b
p (a X b) f ( x) dx
a
f(x)
a
F (a)
f ( x) dx f(x)
O a x
Continuous Probability Distributions
E( X ) x. f ( x)dx
Variance/standard deviation
V ( X ) E[( x ) ] ( x )
2 2 2
f ( x)dx
V (X ) E X
2 2
2