per" tabindex="-1" role="main">
          <div class="page-inner">

            <section class="normal" id="section-">

<div>
This is an old version, <a href="https://mc-stan.org/docs/functions-reference/binary_distributions.html#bernoulli-distribution">view current version</a>.
</div>
<div id="bernoulli-distribution" class="section level2">
<h2 number="11.1"><span class="header-section-number">11.1</span> Bernoulli Distribution</h2>
<div id="probability-mass-function" class="section level3">
<h3 number="11