This will be the headquarters of future curious projects. Here I'll post the visualization of the final state of them.
Months ago I found on internet a smart way to estimate using geometry. Whenever we see
we have to think on circles, so the key is to elaborate a relationship between a circles' area or perimeter and other geometric figure.
"PI is the ratio of a circle's circumference to its diameter."
Imagine a circle inscribed in a square. The relationship between their areas is , so we can isolate
as
.
Here comes the clever idea:
- Imagine an inscribed circle into a square.
- Paint the whole figure with small points.
- Count the points that fell inside the circle. If the points cover the entire square, then the painted area equals the area of the square.
- Replace the counts of points inside each figure in the formula of
and calculate the estimator.
- Expect error. This way of estimation doesn't scale well.
Let's imagine we enter a room with 30 unknown people (maybe a random university class). I'll tell you that at least two of them were born in the same day of the year. Would you bet against me? What about 40? I'm giving you 50 to 1 odds on 60 people! The truth is this is a mathematical scam and I'll explain it to you:
Assumptions:
- All days are equally likely
- No leap-year
Let be the sample size (i.e. the number of people in a room) and
the probability of at least 2 people sharing birthday out of
people. Then, the probability of 2 people or more sharing birthday out of
is:
So, what is the probability of finding 2 persons that share birthday out of 20 or more people?