[A] chapter 5, except section 5.5.
This lecture as: slideshow (html), Rmarkdown (Rmd), notes (pdf).
The entire module: notes (pdf).
Solve exercise 5.7 and 5.17 in Agresti (you can solve it using the Rmarkdown file Agresti-5-7_and_5-17.Rmd ).
Solve Agresti exercise 5.19 (use RStudio), 5.31, 5.37 and 5.41 (hint: which standard deviation is necessary for the normal distribution with mean 9 to cover the interval 0-18 with probability 99.7%?)
Confidence intervals:
If you work on your own machine you should start by installing the packageTeachingDemos
(already installed on RStudio server):install.packages("TeachingDemos")
library(TeachingDemos)
ci.examp()
to visualize 50 confidence intervals.ci.examp
by the command ?ci.examp
.method="t"
. Try e.g. to generate 40 random samples (reps=40) and plot the corresponding 40 confidence intervals with a confidence level of 90% (conf.level=0.90). Convince yourselves that we expect 4 of these confidence intervals not to contain the population mean.Go through any Rmarkdown exercises of the previous two lectures that you did not yet finish.