I didn't really know if this stack was the right place to post but I was reading the documentation for creating an exponential random variable in numpy. But isn't there a typo. Like shouldn't it be :

$f(x; \beta) = \frac{1}{\beta} \exp(-\frac{x}{\beta})$ instead of $f(x; \frac{1}{\beta}) = \frac{1}{\beta} \exp(-\frac{x}{\beta})$?

  • 3
    $\begingroup$ I'd say the correct place for this should be in their mailing list or as an issue in their github repository. $\endgroup$ Dec 9, 2020 at 9:30

1 Answer 1


From the source on GitHub, the function does accept $\beta$, so even if expressing the function in terms of $\frac{1}{\beta}$ (rather than $\lambda=\frac{1}{\beta}$) was typical, it is a bit misleading to present it in this way on the documentation page.


Not the answer you're looking for? Browse other questions tagged or ask your own question.