FAQ/gamma - CBU statistics Wiki

Upload page content

You can upload content for the page named below. If you change the page name, you can also upload content for another page. If the page name is empty, we derive the page name from the file name.

File to load page content from
Page name
Comment
Type the missing letters from: He's no ded, he's jus resing hs eys

Revision 13 as of 2008-02-13 10:49:16

location: FAQ / gamma

How do I produce random variables which follow a negatively skewed distribution?

Most distributions such as the exponential and log-Normal distributions are positively skewed with the mode of the distribution occurring for lower values.

The Weibull distribution is negatively skewed and may be generated [http://www.taygeta.com/random/weibull.xml using random variables which are uniform on the interval [0,1]]

The below produces an open ended negatively skewed weibull distribution with parameters, 2 and 20. It has a median of

$$ 2text{-0.05}((ln(2)text{0.05}) = approx. 0.95. $$

compute wrv= (-(1/2)*(ln(1-rv.uniform(0,1))))**(0.05).
exe.