Components
============

This tutorials introduce in more depth specific components
of zfit.

05 FitResult
++++++++++++++

.. toctree::
    :maxdepth: 2

    05 - Exploring the FitResult.ipynb


13 Kernel Density Estimation
++++++++++++++++++++++++++++++++

.. toctree::
    :maxdepth: 2

    13 - Kernel Density Estimation.ipynb

20 Composite Models
+++++++++++++++++++++++

Building models out of other models using sums, products and more is an essential part of model building.
This tutorial starts with the basics of it.

.. toctree::
    :maxdepth: 2

    20 - Composite Models.ipynb

30 Binned Models
+++++++++++++++++++++++

Binned models and data handle differently than their unbinned counterparts.

.. toctree::
    :maxdepth: 2

    30 - Binned models.ipynb
    31 - Fitting a histogram with binned losses.ipynb
    32 - Templated fits.ipynb
    33 - Binned fits.ipynb

40 Bayesian Inference
++++++++++++++++++++++++++++

Bayesian inference is a powerful tool to infer parameters given data and a model.

.. toctree::
    :maxdepth: 2

    40 - Bayesian Inference.ipynb


50 Custom code and different run modes
++++++++++++++++++++++++++++++++++++++++


.. toctree::
    :maxdepth: 2

    50 - Custom code and run mode.ipynb



60 Custom PDF
+++++++++++++++++++++++

Being able to build a custom model simply is an essential feature of zfit.
This tutorial introduces the two main ways of doing it, a simpler and a more advanced, more flexible way.


.. toctree::
    :maxdepth: 2

    60 - Custom PDF.ipynb

61 Custom Binned PDF
++++++++++++++++++++++++++++

Building a binned pdf in zfit.

.. toctree::
    :maxdepth: 2

    61 - Custom Binned PDF.ipynb


62 Multidimensional custom PDF
++++++++++++++++++++++++++++++++++++++++++++++

Building a pdf in multiple dimensions and registering an analytic integral.

.. toctree::
    :maxdepth: 2

    62 - Multidim Custom PDF.ipynb

71 - Simple Loss
++++++++++++++++++++++++++++

A simple loss doesn't need a distribution or data, it just needs a function to minimize.

.. toctree::
    :maxdepth: 2

    71 - Simple Loss.ipynb

72 - Custom Loss
++++++++++++++++++++++++++++

Building a custom loss function in zfit.

.. toctree::
    :maxdepth: 2

    72 - Custom Loss.ipynb


77 - Custom Minimizers
++++++++++++++++++++++++++++

Building a custom minimizer in zfit.

.. toctree::
    :maxdepth: 2

    77 - Custom Minimizer.ipynb



80 Toy Study
++++++++++++

A minimal example of how to manually perform toy studies with zfit.

.. toctree::
    :maxdepth: 2

    80 - Toy Study.ipynb

90 Serialization
++++++++++++++++

There are multiple ways of serializing zfit objects, this tutorial introduces them.

.. warning:: Parts of it, namely the HS3-like human-readable serialization is still highly experimental and will change in every release.

.. toctree::
    :maxdepth: 2

    90 - Serialization basics.ipynb

If any component is missing, please open an issue on `github <https://github.com/zfit/zfit-tutorials/issues/new?title=Tutorial%20missing%20component>`_.
