title: R - rbinom; what does the probability of success define if there is N number of observation?
body: <p>In R, you can generate the data from multinomial distribution using rbinom. For example, if you do </p>
  
  <pre><code>  rbinom(400, 1, 0.2) 
  </code></pre>
  
  <p>It generates 400 points of 0 or 1 with the probability of 0.2 that the data point is 1. So, the second argument is the number of trials, but I don't exactly know that that means. What is the number of trials? If I set this to be 1, I see the values of 0 or 1, and if I set it to be N, I see the values of 0 - N. </p>