Skip to content

Commit

Permalink
Fixed a small error
Browse files Browse the repository at this point in the history
  • Loading branch information
bcaffo committed May 14, 2014
1 parent 0aebebd commit 0dba375
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 3 deletions.
5 changes: 4 additions & 1 deletion 06_StatisticalInference/homework/hw1.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ Consider influenza epidemics for two parent heterosexual families. Suppose that
1. 15%
2. 6%
3. 5%
4. _1%_
4. _2%_

*** .hint
$A = Father$, $P(A) = .06$, $B = Mother$, $P(B) = .05$
Expand All @@ -54,6 +54,9 @@ $P(A\cup B) = .15$,
*** .explanation
$P(A\cup B) = P(A) + P(B) - 2 P(AB)$ thus
$$.15 = .06 + .05 - 2 P(AB)$$
```{r}
(0.15 - .06 - .05) / 2
```

--- &radio

Expand Down
8 changes: 7 additions & 1 deletion 06_StatisticalInference/homework/hw1.html
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ <h2>About these slides</h2>
<li>15%</li>
<li>6%</li>
<li>5%</li>
<li><em>1%</em></li>
<li><em>2%</em></li>
</ol>

<button class="quiz-submit btn btn-primary">Submit</button>
Expand All @@ -86,6 +86,12 @@ <h2>About these slides</h2>
<p>\(P(A\cup B) = P(A) + P(B) - 2 P(AB)\) thus
\[.15 = .06 + .05 - 2 P(AB)\]</p>

<pre><code class="r">(0.15 - .06 - .05) / 2
</code></pre>

<pre><code>[1] 0.02
</code></pre>

</div>
</div>
</article>
Expand Down
11 changes: 10 additions & 1 deletion 06_StatisticalInference/homework/hw1.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ Consider influenza epidemics for two parent heterosexual families. Suppose that
1. 15%
2. 6%
3. 5%
4. _1%_
4. _2%_

*** .hint
$A = Father$, $P(A) = .06$, $B = Mother$, $P(B) = .05$
Expand All @@ -40,6 +40,15 @@ $P(A\cup B) = .15$,
$P(A\cup B) = P(A) + P(B) - 2 P(AB)$ thus
$$.15 = .06 + .05 - 2 P(AB)$$

```r
(0.15 - .06 - .05) / 2
```

```
[1] 0.02
```


--- &radio

A random variable, $X$, is uniform, a box from $0$ to $1$ of height $1$. (So that it's density is $f(x) = 1$ for $0\leq x \leq 1$.) What is it's median expressed to two decimal places? </p>
Expand Down

0 comments on commit 0dba375

Please sign in to comment.