"><a href="../stan-users-guide/custom-probability.html">Custom Probability Functions</a></li></ol></nav></header>




<section id="custom-probability-functions.chapter" class="level1">
<h1>Custom Probability Functions</h1>
<p>Custom distributions may also be implemented directly within Stan’s programming language. The only thing that is needed is to increment the total log probability. The rest of the chapter provides examples.</p>
<section id="examples" class="level2">
<h2 class="anchored" data-anchor-id