.. _onlinebook_fitting:

Fitting Resources
=================

This page provides links to some resources for a variety of common fitting tools. 

For an introduction to the statistical concepts behind fitting, you can refer to
the fitting lecture given at the last Starter Kit workshop. The Starter Kit
repository is linked `here <https://gitlab.desy.de/belle2/software/training/b2-starterkit>`_.  

BAT 
---

* Documentation: https://bat.github.io/bat-docs/master/manual/html/index.html 
* Tutorial: https://bat.github.io/bat-docs/master/manual/html/cha-basics.html

Hydra
-----

* Documentation: https://multithreadcorner.github.io/Hydra/index.html
* Tutorial: https://hydra-documentation.readthedocs.io/en/latest/

pyhf
----

* Documentation: https://pyhf.readthedocs.io/en/stable/
* Tutorial: https://pyhf.github.io/pyhf-tutorial/introduction.html

RooFit 
------

* Documentation: https://root.cern/manual/roofit/
* Tutorial: https://root.cern/doc/master/group__tutorial__roofit.html

zfit
----

* Documentation: https://zfit.readthedocs.io/en/stable/ 
* Tutorial: https://zfit.readthedocs.io/en/stable/tutorials/introduction.html

If you require help with the material on this page, you can ask a question on
`b2questions <https://questions.belle2.org/questions/>`_. Remember to follow
this `guide <https://software.belle2.org/development/sphinx/online_book/welcome/collaborative_tools.html#how-to-ask-a-good-question-on-questions-belle2>`_
so that you ask a good question. 



