<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Teaching Explorations and Resources | Zhu Xuelin</title><link>https://linstats.github.io/categories/teaching-explorations-and-resources/</link><atom:link href="https://linstats.github.io/categories/teaching-explorations-and-resources/index.xml" rel="self" type="application/rss+xml"/><description>Teaching Explorations and Resources</description><generator>Hugo Blox Builder (https://hugoblox.com)</generator><language>en-us</language><lastBuildDate>Sat, 19 Sep 2026 00:00:00 +0000</lastBuildDate><image><url>https://linstats.github.io/media/icon_hu15689388221013369737.png</url><title>Teaching Explorations and Resources</title><link>https://linstats.github.io/categories/teaching-explorations-and-resources/</link></image><item><title>Why n − 1 in Sample Variance?</title><link>https://linstats.github.io/teaching/why-n-minus-one/</link><pubDate>Sat, 19 Sep 2026 00:00:00 +0000</pubDate><guid>https://linstats.github.io/teaching/why-n-minus-one/</guid><description>&lt;p>
&lt;/p>
&lt;p>&lt;em>Adapted from a student&amp;rsquo;s question in NUS ST2132.&lt;/em>&lt;/p>
&lt;p>Suppose our population consists of one million people who voted for Trump in the 2024 election. We want to know: roughly how old are they on average? And is their age distribution fairly concentrated, or is there a wide mix of younger and older voters?&lt;/p>
&lt;p>In statistical terms, we are interested in the population mean \(\mu\) and variance \(\sigma^2\). But we can’t possibly ask all one million people, so here’s what we do:&lt;/p>
&lt;div style="overflow-x: auto; margin: 1.5rem 0;">
&lt;img src="sampling-flow.svg?v=3" alt="Draw a sample of five people from the population, calculate the sample mean and variance, and use these to estimate the population mean and variance." style="width: 100%; min-width: 680px; max-width: none;" />
&lt;/div>
&lt;p>We use the numbers calculated from our sample—say, \(\bar x=45\) and \(s^2=10\)—to estimate the mean \(\mu\) and variance \(\sigma^2\) of this population of one million people. Now here comes the question:&lt;/p>
&lt;blockquote>
&lt;p>&lt;strong>Why is the denominator in \(S^2\) equal to \(5-1\)? Or more generally, why define&lt;/strong>&lt;/p>
&lt;/blockquote>
\[
S^2=\frac{1}{\color{red}{\boldsymbol{n-1}}}\sum_{i=1}^{n}(X_i-\bar X)^2?
\]&lt;hr>
&lt;p>To make the picture easier to draw, let&amp;rsquo;s represent the population with 15 points (we&amp;rsquo;re not drawing a million dots!). We sample five people, as shown below:&lt;/p>
&lt;div style="overflow-x: auto; margin: 1.5rem 0;">
&lt;img src="population-sample.svg" alt="The population is represented by 15 ages spread from 23 to 51, with mean 39. The five sampled ages, shown in blue, are 49, 47, 45, 43, and 41, with sample mean 45. Dashed lines mark the two means." style="width: 100%; min-width: 760px; max-width: none;" />
&lt;/div>
&lt;p>The population&amp;rsquo;s average age \(\mu\) is 39, and the ages are quite spread out. Now that we have sampled \((X_1,\ldots,X_5)\), we can naturally look at how far each person in our sample is from the &lt;strong>true population mean&lt;/strong>:&lt;/p>
\[
\begin{pmatrix}
X_1-\mu\\
X_2-\mu\\
\vdots\\
X_5-\mu
\end{pmatrix}
\xrightarrow{\text{square, then average}}
\frac{(X_1-\mu)^2+\cdots+(X_5-\mu)^2}{5},
\]&lt;p>and use this to estimate the population variance \(\sigma^2\). This makes perfect sense: &lt;strong>if we knew \(\mu\), dividing by \(n\) (five here) would be absolutely fine.&lt;/strong>&lt;/p>
&lt;p>But here&amp;rsquo;s the trouble: we don&amp;rsquo;t know \(\mu\)! It&amp;rsquo;s the mean of all one million people, after all. So a natural thought is: we&amp;rsquo;re already using \(\bar X\) to estimate \(\mu\), so why not replace \(\mu\) with \(\bar X\) here too? That gives us our first step:&lt;/p>
\[
\frac{1}{n}\sum_{i=1}^{n}(X_i-\mu)^2
\;\xrightarrow[\text{replace }\mu\text{ with }\bar X]{\text{Revision}}\;
\underset{\star}{\underline{\frac{1}{n}\sum_{i=1}^{n}(X_i-\bar X)^2}}.
\]&lt;p>A small problem has quietly slipped in. We wanted to measure “how far the sample is from the population&amp;rsquo;s average age \(\mu\).” But \(\bar X\) isn&amp;rsquo;t the population&amp;rsquo;s centre: it is chosen &lt;strong>after seeing our sample&lt;/strong> \(X_1,\ldots,X_5\). In our example, \(\bar X=45\). Look back at the picture: it&amp;rsquo;s pretty close to the five sampled people, isn&amp;rsquo;t it? It makes us think, “Hmm, these people—the solid blue dots &lt;span style="color: #306397;">●&lt;/span>—don&amp;rsquo;t seem all that spread out.” Yet in this example, the population, including the hollow grey dots &lt;span style="color: #505459;">○&lt;/span>, is much more spread out than our sample.&lt;/p>
&lt;p>So think of it this way: the true mean \(\mu\) stays put, while the sample mean \(\bar X\) &lt;strong>“chases after our sample.”&lt;/strong> If we happen to sample a younger group today, \(\bar X\) moves towards the younger ages. If we happen to sample an older group tomorrow, \(\bar X\) moves towards the older ages instead. So using \(\underline{\star}\) to estimate the population&amp;rsquo;s spread tends to underestimate it, on average. This brings us to the next step:&lt;/p>
\[
\underset{\star}{\underline{\frac{1}{n}\sum_{i=1}^{n}(X_i-\bar X)^2}}
\;\xrightarrow[\text{divide by }n-1\text{ instead}]{\text{Revision}}\;
\frac{1}{n-1}\sum_{i=1}^{n}(X_i-\bar X)^2.
\]&lt;p>For our five-person sample, we go from dividing by five to dividing by four. This makes the estimate a little bigger, &lt;mark style="background-color: #fff3b0; color: #222;">to offset the underestimation caused by using \(\bar X\)&lt;/mark>—and that answers our opening question.&lt;/p>
&lt;hr>
&lt;p>&lt;strong>A small remark.&lt;/strong> How much does \(\underline{\star}\) underestimate the variance, exactly? We can describe this using the mathematical language of ST2131: expectation. With independent, identically distributed observations of finite variance, a little calculation gives:&lt;/p>
\[
\begin{aligned}
E\!\left[\underline{\star}\right]
&amp;=E\!\left[\frac{1}{n}\sum_{i=1}^{n}(X_i-\bar X)^2\right]\\
&amp;=\frac{1}{n}\sum_{i=1}^{n}E\!\left[(X_i-\bar X)^2\right]\\
&amp;=\frac{1}{n}\sum_{i=1}^{n}E\!\left[\big[(X_i-\mu)+(\mu-\bar X)\big]^2\right]\\
&amp;=\cdots=\frac{n-1}{n}\times\sigma^2.
\end{aligned}
\]&lt;p>Don&amp;rsquo;t worry—try expanding the square, treating each expression in parentheses as one piece!&lt;/p>
&lt;p>This means that if we repeat the “sample just five people” experiment many times, \(\underline{\star}\) averages out to \(4/5=80\%\) of the true variance. If we repeat the “sample 100 people” experiment, it averages out to \(99/100=99\%\). So as the sample size gets larger, dividing by \(n\) or \(n-1\) makes less and less difference.&lt;/p>
&lt;hr>
&lt;h2 id="lets-try-sampling">Let&amp;rsquo;s try sampling!&lt;/h2>
&lt;p>This time, let&amp;rsquo;s sample from \(N(0,10^2)\), so the true variance is &lt;strong>100&lt;/strong>. Choose a sample size, draw ten samples, and see where the two estimates end up on average.&lt;/p>
&lt;link rel="stylesheet" href="simulation.css?v=4">
&lt;div id="variance-simulation" class="vsim">
&lt;div class="vsim-controls">
&lt;label for="vsim-size">Sample size&lt;/label>
&lt;select id="vsim-size">&lt;option value="5">n = 5&lt;/option>&lt;option value="100">n = 100&lt;/option>&lt;/select>
&lt;button id="vsim-sample" type="button">Sample&lt;/button>
&lt;button id="vsim-reset" class="vsim-secondary" type="button">Start again&lt;/button>
&lt;span id="vsim-count">0 / 10 samples&lt;/span>
&lt;/div>
&lt;svg id="vsim-plot" viewBox="0 0 860 300" role="img" aria-labelledby="vsim-plot-title vsim-plot-desc">
&lt;title id="vsim-plot-title">Population and current sample&lt;/title>
&lt;desc id="vsim-plot-desc">A normal density curve represents the population. The current sample appears on the population axis and then moves to the sample row. Dashed lines mark the population and sample means.&lt;/desc>
&lt;/svg>
&lt;p class="vsim-key">&lt;span class="vsim-grey">—&lt;/span> Population: N(0, 10²) &amp;nbsp; &lt;span class="vsim-blue">●&lt;/span> Current sample&lt;/p>
&lt;div class="vsim-estimates">
&lt;div>Divide by n &lt;strong id="vsim-current-n">—&lt;/strong>&lt;/div>
&lt;div>Divide by n − 1 &lt;strong id="vsim-current-corrected">—&lt;/strong>&lt;/div>
&lt;/div>
&lt;div class="vsim-results">
&lt;div class="vsim-table-scroll" tabindex="0" role="region" aria-label="Estimates from ten samples; scroll horizontally on small screens">
&lt;table class="vsim-table">
&lt;caption>One column for each sample&lt;/caption>
&lt;colgroup>&lt;col style="width: 76px">&lt;col span="10">&lt;col style="width: 145px">&lt;/colgroup>
&lt;thead>&lt;tr>&lt;th scope="col">Estimate&lt;/th>&lt;th scope="col">1st&lt;/th>&lt;th scope="col">2nd&lt;/th>&lt;th scope="col">3rd&lt;/th>&lt;th scope="col">4th&lt;/th>&lt;th scope="col">5th&lt;/th>&lt;th scope="col">6th&lt;/th>&lt;th scope="col">7th&lt;/th>&lt;th scope="col">8th&lt;/th>&lt;th scope="col">9th&lt;/th>&lt;th scope="col">10th&lt;/th>&lt;th class="vsim-average-cell" scope="col">&lt;button id="vsim-average" type="button" aria-label="Calculate average estimates" disabled>Average&lt;/button>&lt;/th>&lt;/tr>&lt;/thead>
&lt;tbody>
&lt;tr id="vsim-row-n">&lt;th scope="row">÷ n&lt;/th>&lt;td class="vsim-average-cell">&lt;strong id="vsim-average-n" class="vsim-average-result" hidden>&lt;/strong>&lt;/td>&lt;/tr>
&lt;tr id="vsim-row-corrected">&lt;th scope="row">÷ (n − 1)&lt;/th>&lt;td class="vsim-average-cell">&lt;strong id="vsim-average-corrected" class="vsim-average-result" hidden>&lt;/strong>&lt;/td>&lt;/tr>
&lt;/tbody>
&lt;tfoot>&lt;tr>&lt;td colspan="11">&lt;/td>&lt;td class="vsim-average-cell">&lt;span id="vsim-truth" hidden>True variance: 100&lt;/span>&lt;/td>&lt;/tr>&lt;/tfoot>
&lt;/table>
&lt;/div>
&lt;/div>
&lt;p id="vsim-status" role="status" aria-live="polite">Click Sample to draw your first sample.&lt;/p>
&lt;/div>
&lt;script src="simulation.js?v=3" defer>&lt;/script></description></item><item><title>How Many Cups of Coffee Can I Buy with $10?</title><link>https://linstats.github.io/teaching/coffee-sim/</link><pubDate>Sat, 25 Jan 2025 00:00:00 +0000</pubDate><guid>https://linstats.github.io/teaching/coffee-sim/</guid><description>&lt;p>
&lt;/p>
&lt;p>Imagine this: I’m a coffee lover with only 10 dollars to spend. But here’s the twist—each cup of coffee costs a random price between 0 and 10 dollars. So, on average, how many cups can I actually buy?&lt;/p>
&lt;p>If you’re curious about the answer, check out the video!&lt;/p>
&lt;div style="display: flex; flex-direction: column; align-items: center; margin-bottom: 20px; width: 100%;">
&lt;video controls style="width: 100%;">
&lt;source src="images/6120-v2tut-simulation.mp4" type="video/mp4">
Your browser does not support the video tag.
&lt;/video>
&lt;p style="text-align: center; width: 100%;">Buying Coffee&lt;/p>
&lt;/div>
&lt;p>For a theoretical justification (a little probability theory is needed), you can watch the video (in Chinese) below:&lt;/p>
&lt;div style="max-width: 100%;">
&lt;iframe src="https://www.youtube.com/embed/DpiuByapGmA" scrolling="no" border="0" frameborder="no" framespacing="0" allowfullscreen="true" width="800" height="450"> &lt;/iframe>
&lt;/div></description></item><item><title>LaTeX &amp; Keynote Templates for Statistics</title><link>https://linstats.github.io/teaching/notes/</link><pubDate>Sat, 25 Jan 2025 00:00:00 +0000</pubDate><guid>https://linstats.github.io/teaching/notes/</guid><description>&lt;p>
&lt;/p>
&lt;p>Feel free to download these resources for study or reference. I hope they assist in your journey to understanding the language of data and science. These notes are for informational purposes only and reflect my personal understanding. While I strive for accuracy, I make no guarantees regarding the completeness or reliability of the content.&lt;/p>
&lt;p>By using these notes, you &lt;strong>acknowledge&lt;/strong> that any reliance on the material is at your own risk. I am not responsible for any errors, omissions, or outcomes resulting from the use of this information. For official guidance or advice, please refer to relevant textbooks, authorities, or professionals in the respective field.&lt;/p>
&lt;p>All notes are generated using &lt;a href="files/hw-latex.zip" target="_blank">this custom \(\LaTeX\) template&lt;/a>, designed specifically for statistics students with helpful shortcuts. The videos in this section are produced with Keynote, the MacOS presentation software, using &lt;a href="files/NUS-keynote.key" target="_blank">this custom template&lt;/a>. I would be very happy if they could be helpful in your homeworks or presentations!
&lt;figure >
&lt;div class="flex justify-center ">
&lt;div class="w-100" >&lt;img alt="Latex template" srcset="
/teaching/notes/files/tch-notes-fig1_hu18180895868674590865.webp 400w,
/teaching/notes/files/tch-notes-fig1_hu7340959806766827610.webp 760w,
/teaching/notes/files/tch-notes-fig1_hu2595896340989188813.webp 1200w"
src="https://linstats.github.io/teaching/notes/files/tch-notes-fig1_hu18180895868674590865.webp"
width="760"
height="494"
loading="lazy" data-zoomable />&lt;/div>
&lt;/div>&lt;/figure>
&lt;/p>
&lt;div style="display: flex; flex-direction: column; align-items: center; margin-bottom: 20px; width: 100%;">
&lt;video controls style="width: 100%;">
&lt;source src="../coffee-sim/images/6120-v2tut-simulation.mp4" type="video/mp4">
Your browser does not support the video tag.
&lt;/video>
&lt;p style="text-align: center; width: 100%;">An Example of Keynote Template&lt;/p>
&lt;/div>
&lt;!-- ### Machine Learning Methods
- &lt;a href="https://linstats.github.io/notes/ml-pca.pdf" target="_blank">Lecture 1: Principal Component Analysis&lt;/a>
- &lt;a href="https://linstats.github.io/notes/ml-fa.pdf" target="_blank">Lecture 2: Factor Analysis&lt;/a>
- &lt;a href="https://linstats.github.io/notes/ml-kpca.pdf" target="_blank">Lecture 3: MDS and Kernel PCA&lt;/a>
- &lt;a href="https://linstats.github.io/notes/ml-svm.pdf" target="_blank">Lecture 4: Support Vector Machine&lt;/a> -->
&lt;h3 id="statistical-theory">Statistical Theory&lt;/h3>
&lt;ul>
&lt;li>&lt;a href="files/st-pres.pdf" target="_blank">Lecture 0: Preliminaries in Integration and Conditioning&lt;/a>&lt;/li>
&lt;/ul>
&lt;!--
[Hugo Blox Builder](https://hugoblox.com) is designed to give technical content creators a seamless experience. You can focus on the content and the Hugo Blox Builder which this template is built upon handles the rest.
**Embed videos, podcasts, code, LaTeX math, and even test students!**
On this page, you'll find some examples of the types of technical content that can be rendered with Hugo Blox.
## Video
Teach your course by sharing videos with your students. Choose from one of the following approaches:
&lt;div style="position: relative; padding-bottom: 56.25%; height: 0; overflow: hidden;">
&lt;iframe allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share" allowfullscreen="allowfullscreen" loading="eager" referrerpolicy="strict-origin-when-cross-origin" src="https://www.youtube.com/embed/D2vj0WcvH5c?autoplay=0&amp;controls=1&amp;end=0&amp;loop=0&amp;mute=0&amp;start=0" style="position: absolute; top: 0; left: 0; width: 100%; height: 100%; border:0;" title="YouTube video"
>&lt;/iframe>
&lt;/div>
**Youtube**:
{{&lt; youtube w7Ft2ymGmfc >}}
**Bilibili**:
{{&lt; bilibili id="BV1WV4y1r7DF" >}}
**Video file**
Videos may be added to a page by either placing them in your `assets/media/` media library or in your [page's folder](https://gohugo.io/content-management/page-bundles/), and then embedding them with the _video_ shortcode:
{{&lt; video src="my_video.mp4" controls="yes" >}}
## Podcast
You can add a podcast or music to a page by placing the MP3 file in the page's folder or the media library folder and then embedding the audio on your page with the _audio_ shortcode:
{{&lt; audio src="ambient-piano.mp3" >}}
Try it out:
&lt;audio controls >
&lt;source src="ambient-piano.mp3" type="audio/mpeg">
&lt;/audio>
## Test students
Provide a simple yet fun self-assessment by revealing the solutions to challenges with the `spoiler` shortcode:
```markdown
{{&lt; spoiler text="👉 Click to view the solution" >}}
You found me!
{{&lt; /spoiler >}}
```
renders as
&lt;details class="spoiler " id="spoiler-2">
&lt;summary class="cursor-pointer">👉 Click to view the solution&lt;/summary>
&lt;div class="rounded-lg bg-neutral-50 dark:bg-neutral-800 p-2">
You found me 🎉
&lt;/div>
&lt;/details>
## Math
Hugo Blox Builder supports a Markdown extension for $\LaTeX$ math. You can enable this feature by toggling the `math` option in your `config/_default/params.yaml` file.
To render _inline_ or _block_ math, wrap your LaTeX math with `{{&lt; math >}}$...${{&lt; /math >}}` or `{{&lt; math >}}$$...$${{&lt; /math >}}`, respectively.
&lt;div class="flex px-4 py-3 mb-6 rounded-md bg-primary-100 dark:bg-primary-900">
&lt;span class="pr-3 pt-1 text-primary-600 dark:text-primary-300">
&lt;svg height="24" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24">&lt;path fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.5" d="m11.25 11.25l.041-.02a.75.75 0 0 1 1.063.852l-.708 2.836a.75.75 0 0 0 1.063.853l.041-.021M21 12a9 9 0 1 1-18 0a9 9 0 0 1 18 0m-9-3.75h.008v.008H12z"/>&lt;/svg>
&lt;/span>
&lt;span class="dark:text-neutral-300">We wrap the LaTeX math in the Hugo Blox &lt;em>math&lt;/em> shortcode to prevent Hugo rendering our math as Markdown.&lt;/span>
&lt;/div>
Example **math block**:
```latex
{{&lt; math >}}
$$
\gamma_{n} = \frac{ \left | \left (\mathbf x_{n} - \mathbf x_{n-1} \right )^T \left [\nabla F (\mathbf x_{n}) - \nabla F (\mathbf x_{n-1}) \right ] \right |}{\left \|\nabla F(\mathbf{x}_{n}) - \nabla F(\mathbf{x}_{n-1}) \right \|^2}
$$
{{&lt; /math >}}
```
renders as
$$\gamma_{n} = \frac{ \left | \left (\mathbf x_{n} - \mathbf x_{n-1} \right )^T \left [\nabla F (\mathbf x_{n}) - \nabla F (\mathbf x_{n-1}) \right ] \right |}{\left \|\nabla F(\mathbf{x}_{n}) - \nabla F(\mathbf{x}_{n-1}) \right \|^2}$$
Example **inline math** `{{&lt; math >}}$\nabla F(\mathbf{x}_{n})${{&lt; /math >}}` renders as $\nabla F(\mathbf{x}_{n})$
.
Example **multi-line math** using the math linebreak (`\\`):
```latex
{{&lt; math >}}
$$f(k;p_{0}^{*}) = \begin{cases}p_{0}^{*} &amp; \text{if }k=1, \\
1-p_{0}^{*} &amp; \text{if }k=0.\end{cases}$$
{{&lt; /math >}}
```
renders as
$$
f(k;p_{0}^{*}) = \begin{cases}p_{0}^{*} &amp; \text{if }k=1, \\
1-p_{0}^{*} &amp; \text{if }k=0.\end{cases}
$$
## Code
Hugo Blox Builder utilises Hugo's Markdown extension for highlighting code syntax. The code theme can be selected in the `config/_default/params.yaml` file.
```python
import pandas as pd
data = pd.read_csv("data.csv")
data.head()
```
renders as
```python
import pandas as pd
data = pd.read_csv("data.csv")
data.head()
```
## Inline Images
```go
{{&lt; icon name="python" >}} Python
```
renders as
&lt;span class="inline-block pr-1">
&lt;svg style="height: 1em; transform: translateY(0.1em);" xmlns="http://www.w3.org/2000/svg" height="1em" viewBox="0 0 448 512" fill="currentColor">&lt;path d="M439.8 200.5c-7.7-30.9-22.3-54.2-53.4-54.2h-40.1v47.4c0 36.8-31.2 67.8-66.8 67.8H172.7c-29.2 0-53.4 25-53.4 54.3v101.8c0 29 25.2 46 53.4 54.3 33.8 9.9 66.3 11.7 106.8 0 26.9-7.8 53.4-23.5 53.4-54.3v-40.7H226.2v-13.6h160.2c31.1 0 42.6-21.7 53.4-54.2 11.2-33.5 10.7-65.7 0-108.6zM286.2 404c11.1 0 20.1 9.1 20.1 20.3 0 11.3-9 20.4-20.1 20.4-11 0-20.1-9.2-20.1-20.4.1-11.3 9.1-20.3 20.1-20.3zM167.8 248.1h106.8c29.7 0 53.4-24.5 53.4-54.3V91.9c0-29-24.4-50.7-53.4-55.6-35.8-5.9-74.7-5.6-106.8.1-45.2 8-53.4 24.7-53.4 55.6v40.7h106.9v13.6h-147c-31.1 0-58.3 18.7-66.8 54.2-9.8 40.7-10.2 66.1 0 108.6 7.6 31.6 25.7 54.2 56.8 54.2H101v-48.8c0-35.3 30.5-66.4 66.8-66.4zm-6.7-142.6c-11.1 0-20.1-9.1-20.1-20.3.1-11.3 9-20.4 20.1-20.4 11 0 20.1 9.2 20.1 20.4s-9 20.3-20.1 20.3z"/>&lt;/svg>
&lt;/span> Python
## Did you find this page helpful? Consider sharing it 🙌 --></description></item><item><title>What Is the Sample Space in Statistics?</title><link>https://linstats.github.io/teaching/sample-space/</link><pubDate>Wed, 13 Nov 2024 00:00:00 +0000</pubDate><guid>https://linstats.github.io/teaching/sample-space/</guid><description>&lt;p>
&lt;/p>
&lt;p>In statistics, we often work with independently and identically distributed (iid) samples. For instance, consider a set of observations:
$
(X_1, X_2,\dots,X_{10}).
$
However, what is the underlying sample space (a foundational concept from probability) associated with these samples?&lt;/p>
&lt;p>Specifically, let&amp;rsquo;s take an element
$
\omega\in\Omega,
$
where this
$
\omega
$
represent an individual like Alice. How, then, could we use
$
X_1
$
to denote Alice and, simultaneously,
$
X_2
$
to denote another individual, say Bob?&lt;/p>
&lt;p>This question once confused me for years. If you are having the same trouble, check out the video!&lt;/p>
&lt;div style="display: flex; flex-direction: column; align-items: center; margin-bottom: 20px; width: 100%;">
&lt;video controls style="width: 100%;">
&lt;source src="images/6120-v1tut-space.mp4" type="video/mp4">
Your browser does not support the video tag.
&lt;/video>
&lt;p style="text-align: center; width: 100%;">Sample Space&lt;/p>
&lt;/div></description></item><item><title>My Teaching Philosophy: Bringing Statistics to Life</title><link>https://linstats.github.io/teaching/philosophy/</link><pubDate>Thu, 10 Oct 2024 00:00:00 +0000</pubDate><guid>https://linstats.github.io/teaching/philosophy/</guid><description>&lt;p>
&lt;/p>
&lt;p>One of my favorite professors,
(蔡敬衡), once said: &lt;em>“True discoveries or creations are not made by statisticians themselves, but by other scientists. Yet, almost all of them rely on an indispensable tool: statistics.”&lt;/em> I like this word and believe that the power of statistics lies not only in its mathematical rigor but in its ability to help us make sense of the world. I find much joy in sharing statistical concepts with others—whether with friends, peers, roommates, or family—and I am committed to promoting the broad application of statistical methods across diverse fields.&lt;/p>
&lt;p>One of the most effective ways I’ve found to teach statistics is through &lt;strong>visualization&lt;/strong>. By turning abstract statistical concepts into visual representations, complex ideas become more intuitive and easier to grasp. Visuals can break down barriers for people unfamiliar with mathematics, allowing them to engage with and understand key statistical ideas. For example, the &lt;strong>state space decomposition&lt;/strong> of a discrete Markov chain—a concept that can seem abstract at first—becomes far more tangible with visualization:&lt;/p>
&lt;table>
&lt;thead>
&lt;tr>
&lt;th style="text-align: center">
&lt;figure >
&lt;div class="flex justify-center ">
&lt;div class="w-100" >&lt;img alt="Friend1" srcset="
/teaching/philosophy/images/tch-phi-1_hu11017283607610681343.webp 400w,
/teaching/philosophy/images/tch-phi-1_hu2483770331532789319.webp 760w,
/teaching/philosophy/images/tch-phi-1_hu9818833015683245671.webp 1200w"
src="https://linstats.github.io/teaching/philosophy/images/tch-phi-1_hu11017283607610681343.webp"
width="760"
height="318"
loading="lazy" data-zoomable />&lt;/div>
&lt;/div>&lt;/figure>
&lt;/th>
&lt;th style="text-align: center">
&lt;figure >
&lt;div class="flex justify-center ">
&lt;div class="w-100" >&lt;img alt="Friend2" srcset="
/teaching/philosophy/images/tch-phi-2_hu3363699250867177676.webp 400w,
/teaching/philosophy/images/tch-phi-2_hu5442942585097856096.webp 760w,
/teaching/philosophy/images/tch-phi-2_hu5388112464878188047.webp 1200w"
src="https://linstats.github.io/teaching/philosophy/images/tch-phi-2_hu3363699250867177676.webp"
width="760"
height="441"
loading="lazy" data-zoomable />&lt;/div>
&lt;/div>&lt;/figure>
&lt;/th>
&lt;/tr>
&lt;/thead>
&lt;tbody>
&lt;tr>
&lt;td style="text-align: center">Math Statement&lt;/td>
&lt;td style="text-align: center">Visualized Interpretation&lt;/td>
&lt;/tr>
&lt;/tbody>
&lt;/table>
&lt;p>Similarly, we can visualize the idea of &lt;strong>support vector machines (SVM)&lt;/strong>, another widely used statistical method, to highlight how these algorithms create decision boundaries in classification problems:&lt;/p>
&lt;table>
&lt;thead>
&lt;tr>
&lt;th style="text-align: center">
&lt;figure >
&lt;div class="flex justify-center ">
&lt;div class="w-100" >&lt;img alt="Friend1" srcset="
/teaching/philosophy/images/tch-phi-3_hu17452478408093613561.webp 400w,
/teaching/philosophy/images/tch-phi-3_hu17981590693198188971.webp 760w,
/teaching/philosophy/images/tch-phi-3_hu16957459060853230169.webp 1200w"
src="https://linstats.github.io/teaching/philosophy/images/tch-phi-3_hu17452478408093613561.webp"
width="760"
height="276"
loading="lazy" data-zoomable />&lt;/div>
&lt;/div>&lt;/figure>
&lt;/th>
&lt;th style="text-align: center">
&lt;figure >
&lt;div class="flex justify-center ">
&lt;div class="w-100" >&lt;img alt="Friend2" srcset="
/teaching/philosophy/images/tch-phi-4_hu3797309326777313042.webp 400w,
/teaching/philosophy/images/tch-phi-4_hu4901749708024764795.webp 760w,
/teaching/philosophy/images/tch-phi-4_hu12706412679595744982.webp 1200w"
src="https://linstats.github.io/teaching/philosophy/images/tch-phi-4_hu3797309326777313042.webp"
width="760"
height="498"
loading="lazy" data-zoomable />&lt;/div>
&lt;/div>&lt;/figure>
&lt;/th>
&lt;/tr>
&lt;/thead>
&lt;tbody>
&lt;tr>
&lt;td style="text-align: center">Math Statement&lt;/td>
&lt;td style="text-align: center">Visualized Example&lt;/td>
&lt;/tr>
&lt;/tbody>
&lt;/table>
&lt;p>In my philosophy of teaching and using statistics, the key is to &lt;strong>simplify&lt;/strong> without losing the depth of the subject, by making concepts more &lt;strong>accessible&lt;/strong> through visualization and emphasizing the practical impact of statistics.&lt;/p></description></item></channel></rss>