Skip to content

Add Wilcoxon Distribution #293

@bvenn

Description

@bvenn

Description

The signed rank test currently is only an approximation for large values (see #182 (comment))
There is a valid wilcoxon distribution that is quite expensive to calculate. Nevertheless it is required to calculate exact u test results, and should be implemented:

Citation from #213

To perform a valid u test it is required to implement the Wilcoxon distribution. Is should be added as individual source file within Distributions/Continuous. You can copy the Distributions/Continuous/Normal.fs and replace all fields with its corresponding entries for the Wilcoxon distribution.

References

Pointers

  • suggested workflow:
    • check out other distribution implementations and the original publication
    • copy a existing source file (e.g. Normal.fs), rename it to Wilcoxon.fs and replace all members.
      • this may be harder as you would imagine, but even if not all members are implemented, it would help us bringing FSharp.Stats a step further
    • optional: add unit tests
Hints (click to expand if you need additional pointers)

A final PR should contain the source file as well as unit tests to verify the correct results of the calculations. But even if some functions are missing, you can file a PR and mention what has to be added and where the problems are. For appropriate unit tests you can check out exponential distribution unit tests.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    Status

    Status: Available

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions