Calculate the marginal log-likelihood for an HMM using the forward filtering algorithm

hmm_log_likelihood(ys, x0, observation, transition_matrix)

Arguments

ys

a sequence of observations

x0

the initial state distribution

observation

the observation distribution

transition_matrix

the transition matrix

Value