Probability Distributions: X X X X X X
Probability Distributions: X X X X X X
Eg the outcome of rolling a fair dice Eg the outcome of picking a lottery ball
6x , x 1,2,3 x 1 2 3
Eg P ( X x) 1 2 3
0, otherwise P(X=x)
6 6 6
1 p x 1
p x 1 10 k 1 k
10 Now try Ex8A
Cumulative Distribution Functions
The cumulative distribution function of a
DRV gives the cumulative probability of X
F ( x) P( X x0 ) p( x)
x x0
being less than or equal to a certain value
10x , x 1,2,3,4 x 1 2 3 4
Eg P( X x) 1 2 3 4
0, otherwise P(X=x)
10 10 10 10
Write down (a) F(2) (b) F(3.6)
1 2 3 4 6
F(2) = P(1) + P(2) F(3.6) = F(3) = 1 – P(4) 1
10 10 10 10 10
Eg F X
x k , x 1,2,3 Find the probability distribution of X
8
3
F ( x max ) 1 1 5 6 P 1 F (1)
F (1) 4 Probability distribution:
8 8
F 3 1 P 2 F 2 F (1)
1
25 7 8 x 1 2 3
3 k 1 F (2) 1 3 1 1
8
8 8 P 3 F 3 F (2) P(X=x)
8 4 8 8
k 5 Now try Ex8B
Mean and Variance of a DRV
You have already used rules for the mean and standard deviation of data:
x The square of the standard deviation is known
n as the variance of a data set.
x2 2
Variance
2 x 2
2
The more spread out a set of data,
the larger the variance will be.
n n
The average and spread of a DRV can be quantified using similar
calculations known as the expectation E(X) and variance Var(X)
Var ( X ) E ( X 2 ) E ( X )
2
E X x. p( x)
where
E X 2 x 2 . p( x)
6x , x 1,2,3
Eg P( X x)
0, otherwise E X 1 61 2 31 3 21 7
3
x 1 2 3
E X 2 12 61 22 31 3 2 21 6
1 1 1
Var ( X ) 6 73
2
P(X=x) 6 3 2
5
9 Now try Ex8D
Discrete Uniform Distributions
1
A DRV defined over the interval {1,2,3,…,n} with p x
n
for all values of X is known as a discrete uniform distribution
Eg P X 3 36 1
2
Eg P ( X 5) P X 6 1
6
E X
n 1
Var ( X )
n 1 n 1
2 12
WB13 The random variable X represents the number on the uppermost face when
a fair die is thrown.
(a) Write down the name of the probability distribution of X.
(b) Calculate the mean and the variance of X.
a) E X 5 n 1
2 5 b) P X 7 P1 X 6 c) Var ( X ) 108
12 20
3
n9 96 2
3 Now try Ex8F
Proving that for p x 1
n , x={1, 2, 3, …, n}, Var ( X )
n 1 n 1
12
Var X x 2 p ( x) E X
2
By definition,
p x E X Var X x
n 1 2 2
1 1 n 1
For any DUD: n 2 n 2
Var X n 1 2
Remove factor of
1
n
1
n x 2
4
If X is a DRV, then: E aX b aE X b
Eg a DRV has E(X) = 5. Find: E(2X-1) 2 E X 1 9
E(5-4X) 4 E X 5 15
Var aX b a 2Var X
Var(5-4X) 4 Var X 48
2
x 1 2 3 4 5 6 y 4 7 10 13 16 19
1 1 1 1 1 1 1 1 1 1 1 1
p(x) 6 6 6 6 6 6 p(y) 6 6 6 6 6 6
Var ( X ) 12
35
The +1 doesn’t affect Var(Y) but the x3 does
E aX b aE X b
Var aX b a 2Var X Now try Ex8E
WB9 A discrete random variable X has a probability function as shown in the table
below, where a and b are constants.
x 0 1 2 3
Given that E(X) = 1.7,
(a) find the value of a and the value of b. P(X = x) 0.2 0.3 b a
Find
(b) P(0 < X < 1.5), (c) E(2X – 3).
a) E X x. p( x ) c) E aX b aE X b
2b 3a 1.4 1
d) Var ( X ) E ( X 2 ) E ( X ) 2
p x 1 where
E X 2 x 2 . p( x)
0.2 0.3 b a 1
E X 2 02 0.2 12 0.3 22 0.1 32 0.4 4.3
b a 0.5 2 Var ( X ) 4.3 1.7 2 1.41
1 2 2 a 0.4
b 0.1 e) Var aX b a 2Var X
b) P 1 0.3 Var 2 X 3 22Var X 4 1.41 5.64
WB10 The discrete random variable X has probability function
k ( x 2 9), x 4, 5, 6
P(X = x) = where k is a positive constant.
0, otherwise,
1
(a) Show that k = (b) Find E(X) and Var(X). (c) Find Var(2X – 3).
50
a) x 4 5 6 b) E X x. p ( x)
7k 16 k 27k
P(X=x) E X 4 507 5 16
50 6 50
27
5.4
Var ( X ) E ( X 2 ) E ( X )
2
p x 1
1
where
E X 2 x 2 . p( x)
50k 1 k
50
E X 2 42 507 5 2 16
50 6 50 29.68
2 27
kx, x 1, 2, 3,
P(X = x) = where k is a constant.
k ( x 1), x 4, 5,
(a) Find the value of k. (b) Find the exact value of E(X).
(c) Show that, to 3sf, Var(X) = 1.47 (d) Find, to 1dp, Var(4 – 3X).
a) x 1 2 3 4 5 b) E X x. p ( x)
c) Var ( X ) E ( X ) E ( X )
2
2
p x 1 where
E X 2 x 2 . p( x)
17k 1 k
1
17
E X 2 12 171 22 172 ... 52 176 266
17
17 1.474...
2
Var ( X ) 266
17
64
giving
x 1 2 3 4 5 d) Var aX b a 2Var X
1 2 3 5 6
P(X=x) Var 4 3 X 3 2Var X
17 17 17 17 17
9 1.474... 13.3
WB13 The random variable X represents the number on the uppermost face when a
fair die is thrown.
Three fair dice are thrown and the numbers on the uppermost faces are recorded.
(c) Find the probability that all three numbers are 6.
(d) Write down all the different ways of scoring a total of 16 when the three numbers
are added together.
(e) Find the probability of scoring a total of 16.
c) 61 3 2161
d) Either two 5’s and a 6 or two 6’s and a 4, each with 3 combinations
6
216