Kolmogorov - Smirnov test of the goodness-of-fit
KSGOF estimates p-value for the goodness of a given fit using Kolmogorov - Smirnov statistics.
The goodness-of-fit can be estimated for five statistical distributions: the power law, power law with exponential cutoff, exponential, stretched exponential, and log-normal.
The empirical dataset should be provided in the binned form, i.e as two vectors containing bin edges and corresponding bin counts. The algorithm is insensitive to the binning scheme.
KSGOF is inspired by http://tuvalu.santafe.edu/~aaronc/powerlaws/bins/bplpva.m and requires best fit parameter estimates, which can be calculated using the scripts provided at http://tuvalu.santafe.edu/~aaronc/powerlaws/bins/
Citation pour cette source
Maria Mukhina. (2020). Kolmogorov - Smirnov test of the goodness-of-fit (https://www.mathworks.com/matlabcentral/fileexchange/78038-kolmogorov-smirnov-test-of-the-goodness-of-fit), MATLAB Central File Exchange. Retrieved July 11, 2020.
Compatibilité avec les versions de MATLAB
Plateformes compatibles
Windows macOS LinuxTags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!Découvrir Live Editor
Créez des scripts avec du code, des résultats et du texte formaté dans un même document exécutable.
Version | Publié le | Notes de version | |
---|---|---|---|
1.0.1 | Citation link is corrected |
||
1.0.0 |