Skip to content

Commit

Permalink
deploy: 0035afb
Browse files Browse the repository at this point in the history
  • Loading branch information
debnolan committed Jul 18, 2023
1 parent d99e1fc commit 4960241
Show file tree
Hide file tree
Showing 8 changed files with 66 additions and 66 deletions.
2 changes: 1 addition & 1 deletion _images/bus_modeling_30_0.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion _images/theory_election_28_0.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion _images/theory_measurement_error_17_0.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion _images/theory_measurement_error_6_0.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
36 changes: 18 additions & 18 deletions _sources/ch/03/theory_election.ipynb

Large diffs are not rendered by default.

36 changes: 18 additions & 18 deletions _sources/ch/03/theory_measurement_error.ipynb

Large diffs are not rendered by default.

46 changes: 23 additions & 23 deletions _sources/ch/05/bus_modeling.ipynb

Large diffs are not rendered by default.

6 changes: 3 additions & 3 deletions ch/05/bus_modeling.html
Original file line number Diff line number Diff line change
Expand Up @@ -1396,7 +1396,7 @@ <h1><span class="section-number">5.4. </span>Modeling Wait Times<a class="header
<span class="n">width</span><span class="o">=</span><span class="mi">450</span><span class="p">,</span> <span class="n">height</span><span class="o">=</span><span class="mi">300</span><span class="p">)</span>

<span class="n">fig</span><span class="o">.</span><span class="n">update_xaxes</span><span class="p">(</span><span class="n">title</span><span class="o">=</span><span class="s2">&quot;Simulated wait times for 100,000 passengers&quot;</span><span class="p">)</span>
<span class="n">fig</span><span class="o">.</span><span class="n">update_yaxes</span><span class="p">(</span><span class="n">title</span><span class="o">=</span><span class="s2">&quot;Proportion&quot;</span><span class="p">)</span>
<span class="n">fig</span><span class="o">.</span><span class="n">update_yaxes</span><span class="p">(</span><span class="n">title</span><span class="o">=</span><span class="s2">&quot;proportion&quot;</span><span class="p">)</span>
<span class="n">fig</span><span class="o">.</span><span class="n">show</span><span class="p">()</span>
</pre></div>
</div>
Expand All @@ -1421,12 +1421,12 @@ <h1><span class="section-number">5.4. </span>Modeling Wait Times<a class="header
While our model captures the typical wait time, we also want to provide an estimate of the variability in the process. This topic is covered in <a class="reference internal" href="../17/inf_pred_gen_intro.html#ch-inf-pred-theory"><span class="std std-numref">Chapter 17</span></a>. We can compute the upper quartile of wait times to give us a sense of variability:</p>
<div class="cell docutils container">
<div class="cell_input docutils container">
<div class="highlight-ipython3 notranslate"><div class="highlight"><pre><span></span><span class="nb">print</span><span class="p">(</span><span class="sa">f</span><span class="s2">&quot;Upper quartile wait time: </span><span class="si">{</span><span class="n">np</span><span class="o">.</span><span class="n">quantile</span><span class="p">(</span><span class="n">sim_wait_times</span><span class="p">,</span><span class="w"> </span><span class="mf">0.75</span><span class="p">)</span><span class="si">:</span><span class="s2">.2f</span><span class="si">}</span><span class="s2"> minutes&quot;</span><span class="p">)</span>
<div class="highlight-ipython3 notranslate"><div class="highlight"><pre><span></span><span class="nb">print</span><span class="p">(</span><span class="sa">f</span><span class="s2">&quot;Upper quartile: </span><span class="si">{</span><span class="n">np</span><span class="o">.</span><span class="n">quantile</span><span class="p">(</span><span class="n">sim_wait_times</span><span class="p">,</span><span class="w"> </span><span class="mf">0.75</span><span class="p">)</span><span class="si">:</span><span class="s2">.2f</span><span class="si">}</span><span class="s2"> minutes&quot;</span><span class="p">)</span>
</pre></div>
</div>
</div>
<div class="cell_output docutils container">
<div class="output stream highlight-myst-ansi notranslate"><div class="highlight"><pre><span></span>Upper quartile wait time: 10.62 minutes
<div class="output stream highlight-myst-ansi notranslate"><div class="highlight"><pre><span></span>Upper quartile: 10.62 minutes
</pre></div>
</div>
</div>
Expand Down

0 comments on commit 4960241

Please sign in to comment.