MATLAB: Power law distribution, How could I generate random variables from the truncated power -law distribution and its PDf

cdfinverse power lawinverse transform samplingpdfpowerlawdistribution

How could I generate random variables from the truncated power -law distribution and its PDf?

Best Answer

You need to use inverse transform sampling. I attached a demo where I use it to get random numbers from a Rayleigh distribution.