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
We have LKJCholesky as a distribution of Cholesky factors such that the corresponding unfactorized matrix follows the LKJ distribution of the same parameters. This is convenient since (copied from the docstring)
Sampling `LKJCholesky` is faster than sampling `LKJ`, and often having the correlation
matrix in factorized form makes subsequent computations cheaper as well.
However, one drawback of LKJCholesky is that many statistics of interest such as mean etc. could only be defined if it is identified with the corresponding LKJ distribution: #1938 (review)
If you're actually interested in the LKJ (or Wishart or InverseWishart) distribution AND would like variates to be readily (and efficiently!) factorized, IMO a better approach would be to use PDMat variates, i.e., to directly sample the Cholesky factors (as in LKJCholesky) but return the unfactorized matrix (with readily available factorization) as a PDMat.
The text was updated successfully, but these errors were encountered:
I like this plan. Since changing the variate-type of LKJ would be breaking, a less satisfactory but still non-breaking way would be to 1) add PDMatVariate 2) add LKJPDMat, and 3) deprecate LKJCholesky. In the next breaking release, LKJPDMat could be renamed to LKJ, and LKJCholesky could be removed.
We have
LKJCholesky
as a distribution of Cholesky factors such that the corresponding unfactorized matrix follows theLKJ
distribution of the same parameters. This is convenient since (copied from the docstring)The same would be true for e.g.
Wishart
andInverseWishart
(ref https://arxiv.org/abs/2310.15884).However, one drawback of
LKJCholesky
is that many statistics of interest such asmean
etc. could only be defined if it is identified with the correspondingLKJ
distribution: #1938 (review)If you're actually interested in the
LKJ
(orWishart
orInverseWishart
) distribution AND would like variates to be readily (and efficiently!) factorized, IMO a better approach would be to usePDMat
variates, i.e., to directly sample the Cholesky factors (as inLKJCholesky
) but return the unfactorized matrix (with readily available factorization) as aPDMat
.The text was updated successfully, but these errors were encountered: