title: Python equivalent of R's rnbinom parametrized with mu
body: <p>R has a <a href="https://stat.ethz.ch/R-manual/R-devel/library/stats/html/NegBinomial.html" rel="nofollow">negative binomial function</a> that can be parameterized with <code>mu</code> rather than a probability (e.g., a float >= 0 and &lt;=1). I am trying to replicate this distribution:</p>
  
  <pre><code>rnbinom(1000,size=0.3,mu=15)
  </code></pre>
  
  <p>in Python. From what I can see, <a href="http://docs.scipy.org/doc/numpy/reference/generated/numpy.random.negative_binomial.html" rel="nofollow">Numpy's negative binomial function</a> only allows a probability. Also, I am unclear as to what the <code>size</code> parameter would be in Numpy.</p>