1. Learn
  2. /
  3. Courses
  4. /
  5. A/B Testing in R

Exercise

Sampling

The sample gathered can be plotted with a histogram to assess the sample distribution, visualizing whether the sample distribution is similar to the assumed distribution of the population.

Make a histogram of the original, normal distribution of 50,000 data points, then gather a small sample to plot and large sample to plot in order to visualize the change in distribution with sample size.

The ggplot2 package and distribution dataset of 50,000 data points have been loaded for you.

Instructions 1/3

undefined XP
  • 1
    • Create a histogram of the parent distribution with ten bins.
  • 2
    • Save a random sample of ten data points from distribution as small and plot a histogram of the sample with ten bins.
  • 3
    • Save a random sample of 100 data points from distribution as large and plot a histogram of the sample with ten bins.