Number generator from a power law distribution, given a mean, alpha and x range

11 vues (au cours des 30 derniers jours)
Pedro Paulino
Pedro Paulino le 3 Juil 2019
Hi all,
I need to generate 300 numbers from a power law distribution with alpha 2.3 and mean 47, with lower bound 10, for a monte carlo simulation. I'd really appreciate any insights about how to do it.

Réponses (1)

Samatha Aleti
Samatha Aleti le 18 Juil 2019
Hi,
You can generate random numbers from power law distribution using the RANDRAW function which is in MATLAB File Exchange. Use ‘pareto’ (means power-law distribution) as distribution name. Here is the link to download and use the 'RANDRAW' Function

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by