n><span class="va">hmm_poison_data</span>, breaks <span class="op">=</span> <span class="fl">100</span><span class="op">)</span></span>
<span class="r-plt img"><img src="posterior_probabilities_poisgamma-1.png" alt="" width="700" height="433"></span>
<span class="r-in"></span>
<span class="r-in"><span class="co"># Calculate posterior probabilities of hidden states</span></span>
<span class="r-in"><span class="va">post_prob</span> <span class="op">&lt;-</span>  <span class="fu">posterior_probabilities_poisga