vendredi 22 janvier 2016

How to achieve the following distribution in python random module or numpy?

  1. There would be 10000 samples.
  2. The mode of this distribution would be 100
  3. The distribution will mostly have values between 0 to 200, but few values ( with decreasing probablity can be as high as 5000 )

The probability distribution curve for the values would somewhat look like:

enter image description here

I have tried using random.triangular and numpy.random.triangular to generate such distributions with given low,high and mode, but triangular distribution is not very relevant to these requirements. How can such a normal distribution be achieved with random/numpy modules, using low (0) ,high (5000) ,mode (100) values provided ?




Aucun commentaire:

Enregistrer un commentaire