Files
Fall-2026-Math-1044/source/notes/1-20.ptx
T
2026-01-22 10:53:10 -05:00

198 lines
5.8 KiB
XML

<?xml version="1.0" encoding="UTF-8"?>
<section xml:id="notes-01-20">
<title>Tuesday, Jan 20</title>
<introduction>
<p>
This is an outline of the topics we covered in class.
These notes are <em>not</em> a substitute for your own note-taking.
I highly recommend that you take your own notes during class.
If you ever miss a class for any reason, reach out to another student in class to get a copy of their notes.
</p>
</introduction>
<subsection xml:id="subsec-hw1-review">
<title>HW 1 Q5</title>
<p>
Write <m>F</m> for the event that there's a fire and <m>S</m> for the event that there's visible smoke.
Then the information we're given can be interpreted as:
<md>
<mrow> \Pr(F) \amp = 0.01 </mrow>
<mrow> \Pr(S) \amp = 0.1 </mrow>
<mrow> \Pr(S\mid F) \amp = 0.9 </mrow>
</md>
In this case, we can use the simpler version of Bayes' Theorem:
<md>
<mrow> \Pr(F \mid S) = \frac{\Pr(S \mid F)\Pr(F)}{\Pr(S)} = \dotsb </mrow>
</md>
Unlike our usual diagnostic testing examples, we do have access to the denominator probability here.
</p>
</subsection>
<subsection xml:id="subsec-Discrete-Random-Variables">
<title>Sec 2.1: Random Variables</title>
<definition xml:id="def-RV">
<statement>
<p>
A <term>random variable</term> is a function <m>X \colon \Omega \to \R</m>.
</p>
</statement>
</definition>
<p>
The idea is that <m>X</m> is a variable representing a real number value which depends on the outcome of an experiment.
</p>
<example>
<statement>
<p>
An experiment consists of planting 50 seeds in a garden, then growing them for 3 months.
Let <m>H_i</m> be the height of plant <m>i</m>.
Let <m>D</m> be the number of seeds that didn't sprout.
Let
<md>
<mrow> A \amp = \text{avg height of all 50 plants} </mrow>
<mrow> \amp = \frac{H_1 + H_2 + \dotsb + H_{50}}{50} </mrow>
</md>
</p>
</statement>
</example>
<p>
A random variable has its own probability distribution.
</p>
<example>
<statement>
<p>
Roll a fair D6 twice.
Let <m>S</m> be the sum of the rolls.
Then <m>\Omega = \{(1, 1), (1, 2), \dotsc, (6, 6)\}</m> has 36 elements.
Since the die is fair, the distribution on <m>\Omega</m> is uniform, i.e., <m>\Pr(\omega) = \frac{1}{36}</m> for any <m>\omega \in \Omega</m>.
</p>
<p>
<m>S</m> takes on the values <m>2, 3, 4, \dotsc, 12</m>, with probabilities:
</p>
<table>
<title>Distribution for <m>S</m></title>
<tabular halign="center">
<row>
<cell><m>x</m></cell>
<cell><m>\Pr(S = x)</m></cell>
</row>
<row>
<cell>2</cell>
<cell>1/36</cell>
</row>
<row>
<cell>3</cell>
<cell>2/36</cell>
</row>
<row>
<cell>4</cell>
<cell>3/36</cell>
</row>
<row>
<cell><m>\vdots</m></cell>
<cell><m>\vdots</m></cell>
</row>
<row>
<cell>7</cell>
<cell>6/36</cell>
</row>
<row>
<cell>8</cell>
<cell>5/36</cell>
</row>
<row>
<cell><m>\vdots</m></cell>
<cell></cell>
</row>
<row>
<cell>12</cell>
<cell>1/36</cell>
</row>
</tabular>
</table>
<p>
Note that the distribution on <m>\Omega</m> is uniform, but the distribution on <m>S</m> is not.
</p>
</statement>
</example>
<example>
<statement>
<p>
Let <m>\Omega</m> be a sample space and <m>A \subset \Omega</m> an event.
Let
<md>
<mrow> X = \begin{cases} 1 \amp x \in A \\ 0 \amp x \notin A \end{cases} </mrow>
</md>
<m>X</m> is called an <term>indicator random variable</term>, and we say "<m>X</m> <term>indicates</term> <m>A</m>".
</p>
<p>
The distribution on <m>X</m> is:
<md>
<mrow> \Pr(X = 1) \amp = \Pr(\{ x \mid x \in A\}) = \Pr(A) </mrow>
<mrow> \Pr(X = 0) \amp = 1 - \Pr(A) </mrow>
</md>
</p>
</statement>
</example>
<example>
<statement>
<p>
Suppose we flip a coin <m>n</m> times.
Let <m>H_i</m> indicate heads on flip <m>i</m>.
Let <m>S</m> be the total number of heads in all flips.
Then:
<md>
<mrow> S = H_1 + H_2 + \dotsb + H_{n} </mrow>
</md>
If <m>p</m> is the probability of the coin coming up heads on a flip, then <m>S</m> has the <term>binomial distribution</term> with parameters <m>n, p</m>.
We'll use the notation <m>S \sim \Bin(n, p)</m> and:
<md>
<mrow> b(k) = b(k; n, p) = \Pr(S = k). </mrow>
</md>
</p>
<p>
Suppose the coin has <m>p = 0.3</m> and we flip it <m>n = 4</m> times.
Find <m>b(2) = b(2; 4, 0.3)</m>.
</p>
<p>
The relevant flip sequences are:
<md>
<mrow> THHT, HHTT, TTHH, THTH, HTHT, HTTH </mrow>
</md>
Each individual sequence has a probability of <m>(0.3)(0.3)(0.7)(0.7) = 0.0441</m>.
So the total probability is:
<md>
<mrow> b(2; 4, 0.3) = (6)(0.0441) = 0.2646. </mrow>
</md>
That is, (number of flip sequences)(probability of each sequence).
</p>
</statement>
</example>
</subsection>
</section>