Skip to content

Commit

Permalink
deploy: 3092228
Browse files Browse the repository at this point in the history
  • Loading branch information
poldrack committed Dec 22, 2022
1 parent 1fc0b8c commit 2544b55
Show file tree
Hide file tree
Showing 21 changed files with 44 additions and 44 deletions.
6 changes: 3 additions & 3 deletions 01-IntroductionToPython.html
Original file line number Diff line number Diff line change
Expand Up @@ -660,7 +660,7 @@ <h2>Functions<a class="headerlink" href="#functions" title="Permalink to this he
</div>
</div>
<div class="cell_output docutils container">
<div class="output text_plain highlight-none notranslate"><div class="highlight"><pre><span></span>-0.16732079539678754
<div class="output text_plain highlight-none notranslate"><div class="highlight"><pre><span></span>-0.2440954560387019
</pre></div>
</div>
</div>
Expand All @@ -674,8 +674,8 @@ <h2>Functions<a class="headerlink" href="#functions" title="Permalink to this he
</div>
</div>
<div class="cell_output docutils container">
<div class="output text_plain highlight-none notranslate"><div class="highlight"><pre><span></span>array([ 93.87826084, 107.02436875, 87.70148102, 107.76083003,
116.53109624])
<div class="output text_plain highlight-none notranslate"><div class="highlight"><pre><span></span>array([122.35642131, 81.23506534, 82.55897256, 127.60903764,
69.18065528])
</pre></div>
</div>
</div>
Expand Down
10 changes: 5 additions & 5 deletions 03-DataVisualization.html
Original file line number Diff line number Diff line change
Expand Up @@ -318,7 +318,7 @@ <h3>Bar vs. line plots<a class="headerlink" href="#bar-vs-line-plots" title="Per
</div>
</div>
<div class="cell_output docutils container">
<div class="output text_plain highlight-none notranslate"><div class="highlight"><pre><span></span>[&lt;matplotlib.lines.Line2D at 0x7f288ee47190&gt;]
<div class="output text_plain highlight-none notranslate"><div class="highlight"><pre><span></span>[&lt;matplotlib.lines.Line2D at 0x7fd04ebd0340&gt;]
</pre></div>
</div>
<img alt="_images/03-DataVisualization_14_1.png" src="_images/03-DataVisualization_14_1.png" />
Expand All @@ -333,7 +333,7 @@ <h3>Bar vs. line plots<a class="headerlink" href="#bar-vs-line-plots" title="Per
</div>
</div>
<div class="cell_output docutils container">
<div class="output text_plain highlight-none notranslate"><div class="highlight"><pre><span></span>&lt;matplotlib.axes._subplots.AxesSubplot at 0x7f288edf3d60&gt;
<div class="output text_plain highlight-none notranslate"><div class="highlight"><pre><span></span>&lt;matplotlib.axes._subplots.AxesSubplot at 0x7fd04eb7d160&gt;
</pre></div>
</div>
<img alt="_images/03-DataVisualization_16_1.png" src="_images/03-DataVisualization_16_1.png" />
Expand Down Expand Up @@ -376,7 +376,7 @@ <h2>Plots with two variables<a class="headerlink" href="#plots-with-two-variable
</div>
</div>
<div class="cell_output docutils container">
<div class="output text_plain highlight-none notranslate"><div class="highlight"><pre><span></span>&lt;matplotlib.axes._subplots.AxesSubplot at 0x7f288ec89580&gt;
<div class="output text_plain highlight-none notranslate"><div class="highlight"><pre><span></span>&lt;matplotlib.axes._subplots.AxesSubplot at 0x7fd04ea14a90&gt;
</pre></div>
</div>
<img alt="_images/03-DataVisualization_23_1.png" src="_images/03-DataVisualization_23_1.png" />
Expand All @@ -396,7 +396,7 @@ <h2>Plotting dispersion<a class="headerlink" href="#plotting-dispersion" title="
</div>
</div>
<div class="cell_output docutils container">
<div class="output text_plain highlight-none notranslate"><div class="highlight"><pre><span></span>&lt;matplotlib.axes._subplots.AxesSubplot at 0x7f288eb371c0&gt;
<div class="output text_plain highlight-none notranslate"><div class="highlight"><pre><span></span>&lt;matplotlib.axes._subplots.AxesSubplot at 0x7fd04e8c2190&gt;
</pre></div>
</div>
<img alt="_images/03-DataVisualization_26_1.png" src="_images/03-DataVisualization_26_1.png" />
Expand All @@ -412,7 +412,7 @@ <h2>Plotting dispersion<a class="headerlink" href="#plotting-dispersion" title="
</div>
</div>
<div class="cell_output docutils container">
<div class="output text_plain highlight-none notranslate"><div class="highlight"><pre><span></span>&lt;matplotlib.axes._subplots.AxesSubplot at 0x7f288c441c40&gt;
<div class="output text_plain highlight-none notranslate"><div class="highlight"><pre><span></span>&lt;matplotlib.axes._subplots.AxesSubplot at 0x7fd047fd25e0&gt;
</pre></div>
</div>
<img alt="_images/03-DataVisualization_28_1.png" src="_images/03-DataVisualization_28_1.png" />
Expand Down
20 changes: 10 additions & 10 deletions 04-FittingSimpleModels.html
Original file line number Diff line number Diff line change
Expand Up @@ -358,8 +358,8 @@ <h2>Mode<a class="headerlink" href="#mode" title="Permalink to this headline">¶
</div>
<div class="cell_output docutils container">
<div class="output text_plain highlight-none notranslate"><div class="highlight"><pre><span></span>a 2
b 1
c 1
b 1
Name: myvar, dtype: int64
</pre></div>
</div>
Expand Down Expand Up @@ -485,7 +485,7 @@ <h2>Variability<a class="headerlink" href="#variability" title="Permalink to thi
</div>
</div>
<div class="cell_output docutils container">
<div class="output text_plain highlight-none notranslate"><div class="highlight"><pre><span></span>118.0052013422819
<div class="output text_plain highlight-none notranslate"><div class="highlight"><pre><span></span>92.39526800894856
</pre></div>
</div>
</div>
Expand All @@ -498,7 +498,7 @@ <h2>Variability<a class="headerlink" href="#variability" title="Permalink to thi
</div>
</div>
<div class="cell_output docutils container">
<div class="output text_plain highlight-none notranslate"><div class="highlight"><pre><span></span>118.00520134228196
<div class="output text_plain highlight-none notranslate"><div class="highlight"><pre><span></span>92.39526800894845
</pre></div>
</div>
</div>
Expand All @@ -512,7 +512,7 @@ <h2>Variability<a class="headerlink" href="#variability" title="Permalink to thi
</div>
</div>
<div class="cell_output docutils container">
<div class="output text_plain highlight-none notranslate"><div class="highlight"><pre><span></span>10.863019899746197
<div class="output text_plain highlight-none notranslate"><div class="highlight"><pre><span></span>9.612245731822952
</pre></div>
</div>
</div>
Expand All @@ -525,7 +525,7 @@ <h2>Variability<a class="headerlink" href="#variability" title="Permalink to thi
</div>
</div>
<div class="cell_output docutils container">
<div class="output text_plain highlight-none notranslate"><div class="highlight"><pre><span></span>10.8630198997462
<div class="output text_plain highlight-none notranslate"><div class="highlight"><pre><span></span>9.612245731822947
</pre></div>
</div>
</div>
Expand Down Expand Up @@ -559,10 +559,10 @@ <h2>Z-scores<a class="headerlink" href="#z-scores" title="Permalink to this head
</div>
</div>
<div class="cell_output docutils container">
<div class="output text_plain highlight-none notranslate"><div class="highlight"><pre><span></span>(array([ 6., 15., 21., 29., 20., 21., 21., 10., 5., 2.]),
array([-2.05559782, -1.58611511, -1.1166324 , -0.64714969, -0.17766699,
0.29181572, 0.76129843, 1.23078114, 1.70026385, 2.16974655,
2.63922926]),
<div class="output text_plain highlight-none notranslate"><div class="highlight"><pre><span></span>(array([ 2., 19., 24., 28., 23., 26., 11., 8., 4., 5.]),
array([-2.05474009, -1.57618387, -1.09762765, -0.61907143, -0.1405152 ,
0.33804102, 0.81659724, 1.29515346, 1.77370968, 2.25226591,
2.73082213]),
&lt;a list of 10 Patch objects&gt;)
</pre></div>
</div>
Expand All @@ -577,7 +577,7 @@ <h2>Z-scores<a class="headerlink" href="#z-scores" title="Permalink to this head
</div>
</div>
<div class="cell_output docutils container">
<div class="output text_plain highlight-none notranslate"><div class="highlight"><pre><span></span>&lt;matplotlib.collections.PathCollection at 0x7f1ffead45e0&gt;
<div class="output text_plain highlight-none notranslate"><div class="highlight"><pre><span></span>&lt;matplotlib.collections.PathCollection at 0x7f42a4962c10&gt;
</pre></div>
</div>
<img alt="_images/04-FittingSimpleModels_48_1.png" src="_images/04-FittingSimpleModels_48_1.png" />
Expand Down
4 changes: 2 additions & 2 deletions 06-Sampling.html
Original file line number Diff line number Diff line change
Expand Up @@ -285,7 +285,7 @@ <h2>Sampling error<a class="headerlink" href="#sampling-error" title="Permalink
</div>
</div>
<div class="cell_output docutils container">
<div class="output text_plain highlight-none notranslate"><div class="highlight"><pre><span></span>[&lt;matplotlib.lines.Line2D at 0x7f155446ee50&gt;]
<div class="output text_plain highlight-none notranslate"><div class="highlight"><pre><span></span>[&lt;matplotlib.lines.Line2D at 0x7f56d46860d0&gt;]
</pre></div>
</div>
<img alt="_images/06-Sampling_5_1.png" src="_images/06-Sampling_5_1.png" />
Expand Down Expand Up @@ -438,7 +438,7 @@ <h2>Confidence intervals<a class="headerlink" href="#confidence-intervals" title
warnings.warn(
</pre>
</div>
<div class="output text_plain highlight-none notranslate"><div class="highlight"><pre><span></span>0.958
<div class="output text_plain highlight-none notranslate"><div class="highlight"><pre><span></span>0.953
</pre></div>
</div>
</div>
Expand Down
4 changes: 2 additions & 2 deletions 08-HypothesisTesting.html
Original file line number Diff line number Diff line change
Expand Up @@ -254,7 +254,7 @@ <h2>Simple example: Coin-flipping<a class="headerlink" href="#simple-example-coi
</div>
</div>
<div class="cell_output docutils container">
<div class="output text_plain highlight-none notranslate"><div class="highlight"><pre><span></span>0.010000000000005116
<div class="output text_plain highlight-none notranslate"><div class="highlight"><pre><span></span>0.0
</pre></div>
</div>
</div>
Expand Down Expand Up @@ -326,7 +326,7 @@ <h2>Simulating p-values<a class="headerlink" href="#simulating-p-values" title="
</div>
</div>
<div class="cell_output docutils container">
<div class="output text_plain highlight-none notranslate"><div class="highlight"><pre><span></span>0.0512
<div class="output text_plain highlight-none notranslate"><div class="highlight"><pre><span></span>0.0516
</pre></div>
</div>
</div>
Expand Down
4 changes: 2 additions & 2 deletions 10-BayesianStatistics.html
Original file line number Diff line number Diff line change
Expand Up @@ -318,7 +318,7 @@ <h2>Estimating posterior distributions<a class="headerlink" href="#estimating-po
</div>
</div>
<div class="cell_output docutils container">
<div class="output text_plain highlight-none notranslate"><div class="highlight"><pre><span></span>&lt;matplotlib.legend.Legend at 0x7f1ad373bb80&gt;
<div class="output text_plain highlight-none notranslate"><div class="highlight"><pre><span></span>&lt;matplotlib.legend.Legend at 0x7f0804362dc0&gt;
</pre></div>
</div>
<img alt="_images/10-BayesianStatistics_5_1.png" src="_images/10-BayesianStatistics_5_1.png" />
Expand Down Expand Up @@ -362,7 +362,7 @@ <h2>Estimating posterior distributions<a class="headerlink" href="#estimating-po
</div>
</div>
<div class="cell_output docutils container">
<div class="output text_plain highlight-none notranslate"><div class="highlight"><pre><span></span>&lt;matplotlib.legend.Legend at 0x7f1ad36bbb80&gt;
<div class="output text_plain highlight-none notranslate"><div class="highlight"><pre><span></span>&lt;matplotlib.legend.Legend at 0x7f08042e3d90&gt;
</pre></div>
</div>
<img alt="_images/10-BayesianStatistics_7_1.png" src="_images/10-BayesianStatistics_7_1.png" />
Expand Down
34 changes: 17 additions & 17 deletions 13-GeneralLinearModel.html
Original file line number Diff line number Diff line change
Expand Up @@ -280,7 +280,7 @@ <h2>Linear regression<a class="headerlink" href="#linear-regression" title="Perm
</div>
</div>
<div class="cell_output docutils container">
<div class="output text_plain highlight-none notranslate"><div class="highlight"><pre><span></span>&lt;matplotlib.collections.PathCollection at 0x7fe809e679a0&gt;
<div class="output text_plain highlight-none notranslate"><div class="highlight"><pre><span></span>&lt;matplotlib.collections.PathCollection at 0x7febd5275be0&gt;
</pre></div>
</div>
<img alt="_images/13-GeneralLinearModel_3_1.png" src="_images/13-GeneralLinearModel_3_1.png" />
Expand Down Expand Up @@ -310,10 +310,10 @@ <h2>Linear regression<a class="headerlink" href="#linear-regression" title="Perm
<th>Method:</th> <td>Least Squares</td> <th> F-statistic: </th> <td> 107.0</td>
</tr>
<tr>
<th>Date:</th> <td>Tue, 31 Aug 2021</td> <th> Prob (F-statistic):</th> <td>2.20e-17</td>
<th>Date:</th> <td>Thu, 22 Dec 2022</td> <th> Prob (F-statistic):</th> <td>2.20e-17</td>
</tr>
<tr>
<th>Time:</th> <td>14:59:55</td> <th> Log-Likelihood: </th> <td> -134.44</td>
<th>Time:</th> <td>15:26:37</td> <th> Log-Likelihood: </th> <td> -134.44</td>
</tr>
<tr>
<th>No. Observations:</th> <td> 100</td> <th> AIC: </th> <td> 272.9</td>
Expand Down Expand Up @@ -367,7 +367,7 @@ <h2>Linear regression<a class="headerlink" href="#linear-regression" title="Perm
</div>
</div>
<div class="cell_output docutils container">
<div class="output text_plain highlight-none notranslate"><div class="highlight"><pre><span></span>0.9328350998082222
<div class="output text_plain highlight-none notranslate"><div class="highlight"><pre><span></span>0.9328350998082221
</pre></div>
</div>
</div>
Expand Down Expand Up @@ -456,7 +456,7 @@ <h2>Examples of problematic model fit<a class="headerlink" href="#examples-of-pr
</div>
</div>
<div class="cell_output docutils container">
<div class="output text_plain highlight-none notranslate"><div class="highlight"><pre><span></span>&lt;matplotlib.collections.PathCollection at 0x7fe801962b50&gt;
<div class="output text_plain highlight-none notranslate"><div class="highlight"><pre><span></span>&lt;matplotlib.collections.PathCollection at 0x7febccb2f850&gt;
</pre></div>
</div>
<img alt="_images/13-GeneralLinearModel_17_1.png" src="_images/13-GeneralLinearModel_17_1.png" />
Expand All @@ -483,10 +483,10 @@ <h2>Examples of problematic model fit<a class="headerlink" href="#examples-of-pr
<th>Method:</th> <td>Least Squares</td> <th> F-statistic: </th> <td> 0.8369</td>
</tr>
<tr>
<th>Date:</th> <td>Tue, 31 Aug 2021</td> <th> Prob (F-statistic):</th> <td> 0.363</td>
<th>Date:</th> <td>Thu, 22 Dec 2022</td> <th> Prob (F-statistic):</th> <td> 0.363</td>
</tr>
<tr>
<th>Time:</th> <td>14:59:56</td> <th> Log-Likelihood: </th> <td> -149.89</td>
<th>Time:</th> <td>15:26:38</td> <th> Log-Likelihood: </th> <td> -149.89</td>
</tr>
<tr>
<th>No. Observations:</th> <td> 100</td> <th> AIC: </th> <td> 303.8</td>
Expand Down Expand Up @@ -559,10 +559,10 @@ <h2>Examples of problematic model fit<a class="headerlink" href="#examples-of-pr
<th>Method:</th> <td>Least Squares</td> <th> F-statistic: </th> <td>1.243e+04</td>
</tr>
<tr>
<th>Date:</th> <td>Tue, 31 Aug 2021</td> <th> Prob (F-statistic):</th> <td>4.87e-105</td>
<th>Date:</th> <td>Thu, 22 Dec 2022</td> <th> Prob (F-statistic):</th> <td>4.87e-105</td>
</tr>
<tr>
<th>Time:</th> <td>14:59:56</td> <th> Log-Likelihood: </th> <td> 92.204</td>
<th>Time:</th> <td>15:26:38</td> <th> Log-Likelihood: </th> <td> 92.204</td>
</tr>
<tr>
<th>No. Observations:</th> <td> 100</td> <th> AIC: </th> <td> -180.4</td>
Expand Down Expand Up @@ -665,10 +665,10 @@ <h2>Extending regression to binary outcomes.<a class="headerlink" href="#extendi
<th>Method:</th> <td>MLE</td> <th> Df Model: </th> <td> 2</td>
</tr>
<tr>
<th>Date:</th> <td>Tue, 31 Aug 2021</td> <th> Pseudo R-squ.: </th> <td>0.1661</td>
<th>Date:</th> <td>Thu, 22 Dec 2022</td> <th> Pseudo R-squ.: </th> <td>0.1661</td>
</tr>
<tr>
<th>Time:</th> <td>14:59:56</td> <th> Log-Likelihood: </th> <td> -1895.1</td>
<th>Time:</th> <td>15:26:38</td> <th> Log-Likelihood: </th> <td> -1895.1</td>
</tr>
<tr>
<th>converged:</th> <td>True</td> <th> LL-Null: </th> <td> -2272.6</td>
Expand Down Expand Up @@ -846,6 +846,12 @@ <h2>Cross-validation<a class="headerlink" href="#cross-validation" title="Permal
</div>
</div>
<div class="cell_output docutils container">
<div class="output stream highlight-none notranslate"><div class="highlight"><pre><span></span>Predicted False True
Diabetes
0 4397 53
1 759 58
</pre></div>
</div>
<div class="stderr docutils container">
<pre class="stderr literal-block">/opt/conda/lib/python3.8/site-packages/pandas/core/indexing.py:671: SettingWithCopyWarning:
A value is trying to be set on a copy of a slice from a DataFrame
Expand All @@ -854,12 +860,6 @@ <h2>Cross-validation<a class="headerlink" href="#cross-validation" title="Permal
self._setitem_with_indexer(indexer, value)
</pre>
</div>
<div class="output stream highlight-none notranslate"><div class="highlight"><pre><span></span>Predicted False True
Diabetes
0 4397 53
1 759 58
</pre></div>
</div>
<div class="output text_plain highlight-none notranslate"><div class="highlight"><pre><span></span>0.7841971861977913
</pre></div>
</div>
Expand Down
Binary file modified _images/03-DataVisualization_23_1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified _images/04-FittingSimpleModels_46_1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified _images/04-FittingSimpleModels_48_1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified _images/06-Sampling_11_0.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified _images/06-Sampling_13_1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified _images/06-Sampling_5_1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified _images/07-ResamplingAndSimulation_1_0.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified _images/07-ResamplingAndSimulation_7_0.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified _images/13-GeneralLinearModel_15_1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified _images/13-GeneralLinearModel_23_1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified _images/13-GeneralLinearModel_9_0.png
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 _sources/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ I apologize up front that the datasets are heavily US-centric. This is primaril

This book is meant to be a living document, which is why its source is available online at [https://github.com/statsthinking21/statsthinking21-python](https://github.com/statsthinking21/statsthinking21-python). If you find any errors in the book or want to make a suggestion for how to improve it, please open an issue on the Github site. Even better, submit a pull request with your suggested change.

The book is licensed according to the [Creative Commons Attribution 2.0 Generic (CC BY 2.0) License](https://creativecommons.org/licenses/by/2.0/). Please see the terms of that license for more details.
This book is licensed using the [Creative Commons Attribution-NonCommercial 4.0 International (CC BY-NC 4.0) License](https://creativecommons.org/licenses/by-nc/4.0/). Please see the terms of that license for more details.

## Acknowledgements

Expand Down
2 changes: 1 addition & 1 deletion index.html
Original file line number Diff line number Diff line change
Expand Up @@ -237,7 +237,7 @@ <h2>The golden age of data<a class="headerlink" href="#the-golden-age-of-data" t
<div class="section" id="an-open-source-book">
<h2>An open source book<a class="headerlink" href="#an-open-source-book" title="Permalink to this headline"></a></h2>
<p>This book is meant to be a living document, which is why its source is available online at <a class="reference external" href="https://github.com/statsthinking21/statsthinking21-python">https://github.com/statsthinking21/statsthinking21-python</a>. If you find any errors in the book or want to make a suggestion for how to improve it, please open an issue on the Github site. Even better, submit a pull request with your suggested change.</p>
<p>The book is licensed according to the <a class="reference external" href="https://creativecommons.org/licenses/by/2.0/">Creative Commons Attribution 2.0 Generic (CC BY 2.0) License</a>. Please see the terms of that license for more details.</p>
<p>This book is licensed using the <a class="reference external" href="https://creativecommons.org/licenses/by-nc/4.0/">Creative Commons Attribution-NonCommercial 4.0 International (CC BY-NC 4.0) License</a>. Please see the terms of that license for more details.</p>
</div>
<div class="section" id="acknowledgements">
<h2>Acknowledgements<a class="headerlink" href="#acknowledgements" title="Permalink to this headline"></a></h2>
Expand Down
2 changes: 1 addition & 1 deletion searchindex.js

Large diffs are not rendered by default.

0 comments on commit 2544b55

Please sign in to comment.