Академический Документы
Профессиональный Документы
Культура Документы
January 1, 2017 1 / 26
Variance and standard deviation
Computation as sum:
n
n
Var(X ) = p(xi )(xi − µ)2 .
i=1
x x
1 2 3 4 5 1 2 3 4 5
(C)
x
1 2 3 4 5
answer: 5. CAB
All 3 variables have the same range from 1-5 and all of them are
symmetric so their mean is right in the middle at 3. (C) has most of
its weight at the extremes, so it has the biggest spread. (B) has the
most weight in the middle so it has the smallest spread.
From biggest to smallest standard deviation we have (C), (A), (B).
January 1, 2017 4 / 26
Computation from tables
of X .
values x
1 2 3 4 5
January 1, 2017 5 / 26
Computation from tables
1 2 4 2 1
·4+ ·1+ ·0+ ·1+ · 4 = 1.2
10 10 10 10 10
√
The standard deviation is then σ = 1.2.
January 1, 2017 6 / 26
Concept question
Which pmf has the bigger standard deviation? (Assume w
and y have the same units.)
1. Y 2. W
pmf for Y p(y) p(W ) pmf for W
1/2
.4
.2
.1
y w
-3 0 3 10 20 30 40 50
January 1, 2017 8 / 26
Concept question
1. True 2. False
answer: True. If X can take more than one value with positive probability,
than Var(X ) will be a sum of positive terms. So X is constant if and only
if Var(X ) = 0.
January 1, 2017 9 / 26
Algebra with variances
January 1, 2017 10 / 26
Board questions
January 1, 2017 11 / 26
Solution
X 0 1
p(x) 1 − p p
(X − µ)2 p2 (1 − p)2
Var(X ) = E ((X − µ)2 ) = (1 − p)p 2 + p(1 − p)2 = p(1 − p)
January 1, 2017 12 / 26
Solution continued
Var(X1 + . . . + Xn ) = 4n.
X1 + · · · + Xn 1 4
Var(X ) = Var( ) = 2 Var(X1 + . . . + Xn ) = .
n n n
2
This implies σX = √ .
n
Note: this says that the average of n independent measurements varies
less than the individual measurements.
January 1, 2017 13 / 26
Continuous random variables
prob.
Units for the pdf are
unit of x
Cumulative distribution function (cdf)
x
F (x) = P(X ≤ x) = f (t) dt.
−∞
January 1, 2017 14 / 26
Visualization
f (x)
P (c ≤ X ≤ d)
x
c d
pdf and probability
f (x)
F (x) = P (X ≤ x)
x
x
pdf and cdf
January 1, 2017 15 / 26
Properties of the cdf
January 1, 2017 16 / 26
Board questions
January 1, 2017 17 / 26
Solution
Z2 Z 2
8 3
f (x) dx = cx 2 dx = c = 1 ⇒ c = .
0 0 3 8
1 7
P(1 ≤ X ≤ 2) = F (2) − F (1) = 1 − = .
8 8
Continued on next slide
January 1, 2017 18 / 26
Solution continued
b2
F (b) = 1 ⇒ = 1 ⇒ b = 3 .
9
2y
2b. f (y ) = F ' (y ) = .
9
January 1, 2017 19 / 26
Concept questions
January 1, 2017 20 / 26
Concept question
Add the numbers of the valid cdf’s and click that number.
answer: Test 2 and Test 3.
January 1, 2017 21 / 26
Solution
Test 1 is not a cdf: it takes negative values, but probabilities are positive.
January 1, 2017 22 / 26
Exponential Random Variables
x x
2 4 6 8 10 12 14 16 2 4 6 8 10 12 14 16
January 1, 2017 23 / 26
Board question
I’ve noticed that taxis drive past 77 Mass. Ave. on the average of
once every 10 minutes.
Suppose time spent waiting for a taxi is modeled by an exponential
random variable
1 −x/10
X ∼ Exponential(1/10); f (x) = e
10
(a) Sketch the pdf of this distribution
(b) Shade the region which represents the probability of waiting
between 3 and 7 minutes
(c) Compute the probability of waiting between between 3 and 7
minutes for a taxi
(d) Compute and sketch the cdf.
January 1, 2017 24 / 26
Solution
x x
2 4 6 8 10 12 14 16 2 4 6 8 10 12 14 16
(c)
Z 7
1 −x/10
7
January 1, 2017 25 / 26
MIT OpenCourseWare
https://ocw.mit.edu
For information about citing these materials or our Terms of Use, visit: https://ocw.mit.edu/terms .