1. เรียนรู้
  2. /
  3. Courses
  4. /
  5. Foundations of Probability in R

Connected

Exercises

Simulating from the geometric distribution

In this exercise you'll compare your replications with the output of rgeom().

คำแนะนำ

100 XP
  • Use the function rgeom() to simulate 100,000 draws from a geometric distributions with probability .2. Save this as geom_sample.
  • Compare replications and geom_sample with the compare_histograms() function.