Download presentation
Presentation is loading. Please wait.
Published byCameron Morrison Modified over 5 years ago
1
Linear Functions of a Discrete Random Variable
“Teach A Level Maths” Statistics 1 Linear Functions of a Discrete Random Variable © Christine Crisp
2
Statistics 1 Edexcel "Certain images and/or photos on this presentation are the copyrighted property of JupiterImages and are being used with permission under license. These images and/or photos may not be copied or downloaded without permission from JupiterImages"
3
We have already looked at the effect of scaling ( or coding ) data.
If x gives the values of a variable and y is a linear function of that variable, we found the following results: If , the mean of y changes in the same way, so However, adding a constant has no effect on the standard deviation, so If we want variance instead of standard deviation, we square the result giving:
4
We get similar results if we are dealing with a discrete random variable ( which is used as a model for the data ). e.g. The probability table for a random variable X is shown below: 0·1 0·5 0·4 P(X = x) 3 2 1 x Find (a) E(X), (b) E(4X), (c) E(5), (d) E(4X + 5) Solution: (a) E(X) is the alternative notation for the mean, m So,
5
4x = 4 is the same as the probability that x = 1,
2 3 P(X = x) 0·4 0·5 0·1 Find (a) E(X), (b) E(4X), (c) E(5), (d) E(4X + 5) (b) Find E(4X). We start with a table of values of 4x. 12 8 4 4x 3 2 1 x The probability that 4x = 4 is the same as the probability that x = 1, and so on, so we get
6
x 1 2 3 P(X = x) 0·4 0·5 0·1 x 1 2 3 4x 4 8 12 0·1 0·5 0·4 P(X = x)
Find (a) E(X), (b) E(4X), (c) E(5), (d) E(4X + 5) (b) Find E(4X). We start with a table of values of 4x. x 1 2 3 The probability that 4x = 4 is the same as the probability that x = 1, and so on, so we get 4x 4 8 12 0·1 0·5 0·4 P(X = x) So,
7
x 1 2 3 P(X = x) 0·4 0·5 0·1 x 1 2 3 4x 4 8 12 0·1 0·5 0·4 P(X = x)
Find (a) E(X), (b) E(4X), (c) E(5), (d) E(4X + 5) (b) Find E(4X). We start with a table of values of 4x. x 1 2 3 The probability that 4x = 4 is the same as the probability that x = 1, and so on, so we get 4x 4 8 12 0·1 0·5 0·4 P(X = x) So, So,
8
x 1 2 3 P(X = x) 0·4 0·5 0·1 x 1 2 3 4x 4 8 12 0·1 0·5 0·4 P(X = x)
Find (a) E(X), (b) E(4X), (c) E(5), (d) E(4X + 5) (b) Find E(4X). We start with a table of values of 4x. x 1 2 3 The probability that 4x = 4 is the same as the probability that x = 1, and so on, so we get 4x 4 8 12 0·1 0·5 0·4 P(X = x) So, So,
9
x 1 2 3 P(X = x) 0·4 0·5 0·1 4x + 5 17 13 9 P(X = x) 0·1 0·5 0·4
Find (a) E(X), (b) E(4X), (c) E(5), (d) E(4X + 5) (c) E(5) simply means the “expected value of 5” or the mean value of 5. So, E(5) = 5 (d) For E(4X + 5) we need 4x + 5 17 13 9 P(X = x) 0·1 0·5 0·4 So,
10
x 1 2 3 P(X = x) 0·4 0·5 0·1 0·1 0·5 0·4 P(X = x) 17 13 9 4x + 5
Find (a) E(X), (b) E(4X), (c) E(5), (d) E(4X + 5) (c) E(5) simply means the “expected value of 5” or the mean value of 5. So, E(5) = 5 (d) For E(4X + 5) we need 0·1 0·5 0·4 P(X = x) 17 13 9 4x + 5 So, =
11
x 1 2 3 P(X = x) 0·4 0·5 0·1 0·1 0·5 0·4 P(X = x) 17 13 9 4x + 5
Find (a) E(X), (b) E(4X), (c) E(5), (d) E(4X + 5) (c) E(5) simply means the “expected value of 5” or the mean value of 5. So, E(5) = 5 (d) For E(4X + 5) we need 0·1 0·5 0·4 P(X = x) 17 13 9 4x + 5 So, =
12
x 1 2 3 P(X = x) 0·4 0·5 0·1 0·1 0·5 0·4 P(X = x) 17 13 9 4x + 5
Find (a) E(X), (b) E(4X), (c) E(5), (d) E(4X + 5) (c) E(5) simply means the “expected value of 5” or the mean value of 5. So, E(5) = 5 (d) For E(4X + 5) we need 0·1 0·5 0·4 P(X = x) 17 13 9 4x + 5 So, = 5
13
x 1 2 3 P(X = x) 0·4 0·5 0·1 0·1 0·5 0·4 P(X = x) 17 13 9 4x + 5
Find (a) E(X), (b) E(4X), (c) E(5), (d) E(4X + 5) (c) E(5) simply means the “expected value of 5” or the mean value of 5. So, E(5) = 5 (d) For E(4X + 5) we need 0·1 0·5 0·4 P(X = x) 17 13 9 4x + 5 So, = 5
14
10 8 6 4 2 x The results we have found can be generalised to give
e.g. The probability distribution for the r.v. X is given by 10 8 6 4 2 x Find (a) E(X), (b) Hence find E(2X - 3) Solution: (a) “Hence” in part (b) of the question means that we must use the answer to part (a) rather than using the values and probabilities of 2X - 3. (b)
15
Before we can find an expression for it’s useful to define a new notation for .
We know that Using an extension of the notation for ( i.e. E(X) ), we write So, This, in turn, can be written as and, because the last term is clumsy, we write
16
We must be very careful if we use
This, is the mean of and this is the mean of X which has been squared.
17
0·1 0·5 0·4 P(X = x) 3 2 1 x We’ll now find a formula for e.g.
Find (a) Var(X) (b) Var(5) (c) Var(4X) (d) Var(4X+5) We already have the following results: (a) (b) N.B. Variance measures variability or spread. There is no spread if we just have 5.
18
x 1 2 3 P(X = x) 0·4 0·5 0·1 We’ll now find a formula for e.g.
Find (a) Var(X) (b) Var(5) (c) Var(4X) (d) Var(4X+5) (c)
19
4x 4 8 12 P(X = x) 0·4 0·5 0·1 We’ll now find a formula for e.g.
Find (a) Var(X) (b) Var(5) (c) Var(4X) (d) Var(4X+5) (c)
20
x 1 2 3 P(X = x) 0·4 0·5 0·1 We’ll now find a formula for e.g.
Find (a) Var(X) (b) Var(5) (c) Var(4X) (d) Var(4X+5) (c)
21
x 1 2 3 P(X = x) 0·4 0·5 0·1 We’ll now find a formula for e.g.
Find (a) Var(X) (b) Var(5) (c) Var(4X) (d) Var(4X+5) (c)
22
x 1 2 3 P(X = x) 0·4 0·5 0·1 We’ll now find a formula for e.g.
Find (a) Var(X) (b) Var(5) (c) Var(4X) (d) Var(4X+5) (c) (d)
23
4x + 5 9 13 17 P(X = x) 0·4 0·5 0·1 We’ll now find a formula for e.g.
Find (a) Var(X) (b) Var(5) (c) Var(4X) (d) Var(4X+5) (c) (d)
24
x 1 2 3 P(X = x) 0·4 0·5 0·1 We’ll now find a formula for e.g.
Find (a) Var(X) (b) Var(5) (c) Var(4X) (d) Var(4X+5) (c) (d)
25
x 1 2 3 P(X = x) 0·4 0·5 0·1 We’ll now find a formula for e.g.
Find (a) Var(X) (b) Var(5) (c) Var(4X) (d) Var(4X+5) (c) (d)
26
So, The general result is This is just like the rule for coding data: Multiplying by a constant results in the variance being multiplied by the square of the constant. Adding a constant has no effect on the variance since it does not change the spread of the values.
27
SUMMARY The mean of a linear function of a discrete random variable, X, is given by The variance of X, is given by which can be written as The variance of a linear function of X is given by
28
e.g. The probability distribution for the r.v. X is given by
10 8 6 4 2 x Find (a) Var(X), (b) Hence find Var(2X - 3) Solution: (a) We already have the result So, (b)
29
Exercise 1. The probability distribution for the r.v. X is given by x 1 2 3 4 5 Find (a) E(X) (b) E(3X + 1) (c) Var(X) (d) Var(3X + 1) Solution: (a) E(X) = 3. ( We can get this directly from the symmetry of the table. ) (b) E(3X + 1) = 3E(X) + 1 = 10 (c) (d)
31
The following slides contain repeats of information on earlier slides, shown without colour, so that they can be printed and photocopied. For most purposes the slides can be printed as “Handouts” with up to 6 slides per sheet.
32
SUMMARY The variance of X, is given by which can be written as The variance of a linear function of X is given by The mean of a linear function of a discrete random variable, X, is given by
33
e.g. The probability distribution for the r.v. X is given by
10 8 6 4 2 x Find (a) E(X) (b) E(2X - 3) (c) Var(X) (d) Var(2X - 3) Solution: (a) (b)
34
So, (d) (c)
Similar presentations
© 2024 SlidePlayer.com. Inc.
All rights reserved.