samedi 25 juillet 2020

Probability distribution in np.random.choice

The numpy function np.random.choice takes in an optional parameter called 'p' that denotes the probability distribution of the values it is sampling . So , my question is , even though the function generates random values , do values that have higher probability more likely to be sampled ? Meaning , does it randomly choose a value from a subset of " Most probable values " ?

Am I right in perceiving it that way ? Or can someone please correct my assumption ?




Aucun commentaire:

Enregistrer un commentaire