power-law

How can I generate a sample from a log-normal distribution with Pareto tail in R?

喜夏-厌秋 提交于 2019-11-29 22:38:23
问题 I would like to generate a sample from a log-normal distribution with Pareto tail in R. Can somebody help me? Thanks. 回答1: I'm not sure this is what you're looking for, but there is a fair amount of literature on the topic of Double Pareto Log-normal Distributions, or so-ca.led dPlN. See this, and this, and this. These are used to simulate everything from the distribution of earnings and income, to oil field size, to internet traffic. If this is not what you're looking for, let me know and I

Random number generator that produces a power-law distribution?

谁说我不能喝 提交于 2019-11-27 11:56:00
I'm writing some tests for a C++ command line Linux app. I'd like to generate a bunch of integers with a power-law/long-tail distribution. Meaning, I get a some numbers very frequently but most of them relatively infrequently. Ideally there would just be some magic equations I could use with rand() or one of the stdlib random functions. If not, an easy to use chunk of C/C++ would be great. Thanks! This page at Wolfram MathWorld discusses how to get a power-law distribution from a uniform distribution (which is what most random number generators provide). The short answer (derivation at the

Random number generator that produces a power-law distribution?

怎甘沉沦 提交于 2019-11-26 17:37:14
问题 I'm writing some tests for a C++ command line Linux app. I'd like to generate a bunch of integers with a power-law/long-tail distribution. Meaning, I get a some numbers very frequently but most of them relatively infrequently. Ideally there would just be some magic equations I could use with rand() or one of the stdlib random functions. If not, an easy to use chunk of C/C++ would be great. Thanks! 回答1: This page at Wolfram MathWorld discusses how to get a power-law distribution from a uniform