Professional Documents
Culture Documents
Statistics 2
for Edexcel
S2.2 Continuous
random variables
This icon indicates the slide contains activities created in Flash. These activities are not editable.
For more detailed instructions, see the Getting Started presentation.
1 of 61
Contents
2 of 61
frequency
class width
frequency density
total frequency
Boardworks Ltd 2006
5 of 61
Contents
6 of 61
f ( x)dx 1
a
8 of 61
f ( x) 0
for a x b
3.
P ( x1 X x2 ) f ( x)dx
x1
1.
1
24 x 3 x 2 36
f ( x) 32
2.
1
3
f ( x) x
0
3.
x 1
x 1
x 2 4 x 3
f ( x)
11 of 61
2 x 6
otherwise
0 x 4
otherwise
Boardworks Ltd 2006
1
24 x 3 x 2 36
1. f ( x) 32
2 x 6
otherwise
f ( x)dx 1
all x
1
16
2
12 x 2 x 3 36 x
f ( x ) dx
(24 x 3 x 36) dx
32
all x
32 2
6
2
32
So f(x) could represent a probability density function.
12 of 61
2. f ( x) x3
0
x 1
x 1
f ( x)dx 1
all x
1
1 2 0 1 1
3
x
But: 3 dx x dx
2
1 x
1
2
2 1
13 of 61
x 2 4 x 3 0 x 4
f ( x)
0
otherwise
15 of 61
Question 1
Question 1: A continuous random variable X is defined by the
probability density function
k (5 x) 0 x 5
f ( x)
0
otherwise
16 of 61
Question 1
a)
k (5 x) 0 x 5
f ( x)
0
otherwise
f ( x)dx 1
all x
5
1
k (5 x)dx k 5 x x 2
2
2
Therefore, 12.5k = 1 k
25
17 of 61
Question 1
c) P(1 X 3)
2 3
2
2
x
(5 x)dx
5x
25
25
2
2
(15 4.5) (5 0.5)
25
= 0.48
18 of 61
Examination-style question 1
Examination-style question 1: A continuous random
variable X is defined by the probability density function
f ( x)
k ( x 1)
1 x 3
k (5 x)( x 2) 3 x 5
0
otherwise
19 of 61
Examination-style question 1
a)
f ( x)
20 of 61
k ( x 1)
1 x 3
k (5 x)( x 2) 3 x 5
0
otherwise
Examination-style question 1
b) To find k, we can use the property that
all x
So,
k ( x 1)dx
1 2
x x
2
3
5
3
1
f ( x)dx 1
k 7 x 10 x 2 dx 1
1 3
7 2
k
x 10 x x
3
2
1
3
1 1
1 1
k 1 k 4 7 1
6 2
2 2
1
5
k 1
Therefore
3
21 of 61
i.e. k
3
16
Boardworks Ltd 2006
Examination-style question 1
5
c) P(X > 2) =
f ( x)dx
2
( x 1)dx
2 16
3 1 2
x x
16 2
3
2
3
5
3
7 x 10 x 2 dx
16
3 7 2
1 3
x 10 x x
16
3
2
5
3
3 1
3
1 1
1 0 4 7
16 2
16
6 2
29
32
22 of 61
Examination-style question 2
Examination-style question 2: The life, T hours, of an
electrical component is modelled by the probability density
function
ke 0.001t
f (t )
0
t 1000
otherwise
23 of 61
Examination-style question 2
Solution:
a)
24 of 61
Examination-style question 2
ke 0.001t
f (t )
0
t 1000
otherwise
f (t )dt 1
So:
all t
ke0.001t dt 1
1000
k 1000e
0.001t
1000
k 0 (1000e 1 ) 1
Therefore
25 of 61
1
1000e1
e
0.00272
1000
Boardworks Ltd 2006
Examination-style question 2
ke 0.001t
f (t )
0
t 1000
otherwise
2000
c) P(1500 T 2000) =
2000
f (t )dt
1500
1500
k 1000e
e 0.001t dt
0.001t 2000
1500
e
1000e 2 1000e 1.5
1000
= 0.239 (3 s.f.)
26 of 61
Mode
Contents
27 of 61
Mode
Suppose that a random variable X is defined by the
probability density function f(x) for a x b.
The mode of X is the value of x that produces the largest
value for f(x) in the interval a x b.
A sketch of the probability density function can be very
helpful when determining the mode.
Differentiation
could be used
to find the
mode here.
28 of 61
Mode
Example: A random variable X has p.d.f. f(x), where
x 2 (2 x ) 0 x 2
f ( x)
0
otherwise
29 of 61
Mode
The mode can be found using differentiation:
f ( x) 2 x 2 x3 f ( x) 4 x 3 x 2
To find a turning point, we solve f ( x) 0 4 x 3 x 2 0
Factorize:
x(4 3 x) 0
x 0 or x 4 3
30 of 61
Contents
31 of 61
1 3
x 1
f ( x) 6
0 x2
otherwise
32 of 61
x xc
24
6
33 of 61
So the c.d.f. is
F( x)
0
x0
1 x4 1 x 0 x 2
24
6
1
x2
1 1 5
P(X < 1) = F(1) =
24 6 24
34 of 61
Contents
35 of 61
36 of 61
37 of 61
1
24
F( x)
0
x2 x 6
x2
2 x5
x5
38 of 61
So the p.d.f. is
f ( x)
1
12
1
x 24
0
2 x5
otherwise
Sketch of f(x):
39 of 61
1
24
m 2 m 6 0 .5
m2 m 6 12
m2 m 18 0
1 1 4 1 (18)
m
2
m 4.77 or m 3.77
1 42 4 6 1 32 3 6
24
24
7 1
12
1
3
41 of 61
3
4
f ( x)
x 2 32 x 34 1 x 2
33x
2 8
2 x4
otherwise
42 of 61
1
4
34 34 c 0 c 41
Therefore F( x) 41 x 3 34 x 2 34 x 41
3 x2 c
For f ( x) 32 38 x, F( x) 32 x 16
3 x2 2
Therefore F( x) 32 x 16
43 of 61
So
F( x)
0
1 x3 3 x2 3 x 1
4
4
4
4
3
3 2
x
2
16 x 2
1
x 1
1 x 2
2 x4
x4
44 of 61
24 576 4 3 40
6
m = 5.63 or m = 2.37
As 5.63 does not lie in the interval [2, 4],
the median must be 2.37.
45 of 61
Expectation
Contents
46 of 61
Expectation
If X is a continuous random variable defined by the probability
density function f(x) over the domain a x b, then the mean or
expectation of X is given by
b
E[ X ] xf ( x) dx
a
47 of 61
Expectation
Example: A random variable X is defined by the probability
density function
2
x 1
3
f ( x) x
0 otherwise
Calculate the value of E[X] and E[1/X].
2
2
E[ X ] xf ( x)dx x. 3 dx 2 dx
x
x
1
all x
1
2x
1
48 of 61
dx 2 x
(0) (2) 2
Expectation
1
1 2
1
E
f ( x)dx . 3 dx
X
x
x x
all x
1
2x 4 dx
1
2 3
x
3
2
(0 )
3
2
3
2
1
So, E[ X ]
3
49 of 61
Variance
Contents
50 of 61
Variance
If X is a continuous random variable defined by the probability
density function f(x) over the domain a x b, then the
variance of X is given by
Var[ X ] E X 2 E[ X ]
or
Var[ X ] x 2 f ( x)dx
Variance
Example: A continuous random variable Y has a
probability density function f(y) where
f ( y)
3
32
y (4 y) 0 y 4
0
otherwise
Variance
4
3
E[Y ] y f ( y )dy y .
y ( 4 y )dy
32
0
0
2
3
3
4
(
4
y
y
)dy
32 0
3 4 1 5
y y
32
5
3 4 1 5
(
4
4
)
32
5
4
4
5
Therefore Var[Y] = 4
53 of 61
4
4
22
5
5
Boardworks Ltd 2006
Variance
Example: A continuous random variable x has a
probability density function f(x) where
3
8
f ( x)
1
4
0 x2
2 x6
otherwise
x
16
Calculate
a) the mean value, .
b) the standard deviation, .
54 of 61
Variance
3
8
f ( x)
1
4
x
16
0
0 x2
2 x6
otherwise
2
6
1
3
x
3 x x 2
x
dx
a) E[ X ] x. dx x. dx dx
4
4
8 16
8 16
0
2
0
2
x
8
x
3x
16 48
4
0
8
2
55 of 61
1 7
2
4 12
1
6
Boardworks Ltd 2006
Variance
3
8
f ( x)
0 x2
2 x6
otherwise
1
4
x
16
0
6
2 2
6
2
3
1
3
x
x
3
x
x
2
2
2
dx
b) E[ X ] x . dx x . dx dx
4
4
8 16
8 16
0
2
0
2
2
x
12
3
x
x
8 64
2
0
3
2
6
3
56 of 61
3 3
4 4
2 1
35
So, Var[ X ] 6 2 1
3 6
36
Therefore =
71
36
= 1.40 (3 s.f.)
Boardworks Ltd 2006
Examination-style question
Examination-style question: The mass, X kg, of luggage
taken on board an aircraft by a passenger can be modelled by
the probability density function
kx 3 (30 x ) 0 x 30
f ( x)
otherwise
57 of 61
Examination-style question
a)
0 x 30
otherwise
f ( x)
kx 3 (30 x)
30
To find k we use
3
kx
(30 x)dx 1
0
30
k (30 x 3 x 4 )dx 1
0
30 4 1 5
k
x x
5
4
30
1
0
k 1215000 0 1
58 of 61
1
1215000
Boardworks Ltd 2006
Examination-style question
b)
kx3 (30 x) 0 x 30
f ( x)
0
otherwise
P(X 20.586) =
kx 3 (30 x)dx
1
30 4 1 5
x x
1215000 4
5
20.586
607525 0
1215000
0.500
59 of 61
Examination-style question
c)
kx 3 (30 x) 0 x 30
f ( x)
0
otherwise
30
E[ X ]
30
1
1 6
6x x
1215000
6
30
1
24300000 0
1215000
20
60 of 61
Examination-style question
c)
kx 3 (30 x) 0 x 30
f ( x)
0
otherwise
E[ X 2 ]
30
30
2
3
5
6
x
.
kx
(
30
x
)
dx
k
(
30
x
x
) dx
1
1 7
5x x
1215000
7
30
428.5714
2
Therefore, Var[ X ] 428.5714 20 28.57 (to 4 s.f.) .
61 of 61