Skip to main content
Library homepage
 

Text Color

Text Size

 

Margin Size

 

Font Type

Enable Dyslexic Font
Statistics LibreTexts

5.6: Birthday Demo

( \newcommand{\kernel}{\mathrm{null}\,}\)

Learning Objectives

  • Become familiar with the properties of the birthday problem

Instructions

Most people's intuition about the probability of two people in a group sharing a birthday is way off. This simulation allows you to approach this problem concretely.

When you click the "Draw Birthday" button, a birthday is randomly drawn from the dates listed. The date drawn is listed on the left in red and shown in the list of dates in red. As you push the button, more dates will be shown. If a date is a duplicate, it will be shown in blue on the left. The "Show Duplicates" button shows allow duplicate dates drawn.

Illustrated Instructions

The screenshot below shows opening state of the birthday problem demonstration. Each time you click the "Draw Birthday" button a random date is drawn from the calendar and displayed under the button. Any duplicates are highlighted in blue and you can click the "Show Duplication Info" button to see summary data of all duplicates.

birthday_demo1.jpg
Figure 5.6.1: Opening state of birthday problem demonstration

Below is an example of 30 drawn dates with one duplicate "10/18". The summary that appears when the "Show Duplication Info" button is clicked is also shown.

birthday_demo2.jpg
Figure 5.6.2: Example of 30 drawn dates with one duplicate

This page titled 5.6: Birthday Demo is shared under a Public Domain license and was authored, remixed, and/or curated by David Lane via source content that was edited to the style and standards of the LibreTexts platform.

  • Was this article helpful?

Support Center

How can we help?