Advanced Bayesian Methods (STA9105)
Each file has a theoretical and computational problem about advance bayesian methods. All analytical derivations are in pdf files and the computational works are contained in ipynb files.
- The mixed linear model (=hierarchical linear model) with multidimensional random effects
- Full derivation is describe in 'Solution for analytical questions.pdf'
-
The exponential family is easy to approximate to the normal distribution
-
Likelihood is approximated as
-
$p(y | X, \beta, \phi) \propto \text{N}(\beta | \hat{\beta}, V)$ , where -
$\hat{\beta}$ is MLE,$V = \left[ X' \text{diag}(-L''(y_i | \hat{\eta_i})) X \right]^{-1}$ $L''(y_i | \hat{\eta_i}) = y_i \frac{(-(X_i\hat{\beta}) \phi(X_i\hat{\beta})\Phi(X_i\hat{\beta}) - \phi(X_i\hat{\beta})^2)}{\Phi(X_i\hat{\beta})^2} + (n_i - y_i) \frac{\phi(X_i\hat{\beta})^2 + (X_i\hat{\beta}) \phi(X_i\hat{\beta})(1 - \Phi(X_i\hat{\beta}))}{(1 - \Phi(X_i\hat{\beta}))^2} $
-