You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Apply a Hamiltonian Monte Carlo (HMC) update that proposes new values for the
60
+
selected addresses, returning the new trace (which is equal to the previous trace
61
+
if the move was not accepted) and a `Bool` indicating whether the move was accepted or not.
62
+
63
+
Hamilton's equations are numerically integrated using leapfrog integration with
64
+
step size `eps` for `L` steps and initial momenta sampled from a Gaussian distribution with
65
+
covariance given by `metric` (mass matrix).
66
+
67
+
Sampling with HMC is improved by using a metric/mass matrix that approximates the
68
+
**inverse** covariance of the target distribution, and is equivalent to a linear transformation
69
+
of the parameter space (see Neal, 2011). The following options are supported for `metric`:
17
70
18
-
Apply a Hamiltonian Monte Carlo (HMC) update that proposes new values for the selected addresses, returning the new trace (which is equal to the previous trace if the move was not accepted) and a `Bool` indicating whether the move was accepted or not.
71
+
- `nothing` (default): identity matrix
72
+
- `Vector`: diagonal matrix with the given vector as the diagonal
73
+
- `Diagonal`: diagonal matrix lowers to the vector of the diagonal entries
74
+
- `Matrix`: dense matrix
19
75
20
-
Hamilton's equations are numerically integrated using leapfrog integration with step size `eps` for `L` steps. See equations (5.18)-(5.20) of Neal (2011).
76
+
See equations (5.18)-(5.20) of Neal (2011).
21
77
22
78
# References
23
79
Neal, Radford M. (2011), "MCMC Using Hamiltonian Dynamics", Handbook of Markov Chain Monte Carlo, pp. 113-162. URL: http://www.mcmchandbook.net/HandbookChapter5.pdf
0 commit comments