# U-shaped Beta distribution

#### Dason

The a and b I were referring to were the limits your want to transform the range to. Don't think of them as the alpha and beta of the Beta distribution.

#### katxt

##### Member
The mean is a/(a+b) so if you make a = 0.35 and b = 0.65 then the mean on (0,1) is 0.35. Generate the random numbers from 0 to 1 using beta(0.35,0.65) and multiply them by 10. They will make a cup shaped beta shaped curve from 0 to 10 but the ends will be different heights.
=BETAINV(RAND(),0.35,0.65)*10 in Excel gives this shape.

#### hlsmith

##### Less is more. Stay pure. Stay poor.
All heil the bathtub distribution!

#### katxt

##### Member
I assume that it doesn't have to be beta. If you don't mind a little programming its often not hard to make a random number generator for any shape that you can put in mathematical terms.

#### menahg

##### New Member
I assume that it doesn't have to be beta. If you don't mind a little programming its often not hard to make a random number generator for any shape that you can put in mathematical terms.
Yeah, I am not sure how to do it, but I will see. Thank you!