Download PyMC: Bayesian Stochastic Modelling in Python

Transcript
74
PyMC: Bayesian Stochastic Modelling in Python
Notes
ˆ E(X) = µ
ˆ VAR(X) =
2
τ2
C.11. logistic_like(x, mu, tau)
Logistic log-likelihood.
The logistic distribution is often used as a growth model; for example, populations, markets.
Resembles a heavy-tailed normal distribution.
f (x | µ, τ ) =
τ exp(−τ [x − µ])
[1 + exp(−τ [x − µ])]2
Parameters
ˆ mu: Location parameter
ˆ tau: Precision parameter, > 0
Notes
ˆ E(X) = µ
ˆ VAR(X) =
π2
3τ 2
C.12. lognormal_like(x, mu, tau)
Log-normal log-likelihood. Distribution of any random variable whose logarithm is normally
distributed. A variable might be modeled as log-normal if it can be thought of as the multiplicative product of many small independent factors.
r
f (x | µ, τ ) =
τ exp − τ2 (ln(x) − µ)2
2π
x
Parameters
ˆ mu: Location parameter
ˆ tau: Precision parameter, > 0
Notes
1
ˆ E(X) = eµ+ 2τ
1
ˆ VAR(X) = (e1/τ − 1)e2µ+ τ
C.13. normal_like(x, mu, tau)
Normal log-likelihood.
r
f (x | µ, τ ) =
n τ
o
τ
exp − (x − µ)2
2π
2