Download standard deviation of a random variable X

Survey
yes no Was this document useful for you?
   Thank you for your participation!

* Your assessment is very important for improving the workof artificial intelligence, which forms the content of this project

Document related concepts
no text concepts found
Transcript
Mean & Standard Deviation
The mean value of a random variable X,
denoted by mX, describes where the
probability distribution of X is centered.
The standard deviation of a random
variable X, denoted by sX, describes
variability in the probability distribution.
1. When sX is small, observed values of X
will tend to be close to the mean value
and
2. when sX is large, there will be more
variability in observed values.
1
Copyright © 2005 Brooks/Cole, a division of Thomson Learning, Inc.
Illustrations
Two distributions with the same standard
deviation with different means.
Larger mean
2
Copyright © 2005 Brooks/Cole, a division of Thomson Learning, Inc.
Illustrations
Two distributions with the same means and
different standard deviation.
Smaller standard deviation
3
Copyright © 2005 Brooks/Cole, a division of Thomson Learning, Inc.
Mean of a Discrete Random Variable
The mean value of a discrete random
variable X, denoted by mX, is computed by
first multiplying each possible X value by
the probability of observing that value and
then adding the resulting quantities.
Symbolically,
m X   x  p(x)
all possible
values of x
4
Copyright © 2005 Brooks/Cole, a division of Thomson Learning, Inc.
Example
A professor regularly gives multiple choice
quizzes with 5 questions. Over time, he has
found the distribution of the number of wrong
answers on his quizzes is as follows
x
0
1
2
3
4
5
5
P(x)
0.25
0.35
0.20
0.15
0.04
0.01
Copyright © 2005 Brooks/Cole, a division of Thomson Learning, Inc.
Example
Multiply each x value by its probability and
add the results to get mX.
x
0
1
2
3
4
5
6
P(x)
0.25
0.35
0.20
0.15
0.04
0.01
x•P(x)
0.00
0.35
0.40
0.45
0.16
0.05
1.41
mx = 1.41
Copyright © 2005 Brooks/Cole, a division of Thomson Learning, Inc.
Variance and Standard Deviation
of a Discrete Random Variable
The Variance of a Discrete Random Variable x,
2
denoted by s x is computed by fist subtracting the
mean from each possible x value to obtain the
deviations, then squaring each deviation and
multiplying the result by the probability of the
corresponding x value, and then finally adding
these quantities. Symbolically,
2
s x  sX
The standard deviation of x, denoted by sx, is
the square root of the variance.
sX2   (x  m )2  p(x)
7
all possible
values of x
Copyright © 2005 Brooks/Cole, a division of Thomson Learning, Inc.
Previous Example - continued
x
0
1
2
3
4
5
P(x)
0.25
0.35
0.20
0.15
0.04
0.01
x•P(x)
0.00
0.35
0.40
0.45
0.16
0.05
1.41
x-m
-1.41
-0.41
0.59
1.59
2.59
3.59
(x - m (x - m•P(x)
1.9881
0.4970
0.1681
0.0588
0.3481
0.0696
2.5281
0.3792
6.7081
0.2683
12.8881
0.1289
1.4019
Variance  s  1.4019
2
X
Standard deviation
 s x  1.4019  1.184
8
Copyright © 2005 Brooks/Cole, a division of Thomson Learning, Inc.
The Mean & Variance of a
Linear Function
If x is a random variable with mean mx
2
and variance sX and a and b are
numerical constants, the random variable
y defined by y = a + bx is called a linear
function of the random variable x.
The mean of y = a + bx is my = ma + bx = a + bmx
The variance of y is s 2y  sa2bx  b2 sX2
From which it follows that the standard deviation
of y is s y  sabx  b s x
9
Copyright © 2005 Brooks/Cole, a division of Thomson Learning, Inc.
Example
Suppose X is the number of sales staff
needed on a given day. If the cost of doing
business on a day involves fixed costs of
$255 and the cost per sales person per day
is $110, find the mean cost of doing business
on a given day, where the distribution of X is
given below.
10
x
1
2
3
4
p(x)
0.3
0.4
0.2
0.1
Copyright © 2005 Brooks/Cole, a division of Thomson Learning, Inc.
Example continued
We need to find the mean of Y = 255 + 110X
x
1
2
3
4
p(x) xp(x)
0.3 0.3
0.4 0.8
0.2 0.6
0.1 0.4
2.1
m 2.1
x
m y  m 255110 x  255  110m x
 255  110(2.1)  $486
11
Copyright © 2005 Brooks/Cole, a division of Thomson Learning, Inc.
Example continued
We need to find the variance and standard
deviation of Y = 255 + 110X
2
x p(x) (x-m) p(x)
1 0.3 0.3630
2 0.4 0.0040
3 0.2 0.1620
4 0.1 0.3610
0.8900
s
2
s
12
2
x
s  0.89  0.9434
x
 (110) s  (110) (0.89)  10769
2
255 110 m X
s  0.89
255 110 m X
2
x
2
 110 sx  110(0.9434)  103.77
Copyright © 2005 Brooks/Cole, a division of Thomson Learning, Inc.
Means and Variances for Linear
Combinations
If X1, X2,  , Xn are random variables and
a1, a2,  , an are numerical constants, the
random variable Y defined as
Y = a1X1 + a2X2 +  + anXn
is a linear combination of the Xi’s.
13
Copyright © 2005 Brooks/Cole, a division of Thomson Learning, Inc.
Means and Variances for Linear
Combinations
If X1, X2,  , Xn are random variables with means
2
2
2
m1, m2,  , mn and variances s1 , s2 , , sn
respectively,
and
Y = a1X1 + a2X2 +  + anXn then
1. mY = a1m1 + a2m2 +  + anmn
(This is true for any random variables with no conditions.)
2. If X1, X2,  , Xn are independent random
variables then
s2y  a12s12  a22s22   an2sn2
and
14
s y  a12s12  a22s22 
 an2sn2
Copyright © 2005 Brooks/Cole, a division of Thomson Learning, Inc.
Example
A distributor of fruit baskets is going to put 4
apples, 6 oranges and 2 bunches of grapes in
his small gift basket. The weights, in ounces, of
these items are the random variables X1, X2 and
X3 respectively with means and standard
deviations as given in the following table.
Apples Oranges Grapes
Mean
m
Standard deviation
s
8
10
7
0.9
1.1
2
Find the mean, variance and standard deviation of the
random variable Y = weight of fruit in a small gift
basket.
15
Copyright © 2005 Brooks/Cole, a division of Thomson Learning, Inc.
Example continued
It is reasonable in this case to assume that the
weights of the different types of fruit are
Apples Oranges Grapes
independent.
Mean
m
Standard deviation
s
8
10
7
0.9
1.1
2
a1  4, a2  6, a3  2, m1  8, m 2  10, m 3  7
s1  0.9, s2  1.1, s3  2
m y  ma x a x a x  a1m1  a2m2  a3m3
1 1
2
2
3
3
 4(8)  6(10)  2(7)  106
s2y  sa2 x a x a x  a12s12  a22s22  a32s32
1 1
2
2
3
3
 42 (.9)2  62 (1.1)2  22 (2)2  72.52
16
sy = 72.52  8.5159
Copyright © 2005 Brooks/Cole, a division of Thomson Learning, Inc.
Related documents