Skip to content

Commit

Permalink
fixed small errors
Browse files Browse the repository at this point in the history
  • Loading branch information
fdabl committed Apr 15, 2017
1 parent 5c97768 commit e1ed920
Show file tree
Hide file tree
Showing 10 changed files with 16 additions and 19 deletions.
6 changes: 4 additions & 2 deletions exercises/exercises.Rmd
Expand Up @@ -12,12 +12,14 @@ knitr::opts_chunk$set(echo = TRUE, warning = FALSE, message = FALSE, dev.args =

# Probability
## 1. Axioms

$$
\begin{split}
P(\mathcal{S}) = 1, \, P(\emptyset) = 0 \\
P(\bigcup^{\infty}_{i = 1}\mathcal{A}_i) = \sum^{\infty}_{i=1}P(\mathcal{A}_i)
&P(\mathcal{S}) = 1, \, P(\emptyset) = 0 \\
&P(\bigcup^{\infty}_{i = 1}\mathcal{A}_i) = \sum^{\infty}_{i=1}P(\mathcal{A}_i) \qquad A_1, A_2, \ldots \text{are disjoint}
\end{split}
$$

From these two axioms, three important properties can be deduced.

$$
Expand Down
Binary file modified exercises/exercises.pdf
Binary file not shown.
Binary file modified slides/images/binomial-model-bayes.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified slides/images/binomial-model.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified slides/model-graphs/binomial-model-bayes.pdf
Binary file not shown.
5 changes: 2 additions & 3 deletions slides/model-graphs/binomial-model-bayes.tex
Expand Up @@ -19,10 +19,9 @@
\draw[->] (theta)--(y);
\draw[->] (n)--(y);

\begin{scope}[xshift = 4.5cm, node distance = 1cm]
\begin{scope}[xshift = 4.5cm, yshift = -2cm, node distance = 1cm]
\node[] at(0, 0) (a) {$\alpha = \beta = 1$};
\node[below of = a] (n) {$n = 20$};
\node[below of = n] (theta) {$\theta \sim \mbox{Beta}(\alpha, \beta)$};
\node[below of = a] (theta) {$\theta \sim \mbox{Beta}(\alpha, \beta)$};
\node[below of = theta] (y) {$y \sim \mbox{Binomial}(\theta, n)$};
\end{scope}

Expand Down
Binary file modified slides/model-graphs/binomial-model.pdf
Binary file not shown.
8 changes: 3 additions & 5 deletions slides/model-graphs/binomial-model.tex
Expand Up @@ -8,17 +8,15 @@
\begin{document}

\begin{tikzpicture}[node distance = 2cm, double distance = 2pt, minimum size=.8cm, thick]
\node[circle, draw=black, double] (theta) {$\hat \theta$};
\node[circle, draw=black] (theta) {$\theta$};
\node[rectangle, below of=theta, draw=black, fill=lightgray] (y) {$y$};
\node[rectangle, draw=black, fill=lightgray, left of=y, node distance = 1.5cm] (n) {$n$};

\draw[->] (theta)--(y);
\draw[->] (n)--(y);

\begin{scope}[xshift = 2.5cm, node distance = 1cm]
\node[] at(0, 0) (n) {$n = 20$};
\node[below of = n] (theta) {$\hat \theta = \frac{y}{n}$};
\node[below of = theta] (y) {$y \sim \mbox{Binomial}(\hat \theta, n)$};
\begin{scope}[xshift = 2.5cm, yshift = -2cm, node distance = 1cm]
\node[] at(0, 0) (y) {$y \sim \mbox{Binomial}(\theta, n)$};
\end{scope}

\end{tikzpicture}
Expand Down
5 changes: 2 additions & 3 deletions slides/slides.Rmd
Expand Up @@ -252,8 +252,8 @@ $$

$$
\begin{align*}
P(\mathcal{S}) = 1, \, P(\emptyset) = 0 \\
P(\bigcup^{\infty}_{i = 1}\mathcal{A}_i) = \sum^{\infty}_{i=1}P(\mathcal{A}_i)
&P(\mathcal{S}) = 1, \, P(\emptyset) = 0 \\
&P(\bigcup^{\infty}_{i = 1}\mathcal{A}_i) = \sum^{\infty}_{i=1}P(\mathcal{A}_i) \qquad A_1, A_2, \ldots \text{are disjoint}
\end{align*}
$$
<center>
Expand All @@ -272,7 +272,6 @@ P(\mathcal{A}) &\leq P(\mathcal{B}) \, \, \, \, \, \, \, \text{ if } \mathcal
$$

## How likely is today somebody's birthday?
- The sample space is $\mathcal{S} = \{1, 2, \ldots, 365\}$
- There are $k = 35$ people in the room
- We assume that no people share birthdays, i.e., sampling without replacement ($k \leq 365$)
- Then
Expand Down
11 changes: 5 additions & 6 deletions slides/slides.html

Large diffs are not rendered by default.

0 comments on commit e1ed920

Please sign in to comment.