.. _moments_demo:

=======================================
Demo: Running moments on Simulated Data
=======================================

   *Running mini_moments on simulated genomic data.*

.. figure:: /_static/figures/fig_demo_moments.png
   :width: 100%
   :align: center

   **moments demo on msprime-simulated data.** Panel A: Observed SFS from msprime under three demographic models (constant, bottleneck, expansion) vs moments predictions. Panel B: Tajima's D values across demographic scenarios. Panel C: Expected SFS under neutrality from both simulation and moments' ODE integration. Panel D: Comparison of moment-based and simulated SFS shapes.

This figure was generated by running the ``mini_moments`` implementation
on data simulated with ``msprime``. The script is at
``figures/fig_demo_moments.py``.
