how chose a number with unequal probability?
3 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
Pappu Murthy
am 23 Jan. 2017
Bearbeitet: Matt J
am 23 Jan. 2017
My question is if I use randi function and say between 1 : 100, it chooses randomly a number giving equal probability to all numbers in between. Suppose I want to chose a number between 1 and 100 but give different probability for each number say proportional to the number itself.. so that 1 has a much lower probability to pick compared to 100 for e.g. how would I do that with randi function? Is that possible at all? Thanks in advance for any help.
0 Kommentare
Akzeptierte Antwort
Siehe auch
Kategorien
Mehr zu Get Started with Statistics and Machine Learning Toolbox finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!