LinearGaussianSSM.loglikelihood#

LinearGaussianSSM.loglikelihood(y)[source]#

Return the total Gaussian log-likelihood of the data.

Parameters:

y (ArrayLike) – The observations, (n, p) or (n,) for one observable.

Return type:

float

Returns:

The sum of the per-period contributions of the forward pass.

Raises:

DimensionError – If the data cannot match the observation dimension.