Sc0x w4l2 Clean
Sc0x w4l2 Clean
Sc0x w4l2 Clean
Uncertainty
II
Continuous
Distributions
ctl.mit.edu
Microsoft Excel
Google Sheets
LibreOffice->Calc
Minimum
=MIN(array)
=MINA(array)
=MIN(array)
Median
=MEDIAN(array)
=MEDIAN(array)
=MEDIAN(array)
Mode
=MODE(array)
=MODE(array)
=MODE(array)
Mean ()
=AVERAGE(array)
=AVERAGE(array)
=AVERAGE(array)
Maximum
=MAX(array)
=MAX(array)
=MAX(array)
Percentile
=PERCENTILE.INC(array, k)
=PERCENTILE(array,
percentile)
=PERCENTILE.INC(array,
alpha)
=VAR.P(array)
=VARP(array)
=VAR.P(array)
=VAR.S(array)
=VAR(array)
=VAR.S(array)
=STDEV.P(array)
=STDEVP(array)
=STDEV.P(array)
=STDEV(array)
=STDEV(array)
=STDEV.S(array)
(x )
2
pop
i=1
2
sample
(x x )
=
i=1
n 1
Minimum
Median
Mean
()
Maximum
2,031
2,889
3,022
4,740
Range 2,709
Inner-Quartile
Range
920
Variance
(2) 356,269
Std Deviation
()
603
Coefficient
of
Variation
0.20
25th Percentile
50th Percentile (Median)
75th Percentile
2,566
2,889
3,486
4
Continuous Distributions
40%
50%
60%
50%
40%
30%
20%
10%
0%
30%
40%
20%
30%
20%
10%
10%
0%
0%
3000
3500
4000
4500
5000
2500
3500
5000
12%
5000
4900
4800
4700
4600
4500
4400
4300
4200
4100
4000
3900
3800
3700
3600
3500
3400
3300
3200
3100
3000
2900
2800
2700
2600
2500
2400
2300
2200
2100
2000
1900
1800
1700
1600
1
0
1500
10%
8%
6%
4%
2%
0%
probability
a
MIT Center for
Transportation & Logistics
b
a
f (t)dt
t
8
Continuous
Requires
integration
to
calculate
and
2
= E( X ) = pi xi
= t f (t )dt
i=1
2 = pi (xi ) 2
= (t ) 2 f (t )dt
a
probability
probability
i=1
pmf
f(t)
Simple
Rules
n
n
n
P(Xt)
=
F(t)
P(X>t)
=
1
F(t)
P(cXd)
=
F(d)
F(c)
P(X=t)
=
0
F(t)
F(a)
0
probability
cdf
cumulative probability
1.0
t
pdf
f(t)
t
10
Continuous Distributions
Source: Wikipedia
11
Uniform Distribution
12
Uniform
Distribution
We
would
say,
X
is
uniformly
distributed
over
the
range
a to
b,
or
X~U(a,b)
1
if a t b
f (t | a, b) = b a
0
otherwise
0 if t < a
!
"
"t a
=
F (t | a, b) %
if a t b
"b a
"&
1 if t > b
1
Mean = a + b
2
1
Median = a + b
2
Mode = any value in range [a,b]
1
2
Variance = b a
12
13
14
Normal Distribution
15
Normal
Distribution
We
would
say,
X
is
normally
distributed
with
mean
and
standard
deviation
,
or
X~N(,
)
Note:
mean=median=mode
=
1
f ( x | , ) =
e
1/ 2
(2 )
1 x 2
2
fx(x0)
Area
=
P[x<+kx]
Area
=
P[x+kx]
=1-P[x<+kx]
+kx
x0
Characteristics
16
+/- 2
+/-
60
0
65
0
70
0
65
0
70
0
55
0
55
0
60
0
50
0
45
0
40
0
35
0
30
0
20
0
0.6%
0.5%
0.4%
0.3%
0.2%
0.1%
0.0%
25
0
Probability of X
Normal Distribution
Value
Normal CDF
So, what is 6?
_10
of the time
Probability of X
100%
80%
60%
40%
20%
45
0
50
0
40
0
30
0
35
0
25
0
20
0
0%
Value
17
fu(u0)
( )
f u u0 =
Area
=
P[u<z]
Area
=
P[uz]=
=1-P[u<z]
0
MIT Center for
Transportation & Logistics
x02
2
u0
18
Microsoft Excel
Google Sheets
LibreOffice->Calc
=NORM.DIST(X, , , 1)
=NORMDIST (X, , , 1)
=NORM.DIST (X, , , 1)
=NORM.DIST(X, , , 0)
=NORMDIST (X, , , 0)
=NORM.DIST (X, , , , 0)
=NORM.INV(Probability, , )
=NORMINV (Probability, , )
=NORM.INV (Probability, , )
=NORM.S.DIST(z,1)
=NORM.S.INV(Probability)
=NORMSDIST
(z)
=NORMSINV
(Probability)
=NORM.S.DIST
(z,1)
=NORM.S.INV
(Probability)
19
20
Triangle Distribution
21
Triangle Distribution
2
(b a)
We
would
say,
X
follows
a
triangle
distribution
with
a
minimum
of
a, maximum
b,
and
a
mode
of
c,
~T(a,
b,
c)
#
0
%
%
2 xa
%
% ba ca
f (x) = $
2 b x
%
%
% ba bc
%
0
&
)(
x<a
)(
axc
c xb
x>b
b x
a+b+c
E x =
3
1 2 2 2
Var x = a + b + c ab ac bc
18
2
P x > d =
for c d b
ba bc
)(
)(
d = b P x > d b a b c
for c d b
Characteristics
22
1 2 2 2
Var x = a + b + c ab ac bc
18
P x > d =
ba bc
)(
for c d b
23
24
25
Uniformly fun!
ctl.mit.edu