Eng Lecture 30 - Continuous Random Variables
Eng Lecture 30 - Continuous Random Variables
Lecture 30
Continuous random variables
1/10
Previously...
Improper integration :
Z ∞ Z b
e.g. f (x) dx = lim f (x) dx
a b→∞ a
2/10
5.1 Introduction to continuous random variables
3/10
Probability density function
Z b y
• P{a ≤ X ≤ b} = f (x) dx
a
Z ∞
• P{−∞ < X < ∞} = f (x) dx = 1 y = f (x)
−∞
a b x
Z a
Note that P{X = a} = f (x) dx = 0
a
5/10
Example 1a
Z ∞
f (x) dx = 1
−∞
Z 2
∴ C (4x − 2x 2 ) dx = 1
0
3
∴ C=
8
6/10
Example 1a
Z ∞
P{X > 1} = f (x) dx
1
Z 2
= 3
8 (4x − 2x 2 ) dx
1
= 0.5
7/10
Example 1b
The amount of time (in hours) that a computer functions is modelled by a continuous random
variable X , with probability density function
(
λe −x/100 , x ≥ 0
f (x) =
0, x <0
(a) Find the value of λ that makes f (x) a valid density function.
Z ∞
f (x) dx = 1
−∞
Z ∞
∴ λe −x/100 dx = 1
0
1
∴ λ=
100
8/10
Example 1b
The amount of time (in hours) that a computer functions is modelled by a continuous random
variable X , with probability density function
(
1 −x/100
100 e , x ≥0
f (x) =
0, x <0
(b) Probability that the computer will function between 50 and 150 hours?
Z 150
P{50 ≤ X ≤ 150} = f (x) dx
50
Z 150
1 −x/100
= 100 e dx
50
= 0.3834
9/10
Example 1b
The amount of time (in hours) that a computer functions is modelled by a continuous random
variable X , with probability density function
(
1 −x/100
100 e , x ≥0
f (x) =
0, x <0
(c) Probability that the computer will function for less than 100 hours?
Z 100
P{X < 100} = f (x) dx
−∞
Z 100
1 −x/100
= 100 e dx
0
= 0.6321
10/10