Skip to content

[query] add methods for (multivariate) hypergeometric distribution - #14923

Merged
hail-ci-robot merged 1 commit into
mainfrom
ps/push-xkyzvoqqmzov
Jun 18, 2025
Merged

[query] add methods for (multivariate) hypergeometric distribution#14923
hail-ci-robot merged 1 commit into
mainfrom
ps/push-xkyzvoqqmzov

Conversation

@patrick-schultz

@patrick-schultz patrick-schultz commented Jun 16, 2025

Copy link
Copy Markdown
Member

Change Description

Adds methods to sample from a hypergeometric and multivariate hypergeometric distribution (rand_hyper and rand_multi_hyper), as well as a function to evaluate the probability function of a hypergeometric distribution (phyper). I chose a parameterization consistent with scipy. I believe the included doctests are sufficient to test these methods, which simply expose library methods.

Security Assessment

  • This change cannot impact the Hail Batch instance as deployed by Broad Institute in GCP

Copy link
Copy Markdown
Member Author

This stack of pull requests is managed by Graphite. Learn more about stacking.

@patrick-schultz
patrick-schultz marked this pull request as ready for review June 18, 2025 14:35

@chrisvittal chrisvittal left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Straightforward change, extends statistics functionality with very little new
maintenance burden.

@patrick-schultz
patrick-schultz requested a review from ehigham June 18, 2025 16:59
@hail-ci-robot
hail-ci-robot merged commit 026bd7f into main Jun 18, 2025
@hail-ci-robot
hail-ci-robot deleted the ps/push-xkyzvoqqmzov branch June 18, 2025 18:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants