Skip to contents

Creates a Hypergeometric distribution, representing the number of red balls drawn from an urn containing multiple colours, using a scoop that holds a fixed number of balls.

Usage

dst_hyper(m, n, k)

Arguments

m

The number of red balls in the urn; single positive integer.

n

The number of non-red balls in the urn; single positive integer.

k

the number of balls drawn from the urn (between 0 and m + n); single positive integer.

Value

A Hypergeometric distribution.

Examples

dst_hyper(15, 50, 10)
#> Hypergeometric distribution (discrete)
#> --Parameters--
#>  m  n  k 
#> 15 50 10