Try to predict what the following outputs will be WITHOUT running the code in R. Drawing pictures of the relevant distributions may help.
(Yes, it is very easy to “cheat” on this question. But this is for your practice, and I recommend you give it some thought.)
If you do not recall the Central Limit Theorem from you previous classes - or if you would benefit from a refresher:
Explain the idea behind the CLT in your own words, using as little jargon/vocabulary as you can.
Here is the code that made one of the plots from the lecture video:
my_samples <- data.frame(x = rchisq(1000, df = 5))
ggplot(my_samples, aes(x)) +
geom_histogram(bins = 40, aes(y = ..density..), fill = "grey", col = "white") +
stat_function(fun= ~dchisq(.x, df = 5), col = "cornflowerblue", lwd = 2) +
theme_classic()
Re-create this plot from the lecture slides: (The two colors are “cornflowerblue” and “deeppink”)