:orphan:

.. _statsmodels-examples:

Examples
========

This page provides a series of examples, tutorials and recipes to help you get
started with ``statsmodels``. Each of the examples shown here is made available
as an IPython Notebook and as a plain python script on the `statsmodels github
repository <https://github.com/statsmodels/statsmodels/tree/main/examples>`_.

We also encourage users to submit their own examples, tutorials or cool
`statsmodels` trick to the `Examples wiki page
<https://github.com/statsmodels/statsmodels/wiki/Examples>`_

.. toctree::


{# This content is white space sensitive. Do not reformat #}

{% for category in examples%}
{% set underscore = "-" * (category.header | length) %}

.. raw:: html

   <div class="example-header-clear">&nbsp;</div>

{{ category.header }}
{{ underscore }}

.. toctree::
   :maxdepth: 1
   :hidden:

{% for notebook in category.links  %}   {{ notebook.target | replace('.html','') }}
{% endfor %}

{%- for notebook in category.links  %}
{% set heading = "`" ~ notebook.text ~ " <" ~ notebook.target|e ~ ">`_" %}

.. container:: example

   {{ heading }}

   .. image:: {{ notebook.img }}
      :target: {{ notebook.target }}
      :width: 240px

{%- endfor %}

{% endfor %}
