Skip to content

Commit

Permalink
Deployed c032c43 with MkDocs version: 1.6.1
Browse files Browse the repository at this point in the history
  • Loading branch information
Unknown committed Oct 27, 2024
1 parent 9570bac commit e6d9f7f
Show file tree
Hide file tree
Showing 20 changed files with 113 additions and 113 deletions.
2 changes: 1 addition & 1 deletion distributions/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -11444,7 +11444,7 @@ <h2 id="__comments">Comments</h2>
: "light"

// Instruct Giscus to set theme
giscus.setAttribute("data-theme", theme)
giscus.setAttribute("data-theme", theme)
}

// Register event handlers after documented loaded
Expand Down
48 changes: 24 additions & 24 deletions examples/bayesian-update/index.html

Large diffs are not rendered by default.

18 changes: 9 additions & 9 deletions examples/binomial/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -1169,15 +1169,15 @@ <h1 id="binomial-model">Binomial Model</h1>
data.</p>
<p>This example demonstrates how to fit a Binomial model with a Beta prior and
compares the prior and posterior distributions as well as the predictive
distributions with the true distribution of </p>
distributions with the true distribution of</p>
<h2 id="import-modules">Import modules</h2>
<p>Import the required distributions: </p>
<p>Import the required distributions:</p>
<ul>
<li><code>Binomial</code>: The assumed model likelihood in order to generate synthetic data</li>
<li><code>Beta</code>: Prior for <code>Binomial</code> distribution</li>
<li><code>BetaBinomial</code>: The predictive distribution for the <code>Binomial</code> model</li>
</ul>
<p>and the functions: </p>
<p>and the functions:</p>
<ul>
<li><code>binomial_beta</code>: get the posterior distribution from prior and data</li>
<li><code>binomial_beta_predictive</code>: get the predictive distribution</li>
Expand Down Expand Up @@ -1206,18 +1206,18 @@ <h3 id="predictive-distribution">Predictive Distribution</h3>
<p>Get the predictive distribution for <code>n</code> new trials with
<code>binomial_beta_predictive</code> function:</p>
<div class="language-python highlight"><pre><span></span><code><span id="__span-3-1"><a id="__codelineno-3-1" name="__codelineno-3-1" href="#__codelineno-3-1"></a><span class="n">prior_predictive</span><span class="p">:</span> <span class="n">BetaBinomial</span> <span class="o">=</span> <span class="n">binomial_beta_predictive</span><span class="p">(</span>
</span><span id="__span-3-2"><a id="__codelineno-3-2" name="__codelineno-3-2" href="#__codelineno-3-2"></a> <span class="n">n</span><span class="o">=</span><span class="n">N</span><span class="p">,</span>
</span><span id="__span-3-3"><a id="__codelineno-3-3" name="__codelineno-3-3" href="#__codelineno-3-3"></a> <span class="n">distribution</span><span class="o">=</span><span class="n">prior</span><span class="p">,</span>
</span><span id="__span-3-2"><a id="__codelineno-3-2" name="__codelineno-3-2" href="#__codelineno-3-2"></a> <span class="n">n</span><span class="o">=</span><span class="n">N</span><span class="p">,</span>
</span><span id="__span-3-3"><a id="__codelineno-3-3" name="__codelineno-3-3" href="#__codelineno-3-3"></a> <span class="n">distribution</span><span class="o">=</span><span class="n">prior</span><span class="p">,</span>
</span><span id="__span-3-4"><a id="__codelineno-3-4" name="__codelineno-3-4" href="#__codelineno-3-4"></a><span class="p">)</span>
</span><span id="__span-3-5"><a id="__codelineno-3-5" name="__codelineno-3-5" href="#__codelineno-3-5"></a><span class="n">posterior_predictive</span><span class="p">:</span> <span class="n">BetaBinomial</span> <span class="o">=</span> <span class="n">binomial_beta_predictive</span><span class="p">(</span>
</span><span id="__span-3-6"><a id="__codelineno-3-6" name="__codelineno-3-6" href="#__codelineno-3-6"></a> <span class="n">n</span><span class="o">=</span><span class="n">N</span><span class="p">,</span>
</span><span id="__span-3-7"><a id="__codelineno-3-7" name="__codelineno-3-7" href="#__codelineno-3-7"></a> <span class="n">distribution</span><span class="o">=</span><span class="n">posterior</span><span class="p">,</span>
</span><span id="__span-3-6"><a id="__codelineno-3-6" name="__codelineno-3-6" href="#__codelineno-3-6"></a> <span class="n">n</span><span class="o">=</span><span class="n">N</span><span class="p">,</span>
</span><span id="__span-3-7"><a id="__codelineno-3-7" name="__codelineno-3-7" href="#__codelineno-3-7"></a> <span class="n">distribution</span><span class="o">=</span><span class="n">posterior</span><span class="p">,</span>
</span><span id="__span-3-8"><a id="__codelineno-3-8" name="__codelineno-3-8" href="#__codelineno-3-8"></a><span class="p">)</span>
</span></code></pre></div>
<h2 id="additional-analysis">Additional Analysis</h2>
<p>Perform any analysis on the distributions to compare the prior and posterior as
well as the predictive distributions with the true distribution.</p>
<div class="language-python highlight"><pre><span></span><code><span id="__span-4-1"><a id="__codelineno-4-1" name="__codelineno-4-1" href="#__codelineno-4-1"></a><span class="c1"># Figure </span>
<div class="language-python highlight"><pre><span></span><code><span id="__span-4-1"><a id="__codelineno-4-1" name="__codelineno-4-1" href="#__codelineno-4-1"></a><span class="c1"># Figure</span>
</span><span id="__span-4-2"><a id="__codelineno-4-2" name="__codelineno-4-2" href="#__codelineno-4-2"></a><span class="n">fig</span><span class="p">,</span> <span class="n">axes</span> <span class="o">=</span> <span class="n">plt</span><span class="o">.</span><span class="n">subplots</span><span class="p">(</span><span class="n">ncols</span><span class="o">=</span><span class="mi">2</span><span class="p">,</span> <span class="n">nrows</span><span class="o">=</span><span class="mi">1</span><span class="p">,</span> <span class="n">figsize</span><span class="o">=</span><span class="p">(</span><span class="mi">8</span><span class="p">,</span> <span class="mi">4</span><span class="p">))</span>
</span><span id="__span-4-3"><a id="__codelineno-4-3" name="__codelineno-4-3" href="#__codelineno-4-3"></a>
</span><span id="__span-4-4"><a id="__codelineno-4-4" name="__codelineno-4-4" href="#__codelineno-4-4"></a><span class="c1"># Prior and Posterior</span>
Expand Down Expand Up @@ -1285,7 +1285,7 @@ <h2 id="__comments">Comments</h2>
: "light"

// Instruct Giscus to set theme
giscus.setAttribute("data-theme", theme)
giscus.setAttribute("data-theme", theme)
}

// Register event handlers after documented loaded
Expand Down
Loading

0 comments on commit e6d9f7f

Please sign in to comment.