Professional Documents
Culture Documents
Calculation of probabilities
P(a X b) = F(b)-F(a-1)
ux
f (u)
Quick review of concepts for discrete
random variables - 2
Calculation of measures
Mean,
Variance,
Skewness
Kurtosis
j=
i=1
n
x
i
f ( x
i
)
c
2
=
i =1
n
( x
i
j)
2
f ( x
i
)
o
3
=
1
c
3
i =1
n
( x
i
j)
3
f ( x
i
)
o
4
=
1
c
4
i =1
n
( x
i
j)
4
f ( x
i
)
Discrete distributions in Maple
:= Mean(X)
2 := Variance(X)
:= StandardDeviation(X)
3 := Skewness(X)
4 := Kurtosis(X)
Calculating measures of a
distribution - 2
:= evalf(Mean(X))
2 := evalf(Variance(X))
:= evalf(StandardDeviation(X))
3 := evalf(Skewness(X))
4 := evalf(Kurtosis(X))
Calculating probabilities - 1
P(a X b) = F(b)-F(a-1)=>
use CDF(X,b)-CDF(x,a-1)
c=. p(1p)
o
3
=
12p
. p(1p)
o
4
=
13p+3p
2
p(1p)
c
2
=p(1p)
j=p
The binomial distribution: X~B(n,p)
Binomial coefficient:
f ( x)=
(
n
x
)
p
x
(1p)
nx
, for x=0,1, ... , n
(
n
x
)
=
n!
x! (nx) !
Measures of the binomial distribution
c=.n p(1p)
o
3
=
12p
.np(1p)
o
4
=long expression , see worksheet
c
2
=n p(1p)
j=n p
Approximating the binomial distribution
with the normal distribution, X~N(,)
c=.\
o
3
=
1
.\
o
4
=
3\+1
\
c
2
=\
j=\
Poisson distribution with scaling
c=
.1p
p
o
3
=
2p
.
1p
o
4
=
p
2
9p+9
1p
c
2
=
1p
p
2
j=
1p
p
Period of return - 1
Let X
i
= maximum value of an event in period i,
independent random variables
Let q = P(X
i
<x) = probability of no-exceedence of
value x in period i
Let p = P(X
i
>x) = probability of exceedence of
value x in period i, thus q+p = 1, q = 1-p
T~geometric(p)
Period of return - 2
Consider figure
Finite population size N
with a objects of a type
Draw a sample of size n
Let X = number of objects
of the type in sample
Probability mass function:
f ( x)=
(
a
x
)(
Na
nx
)
(
N
n
)
Mean
Variance
c
2
=
na( Na)( Nn)
N
2
( N1)
j=
na
N
The discrete uniform distribution
Mean: = (a+b)/2
Variance:
2
= (a-b)(a-b-2)/12
f ( x)=
1
ba+1
, for x=a , a+1,... , b
Inverse cumulative distribution function
F
-1
is the inverse cumulative distribution function
(ICDF) of X
i=1
ns
x
i
s
2
=
1
ns1
i=1
ns
( xx
mean
)
2
Random numbers