I have a bivariate time series observed over `N` time points, with `u_t` equal to inverse speed and `v_t` equal to hoop distance. I want to fit a hidden Markov model with `K = 2` latent behavioral states, where the state process is Markov and both observed variables have state-specific normal distributions.

My model is:
`theta_j ~ Dirichlet(alpha_j), for j = 1, ..., K,`
`phi_1 ~ Normal(0, 1),`
`phi_2 ~ Normal(3, 1),`
`phi_1 < phi_2 (ordered),`
`lambda_1 ~ Normal(0, 1),`
`lambda_2 ~ Normal(3, 1),`
`lambda_1 < lambda_2 (ordered),`
`tau ~ Jeffreys, with p(tau) proportional to 1 / tau,`
`rho ~ Jeffreys, with p(rho) proportional to 1 / rho,`
`z_1` has an implicit uniform prior over the `K` states,`
`Pr(z_t = k | z_{t-1} = j) = theta_{j,k}, for t = 2, ..., N,`
`u_t | z_t = k ~ Normal(phi_k, tau), for t = 1, ..., N,`
`v_t | z_t = k ~ Normal(lambda_k, rho), for t = 1, ..., N.`

Here:
`u_t` is the observed inverse speed at time t,
`v_t` is the observed hoop distance at time t,
`z_t` is the latent state at time t,
`theta_{j,k}` is the transition probability from state j to state k,
`alpha_j` is the Dirichlet prior parameter vector for row j of the transition matrix,
`phi_k` is the mean of inverse speed in state k,
`lambda_k` is the mean of hoop distance in state k,
`tau` is the common standard deviation for inverse speed,
`rho` is the common standard deviation for hoop distance,
`K` is the number of hidden states,
`N` is the length of the process.

Parameterization notes:
In `Dirichlet(alpha)`, `alpha` is the concentration vector.
In `Normal(mu, sigma)`, `sigma` denotes a standard deviation.
