Академический Документы
Профессиональный Документы
Культура Документы
Page 0
Rohini Somanathan
'
The function f is called the probability density function (PDF) of X. Every PDF must satisfy:
1. Nonnegative: f(x) 0
2. Integrates to 1:
f(x)dx = 1
Zx
F(x) =
f(t)dt
&
Page 1
%
Rohini Somanathan
'
f(x)dx
a
&
Page 2
%
Rohini Somanathan
'
Z
E(X) =
xf(x)dx
Result (Expectation of a function of X): If X is a continuous r.v. X with PDF f and g is a function
from R to R, then
Z
g(x)f(x)dx
E(g(X)) =
&
Page 3
%
Rohini Somanathan
'
ex
1+ex ,
x R.
ex
,
(1+ex )2
xR
This is a similar to the normal distribution but has a closed-form CDF and is computationally
easier.
For example: P(2 < X < 2) = F(2) F(2) =
&
Page 4
e2 1
1+e2
= .76
%
Rohini Somanathan
'
0
F(X) =
xa
ba
if x a
if a < x b
if x b
&
Page 5
%
Rohini Somanathan
'
ex
1+ex ,
U
1U
Logistic.
&
Page 6
%
Rohini Somanathan
'
&
Page 7
%
Rohini Somanathan
'
< z <
Zz
(z)dt =
2
1
ez /2 dt
2
E(Z) = 0, Var(Z) = 1 and X = + Z is has a Normal distribution with mean and variance 2 .
(since E( + Z) = E() + E(Z) = and Var( + Z) = 2 Var(Z) = 2 )
&
Page 8
%
Rohini Somanathan
'
The Normal distribution therefore has very thin tails relative to other commonly used
distributions that are symmetric about their mean (logistic, Students-t, Cauchy).
&
Page 9
%
Rohini Somanathan
'
y1 ey dy
() =
(1)
If = 1, () =
R
0
ey dy
y
e
0
=1
If > 1, we can integrate (1) by parts, setting u = y1 and dv = ey and using the formula
R
R
R 2 y
y1
udv = uv vdu to get:
+
(
1)
y
e dy
y
e
0
The first term in the above expression is zero because the exponential function goes to zero
faster than any polynomial and we obtain
() = ( 1)( 1)
and for any integer > 1, we have
() = ( 1)( 2)( 3) . . . (3)(2)(1)(1) = ( 1)!
&
Page 10
%
Rohini Somanathan
'
R
() = y1 ey dy, so dy = dx and can rewrite () as
0
(x)1 ex dx
() =
0
or
1=
1 x
x
e
dx
()
E(X) =
Var(X) =
&
Page 11
%
Rohini Somanathan
'
The density is decreasing for 1, and hump-shaped and skewed to the right otherwise. It
attains a maximum at x = 1
Higher values of make it more bell-shaped and higher increases the concentration at
lower x values.
&
Page 12
%
Rohini Somanathan
'
&
Page 13
%
Rohini Somanathan
'
The 2 distribution
Definition (2 distribution): The 2v distribution is the Gamma( v2 , 21 ) distribution. Its PDF is therefore
f(x; v) =
1
v
2
2 ( v2 )
x 2 1 e 2 I(0,) (x)
Notice that for v = 2, the 2 density is equivalent to the exponential density with = 21 . It is
therefore decreasing for this value of v and hump-shaped for other higher values.
The 2 is especially useful in problems of statistical inference because if we have v
v
P
independent random variables, Xi N(0, 1), the sum
X2i 2v Many of the estimators we
i=1
use in our models fit this case (i.e. they can be expressed as the sum of independent normal
variables)
&
Page 14
%
Rohini Somanathan
'
Gamma applications
Survival analysis:
The risk of failure at any point t is given by the hazard rate,
h(t) =
f(t)
S(t)
where S(t) is the survival function, 1 F(t). The exponential is memoryless and so, if
failure hasnt occurred, the object is as good as new and the hazard rate is constant at .
For wear-out effects, > 1 and for work-hardening effects, < 1
Relationship to the Poisson distribution:
If Y, the number of events in a given time period t has a poisson density with parameter ,
the rate of success is = t and the time taken to the first breakdown X Gamma(1, ).
Example: A bottling plant breaks down, on average, twice every four weeks, so = 2 and
the breakdown rate = 21 per week. The probability of less than three breakdowns in 4
3
P
i
weeks is P(X 3) =
e2 2i! = .135 + .271 + .271 + .18 = .857 Suppose we wanted the
i=0
probability of no breakdown? The time taken until the first break-down, x must therefore
R 1 x
x
2
2
be more than four weeks. This P(X 4) = 2 e
dx = e
= e2 = .135
4
&
Page 15
%
Rohini Somanathan