Reputation: 419
I'm wondering is there any function in R that we can use to simulate a distribution opposite to the normal distribution? by opposite i mean instead of starting from a low value and gradually increasing to a peak and then gradually decreasing , i want this distribution to start from a high value then gradually decreasing to a small value and then increasing to initial value. thanks.
Upvotes: 1
Views: 849
Reputation: 7130
If you are looking for a probability distribution that starts high, goes low and ends high then try beta
distribution with alpha
= beta
= 0.5
. In R:
rb <- rbeta(1000, 0.5, 0.5)
hist(rb)
It produces values between (0,1)
, you might want to scale and/or shift it appropriately.
Upvotes: 4