MarkovSwitchingSSM.loglikelihood# MarkovSwitchingSSM.loglikelihood(y)[source]# The exact log-likelihood of a series under this system. Parameters: y (ArrayLike) – The series. Return type: float Returns: The log likelihood from the Hamilton filter over the effective sample.