birthday: Birthday problem

Description Usage Arguments Value Examples

Description

This function simulates the probability that, in a set of n randomly chosen people, some pair of them will have the same birthday. The problem was first proposed by Richard von Mises.

Usage

1
birthday(n, g)

Arguments

n

The number of people in the group.

g

The number of groups to simulate

Value

A rational approximation of the probability that, in a set of n randomly chosen people, some pair of them will have the same birthday.

Examples

1
birthday(23, g = 10000)

benjcunningham/rcarlo documentation built on May 12, 2019, 11:56 a.m.