Generating Beta-distributed Random Variates
If and are independent, with and then, so one algorithm for generating beta variates is to generate X/(X + Y), where X is a gamma variate with parameters and Y is an independent gamma variate with parameters .
Also, the kth order statistic of uniformly distributed variates is, so an alternative if and are small integers is to generate uniform variates and choose the -th largest.
Read more about this topic: Beta Distribution
Famous quotes containing the word random:
“We should stop looking to law to provide the final answer.... Law cannot save us from ourselves.... We have to go out and try to accomplish our goals and resolve disagreements by doing what we think is right. That energy and resourcefulness, not millions of legal cubicles, is what was great about America. Let judgment and personal conviction be important again.”
—Philip K. Howard, U.S. lawyer. The Death of Common Sense: How Law Is Suffocating America, pp. 186-87, Random House (1994)