Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Binary file added docs/assets/images/fa25-quizzes/fall.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 added docs/assets/images/fa25-quizzes/quiz3df.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 added docs/assets/images/fa25-quizzes/quiz3hist.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 added docs/assets/images/fa25-quizzes/summer.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 3 additions & 0 deletions docs/disc08/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,9 @@
<meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=yes" />
<title>Discussion 8: The Central Limit Theorem and Hypothesis Testing</title>
<style>
/* Default styles provided by pandoc.
** See https://pandoc.org/MANUAL.html#variables-for-html for config info.
*/
code{white-space: pre-wrap;}
span.smallcaps{font-variant: small-caps;}
div.columns{display: flex; gap: min(4vw, 1.5em);}
Expand Down
3 changes: 3 additions & 0 deletions docs/disc09/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,9 @@
<meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=yes" />
<title>Discussion 9: Total Variation Distance and Permutation Testing</title>
<style>
/* Default styles provided by pandoc.
** See https://pandoc.org/MANUAL.html#variables-for-html for config info.
*/
code{white-space: pre-wrap;}
span.smallcaps{font-variant: small-caps;}
div.columns{display: flex; gap: min(4vw, 1.5em);}
Expand Down
3 changes: 3 additions & 0 deletions docs/disc10/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,9 @@
<meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=yes" />
<title>Discussion 10: Regression</title>
<style>
/* Default styles provided by pandoc.
** See https://pandoc.org/MANUAL.html#variables-for-html for config info.
*/
code{white-space: pre-wrap;}
span.smallcaps{font-variant: small-caps;}
div.columns{display: flex; gap: min(4vw, 1.5em);}
Expand Down
2 changes: 1 addition & 1 deletion docs/fa25-midterm/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
vertical-align: middle;
}
</style>
<link rel="stylesheet" href="..\assets\theme.css" />
<link rel="stylesheet" href="../assets/theme.css" />
<script defer=""
src="https://cdn.jsdelivr.net/npm/katex@latest/dist/katex.min.js"></script>
<script>document.addEventListener("DOMContentLoaded", function () {
Expand Down
2 changes: 1 addition & 1 deletion docs/fa25-quiz1/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
vertical-align: middle;
}
</style>
<link rel="stylesheet" href="..\assets\theme.css" />
<link rel="stylesheet" href="../assets/theme.css" />
<script defer=""
src="https://cdn.jsdelivr.net/npm/katex@latest/dist/katex.min.js"></script>
<script>document.addEventListener("DOMContentLoaded", function () {
Expand Down
2 changes: 1 addition & 1 deletion docs/fa25-quiz2/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
vertical-align: middle;
}
</style>
<link rel="stylesheet" href="..\assets\theme.css" />
<link rel="stylesheet" href="../assets/theme.css" />
<script defer=""
src="https://cdn.jsdelivr.net/npm/katex@latest/dist/katex.min.js"></script>
<script>document.addEventListener("DOMContentLoaded", function () {
Expand Down
2 changes: 1 addition & 1 deletion docs/fa25-quiz3/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
vertical-align: middle;
}
</style>
<link rel="stylesheet" href="..\assets\theme.css" />
<link rel="stylesheet" href="../assets/theme.css" />
<script defer=""
src="https://cdn.jsdelivr.net/npm/katex@latest/dist/katex.min.js"></script>
<script>document.addEventListener("DOMContentLoaded", function () {
Expand Down
2 changes: 1 addition & 1 deletion docs/fa25-quiz4/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
vertical-align: middle;
}
</style>
<link rel="stylesheet" href="..\assets\theme.css" />
<link rel="stylesheet" href="../assets/theme.css" />
<script defer=""
src="https://cdn.jsdelivr.net/npm/katex@latest/dist/katex.min.js"></script>
<script>document.addEventListener("DOMContentLoaded", function () {
Expand Down
3 changes: 3 additions & 0 deletions docs/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,9 @@
<meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=yes" />
<title>Home – DSC 10 Practice</title>
<style>
/* Default styles provided by pandoc.
** See https://pandoc.org/MANUAL.html#variables-for-html for config info.
*/
code{white-space: pre-wrap;}
span.smallcaps{font-variant: small-caps;}
div.columns{display: flex; gap: min(4vw, 1.5em);}
Expand Down
2 changes: 1 addition & 1 deletion docs/lectures/lec10/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@
code span.vs { color: #4070a0; } /* VerbatimString */
code span.wa { color: #60a0b0; font-weight: bold; font-style: italic; } /* Warning */
</style>
<link rel="stylesheet" href="..\..\assets\theme.css" />
<link rel="stylesheet" href="../../assets/theme.css" />
<script defer=""
src="https://cdn.jsdelivr.net/npm/katex@latest/dist/katex.min.js"></script>
<script>document.addEventListener("DOMContentLoaded", function () {
Expand Down
48 changes: 24 additions & 24 deletions docs/lectures/lec11/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@
code span.vs { color: #4070a0; } /* VerbatimString */
code span.wa { color: #60a0b0; font-weight: bold; font-style: italic; } /* Warning */
</style>
<link rel="stylesheet" href="..\..\assets\theme.css" />
<link rel="stylesheet" href="../../assets/theme.css" />
<script defer=""
src="https://cdn.jsdelivr.net/npm/katex@latest/dist/katex.min.js"></script>
<script>document.addEventListener("DOMContentLoaded", function () {
Expand Down Expand Up @@ -3310,8 +3310,7 @@ <h5>Difficulty:
<p><br></p>
<hr />
<h2 id="problem-22">Problem 22</h2>
<p>Suppose you have a DataFrame called <code>plum</code> with 31
rows.</p>
<p>Recall, <code>plum</code> has 31 rows.</p>
<p>Consider the function <code>df_choice</code>, defined below.</p>
<div class="sourceCode" id="cb5"><pre class="sourceCode py"><code class="sourceCode python"><span id="cb5-1"><a href="#cb5-1" aria-hidden="true" tabindex="-1"></a><span class="kw">def</span> df_choice(df):</span>
<span id="cb5-2"><a href="#cb5-2" aria-hidden="true" tabindex="-1"></a> <span class="cf">return</span> df[np.random.choice([<span class="va">True</span>, <span class="va">False</span>], df.shape[<span class="dv">0</span>], replace<span class="op">=</span><span class="va">True</span>)]</span></code></pre></div>
Expand Down Expand Up @@ -3388,6 +3387,11 @@ <h1 class="title"> </h1>
missing}) \cdot P(\text{row 1 missing}) \cdot ... \cdot P(\text{row 30
missing}) \\ &amp;= \frac{1}{2} \cdot \frac{1}{2} \cdot ... \cdot
\frac{1}{2} \\ &amp;= \boxed{\frac{1}{2^{31}}} \end{aligned}</span></p>
<hr/>
<h5>Difficulty: ⭐️⭐️</h5>
<p>
</p>
<p>The average score on this problem was 83%.</p>
</div>
</div>
</div>
Expand Down Expand Up @@ -3439,6 +3443,11 @@ <h1 class="title"> </h1>
is missing}) \\ &amp;= \frac{1}{2^{31}} + \frac{1}{2^{31}} + ... +
\frac{1}{2^{31}} \\ &amp;=
\boxed{\frac{31}{2^{31}}} \end{aligned}</span></p>
<hr/>
<h5>Difficulty: ⭐️⭐️⭐️⭐️</h5>
<p>
</p>
<p>The average score on this problem was 48%.</p>
</div>
</div>
</div>
Expand Down Expand Up @@ -3485,6 +3494,11 @@ <h1 class="title"> </h1>
just row 0 is <span class="math inline">\frac{1}{2^{31}}</span>, and
this is the same as the answer to the first subpart (<span class="math inline">\frac{1}{2^{31}}</span>); in both situations, we are
calculating the probability of one specific subset.</p>
<hr/>
<h5>Difficulty: ⭐️⭐️⭐️</h5>
<p>
</p>
<p>The average score on this problem was 63%.</p>
</div>
</div>
</div>
Expand Down Expand Up @@ -3555,14 +3569,20 @@ <h1 class="title"> </h1>
\frac{1 + 31 + 31 + 1}{2^{31}} \\ &amp;= \frac{64}{2^{31}} \\ &amp;=
\frac{2^6}{2^{31}} \\ &amp;= \frac{1}{2^{31 - 6}} \\ &amp;=
\boxed{\frac{1}{2^{25}}} \end{aligned}</span></p>
<hr/>
<h5>Difficulty: ⭐️⭐️⭐️⭐️</h5>
<p>
</p>
<p>The average score on this problem was 35%.</p>
</div>
</div>
</div>
</div>
<p><br></p>
<hr />
<h2 id="problem-23">Problem 23</h2>
<p>Recall, <code>plum</code> has 31 rows.</p>
<p>Suppose you have a DataFrame called <code>plum</code> with 31
rows.</p>
<p>Consider the function <code>df_choice</code>, defined below.</p>
<div class="sourceCode" id="cb6"><pre class="sourceCode py"><code class="sourceCode python"><span id="cb6-1"><a href="#cb6-1" aria-hidden="true" tabindex="-1"></a><span class="kw">def</span> df_choice(df):</span>
<span id="cb6-2"><a href="#cb6-2" aria-hidden="true" tabindex="-1"></a> <span class="cf">return</span> df[np.random.choice([<span class="va">True</span>, <span class="va">False</span>], df.shape[<span class="dv">0</span>], replace<span class="op">=</span><span class="va">True</span>)]</span></code></pre></div>
Expand Down Expand Up @@ -3639,11 +3659,6 @@ <h1 class="title"> </h1>
missing}) \cdot P(\text{row 1 missing}) \cdot ... \cdot P(\text{row 30
missing}) \\ &amp;= \frac{1}{2} \cdot \frac{1}{2} \cdot ... \cdot
\frac{1}{2} \\ &amp;= \boxed{\frac{1}{2^{31}}} \end{aligned}</span></p>
<hr/>
<h5>Difficulty: ⭐️⭐️</h5>
<p>
</p>
<p>The average score on this problem was 83%.</p>
</div>
</div>
</div>
Expand Down Expand Up @@ -3695,11 +3710,6 @@ <h1 class="title"> </h1>
is missing}) \\ &amp;= \frac{1}{2^{31}} + \frac{1}{2^{31}} + ... +
\frac{1}{2^{31}} \\ &amp;=
\boxed{\frac{31}{2^{31}}} \end{aligned}</span></p>
<hr/>
<h5>Difficulty: ⭐️⭐️⭐️⭐️</h5>
<p>
</p>
<p>The average score on this problem was 48%.</p>
</div>
</div>
</div>
Expand Down Expand Up @@ -3746,11 +3756,6 @@ <h1 class="title"> </h1>
just row 0 is <span class="math inline">\frac{1}{2^{31}}</span>, and
this is the same as the answer to the first subpart (<span class="math inline">\frac{1}{2^{31}}</span>); in both situations, we are
calculating the probability of one specific subset.</p>
<hr/>
<h5>Difficulty: ⭐️⭐️⭐️</h5>
<p>
</p>
<p>The average score on this problem was 63%.</p>
</div>
</div>
</div>
Expand Down Expand Up @@ -3821,11 +3826,6 @@ <h1 class="title"> </h1>
\frac{1 + 31 + 31 + 1}{2^{31}} \\ &amp;= \frac{64}{2^{31}} \\ &amp;=
\frac{2^6}{2^{31}} \\ &amp;= \frac{1}{2^{31 - 6}} \\ &amp;=
\boxed{\frac{1}{2^{25}}} \end{aligned}</span></p>
<hr/>
<h5>Difficulty: ⭐️⭐️⭐️⭐️</h5>
<p>
</p>
<p>The average score on this problem was 35%.</p>
</div>
</div>
</div>
Expand Down
2 changes: 1 addition & 1 deletion docs/lectures/lec12/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@
code span.vs { color: #4070a0; } /* VerbatimString */
code span.wa { color: #60a0b0; font-weight: bold; font-style: italic; } /* Warning */
</style>
<link rel="stylesheet" href="..\..\assets\theme.css" />
<link rel="stylesheet" href="../../assets/theme.css" />
<script defer=""
src="https://cdn.jsdelivr.net/npm/katex@latest/dist/katex.min.js"></script>
<script>document.addEventListener("DOMContentLoaded", function () {
Expand Down
Loading
Loading