Simple notebooks to explain the theory and implementation of goodness-of-fit tests
Contents:
- 1. Introductions and histograms
- Introduction
- Choosing histogram bins
- 2. Fitting with method of moments
- Mathematical derivation
- Implementation with Python
- 3. Fitting with maximum likelihood estimation
- Mathematical derivation
- Confidence intervals for MLE estimates for large samples
- 4. Goodness of fit testing
- Fitting a distribution using Fitter library
- Implementing goodness of fit tests
- Sum of squared errors
- AIC/BIC
- KL divergence
- KS test
- Chi square test
git clone
this repositorypip install -r requirements.txt
to install dependencies
If you have a suggestion that would make this better, please fork the repo and create a pull request. You can also simply open an issue with the tag "enhancement".
- Fork the Project
- Create your Feature Branch (
git checkout -b feature/AmazingFeature
) - Commit your Changes (
git commit -m 'Add some AmazingFeature'
) - Push to the Branch (
git push origin feature/AmazingFeature
) - Open a Pull Request