Professional Documents
Culture Documents
Continuous Random Variables: David Gerard Most Slides Borrowed From Linda Collins
Continuous Random Variables: David Gerard Most Slides Borrowed From Linda Collins
David Gerard
Most slides borrowed from Linda Collins
1
Learning Objectives
2
Continuous Random Variables i
• x=0.3ms
x=0ms
• x=9.8ms
•
x=7.2ms
3
Continuous Random Variables ii
4
Continuous Random Variables iii
X is a random variable.
• x=0.3ms
x=0ms
• x=9.8ms
•
x=7.2ms
6
Continuous Random Variables v
Since all 2ms intervals within [0,10) are equally likely, then
7
Continuous Random Variables iv
8
Continuous Random Variables vii
X X
P(Y = y ) = f (y ) = f (0) + f (2) + · · · + f (18) + f (20)
all y all y
0 2 4 6 8 10 12 14 16 18 20
w0
10
cdf of Discrete Random Variables ii
0.12
0.20
Probability Density
f(w) = Probability
0.08
0.10
0.04
0.00
0.00
0 2 4 6 8 10 14 18 0 2 4 6 8 10 14 18
w0 w0
0.12
0.12
0.08
0.08
0.04
0.04
0.00
0.00
0 2 4 6 8 10 14 18 0 5 10 15 20
x0
z0
So, you can get back and forth between the pdf f (x) and cdf F (x).
Z x
cdf = F (x) = P(X ≤ x) = f (u)du
−∞
13
Uniform Distribution i
0 10
x = wait time
H
f(x)
0
0 10
x = wait time
Total area under the curve above all possible x values must be = 1.
The width of the “box” is 10, with height H, and area 1 = 10(H).
Z ∞ Z ∞
1= f (x) dx = H dx
−∞ −∞
Z 10
=0 + H dx + 0
0
x=10
= Hx
x=0
= 10 × H − 0 × H = 10 × H
Therefore, 10 × H = 1,
17
Uniform Distribution v
OK. We had some questions at the start about the wait time X .
18
Uniform Distribution vi
0.10
f(x)
0
0 2 10
x = wait time
Z 2 Z 2
P(X ≤ 2) = F (2) = f (x)dx = (0.10)dx = 0.10(2 − 0) = 0.20
−∞ 0
19
Uniform Distribution vi
What is P(5 ≤ X ≤ 7) = ?
20
Continuous vs Discrete RV’s
21
What is the average wait time?
∞ 10
10
x 2 102
Z Z
x 100
E (X ) = x f (x) dx = dx = = = =5
−∞ 0 10 20 0 20 20 22
General Formula for Expectation of Uniform RV
1
f (x) = for a ≤ x ≤ b
b−a
a+b
µ = E (X ) = (midpoint of the range of X )
2
a+b 0 + 10 10
µ = E (X ) = = = =5
2 2 2
23
Variance for Continuous RV’s
X X
Var (X ) = (x − µ)2 P(X = x) = (x − µ)2 f (x)
all x all x
(b − a)2
σ 2 = E [(X − µ)2 ] =
12
√
Standard deviation: σ = SD(X ) = 8.333 = 2.887
25