26.1 Problem

The following is a classical birthday paradox problem slightly modified by me.

Imagine you’re throwing a party for your birthday. You invited 30 people. And now you begin to wonder:

  1. what is the probability that any two of your guests were born on the same day of a year?
  2. what is the probability that any of your guests were born on the same day of a year that you were born on?

Use Julia to answer the before-mentioned questions for the number of guests, let’s say, in the range [4-30].



CC BY-NC-SA 4.0 Bartlomiej Lukaszuk