1. 학습
  2. /
  3. 강의
  4. /
  5. Foundations of Probability in R

Connected

연습 문제

Simulating coin flips

In these exercises, you'll practice using the rbinom() function, which generates random "flips" that are either 1 ("heads") or 0 ("tails").

지침

100 XP
  • With one line of code, simulate 10 coin flips, each with a 30% chance of coming up 1 ("heads").
  • What kind of values do you see?