fslaborg / FSharp.Stats

statistical testing, linear algebra, machine learning, fitting and signal processing in F#
https://fslab.org/FSharp.Stats/
Other
205 stars 54 forks source link

Kolmogorov-Smirnov Distribution #295

Open bvenn opened 9 months ago

bvenn commented 9 months ago

Description

The Kolmogorov-Smirnov (KS) two-sided test statistic Dn is widely used to measure the goodness-of-fit between the empirical distribution of a set of n observations and a given continuous probability distribution. Simard & L’Ecuyer (2011) [1]

The Kolmogorov-Smirnov distribution is still missing within the FSharp.Stats probability distributions. This issue requires much domain knowledge since various approximations with different precisions were published over the years. Comparison to other packages is mandatory. Of course you can start developing in notebooks/scripts and afterwards we try to incorporate into the library.

References

Hints (click to expand if you need additional pointers) - To be able to contribute to this library you'll need - an GitHub account - an IDE like Visual Studio Community or Visual Studio Code - [dotnet 6 sdk](https://dotnet.microsoft.com/en-us/download) - to build the binaries yourself follow the [instructions](https://fslab.org/FSharp.Stats/#Installation) - while working on the [FSharp.Stats documentation](https://fslab.org/FSharp.Stats/) (any file within https://github.com/fslaborg/FSharp.Stats/tree/developer/docs) you can navigate to the project folder with a prompt of your choice and use the command `./build watchdocs` - unit tests can be executed via `./build runtests`