Files
Fall-2026-Math-1044/source/notes/week01.ptx
T
2026-01-13 22:26:12 -05:00

529 lines
16 KiB
XML

<?xml version="1.0" encoding="UTF-8"?>
<section xml:id="notes-week-01">
<title>Week 1</title>
<introduction>
<p>
This is an outline of the topics we covered in the first week of 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>
<title>Tuesday 1/13</title>
<subsubsection xml:id="subsubsec-Sets">
<title>Sec 1.1: Sets</title>
<p>
In prior math courses, you mostly asked <term>deterministic</term> questions.
Now, we need new tools to model <term>randomness</term>.
</p>
<example>
<statement>
<p>
A toxin molecule in a cell has a certain chance each minute to leave the cell.
</p>
</statement>
</example>
<example>
<statement>
<p>
A patient takes a diagnostic test for a disease and wants to know the chance that they have the disease based on the test result.
</p>
</statement>
</example>
<definition xml:id="def-sample-space">
<statement>
<p>
The <term>sample space</term>, often denoted <m>\Omega</m>, is the set of all possible results of an experiment.
A single result is called an <term>outcome</term>, while a collection of results is called an <term>event</term>.
</p>
</statement>
</definition>
<example xml:id="example-sample-space">
<statement>
<p>
An experiment consists of rolling a standard 6-sided die (D6).
The sample space is <m>\Omega = \{1, 2, 3, 4, 5, 6\}</m>.
One possible event is <m>A = \{2, 4, 6\}</m>, i.e., the event that the result of the roll is even.
</p>
</statement>
</example>
<p>
Note: we'll use notation like D6 to indicate a 6-sided die with faces 1, 2, 3, 4, 5, 6.
Similarly, for example, D4 will indicate a 4-sided die with faces 1, 2, 3, 4.
</p>
<definition xml:id="def-subset">
<statement>
<p>
The symbol <m>\in</m> means "is an <term>element</term> of", as in <m>4 \in A</m>.
</p>
<p>
The symbol <m>\subset</m> means "is a <term>subset</term> of", as in <m>A \subset \Omega</m>.
This means that every element of the set <m>A</m> is also an element of the set <m>\Omega</m>.
</p>
</statement>
</definition>
<definition xml:id="def-set-operations">
<statement>
<p>
Consider sets <m>A</m> and <m>B</m>, each contained inside <m>\Omega</m>.
We can combine sets in a variety of ways: <dl>
<li>
<title>Union</title>
<p>
The <term>union</term> of <m>A</m> and <m>B</m> is the set <m>A \cup B = \{x \mid x \in A \text{ or } x \in B\}</m>.
</p>
</li>
<li>
<title>Intersection</title>
<p>
The <term>intersection</term> of <m>A</m> and <m>B</m> is the set <m>A \cap B = \{x \mid x \in A \text{ and } x \in B\}</m>.
</p>
</li>
<li>
<title>Difference</title>
<p>
The <term>set difference</term> <m>A-B</m> is the set <m>A - B = \{x \mid x \in A \text{ and } x \notin B\}</m>.
</p>
</li>
<li>
<title>Complement</title>
<p>
The <term>complement</term> of <m>A</m> is the set <m>A^c = \{x \in \Omega \mid x \notin A\}</m>.
</p>
</li>
<li>
<title>Empty Set</title>
<p>
The <term>empty set</term>, usually written <m>\emptyset</m> or <m>\{\}</m>, is the set which contains no elements.
</p>
</li>
</dl>
</p>
</statement>
</definition>
<p>
It's useful sometimes to draw pictures called <term>Venn diagrams</term> representing set interactions.
</p>
<sbsgroup widths="40% 40%">
<sidebyside>
<figure xml:id="fig-Venn-diagram-union">
<caption>Union</caption>
<image>
<description>
<p>
Venn diagram showing sets <m>A, B</m> with the region representing <m>A \cup B</m> shaded.
</p>
</description>
<latex-image>
\begin{tikzpicture}
\def\firstcircle{(180:1.75cm) circle (2.5cm)}
\def\secondcircle{(0:1.75cm) circle (2.5cm)}
\fill[gray!30] \firstcircle;
\fill[gray!30] \secondcircle;
\draw \firstcircle node[text=black,left] {$A$};
\draw \secondcircle node [text=black,right] {$B$};
\end{tikzpicture}
</latex-image>
</image>
</figure>
<figure xml:id="fig-Venn-diagram-intersection">
<caption>Intersection</caption>
<image>
<description>
<p>
Venn diagram showing sets <m>A, B</m> with the region representing <m>A \cap B</m> shaded.
</p>
</description>
<latex-image>
\begin{tikzpicture}
\def\firstcircle{(180:1.75cm) circle (2.5cm)}
\def\secondcircle{(0:1.75cm) circle (2.5cm)}
\fill[white] \firstcircle;
\fill[white] \secondcircle;
\begin{scope}
\clip \firstcircle;
\clip \secondcircle;
\fill[gray!30] \firstcircle;
\end{scope}
\draw \firstcircle node[text=black,left] {$A$};
\draw \secondcircle node [text=black,right] {$B$};
\end{tikzpicture}
</latex-image>
</image>
</figure>
</sidebyside>
<sidebyside>
<figure xml:id="fig-Venn-diagram-difference">
<caption>Difference</caption>
<image>
<description>
<p>
Venn diagram showing sets <m>A, B</m> with the region representing <m>A - B</m> shaded.
</p>
</description>
<latex-image>
\begin{tikzpicture}
\def\firstcircle{(180:1.75cm) circle (2.5cm)}
\def\secondcircle{(0:1.75cm) circle (2.5cm)}
\fill[gray!30] \firstcircle;
\fill[white] \secondcircle;
\draw \firstcircle node[text=black,left] {$A$};
\draw \secondcircle node [text=black,right] {$B$};
\end{tikzpicture}
</latex-image>
</image>
</figure>
<figure xml:id="fig-Venn-diagram-complement">
<caption>Complement</caption>
<image>
<description>
<p>
Venn diagram showing set <m>A \subset \Omega</m> with the region representing <m>A^c</m> shaded.
</p>
</description>
<latex-image>
\begin{tikzpicture}
\def\firstcircle{(0, 0) circle (2.5cm)}
\fill [gray!30] (-4, -3) rectangle (5, 3);
\fill[white] \firstcircle;
\draw \firstcircle node[text=black] {$A$};
\draw (-4, -3) rectangle (5, 3) node [text=black,right] {$\Omega$};
\end{tikzpicture}
</latex-image>
</image>
</figure>
</sidebyside>
</sbsgroup>
</subsubsection>
<subsubsection xml:id="subsubsec-Probability">
<title>Sec 1.2: Probability</title>
<p>
Next, we want to start assigning probabilities to each individual outcome so we can then find the probabilities of events.
</p>
<example>
<statement>
<p>
An experiment consists of rolling a D6.
The sample space is <m>\Omega = \{1, 2, 3, 4, 5, 6\}</m>.
We might assign probabilities as follows:
</p>
<table>
<title>Distribution for a fair die</title>
<tabular halign="center">
<row bottom="minor">
<cell><m>x</m></cell>
<cell><m>\Pr(x)</m></cell>
</row>
<row>
<cell>1</cell>
<cell><m>1/6</m></cell>
</row>
<row>
<cell>2</cell>
<cell><m>1/6</m></cell>
</row>
<row>
<cell>3</cell>
<cell><m>1/6</m></cell>
</row>
<row>
<cell>4</cell>
<cell><m>1/6</m></cell>
</row>
<row>
<cell>5</cell>
<cell><m>1/6</m></cell>
</row>
<row>
<cell>6</cell>
<cell><m>1/6</m></cell>
</row>
</tabular>
</table>
<p>
Note that we don't have to assign the same probability to each outcome.
If we do, we call this distribution <term>uniform</term>.
If we have some event, such as <m>A = \{2, 4, 6\}</m>, then we calculate the probability of the event by adding together the probabilities of the outcomes that make up the event:
<md>
<mrow> \Pr(A) = \Pr(2) + \Pr(4) + \Pr(6) = \frac{1}{6} + \frac{1}{6} + \frac{1}{6} = \frac{3}{6} = \frac{1}{2} </mrow>
</md>
Note that this is the same result that we would get if we counted the total number of outcomes in <m>A</m> and divided by the total number of outcomes in <m>\Omega</m>.
</p>
</statement>
</example>
<definition xml:id="def-cardinality">
<statement>
<p>
Given a finite set <m>A</m>, the <term>cardinality</term> of <m>A</m>, written <m>|A|</m>, is the number of elements in <m>A</m>.
</p>
</statement>
</definition>
<fact>
<statement>
<p>
If <m>\Omega</m> is a finite probability space with the uniform distribution and <m>A \subset \Omega</m> is an event, then:
<md>
<mrow> \Pr(A) = \frac{|A|}{|\Omega|} </mrow>
</md>
</p>
</statement>
</fact>
<example>
<statement>
<p>
Suppose we have a weighted die that's much more likely to come up 6 than any other outcome.
</p>
<table>
<title>Distribution for a fair die</title>
<tabular halign="center">
<row bottom="minor">
<cell><m>x</m></cell>
<cell><m>\Pr(x)</m></cell>
</row>
<row>
<cell>1</cell>
<cell>0.1</cell>
</row>
<row>
<cell>2</cell>
<cell>0.1</cell>
</row>
<row>
<cell>3</cell>
<cell>0.1</cell>
</row>
<row>
<cell>4</cell>
<cell>0.2</cell>
</row>
<row>
<cell>5</cell>
<cell>0.1</cell>
</row>
<row>
<cell>6</cell>
<cell>0.4</cell>
</row>
</tabular>
</table>
<p>
With this distribution, if <m>A = \{2, 4, 6\}</m>, then:
<md>
<mrow> \Pr(A) = 0.1 + 0.2 + 0.4 = 0.7 \neq \frac{3}{6}. </mrow>
</md>
</p>
</statement>
</example>
<example>
<statement>
<p>
Pick a number from 1 to 10.
What is the probability of picking 3?
</p>
<p>
Some considerations:
<ol>
<li>
<p>
Are we using the uniform distribution?
</p>
</li>
<li>
<p>
What even is the sample space here? Do we need to pick only integers, or is <m>\pi</m> an outcome here?
</p>
</li>
<li>
<p>
What would "uniform" mean if the sample space was infinite?
</p>
</li>
</ol>
</p>
</statement>
</example>
<definition xml:id="def-probability-distribution">
<statement>
<p>
A <term>probability distribution</term> on a sample space <m>\Omega</m> assigns probabilities to every event, satisfying the following conditions:
<ol>
<li>
<p>
<m>\Pr(\Omega) = 1</m>.
</p>
</li>
<li>
<p>
<m>0 \leq \Pr(A) \leq 1</m> for any event <m>A</m>.
</p>
</li>
<li>
<p>
If <m>A \cap B = \emptyset</m>, then <m>\Pr(A\cup B) = \Pr(A) + \Pr(B)</m>.
</p>
</li>
</ol>
</p>
</statement>
</definition>
<example>
<statement>
<p>
Suppose we flip a coin until we see heads.
The sample space is <m>\Omega = \{H, TH, TTH, TTTH, \dotsc\}</m>.
What would "uniform" mean here? Is there any way we could assign the same probability to each individual outcome here?
</p>
<p>
Instead of "uniform", what if we want to treat the coin as a fair coin? Then what would the distribution be?
</p>
<table>
<title>Distribution assuming a fair coin</title>
<tabular halign="center">
<row bottom="minor">
<cell><m>x</m></cell>
<cell># flips</cell>
<cell><m>\Pr(x)</m></cell>
</row>
<row>
<cell><m>H</m></cell>
<cell>1</cell>
<cell><m>1/2</m></cell>
</row>
<row>
<cell><m>TH</m></cell>
<cell>2</cell>
<cell><m>1/4</m></cell>
</row>
<row>
<cell><m>TTH</m></cell>
<cell>3</cell>
<cell><m>1/8</m></cell>
</row>
<row>
<cell><m>TTTH</m></cell>
<cell>4</cell>
<cell><m>1/16</m></cell>
</row>
<row>
<cell><m>\vdots</m></cell>
<cell></cell>
<cell><m>\vdots</m></cell>
</row>
<row>
<cell><m>T\dotsm TH</m></cell>
<cell><m>n</m></cell>
<cell><m>1/2^n</m></cell>
</row>
<row>
<cell><m>\vdots</m></cell>
<cell></cell>
<cell><m>\vdots</m></cell>
</row>
</tabular>
</table>
</statement>
</example>
<example>
<statement>
<p>
One last (very useful!) observation.
Recall: If <m>A\cap B = \emptyset</m>, then <m>\Pr(A\cup B) = \Pr(A) + \Pr(B)</m>.
</p>
<p>
For any event <m>A</m>, <m>A\cap A^c = \emptyset</m> and <m>A \cup A^c = \Omega</m>.
So:
<md>
<mrow> 1 = \Pr(\underbrace{A \cup A^c}_{\Omega}) = \Pr(A) + \Pr(A^c). </mrow>
</md>
We can rewrite this in two useful ways:
<md>
<mrow> \Pr(A) \amp = 1 - \Pr(A^c) </mrow>
<mrow> \Pr(A^c) \amp = 1 - \Pr(A) </mrow>
</md>
</p>
</statement>
</example>
</subsubsection>
</subsection>
<!--
<subsection>
<title>Thursday 1/15</title>
<p>
</p>
</subsection>
-->
</section>