Generic intro
c
, seq
,mean
, sd
, var
, min
, max
plot
, and a histogram with hist
rnorm
, runif
, etcdnorm
, dunif
, etcmatrix
apply
lines
Add content !
First, let’s recap (or introduce) a little theory. If you haven’t seen this yet in lectures, you will soon (Lecture 4). Consider a sample of \(n\) Normally-distributed data points: \(X_1,\dots,X_n\) i.i.d random variables from \(N(\mu,\sigma^2)\). We can say:
\[ \bar{X} = \frac{1}{n} \sum_{i=1}^n X_i \sim N \left( \mu,\frac{\sigma^2}{n} \right).\]
\[ \frac{(n-1)}{\sigma^2} S^2 \sim \chi^2_{n-1}.\]
Add techniques!