Skip to content

Commit

Permalink
typo fix in note 18
Browse files Browse the repository at this point in the history
  • Loading branch information
ishani07 committed Apr 3, 2024
1 parent bef316f commit 912627d
Show file tree
Hide file tree
Showing 15 changed files with 162 additions and 163 deletions.
16 changes: 8 additions & 8 deletions docs/gradient_descent/gradient_descent.html

Large diffs are not rendered by default.

Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
74 changes: 37 additions & 37 deletions docs/pandas_2/pandas_2.html
Original file line number Diff line number Diff line change
Expand Up @@ -1650,12 +1650,12 @@ <h3 data-number="3.3.4" class="anchored" data-anchor-id="sample"><span class="he
</thead>
<tbody>
<tr class="odd">
<td data-quarto-table-cell-role="th">23555</td>
<td data-quarto-table-cell-role="th">366772</td>
<td>CA</td>
<td>F</td>
<td>1946</td>
<td>Richard</td>
<td>7</td>
<td>M</td>
<td>2008</td>
<td>Neeraj</td>
<td>5</td>
</tr>
</tbody>
</table>
Expand All @@ -1682,34 +1682,34 @@ <h3 data-number="3.3.4" class="anchored" data-anchor-id="sample"><span class="he
</thead>
<tbody>
<tr class="odd">
<td data-quarto-table-cell-role="th">159317</td>
<td>2002</td>
<td>Devina</td>
<td>7</td>
<td data-quarto-table-cell-role="th">167084</td>
<td>2004</td>
<td>Vicki</td>
<td>8</td>
</tr>
<tr class="even">
<td data-quarto-table-cell-role="th">291371</td>
<td>1975</td>
<td>Sunny</td>
<td>5</td>
<td data-quarto-table-cell-role="th">210217</td>
<td>2015</td>
<td>Mabel</td>
<td>63</td>
</tr>
<tr class="odd">
<td data-quarto-table-cell-role="th">243650</td>
<td>1921</td>
<td>Verne</td>
<td>9</td>
<td data-quarto-table-cell-role="th">262294</td>
<td>1950</td>
<td>Quentin</td>
<td>5</td>
</tr>
<tr class="even">
<td data-quarto-table-cell-role="th">385678</td>
<td>2015</td>
<td>Noam</td>
<td>15</td>
<td data-quarto-table-cell-role="th">198220</td>
<td>2012</td>
<td>Vienna</td>
<td>55</td>
</tr>
<tr class="odd">
<td data-quarto-table-cell-role="th">211153</td>
<td>2015</td>
<td>Alysson</td>
<td>17</td>
<td data-quarto-table-cell-role="th">79888</td>
<td>1978</td>
<td>Letisha</td>
<td>8</td>
</tr>
</tbody>
</table>
Expand All @@ -1735,28 +1735,28 @@ <h3 data-number="3.3.4" class="anchored" data-anchor-id="sample"><span class="he
</thead>
<tbody>
<tr class="odd">
<td data-quarto-table-cell-role="th">343844</td>
<td data-quarto-table-cell-role="th">151306</td>
<td>2000</td>
<td>Malek</td>
<td>10</td>
<td>Janina</td>
<td>9</td>
</tr>
<tr class="even">
<td data-quarto-table-cell-role="th">149481</td>
<td data-quarto-table-cell-role="th">150540</td>
<td>2000</td>
<td>Tessa</td>
<td>94</td>
<td>Abrianna</td>
<td>16</td>
</tr>
<tr class="odd">
<td data-quarto-table-cell-role="th">151926</td>
<td data-quarto-table-cell-role="th">152423</td>
<td>2000</td>
<td>Alesha</td>
<td>6</td>
<td>Deven</td>
<td>5</td>
</tr>
<tr class="even">
<td data-quarto-table-cell-role="th">152494</td>
<td data-quarto-table-cell-role="th">344406</td>
<td>2000</td>
<td>Jaeden</td>
<td>5</td>
<td>Chadwick</td>
<td>6</td>
</tr>
</tbody>
</table>
Expand Down
14 changes: 7 additions & 7 deletions docs/pandas_3/pandas_3.html

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions docs/probability_2/probability_2.html
Original file line number Diff line number Diff line change
Expand Up @@ -551,7 +551,7 @@ <h3 data-number="18.3.1" class="anchored" data-anchor-id="prediction-as-estimati
<p align="center">
<img src="images/y_hat.png" alt="y_hat" width="600">
</p>
<p>When building models it is also important to note that our choice of features will also signficantly impact our estimation. In the plot below, you can see how the different models (green and purple) can lead to different estimates.</p>
<p>When building models, it is also important to note that our choice of features will also significantly impact our estimation. In the plot below, you can see how the different models (green and purple) can lead to different estimates.</p>
<p align="center">
<img src="images/y_hat2.png" alt="y_hat" width="400">
</p>
Expand Down Expand Up @@ -1332,7 +1332,7 @@ <h3 data-number="18.5.5" class="anchored" data-anchor-id="step-4-bias-variance-d
<span id="cb1-206"><a href="#cb1-206" aria-hidden="true" tabindex="-1"></a><span class="kw">&lt;img</span> <span class="er">src</span><span class="ot">=</span><span class="st">"images/y_hat.png"</span> <span class="er">alt</span><span class="ot">=</span><span class="st">'y_hat'</span> <span class="er">width</span><span class="ot">=</span><span class="st">'600'</span><span class="kw">&gt;</span></span>
<span id="cb1-207"><a href="#cb1-207" aria-hidden="true" tabindex="-1"></a><span class="kw">&lt;/p&gt;</span></span>
<span id="cb1-208"><a href="#cb1-208" aria-hidden="true" tabindex="-1"></a></span>
<span id="cb1-209"><a href="#cb1-209" aria-hidden="true" tabindex="-1"></a>When building models it is also important to note that our choice of features will also signficantly impact our estimation. In the plot below, you can see how the different models (green and purple) can lead to different estimates.</span>
<span id="cb1-209"><a href="#cb1-209" aria-hidden="true" tabindex="-1"></a>When building models, it is also important to note that our choice of features will also significantly impact our estimation. In the plot below, you can see how the different models (green and purple) can lead to different estimates.</span>
<span id="cb1-210"><a href="#cb1-210" aria-hidden="true" tabindex="-1"></a></span>
<span id="cb1-211"><a href="#cb1-211" aria-hidden="true" tabindex="-1"></a><span class="kw">&lt;p</span> <span class="er">align</span><span class="ot">=</span><span class="st">"center"</span><span class="kw">&gt;</span></span>
<span id="cb1-212"><a href="#cb1-212" aria-hidden="true" tabindex="-1"></a><span class="kw">&lt;img</span> <span class="er">src</span><span class="ot">=</span><span class="st">"images/y_hat2.png"</span> <span class="er">alt</span><span class="ot">=</span><span class="st">'y_hat'</span> <span class="er">width</span><span class="ot">=</span><span class="st">'400'</span><span class="kw">&gt;</span></span>
Expand Down
4 changes: 2 additions & 2 deletions docs/regex/regex.html
Original file line number Diff line number Diff line change
Expand Up @@ -686,11 +686,11 @@ <h4 data-number="6.2.1.2" class="anchored" data-anchor-id="canonicalization-with
<span id="cb6-13"><a href="#cb6-13" aria-hidden="true" tabindex="-1"></a>county_and_state[<span class="st">'clean_county_pandas'</span>] <span class="op">=</span> canonicalize_county_series(county_and_state[<span class="st">'County'</span>])</span>
<span id="cb6-14"><a href="#cb6-14" aria-hidden="true" tabindex="-1"></a>display(county_and_pop), display(county_and_state)<span class="op">;</span></span></code><button title="Copy to Clipboard" class="code-copy-button"><i class="bi"></i></button></pre></div>
<div class="cell-output cell-output-stderr">
<pre><code>/var/folders/7t/zbwy02ts2m7cn64fvwjqb8xw0000gp/T/ipykernel_45980/2523629438.py:3: FutureWarning:
<pre><code>/var/folders/7t/zbwy02ts2m7cn64fvwjqb8xw0000gp/T/ipykernel_49929/2523629438.py:3: FutureWarning:

The default value of regex will change from True to False in a future version. In addition, single character regular expressions will *not* be treated as literal strings when regex=True.

/var/folders/7t/zbwy02ts2m7cn64fvwjqb8xw0000gp/T/ipykernel_45980/2523629438.py:3: FutureWarning:
/var/folders/7t/zbwy02ts2m7cn64fvwjqb8xw0000gp/T/ipykernel_49929/2523629438.py:3: FutureWarning:

The default value of regex will change from True to False in a future version. In addition, single character regular expressions will *not* be treated as literal strings when regex=True.
</code></pre>
Expand Down
6 changes: 3 additions & 3 deletions docs/sampling/sampling.html
Original file line number Diff line number Diff line change
Expand Up @@ -704,7 +704,7 @@ <h4 data-number="9.3.3.3" class="anchored" data-anchor-id="simple-random-sample"
<span id="cb13-2"><a href="#cb13-2" aria-hidden="true" tabindex="-1"></a>random_sample <span class="op">=</span> movie.sample(n, replace <span class="op">=</span> <span class="va">False</span>) <span class="co">## By default, replace = False</span></span>
<span id="cb13-3"><a href="#cb13-3" aria-hidden="true" tabindex="-1"></a>np.mean(random_sample[<span class="st">"barbie"</span>])</span></code><button title="Copy to Clipboard" class="code-copy-button"><i class="bi"></i></button></pre></div>
<div class="cell-output cell-output-display" data-execution_count="9">
<pre><code>0.5304121359169273</code></pre>
<pre><code>0.5296914823759864</code></pre>
</div>
</div>
<p>This is very close to the actual vote of 0.5302792307692308!</p>
Expand All @@ -722,7 +722,7 @@ <h4 data-number="9.3.3.3" class="anchored" data-anchor-id="simple-random-sample"
<span id="cb15-10"><a href="#cb15-10" aria-hidden="true" tabindex="-1"></a>Markdown(<span class="ss">f"**Actual** = </span><span class="sc">{</span>actual_barbie<span class="sc">:.4f}</span><span class="ss">, **Sample** = </span><span class="sc">{</span>sample_barbie<span class="sc">:.4f}</span><span class="ss">, "</span></span>
<span id="cb15-11"><a href="#cb15-11" aria-hidden="true" tabindex="-1"></a> <span class="ss">f"**Err** = </span><span class="sc">{</span><span class="dv">100</span><span class="op">*</span>err<span class="sc">:.2f}</span><span class="ss">%."</span>)</span></code><button title="Copy to Clipboard" class="code-copy-button"><i class="bi"></i></button></pre></div>
<div class="cell-output cell-output-display" data-execution_count="10">
<p><strong>Actual</strong> = 0.5303, <strong>Sample</strong> = 0.4975, <strong>Err</strong> = 6.18%.</p>
<p><strong>Actual</strong> = 0.5303, <strong>Sample</strong> = 0.5337, <strong>Err</strong> = 0.65%.</p>
</div>
</div>
<p>We’ll learn how to choose this number when we (re)learn the Central Limit Theorem later in the semester.</p>
Expand Down Expand Up @@ -755,7 +755,7 @@ <h4 data-number="9.3.3.4" class="anchored" data-anchor-id="quantifying-chance-er
<div class="sourceCode cell-code" id="cb18"><pre class="sourceCode python code-with-copy"><code class="sourceCode python"><span id="cb18-1"><a href="#cb18-1" aria-hidden="true" tabindex="-1"></a>poll_result <span class="op">=</span> pd.Series(poll_result)</span>
<span id="cb18-2"><a href="#cb18-2" aria-hidden="true" tabindex="-1"></a>np.<span class="bu">sum</span>(poll_result <span class="op">&gt;</span> <span class="fl">0.5</span>)<span class="op">/</span><span class="dv">1000</span></span></code><button title="Copy to Clipboard" class="code-copy-button"><i class="bi"></i></button></pre></div>
<div class="cell-output cell-output-display" data-execution_count="13">
<pre><code>0.964</code></pre>
<pre><code>0.951</code></pre>
</div>
</div>
<p>You can see the curve looks roughly Gaussian/normal. Using KDE:</p>
Expand Down
Binary file modified docs/sampling/sampling_files/figure-html/cell-13-output-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 docs/sampling/sampling_files/figure-html/cell-15-output-1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
38 changes: 19 additions & 19 deletions docs/sql_I/sql_I.html
Original file line number Diff line number Diff line change
Expand Up @@ -723,10 +723,10 @@ <h4 data-number="20.4.1.3" class="anchored" data-anchor-id="uniqueness-with-dist
<td>2011</td>
</tr>
<tr class="even">
<td>2019</td>
<td>2010</td>
</tr>
<tr class="odd">
<td>2010</td>
<td>2019</td>
</tr>
</tbody>
</table>
Expand Down Expand Up @@ -1208,13 +1208,13 @@ <h2 data-number="20.5" class="anchored" data-anchor-id="aggregating-with-group-b
<td>30</td>
</tr>
<tr class="even">
<td>dessert</td>
<td>5</td>
</tr>
<tr class="odd">
<td>appetizer</td>
<td>12</td>
</tr>
<tr class="odd">
<td>dessert</td>
<td>5</td>
</tr>
</tbody>
</table>

Expand Down Expand Up @@ -1253,10 +1253,10 @@ <h2 data-number="20.5" class="anchored" data-anchor-id="aggregating-with-group-b
</thead>
<tbody>
<tr class="odd">
<td>dessert</td>
<td>5</td>
<td>5</td>
<td>ice cream</td>
<td>entree</td>
<td>30</td>
<td>7</td>
<td>taco</td>
</tr>
<tr class="even">
<td>appetizer</td>
Expand All @@ -1265,10 +1265,10 @@ <h2 data-number="20.5" class="anchored" data-anchor-id="aggregating-with-group-b
<td>potsticker</td>
</tr>
<tr class="odd">
<td>entree</td>
<td>30</td>
<td>7</td>
<td>taco</td>
<td>dessert</td>
<td>5</td>
<td>5</td>
<td>ice cream</td>
</tr>
</tbody>
</table>
Expand All @@ -1295,16 +1295,16 @@ <h2 data-number="20.5" class="anchored" data-anchor-id="aggregating-with-group-b
</thead>
<tbody>
<tr class="odd">
<td>2010</td>
<td>2011</td>
<td>2</td>
</tr>
<tr class="even">
<td>2019</td>
<td>1</td>
<td>2010</td>
<td>2</td>
</tr>
<tr class="odd">
<td>2011</td>
<td>2</td>
<td>2019</td>
<td>1</td>
</tr>
</tbody>
</table>
Expand Down
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 index.log
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
This is XeTeX, Version 3.141592653-2.6-0.999995 (TeX Live 2023) (preloaded format=xelatex 2024.3.3) 2 APR 2024 11:50
This is XeTeX, Version 3.141592653-2.6-0.999995 (TeX Live 2023) (preloaded format=xelatex 2024.3.3) 2 APR 2024 17:00
entering extended mode
restricted \write18 enabled.
%&-line parsing enabled.
Expand Down
Binary file modified index.pdf
Binary file not shown.
Loading

0 comments on commit 912627d

Please sign in to comment.