.. _example_gmm_plot_gmm_pdf.py:


=============================================
Density Estimation for a mixture of Gaussians
=============================================

Plot the density estimation of a mixture of two gaussians. Data is
generated from two gaussians with different centers and covariance
matrices.


.. image:: images/plot_gmm_pdf.png
    :align: center

**Python source code:** :download:`plot_gmm_pdf.py <plot_gmm_pdf.py>`

.. literalinclude:: plot_gmm_pdf.py
    :lines: 10-