Professional Documents
Culture Documents
X 0 1 2 3 4
P(X=x) 0.125 0.375 0.025 0.375 0.125
Solution:
P( X x) P( X 0) P( X 1) P( X 2) P( X 3) P( X 4)
0
= 0.125+0.375+0.025+0.375+0.125
# so the distribution is not a probability distribution.
= 1.025
1
Example 4.3
Check whether the function given by,
x2
f ( x) for x =1,2,3,4,5
25
can serve as the probability distribution of a discrete random
variable.
Solution:
5 5
x2
1
f ( x)
1 25
= f (1) f (2) f (3) f (4) f (5)
1 2 2 2 3 2 4 2 5 2
=
25 25 25 25 25
3 4 5 6 7
=
25 25 25 25 25
25
# So the given
= function is a probability distribution of a
25 variable.
discrete random
1
The cumulative distribution function F(x), of discrete random
variable X is denoted as:
F ( x) P( X x) f (t ) for x
For a discrete random variable
tx
X, F(x) satisfies the following
properties:
1) 0 F ( x) 1
2) If range
If the x yof
, then F ( x)variable
a random F ( y )X consists of the values
x 1 2 3 4
1) f ( x) 0 for - x
2)
f ( x) dx 1. That is the total area under graph is 1.
Example 4.5
Let X be a continuous random variable with the following
probability density function,
c(2 x 3 5) , 1 x 1
f ( x)
0 , otherwise
1) Evaluate c
2) Find P(0 X 1)
Solution:
1) 1
3
P ( 1 X 1) c (2 x 5)dx
1
1
= c (2 x 3 5) dx
1
4 1
2x
= c( 5 x)
4 1
2(1) 4 2( 1) 4
= c 5(1) 5( 1)
4 4
11 9
= c
2 2
= c 10
=1
1
c
10
1
1
2) P(0 X 1) 2 x3 5 dx
0
10
4 1
1 2x
= ( 5 x)
10 4 0
1 2(1) 4 2(0)4
= 5(1) 5(0)
10 4 4
1 11
=
10 2
11
=
20
= 0.55
The cumulative distribution function of a continuous random
variable X:
x
F ( x) P( X x)
f (t ) dt for x
k e 3 x for x 0
f ( x)
0 elsewhere
Find
i) k
ii) F ( x)
iii) P(0.5 x 1)
Solution:
i) f x dx 1
3 x
e
k e
3 x
dx k
0 3 0
1
k 0
3
k
1
3
k 3
ii) for x 0,
x
F x 0 dt 0
for x 0,
0 x
F x 0 dt 3e 3t
dt
0
x
0 3 e 3t dt
0
x
3t
e
3
3 0
1 e 3 x e 0 1 e 3 x
0 for x 0
F x 3 x
1 e for x 0
iii) P 0.5 X 1 F 1 F 0.5
1 e 31 1 e 30.5
1 e 3 1 e 1.5
0.173
1) Mean
The mean of a random variable X is also known as the
expected value of X as
X E( X )
If X is a discrete random variable,
If X is a continuous
E ( X ) random
xf ( x) variable,
X
xS
xP ( X x)
xS
X E( X ) xf ( x)
Properties of Mean/Expected Values
For any constant a and b,
i) E ( a) a
ii) E (bX ) bE ( X )
iii) E ( aX b) aE ( X ) b
Var ( X ) exists if and only if E ( X ) and E ( X 2 ) both exist, and
then Var ( X ) E ( X 2 ) ( E ( X )) 2
Properties of Variances
For any constant a and b,
i) Var ( X ) 0
2
ii) Var (bX ) b Var ( X )
iii) Var (aX b) a 2Var ( X )
The standard deviation is X Var ( X ) X2
Example 4.7
Find the mean, variance and standard deviation
of the probability function.
x
f ( x) for x 1, 2,3, 4
10
Solution:
Mean:
n
E X x f x
i 1
4
x
x
i 1 10
1 2 3 4
1 2 3 4
10 10 10 10
30
3
10
Variance:
n
EX 2
f x
x 2
i 1
4
x
x 2
i 1 10
1 2 3 4
12 22 32 42
10 10 10 10
10
Standard Deviation:
Var ( X ) E ( X ) ( E ( X )) 2
2
10 32 1
X Var ( X ) 1
Example 4.8
Let X be a continuous random variable with the
Following probability density function
3
x(2 x), 0 x 2
f ( x) 4
0 , otherwise
Find
a) E ( X )
b) Var ( X )
Solution:
a) E X x f x dx
2
3
x x 2 x dx
0
4
2
3
x2 2 x dx
4 0
2
3
2 3
2 x x dx
4 0
2
3 2x 3
x
4
4 3 4 0
3 2 2 24
3
0
4 3 4
3 4
1
4 3
b)E X 2
x2 f x dx
2
3
x2 x 2 x dx
0
4
2
3
x 3 2 x dx
4 0
2
3
3 4
2 x x dx
4 0
2
3 2x4 x5
4 4 5 0
2 2 4 25
3
0
4
4 5
38 6
45 5
Var ( X ) E ( X 2 ) ( E ( X )) 2
6 1
12
5 5