Skip to content

Commit

Permalink
Added a hw2
Browse files Browse the repository at this point in the history
  • Loading branch information
bcaffo committed May 18, 2014
1 parent 4b9e4c6 commit 4bce3bd
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 8 deletions.
8 changes: 6 additions & 2 deletions 06_StatisticalInference/homework/hw2.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -104,17 +104,21 @@ $$



--- &radio
--- &multitext
Suppose that the number of web hits to a particular site are approximately normally
distributed with a mean of 100 hits per day and a standard deviation of 10 hits per day. What number of web hits per day represents the number so that only
distributed with a mean of 100 hits per day and a standard deviation of 10 hits per day.

1. What number of web hits per day represents the number so that only
5% of days have more hits? Express your answer to 3 decimal places.



*** .hint
Let $X$ be the number of hits per day. We want $P(X \leq 93)$ given that
$X$ is $N(100, 10^2)$.

*** .explanation
<span class="answer">`r round(qnorm(.95, mean = 100, sd = 10), 3)`</span>
```{r}
round(qnorm(.95, mean = 100, sd = 10), 3)
round(qnorm(.05, mean = 100, sd = 10, lower.tail = FALSE), 3)
Expand Down
14 changes: 10 additions & 4 deletions 06_StatisticalInference/homework/hw2.html
Original file line number Diff line number Diff line change
Expand Up @@ -181,10 +181,14 @@ <h2>About these slides</h2>
<slide class="" id="slide-5" style="background:;">
<article data-timings="">

<div class="quiz quiz-single well ">
<div class="quiz-text quiz-multitext well">
<p>Suppose that the number of web hits to a particular site are approximately normally
distributed with a mean of 100 hits per day and a standard deviation of 10 hits per day. What number of web hits per day represents the number so that only
5% of days have more hits? Express your answer to 3 decimal places.</p>
distributed with a mean of 100 hits per day and a standard deviation of 10 hits per day. </p>

<ol>
<li>What number of web hits per day represents the number so that only
5% of days have more hits? Express your answer to 3 decimal places.</li>
</ol>

<button class="quiz-submit btn btn-primary">Submit</button>
<button class="quiz-toggle-hint btn btn-info">Show Hint</button>
Expand All @@ -197,7 +201,9 @@ <h2>About these slides</h2>

</div>
<div class="quiz-explanation">
<pre><code class="r">round(qnorm(.95, mean = 100, sd = 10), 3)
<p><span class="answer">116.449</span></p>

<pre><code class="r">round(qnorm(.95, mean = 100, sd = 10), 3)
</code></pre>

<pre><code>[1] 116.4
Expand Down
8 changes: 6 additions & 2 deletions 06_StatisticalInference/homework/hw2.md
Original file line number Diff line number Diff line change
Expand Up @@ -101,17 +101,21 @@ $$



--- &radio
--- &multitext
Suppose that the number of web hits to a particular site are approximately normally
distributed with a mean of 100 hits per day and a standard deviation of 10 hits per day. What number of web hits per day represents the number so that only
distributed with a mean of 100 hits per day and a standard deviation of 10 hits per day.

1. What number of web hits per day represents the number so that only
5% of days have more hits? Express your answer to 3 decimal places.



*** .hint
Let $X$ be the number of hits per day. We want $P(X \leq 93)$ given that
$X$ is $N(100, 10^2)$.

*** .explanation
<span class="answer">116.449</span>

```r
round(qnorm(.95, mean = 100, sd = 10), 3)
Expand Down

0 comments on commit 4bce3bd

Please sign in to comment.