Bimodal Gaussian Distribution

I am trying to generate random numbers using a Gaussian distribution with two means. I looked up the Distributions and StatsBase packages, but could not find functions in them to generate such a function. Can someone suggest a way-out?

I think what you’re looking for is a mixture model - the distribution is actually two gaussians. There are details here.

1 Like