dst_hyper: Hypergeometric Distribution

View source: R/dst_hyper.R

dst_hyperR Documentation

Hypergeometric Distribution

Description

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)


vincenzocoia/distionary documentation built on Feb. 26, 2025, 11:09 a.m.