I want to plot a Gaussian Mixture Model. The following code allows me to plot 2 separate Gaussians, but where they intersect, the line is very sharp and not smooth enough. Is th
You have to form a convex combination of the densities.
curve = p*curve_0 + (1-p)*curve_1
where p is the probability that a sample comes from the first Gaussian.