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