birthday

command
v0.0.0-...-38a5715 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 19, 2024 License: Apache-2.0 Imports: 2 Imported by: 0

README

The Birthday Problem

The birthday problem asks what is the probability that in a group of people, at least two people will have the same birthday?

We're going to run a simulation where in each round we sample n (23 in our case) and for each round we check if we have at least two people with the same birthday.

At the end we divide the number of times we saw duplicate birthdays with the total number of rounds to get probability.

Documentation

Overview

Package main simulate the "Birthday problem". See https://en.wikipedia.org/wiki/Birthday_problem for a description of the problem.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL