Out[3]: </span>
<span class="go">     A    B</span>
<span class="go">A  0.5  0.5</span>
<span class="go">B  0.3  0.7</span>
</pre></div>
</div>
</div>
<div class="section" id="using-a-transition-function">
<h3>Using a transition function<a class="headerlink" href="#using-a-transition-function" title="Permalink to this headline">¶</a></h3>
<p>Often, it will be more useful to define a transition function that returns the
probability of going from a source to a target state.</p>
<div class="highlight-ip