jeudi 27 juin 2019

Random selection with conditional probabilities

I have list say y = [1, 2, 3, 4, 6, 7, 8, 9, 5, 23, 12, 24, 43, 10] and I want to make random selection from it with conditional probability. A number greater than 10 in the list has a probability of say 0.8 of being selected while the rest have probability 0.2 of being selected.




Aucun commentaire:

Enregistrer un commentaire