ass="headerlink" href="#using-a-transition-matrix" title="Permalink to this headline">¶</a></h3>
<p>You can also explicitly define the transition matrix.</p>
<div class="highlight-ipython notranslate"><div class="highlight"><pre><span></span><span class="gp">In [7]: </span><span class="kn">import</span> <span class="nn">numpy</span>

<span class="gp">In [8]: </span><span class="n">states</span> <span class="o">=</span> <span class="p">[</span><span class="s1">&#39;rainy&#39;</span><span class="p">,</span> 