3 Statistics, Part 1

In this chapter we’ll cover:

  • Basic statistical functions in R
  • Running Monte Carlo simulations
  • Simple linear regression
  • A case study on sampling bias
  • Multiple regression

This chapter is not meant to be an introduction to fundamental statistical concepts, which we assume you have encountered in other courses, but hopefully, R provides an opportunity to derive many of the same insights yourself, and leverage them more effectively for data analysis.