Skip to content

Commit b092df6

Browse files
committed
Fix the formula for logp computation
1 parent c217727 commit b092df6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pymc/distributions/multivariate.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -347,7 +347,7 @@ def precision_mv_normal_logp(op: PrecisionMvNormalRV, value, rng, size, mean, ta
347347
delta = value - mean
348348
quadratic_form = delta.T @ tau @ delta
349349
logdet, posdef = _logdet_from_cholesky(nan_lower_cholesky(tau))
350-
logp = -0.5 * (k * pt.log(2 * np.pi) + quadratic_form) + logdet
350+
logp = -0.5 * (k * pt.log(2 * np.pi) + quadratic_form + logdet)
351351

352352
return check_parameters(
353353
logp,

0 commit comments

Comments
 (0)