Skip to content
Open
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
2 changes: 2 additions & 0 deletions latex/Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
stats-workshop.pdf: bayes.tex counting.tex probability.tex common-distributions.tex independence.tex random-variables.tex conditional-probability.tex introduction.tex stats-workshop.tex
pdflatex stats-workshop.tex
6 changes: 3 additions & 3 deletions latex/bayes.tex
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ \section{Bayes' Formula}

Let's study a classic thought experiment: the disease screening problem.

Suppose we have developed a test for a certain disease:
Suppose we have developed a test for a certain disease.
\begin{itemize}
\item Only 1 \% of people have the disease.
\item If a person has the disease, the test will be positive 99.9 \% of the
Expand Down Expand Up @@ -63,7 +63,7 @@ \section{Bayes' Formula}

%
\begin{frame}
Bayes formula says:
Bayes' formula says:

\begin{align*}
P(\text{Have Disease} & \mid \text{Test is Positive)} \\
Expand Down Expand Up @@ -161,7 +161,7 @@ \section{Bayes' Formula}

$$ P(\text{Have Disease}) = 0.01 $$

\textbf{I takes a lot of evidence to take an unlikely situation and make it
\textbf{It requires a lot of evidence to take an unlikely situation and make it
likely.}

\end{frame}
Expand Down
12 changes: 6 additions & 6 deletions latex/common-distributions.tex
Original file line number Diff line number Diff line change
Expand Up @@ -66,9 +66,9 @@ \section{Common Distributions}

\begin{itemize}
\item Flipping a fair coin.
\item Rolling a six on a six sided die.
\item Rolling a twenty on a twenty sided die.
\item Rolling greater than a ten on a twenty sided die.
\item Rolling a six on a six-sided die.
\item Rolling a twenty on a twenty-sided die.
\item Rolling greater than a ten on a twenty-sided die.
\end{itemize}

Are any of these equally distributed?
Expand Down Expand Up @@ -176,13 +176,13 @@ \section{Common Distributions}
%
\begin{frame}

A \text{critical hit} is a roll of 20 on a 20 sided die. In a session of
A \text{critical hit} is a roll of 20 on a 20-sided die. In a session of
Dungeons and Dragons, you roll the die 20 times. What is the probability that
you roll \textbf{at least two} critical hits.

\hfill

A \text{saving throw} is a roll of at least 15 on a 20 sided die. In a session
A \text{saving throw} is a roll of at least 15 on a 20-sided die. In a session
of Dungeons and Dragons you roll the die to attempt a saving throw 10 times.
What is the probability you \text{fail} all of your saving throws?

Expand Down Expand Up @@ -226,7 +226,7 @@ \section{Common Distributions}

%
\begin{frame}
The rate the cat meows is:
The rate the cat meows is

$$ \lambda = \frac{5 \text{ meows}}{10 \text{ minuets}} = 5 \frac{ \text{
meows}}{\text{ 10 minuets}} $$
Expand Down
8 changes: 4 additions & 4 deletions latex/conditional-probability.tex
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ \section{Conditional Probability}
%
\begin{frame}

Suppose we know that one event $C$ has already happened or will happen (the
condition), and we want to know the probability of different event $B$.
Suppose we know that one event $B$ has already happened or will happen (the
condition), and we want to know the probability of different event $A$.

\hfill

Expand Down Expand Up @@ -103,7 +103,7 @@ \section{Conditional Probability}
\begin{frame}

What is the conditional probability that you draw a full house, given that you know you
have at least a three of a kind
have at least a three of a kind?

\begin{align*}
P(\text{Drawing a} & \text{ full house} \mid \text{Drawing a three of a kind}) = \\
Expand All @@ -125,7 +125,7 @@ \section{Conditional Probability}
%
\begin{frame}
What is the conditional probability that you draw a full house, given that you
have drawn a four of a kind.
have drawn a four of a kind?

What is the conditional probability that you draw a four of a kind, given that
you know you already have a pair?
Expand Down
12 changes: 6 additions & 6 deletions latex/counting.tex
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,11 @@ \section{Counting (Combinatorics)}

\begin{itemize}
\item How many ways are there to arrange four letters of the alphabet?
\item How many ways are there to arrange four \textit{different} letters of the alphabet.
\item How many ways are there to arrange 25 math books on a bookshelf.
\item How many five card hands are full houses.
\item How many five card hands have three of a kind.
\item How many five card hands have three of a kind and are not also full
\item How many ways are there to arrange four \textit{different} letters of the alphabet?
\item How many ways are there to arrange 25 books on a bookshelf?
\item How many five-card hands are full houses?
\item How many five-card hands have three of a kind?
\item How many five-card hands have three of a kind and are not also full?
houses.
\end{itemize}

Expand Down Expand Up @@ -120,7 +120,7 @@ \section{Counting (Combinatorics)}

\hfill

How many 5 card hands are possible when drawing from a standard 52 card deck?
How many five-card hands are possible when drawing from a standard 52 card deck?

\hfill

Expand Down
3 changes: 1 addition & 2 deletions latex/independence.tex
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,7 @@ \section{Independence}

$$ P(A \mid B) = \frac{P(A \text{ and } B)}{P(B)} $$

Combining this with our definition of independence (so, below, $A$ and $B$ are
independent
If $A$ and $B$ are independent, we can combine this with our definition of independence to get

$$ P(A) = P(A \mid B) = \frac{P(A \text{ and } B)}{P(B)} $$

Expand Down
2 changes: 1 addition & 1 deletion latex/introduction.tex
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ \section{Introduction}

\hfill

If I have a coin which is \textbf{known} to land head exactly half of the time, it is a problem in \textbf{probability} to determine how often the coin will never land on heads over ten consecutive flips.
If I have a coin which is \textbf{known} to land heads exactly half of the time, it is a problem in \textbf{probability} to determine how often the coin will never land on heads over ten consecutive flips.

}%

Expand Down
6 changes: 3 additions & 3 deletions latex/probability.tex
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ \section{Probability Basics}

\hfill

An \textbf{event} is a collection of things that can happen, usually given be a
An \textbf{event} is a collection of things that can happen, usually given by a
short description.

\end{frame}
Expand All @@ -25,15 +25,15 @@ \section{Probability Basics}

\hfill

The collection of all full-houses, three of a kinds, etc are \textbf{events}.
The collection of all full houses, three of a kinds, etc. are \textbf{events}.

\end{frame}


%
\begin{frame}

The \textbf{probability} of an event is:
The \textbf{probability} of an event is

$$ P(\text{event}) = \frac{\text{\# of ways event can happen}}{\text{total \# of
things that can happen}} $$
Expand Down
6 changes: 3 additions & 3 deletions latex/random-variables.tex
Original file line number Diff line number Diff line change
Expand Up @@ -23,12 +23,12 @@ \section{Random Variables}
\begin{itemize}
\item The number of heads seen in ten flips of a quarter.
\item The number of heads seen in ten flips of a dime.
\item The number of Buses that arrive late to a stop in Seattle in a single
\item The number of buses that arrive late to a stop in Seattle in a single
day.
\item The number of times my cat asks for food between 5 and 6 pm (when she is
always fed) in a given day.
\item The temperature on a mid-summers day in Seattle.
\item The rainfall in a mid-winters day in Seattle.
\item The temperature on a mid-summer's day in Seattle.
\item The rainfall in a mid-winter's day in Seattle.
\end{itemize}

\end{frame}
Expand Down
124 changes: 73 additions & 51 deletions linear-and-logistic-regression.ipynb

Large diffs are not rendered by default.

Binary file modified stats-workshop.pdf
Binary file not shown.
27 changes: 16 additions & 11 deletions student-bayes-survey-results.ipynb

Large diffs are not rendered by default.