Update Support
member for all probability distributions
#292
Labels
Difficulty: Beginner
Hackathon projects with beginner difficulty
FsLab Hackathon 2023
Implementation projects for the 2023 FsLab Hackathon
Description
The
Support
of distributions defines the range of values the parameter can take. At the moment, there is a mixture of types for theSupport
. It is either defined as tuple,Interval
, or undefined. To homogenize all distribution fields, it is required to change all tuple supports toInterval<float>
orInterval<int>
like it is done here:FSharp.Stats/src/FSharp.Stats/Distributions/Discrete/Binomial.fs
Lines 120 to 122 in 8fb5d6d
Please check the validity of each existing distribution-support and create the appropriate Interval that either is of type
Interval<float>
orInterval<int>
for discrete distributions. The Wikipedia pages for probability distributions are a great source to verify the correct support (e.g. on the right side of Chi squared distribution).There may be distributions where no support can be defined or it is not clear on first sight. Please comment these cases here!
References
Support
syntax for all Distributions #222Pointers
(a,b)
to eitherInterval.CreateClosed(a,b)
orInterval.CreateLeftOpen(a,b)
Hints (click to expand if you need additional pointers)
FSharp.Stats/src/FSharp.Stats/Distributions/Continuous/Beta.fs
Line 129 in 8fb5d6d
FSharp.Stats/src/FSharp.Stats/Distributions/Continuous/Chi.fs
Line 76 in 8fb5d6d
FSharp.Stats/src/FSharp.Stats/Distributions/Continuous/F.fs
Line 103 in 8fb5d6d
FSharp.Stats/src/FSharp.Stats/Distributions/Continuous/Gamma.fs
Line 166 in 8fb5d6d
FSharp.Stats/src/FSharp.Stats/Distributions/Continuous/LogNormal.fs
Line 76 in 8fb5d6d
https://github.com/fslaborg/FSharp.Stats/blob/developer/src/FSharp.Stats/Distributions/Continuous/MultivariateNormal.fs
FSharp.Stats/src/FSharp.Stats/Distributions/Continuous/Normal.fs
Line 132 in 8fb5d6d
FSharp.Stats/src/FSharp.Stats/Distributions/Continuous/StudentT.fs
Line 78 in 8fb5d6d
StudentizedRange distribution
MultivariateNormal distribution
check for correct interval type!
FSharp.Stats/src/FSharp.Stats/Distributions/Continuous/Exponential.fs
Line 91 in 8fb5d6d
To be able to contribute to this library you'll need
to build the binaries yourself follow the instructions
while working on the FSharp.Stats documentation (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
The text was updated successfully, but these errors were encountered: