Skip to content

Commit b414306

Browse files
Update tutorials/04-hidden-markov-model/index.qmd
Co-authored-by: Penelope Yong <[email protected]>
1 parent 2608ddc commit b414306

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

tutorials/04-hidden-markov-model/index.qmd

+3-1
Original file line numberDiff line numberDiff line change
@@ -201,7 +201,9 @@ The p-values on the test suggest that we cannot reject the hypothesis that the o
201201

202202
## Efficient Inference With The Forward Algorithm
203203

204-
While the above method works well for the simple example in this tutorial, some users may desire a more efficient method, especially when their model is more complicated. One simple way to improve inference is to marginalize out the hidden states of the model with an appropriate algorithm, calculating only the posterior over the continuous random variables. Not only does this allow more efficient inference via Rao-Blackwellization, but now we can sample our model with `NUTS()` alone, which is usually a much more performant MCMC kernel.
204+
While the above method works well for the simple example in this tutorial, some users may desire a more efficient method, especially when their model is more complicated.
205+
One simple way to improve inference is to marginalize out the hidden states of the model with an appropriate algorithm, calculating only the posterior over the continuous random variables.
206+
Not only does this allow more efficient inference via Rao-Blackwellization, but now we can sample our model with `NUTS()` alone, which is usually a much more performant MCMC kernel.
205207

206208
Thankfully, [HiddenMarkovModels.jl](https://github.com/gdalle/HiddenMarkovModels.jl) provides an extremely efficient implementation of many algorithms related to hidden Markov models. This allows us to rewrite our model as:
207209

0 commit comments

Comments
 (0)