|
> Here are the sample images from the code:-
> http://www.mediafire.com/file/h1fkldf7lpo10k6/sim.pdf
>
> I forgot to mention that I am expecting only two peaks corresponding to
> two Gaussian components.
It's hard to be sure, but I suspect the effect you're seeing is an artifact
of the coarse gridding. Notice that the density appears to span much of the
axis in one direction, but not much in the other direction. You can see a
similar effect if you compare these:
ezsurf(@(x,y) mvnpdf([x y],[0 0],[1 -.9;-.9 1]),[-2 2],[-2 2])
ezsurf(@(x,y) mvnpdf([x y],[0 0],[1 -.9;-.9 1]),[-2 2],[-5 5])
ezsurf(@(x,y) mvnpdf([x y],[0 0],[1 -.9;-.9 1]),[-2 2],[-10 10])
Try making one axis (X I think) go from, say, -6 to 4. See if that looks
better.
-- Tom
|