by ozgooen · 10y ago · 0 comments
Right now the main distribution types are normal and uniform. In the video, I showed normal distributions, which have long tails in both directions.
In this case, a normal distribution isn't really correct, because, as you noted, being less than 0 is exceedingly unlikely.
I believe the correct way to deal with this is to use a lognormal distribution or something that has 0 chance of being less than 0. I don't yet have a simple way of doing this, but it's definitely on the agenda.
Just something to keep in mind when abstracting what a distribution is.
edit: though as a short-hand for entry, Gaussian is usually a pretty good guess. Is there support for µ±σ instead of [low,high] in the works? Or support for numerical distributions?
"Or support for numerical distributions?" - By numerical distributions do you mean discreet distributions: like, a 40% of being '8' and a 60% chance of being '6'? If so, the answer is no. However, if you use the ternary operator it is possible to do very simple versions of this now. We do support totally random picks of different numbers though, using the pickRandom([3,5,3]) function. http://mathjs.org/docs/reference/functions/pickRandom.html