Otro
Random values from distributions
Autor
Boucher, Chris
Resumen
To observe values of a random variable that follows some arbitrary distribution, it is only necessary to be able to generate random numbers distributed uniformly in the unit interval and to compute quantiles of the desired distribution. (See the Demonstration "Using Rule 30 to Generate Pseudorandom Real Numbers" for a way to do the former.) The random number from the unit interval is simply used as the desired quantile of the more general distribution. That is, if f(x) is the density function for the distribution from which a random value is to be drawn and p is a random number from the unit interval, the number xp is taken such that the area to the left of xp under f(x) is equal to p. Thus, the pink area is equal to p and the vertical line in the lower plot is at xp Random variables, distribution, density function, area under the function Componente Curricular::Educação Superior::Ciências Exatas e da Terra::Matemática