Description
Support for conditional autoregressions AKA Gaussian Markov random fields was added in PR #4504 but the .random
method was left not implemented as there was not an obvious choice of algorithms that would scale well as a function of the field dimension. A bit of discussion on this can be seen at issue #3689. There may exist efficient methods for doing this which could be implemented, however.
To be more explicit, the core difficulty is sampling x ~ CAR(mu, tau, alpha, W)
where the standard way to do this is by taking a unit isotropic Gaussian vector z
and solving z = Lx
where L
is the Cholesky decomposition of the CAR-structured precision matrix. This operation has cubic complexity in the dimension of x
and thus is a nonstarter for CAR/GMRF vectors with more than a few hundred sites.