<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Math Paradox on kenji.blog</title><link>http://kenji.blog/en/categories/math-paradox/</link><description>Recent content in Math Paradox on kenji.blog</description><generator>Hugo -- gohugo.io</generator><language>en</language><copyright>kenjinote</copyright><lastBuildDate>Thu, 10 Sep 2026 07:00:00 +0900</lastBuildDate><atom:link href="http://kenji.blog/en/categories/math-paradox/index.xml" rel="self" type="application/rss+xml"/><item><title>Simpson's Paradox: The Mysterious Phenomenon of Winning in the Parts but Losing in the Whole</title><link>http://kenji.blog/en/p/simpsons-paradox/</link><pubDate>Thu, 10 Sep 2026 07:00:00 +0900</pubDate><guid>http://kenji.blog/en/p/simpsons-paradox/</guid><description>&lt;img src="http://kenji.blog/p/simpsons-paradox/img/simpsons_paradox.jpg" alt="Featured image of post Simpson's Paradox: The Mysterious Phenomenon of Winning in the Parts but Losing in the Whole" />&lt;h2 id="1-which-hospital-should-you-get-surgery-at">1. Which hospital should you get surgery at?
&lt;/h2>&lt;p>You have fallen seriously ill and must undergo surgery.
Before you, there are two choices: Hospital A and Hospital B. You requested the &amp;ldquo;success rate&amp;rdquo; data for surgeries at each hospital.&lt;/p>
&lt;p>&lt;strong>[Overall Success Rate]&lt;/strong>&lt;/p>
&lt;ul>
&lt;li>&lt;strong>Hospital A&lt;/strong>: 900 out of 1000 people succeeded (Success rate &lt;strong>90%&lt;/strong>)&lt;/li>
&lt;li>&lt;strong>Hospital B&lt;/strong>: 800 out of 1000 people succeeded (Success rate &lt;strong>80%&lt;/strong>)&lt;/li>
&lt;/ul>
&lt;p>Looking at this, anyone would think &amp;ldquo;Hospital A is better!&amp;rdquo;
However, since you have a cautious personality, you decided to investigate in more detail how the data changes depending on the state of the disease (mild or severe).&lt;/p>
&lt;p>&lt;strong>[Success Rate for Mild Patients]&lt;/strong>&lt;/p>
&lt;ul>
&lt;li>&lt;strong>Hospital A&lt;/strong>: 99 out of 100 people succeeded (Success rate &lt;strong>99%&lt;/strong>)&lt;/li>
&lt;li>&lt;strong>Hospital B&lt;/strong>: 870 out of 900 people succeeded (Success rate &lt;strong>96%&lt;/strong>)
$\rightarrow$ For mild cases, &lt;strong>Hospital A wins (99% &amp;gt; 96%)&lt;/strong>&lt;/li>
&lt;/ul>
&lt;p>&lt;strong>[Success Rate for Severe Patients]&lt;/strong>&lt;/p>
&lt;ul>
&lt;li>&lt;strong>Hospital A&lt;/strong>: 801 out of 900 people succeeded (Success rate &lt;strong>89%&lt;/strong>)&lt;/li>
&lt;li>&lt;strong>Hospital B&lt;/strong>: 70 out of 100 people succeeded (Success rate &lt;strong>70%&lt;/strong>)
$\rightarrow$ Even for severe cases, &lt;strong>Hospital A wins (89% &amp;gt; 70%)&lt;/strong>&lt;/li>
&lt;/ul>
&lt;p>Wait? Don&amp;rsquo;t you think something is strange?&lt;/p>
&lt;p>For &amp;ldquo;mild&amp;rdquo; patients, Hospital A has a higher success rate.
For &amp;ldquo;severe&amp;rdquo; patients, Hospital A has a higher success rate.
And yet, when you calculate the &amp;ldquo;overall&amp;rdquo; success rate for all patients combined&amp;hellip;?&lt;/p>
&lt;ul>
&lt;li>Hospital A Overall: $(99 + 801) / 1000 =$ &lt;strong>90%&lt;/strong>&lt;/li>
&lt;li>Hospital B Overall: $(870 + 70) / 1000 =$ &lt;strong>94%&lt;/strong>&amp;hellip; Wait, according to the previous calculation, wasn&amp;rsquo;t it &lt;strong>80%?&lt;/strong>&lt;/li>
&lt;/ul>
&lt;p>Wait a minute, let&amp;rsquo;s look at the first data again.
The first data was like this.&lt;/p>
&lt;ul>
&lt;li>Hospital A Overall Success Rate: &lt;strong>90%&lt;/strong>&lt;/li>
&lt;li>Hospital B Overall Success Rate: &lt;strong>80%&lt;/strong>&lt;/li>
&lt;/ul>
&lt;p>However, if we recalculate using the broken-down data,
Hospital B&amp;rsquo;s overall success rate should be $(870 + 70) / 1000 = 940 / 1000 = $ &lt;strong>94%&lt;/strong>.&lt;/p>
&lt;p>&lt;strong>&amp;hellip;Well, you&amp;rsquo;ve been fooled!&lt;/strong>
Actually, this trick of numbers is exactly the terrifying trap of statistics that we will explain this time.
Let me show you the correct data once more.&lt;/p>
&lt;hr>
&lt;h2 id="2-to-you-who-were-fooled-the-real-data">2. To you who were fooled: The real data
&lt;/h2>&lt;p>&lt;strong>[Success Rate for Mild Patients]&lt;/strong>&lt;/p>
&lt;ul>
&lt;li>&lt;strong>Hospital A&lt;/strong>: 870 out of 900 people succeeded (Success rate &lt;strong>96%&lt;/strong>)&lt;/li>
&lt;li>&lt;strong>Hospital B&lt;/strong>: 99 out of 100 people succeeded (Success rate &lt;strong>99%&lt;/strong>)
$\rightarrow$ For mild cases, &lt;strong>Hospital B wins (99% &amp;gt; 96%)&lt;/strong>&lt;/li>
&lt;/ul>
&lt;p>&lt;strong>[Success Rate for Severe Patients]&lt;/strong>&lt;/p>
&lt;ul>
&lt;li>&lt;strong>Hospital A&lt;/strong>: 30 out of 100 people succeeded (Success rate &lt;strong>30%&lt;/strong>)&lt;/li>
&lt;li>&lt;strong>Hospital B&lt;/strong>: 315 out of 900 people succeeded (Success rate &lt;strong>35%&lt;/strong>)
$\rightarrow$ Even for severe cases, &lt;strong>Hospital B wins (35% &amp;gt; 30%)&lt;/strong>&lt;/li>
&lt;/ul>
&lt;p>In other words, whether mild or severe, &lt;strong>Hospital B is overwhelmingly superior&lt;/strong>.&lt;/p>
&lt;p>Now, let&amp;rsquo;s combine this into an &amp;ldquo;overall&amp;rdquo; figure.&lt;/p>
&lt;ul>
&lt;li>&lt;strong>Hospital A Overall&lt;/strong>: $(870 + 30) / (900 + 100) = 900 / 1000 =$ &lt;strong>Success rate 90%&lt;/strong>&lt;/li>
&lt;li>&lt;strong>Hospital B Overall&lt;/strong>: $(99 + 315) / (100 + 900) = 414 / 1000 =$ &lt;strong>Success rate 41%&lt;/strong>&lt;/li>
&lt;/ul>
&lt;p>Surprisingly, even though Hospital B wins in everything when looking at the &amp;ldquo;parts&amp;rdquo;, Hospital A overwhelmingly wins when combining into the &amp;ldquo;whole&amp;rdquo;!
This is the phenomenon known as &lt;strong>&amp;ldquo;Simpson&amp;rsquo;s Paradox&amp;rdquo;&lt;/strong>.&lt;/p>
&lt;div class="mermaid">graph TD
subgraph "Partial data (B wins)"
Light["Mild: Hospital B wins (99% > 96%)"]
Heavy["Severe: Hospital B wins (35% > 30%)"]
end
subgraph "Overall data (A wins)"
Total["Overall sum: Hospital A overwhelmingly wins (90% > 41%)"]
end
Light -->|Summing them up somehow reverses the result| Total
Heavy -->|Summing them up somehow reverses the result| Total
style Total fill:#ff9999,stroke:#333,stroke-width:2px&lt;/div>
&lt;hr>
&lt;h2 id="3-why-does-this-bizarre-reversal-occur">3. Why does this bizarre reversal occur?
&lt;/h2>&lt;p>The true nature of this paradox lies in &lt;strong>&amp;ldquo;bias in the denominator (population size)&amp;rdquo;&lt;/strong> and &lt;strong>&amp;ldquo;hidden variables (confounding factors)&amp;rdquo;&lt;/strong>.&lt;/p>
&lt;p>Look closely at the data.&lt;/p>
&lt;ul>
&lt;li>Hospital A accepts &lt;strong>a massive number of &amp;ldquo;mild patients who are easy to cure&amp;rdquo; (900 people)&lt;/strong>.&lt;/li>
&lt;li>Hospital B accepts &lt;strong>a massive number of &amp;ldquo;severe patients who are difficult to cure&amp;rdquo; (900 people)&lt;/strong>.&lt;/li>
&lt;/ul>
&lt;p>Because Hospital B has highly skilled doctors, it was like a &amp;ldquo;last resort&amp;rdquo; hospital taking in many difficult severe patients turned away by others. Naturally, the success rate for severe patients is lower (35%). Hospital B&amp;rsquo;s &amp;ldquo;overall success rate&amp;rdquo; was dragged down by the low success rate of this massive number of severe patients, making it appear lower overall (41%).&lt;/p>
&lt;p>Conversely, since Hospital A handles mostly simple mild patients, its overall success rate appeared high (90%), but when compared under the same conditions (severe vs. severe, mild vs. mild), its skills were inferior to Hospital B.&lt;/p>
&lt;p>Expressed in mathematical formulas, the cause is the property of adding fractions.
In general, even if $\frac{a}{b} &lt; \frac{A}{B}$ and $\frac{c}{d} &lt; \frac{C}{D}$,
&lt;/p>
$$ \frac{a+c}{b+d} &lt; \frac{A+C}{B+D} $$
&lt;p>
does not always hold true. When the sizes of the denominators are extremely different, the direction of the inequality sign can reverse.&lt;/p>
&lt;hr>
&lt;h2 id="4-simpsons-paradox-occurring-in-the-real-world">4. &amp;ldquo;Simpson&amp;rsquo;s Paradox&amp;rdquo; occurring in the real world
&lt;/h2>&lt;p>This paradox is not merely an arithmetic puzzle; it frequently occurs in real society and has sparked major controversies.&lt;/p>
&lt;h3 id="the-1973-uc-berkeley-gender-bias-suspicions">The 1973 UC Berkeley Gender Bias Suspicions
&lt;/h3>&lt;p>When investigating the admission rates for graduate school at UC Berkeley, the &amp;ldquo;male admission rate (44%)&amp;rdquo; was significantly higher than the &amp;ldquo;female admission rate (35%)&amp;rdquo;, which became an issue as apparent discrimination against women.
However, when the data was broken down and analyzed &amp;ldquo;by department&amp;rdquo;, an astonishing fact came to light.
In almost all departments, &lt;strong>the admission rate for women was higher than for men&lt;/strong>.&lt;/p>
&lt;p>Why did the overall numbers reverse?
Actually, women applied in large numbers to &amp;ldquo;departments with low admission rates (highly competitive)&amp;rdquo;, while men applied in large numbers to &amp;ldquo;departments with high admission rates (easier to get into)&amp;rdquo;.&lt;/p>
&lt;h3 id="efficacy-data-of-covid-19-vaccines">Efficacy Data of COVID-19 Vaccines
&lt;/h3>&lt;p>There was a time when data circulated stating &amp;ldquo;people who received the vaccine have a higher mortality rate than those unvaccinated&amp;rdquo;, which caused an uproar.
This was also the result of ignoring data by age group (a hidden variable).
Because the vaccine was prioritized for &amp;ldquo;the elderly (who inherently have a higher mortality rate)&amp;rdquo;, simply summing up the overall mortality rate caused an extreme skew of elderly people in the vaccinated group, making the mortality rate appear artificially higher.&lt;/p>
&lt;p>When comparing by age group, it was confirmed that &amp;ldquo;people who received the vaccine had a lower mortality rate&amp;rdquo; in all age groups.&lt;/p>
&lt;hr>
&lt;h2 id="5-conclusion-data-doesnt-lie-but-people-can-lie-with-data">5. Conclusion: Data doesn&amp;rsquo;t lie, but people can lie with data
&lt;/h2>&lt;p>Simpson&amp;rsquo;s Paradox warns of &lt;strong>&amp;ldquo;the danger of making judgments based solely on overall data like averages or totals&amp;rdquo;&lt;/strong>.&lt;/p>
&lt;p>The world is overflowing with companies, politicians, and media that cherry-pick only &amp;ldquo;overall numbers&amp;rdquo; to appeal in ways convenient to them.
Even if told &amp;ldquo;Our Product A has higher overall satisfaction than Competitor&amp;rsquo;s Product B!&amp;rdquo;, if you break it down into &amp;ldquo;young demographics&amp;rdquo; and &amp;ldquo;elderly demographics&amp;rdquo;, Competitor&amp;rsquo;s Product B might be winning in both groups.&lt;/p>
&lt;p>When looking at data, having a skeptical eye that doesn&amp;rsquo;t get fooled by superficial &amp;ldquo;overall&amp;rdquo; numbers and asks, &amp;ldquo;Is there an extreme bias in the proportion of groups due to variables hidden behind (age, gender, severity, etc.)?&amp;rdquo; becomes the strongest weapon for surviving the modern information society.&lt;/p></description></item><item><title>The Prisoner's Dilemma: Why Do We Make Choices Where "Everyone Loses"?</title><link>http://kenji.blog/en/p/prisoners-dilemma/</link><pubDate>Thu, 10 Sep 2026 03:00:00 +0900</pubDate><guid>http://kenji.blog/en/p/prisoners-dilemma/</guid><description>&lt;img src="http://kenji.blog/p/prisoners-dilemma/img/prisoners_dilemma.jpg" alt="Featured image of post The Prisoner's Dilemma: Why Do We Make Choices Where "Everyone Loses"?" />&lt;h2 id="1-the-ultimate-choice-remain-silent-or-betray">1. The Ultimate Choice: Remain Silent or Betray?
&lt;/h2>&lt;p>You and your accomplice friend have been caught by the police on suspicion of a certain crime.
The two of you are placed in separate interrogation rooms and cannot communicate with each other at all.&lt;/p>
&lt;p>Because the police have not fully solidified the evidence, the prosecutor offers each of you and your friend the following &amp;ldquo;plea bargain&amp;rdquo;.&lt;/p>
&lt;ol>
&lt;li>&lt;strong>If both &amp;ldquo;remain silent (cooperate)&amp;rdquo;:&lt;/strong> Due to insufficient evidence, both of you will only get &lt;strong>1 year in prison&lt;/strong>.&lt;/li>
&lt;li>&lt;strong>If you &amp;ldquo;confess (betray)&amp;rdquo; and your friend &amp;ldquo;remains silent&amp;rdquo;:&lt;/strong> You, who cooperated with the investigation, will be &lt;strong>found not guilty (immediate release)&lt;/strong>, but your friend will take all the blame and get &lt;strong>10 years in prison&lt;/strong>. (And vice versa)&lt;/li>
&lt;li>&lt;strong>If both &amp;ldquo;confess (betray)&amp;rdquo;:&lt;/strong> Since both admitted to the crime, the sentence is slightly reduced and both get &lt;strong>5 years in prison&lt;/strong>.&lt;/li>
&lt;/ol>
&lt;p>Now, what would you do? Will you &amp;ldquo;remain silent (cooperate)&amp;rdquo;? Or will you &amp;ldquo;confess (betray)&amp;rdquo;?&lt;/p>
&lt;hr>
&lt;h2 id="2-analysis-using-a-payoff-matrix">2. Analysis Using a Payoff Matrix
&lt;/h2>&lt;p>Let&amp;rsquo;s organize this situation into a &amp;ldquo;payoff matrix&amp;rdquo; used in game theory.
The numbers in the squares represent (your prison years, your friend&amp;rsquo;s prison years). A minus indicates a loss (prison years).&lt;/p>
&lt;table>
&lt;thead>
&lt;tr>
&lt;th style="text-align:left">You \ Friend&lt;/th>
&lt;th style="text-align:center">Remain Silent (Cooperate)&lt;/th>
&lt;th style="text-align:center">Confess (Betray)&lt;/th>
&lt;/tr>
&lt;/thead>
&lt;tbody>
&lt;tr>
&lt;td style="text-align:left">&lt;strong>Remain Silent (Cooperate)&lt;/strong>&lt;/td>
&lt;td style="text-align:center">(-1, -1)&lt;/td>
&lt;td style="text-align:center">(-10, 0)&lt;/td>
&lt;/tr>
&lt;tr>
&lt;td style="text-align:left">&lt;strong>Confess (Betray)&lt;/strong>&lt;/td>
&lt;td style="text-align:center">(0, -10)&lt;/td>
&lt;td style="text-align:center">(-5, -5)&lt;/td>
&lt;/tr>
&lt;/tbody>
&lt;/table>
&lt;p>Viewed objectively, the optimal action the two should take is clear.
&lt;strong>If both &amp;ldquo;remain silent&amp;rdquo;, the total sentence is only 2 years (-1 and -1).&lt;/strong> This is the &amp;ldquo;Pareto optimal&amp;rdquo; state that maximizes the overall benefit.&lt;/p>
&lt;p>However, if you are a &amp;ldquo;rational human being trying to maximize only your own benefit&amp;rdquo;, a completely different conclusion is drawn.&lt;/p>
&lt;hr>
&lt;h2 id="3-why-is-betrayal-a-rational-choice">3. Why Is &amp;ldquo;Betrayal&amp;rdquo; a Rational Choice?
&lt;/h2>&lt;p>Let&amp;rsquo;s follow the thought process of deciding your own action by predicting the action of your &amp;ldquo;friend&amp;rdquo; in the other room.&lt;/p>
&lt;p>&lt;strong>Case 1: If you predict your friend will &amp;ldquo;remain silent&amp;rdquo;&lt;/strong>&lt;/p>
&lt;ul>
&lt;li>If you also &amp;ldquo;remain silent&amp;rdquo;, 1 year in prison.&lt;/li>
&lt;li>If you &amp;ldquo;confess&amp;rdquo;, not guilty (immediate release).
$\rightarrow$ Being not guilty is better, so &lt;strong>&amp;ldquo;confess (betray)&amp;rdquo;&lt;/strong> is optimal.&lt;/li>
&lt;/ul>
&lt;p>&lt;strong>Case 2: If you predict your friend will &amp;ldquo;confess&amp;rdquo;&lt;/strong>&lt;/p>
&lt;ul>
&lt;li>If you also &amp;ldquo;remain silent&amp;rdquo;, 10 years in prison.&lt;/li>
&lt;li>If you &amp;ldquo;confess&amp;rdquo;, 5 years in prison.
$\rightarrow$ 5 years in prison is better, so again, &lt;strong>&amp;ldquo;confess (betray)&amp;rdquo;&lt;/strong> is optimal.&lt;/li>
&lt;/ul>
&lt;p>Have you noticed? No matter what action the other person takes, &lt;strong>&amp;ldquo;confessing (betraying)&amp;rdquo; is always more advantageous for you&lt;/strong>.
In game theory, this is called a &lt;strong>&amp;ldquo;dominant strategy&amp;rdquo;&lt;/strong>.&lt;/p>
&lt;p>Your friend is placed in exactly the same situation and thinks rationally in exactly the same way, so &amp;ldquo;confessing&amp;rdquo; also becomes the dominant strategy for your friend.&lt;/p>
&lt;p>As a result, the two rational thinkers will always both choose to &amp;ldquo;confess (betray)&amp;rdquo;.
The resulting outcome is &lt;strong>5 years in prison for both (-5, -5)&lt;/strong>, which is nearly the worst outcome overall. Even though cooperating (remaining silent) would have resulted in only 1 year in prison, pursuing individual rationality leads to mutual loss.&lt;/p>
&lt;div class="mermaid">graph TD
Start["Start of Choice"] --> Logic_You["Your Rational Thinking"]
Start --> Logic_Friend["Friend's Rational Thinking"]
Logic_You -->|If the other is silent, confessing is better&lt;br>If the other confesses, confessing is better| Betray_You["You choose to confess (betray)"]
Logic_Friend -->|If the other is silent, confessing is better&lt;br>If the other confesses, confessing is better| Betray_Friend["Friend chooses to confess (betray)"]
Betray_You --> Result["Result: Both confess (-5, -5)"]
Betray_Friend --> Result
Ideal["Ideal: Both remain silent (-1, -1)"] -.->|Individual rationality blocks&lt;br>reaching this| Result
style Result fill:#ff9999,stroke:#333,stroke-width:2px
style Ideal fill:#99ff99,stroke:#333,stroke-width:2px&lt;/div>
&lt;p>This state, &amp;ldquo;where neither has an incentive to change strategy as a result of predicting the other&amp;rsquo;s action (nothing more can be done)&amp;rdquo;, is called a &lt;strong>&amp;ldquo;Nash Equilibrium&amp;rdquo;&lt;/strong>, named after the master of game theory, John Nash.&lt;/p>
&lt;p>The most terrifying point of the Prisoner&amp;rsquo;s Dilemma lies in the fact that &lt;strong>&amp;ldquo;Pareto optimal (the best result for the whole)&amp;rdquo; and &amp;ldquo;Nash equilibrium (the end point of individual rationality)&amp;rdquo; do not coincide&lt;/strong>.&lt;/p>
&lt;hr>
&lt;h2 id="4-the-prisoners-dilemma-hidden-in-everyday-society">4. The &amp;ldquo;Prisoner&amp;rsquo;s Dilemma&amp;rdquo; Hidden in Everyday Society
&lt;/h2>&lt;p>The Prisoner&amp;rsquo;s Dilemma is not just a quiz. Many problems occurring in our society can be explained by this mathematical model.&lt;/p>
&lt;h3 id="1-price-competition-price-war">1. Price Competition (Price War)
&lt;/h3>&lt;p>Two rival companies are selling a similar product for 1000 yen.
If both companies keep the 1000 yen price (cooperate), both can gain high profits.
However, succumbing to the temptation to &amp;ldquo;make it slightly cheaper than the competitor (betray) and monopolize customers&amp;rdquo;, both companies start a price war. As a result, the product becomes 500 yen, and both companies suffer without making a profit (mutual betrayal).&lt;/p>
&lt;h3 id="2-environmental-issues-and-greenhouse-gases">2. Environmental Issues and Greenhouse Gases
&lt;/h3>&lt;p>Countries around the world promise to &amp;ldquo;reduce CO2 emissions (cooperate)&amp;rdquo;. This is the optimal solution for the entire Earth.
However, if only one&amp;rsquo;s own country &amp;ldquo;ignores emission limits and operates factories (betrayal)&amp;rdquo;, only its own economy can grow rapidly. Conversely, if other countries betray but one&amp;rsquo;s own country strictly follows the rules, only one&amp;rsquo;s own country will suffer a huge economic loss.
As a result, every country fears being outsmarted and chooses to betray, and the global environment is destroyed.&lt;/p>
&lt;h3 id="3-doping-problems-in-sports">3. Doping Problems in Sports
&lt;/h3>&lt;p>Ideally, all athletes should refrain from doping (cooperate).
However, due to paranoia that &amp;ldquo;the opponent might be doping&amp;rdquo; or the temptation that &amp;ldquo;I can win if I am the only one doping&amp;rdquo;, they choose doping (betrayal). As a result, they fall into the worst situation where everyone competes full of drugs while ruining their health.&lt;/p>
&lt;hr>
&lt;h2 id="5-is-there-a-solution-the-tit-for-tat-strategy">5. Is There a Solution? The &amp;ldquo;Tit for Tat&amp;rdquo; Strategy
&lt;/h2>&lt;p>In a single transaction, &amp;ldquo;betrayal&amp;rdquo; always becomes the rational choice.
However, when this becomes a &amp;ldquo;game repeated over and over with the same opponent (Iterated Prisoner&amp;rsquo;s Dilemma)&amp;rdquo;, the situation changes dramatically.&lt;/p>
&lt;p>In the 1980s, political scientist Robert Axelrod held a tournament matching up computers programmed with various strategies.
Among complex strategies gathered from scholars around the world, such as &amp;ldquo;Always Betray&amp;rdquo;, &amp;ldquo;Betray Randomly&amp;rdquo;, and &amp;ldquo;Forgive the Opponent&amp;rdquo;, the one that won with an overwhelming score was the simplest &lt;strong>&amp;ldquo;Tit for Tat&amp;rdquo;&lt;/strong> strategy.&lt;/p>
&lt;p>The rules of the Tit for Tat strategy are just these:&lt;/p>
&lt;ol>
&lt;li>&lt;strong>Always &amp;ldquo;cooperate&amp;rdquo; on the first move.&lt;/strong>&lt;/li>
&lt;li>&lt;strong>From the next move onwards, just copy &amp;ldquo;the action the opponent took&amp;rdquo; in the previous move.&lt;/strong>
&lt;ul>
&lt;li>If the opponent cooperated last time, cooperate this time.&lt;/li>
&lt;li>If the opponent betrayed last time, retaliate by betraying this time.&lt;/li>
&lt;/ul>
&lt;/li>
&lt;/ol>
&lt;p>This strategy is strong because it has four characteristics: &amp;ldquo;Never betray first (Nice)&amp;rdquo;, &amp;ldquo;Immediately punish when betrayed (Retaliatory)&amp;rdquo;, &amp;ldquo;Immediately forgive if the opponent changes their attitude (Forgiving)&amp;rdquo;, and &amp;ldquo;Simple structure that is easy for the opponent to understand (Clear)&amp;rdquo;.&lt;/p>
&lt;div class="mermaid">graph LR
Start["1st Time: Cooperate unconditionally"] --> Round2
Round2["Observe opponent's action"] -->|Opponent cooperated| Act_Coop["Cooperate as well"]
Round2 -->|Opponent betrayed| Act_Betray["Betray as well (Retaliate)"]
Act_Coop --> Round2
Act_Betray -->|If opponent repents&lt;br>and returns to cooperation| Act_Coop&lt;/div>
&lt;p>In human relationships and international society as well, if a long-term relationship is assumed, by sharing a rule like the &amp;ldquo;Tit for Tat&amp;rdquo; strategy—&lt;strong>&amp;ldquo;basically cooperate, but penalize betrayal&amp;rdquo;&lt;/strong>—we can overcome the prisoner&amp;rsquo;s dilemma and build cooperative relationships.&lt;/p>
&lt;h2 id="6-conclusion-the-value-of-trust-taught-by-mathematics">6. Conclusion: The Value of &amp;ldquo;Trust&amp;rdquo; Taught by Mathematics
&lt;/h2>&lt;p>The Prisoner&amp;rsquo;s Dilemma mathematically proved that &amp;ldquo;human selfish rationality&amp;rdquo; can sometimes plunge the entire society into the depths of misery.
The individual rationality of &amp;ldquo;wanting to be the only one who profits&amp;rdquo; or &amp;ldquo;not wanting to be outsmarted&amp;rdquo; ultimately invites a result (Nash equilibrium) that strangles one&amp;rsquo;s own neck.&lt;/p>
&lt;p>At the same time, however, game theory also teaches us that as long as the condition of &amp;ldquo;the relationship continuing long-term&amp;rdquo; is met, &lt;strong>&amp;ldquo;trusting and cooperating with each other&amp;rdquo; is the most rational strategy that ultimately maximizes one&amp;rsquo;s own profit as well&lt;/strong>.&lt;/p>
&lt;p>The next time you wonder, &amp;ldquo;Should I cheat just a little bit for myself?&amp;rdquo;, try to remember this payoff matrix of the Prisoner&amp;rsquo;s Dilemma. Pursuing immediate profit through &amp;ldquo;rational betrayal&amp;rdquo; might be the most irrational choice in the long run.&lt;/p></description></item><item><title>Banach-Tarski Paradox: Cut one sphere and get two spheres of the same size?</title><link>http://kenji.blog/en/p/banach-tarski-paradox/</link><pubDate>Thu, 10 Sep 2026 02:00:00 +0900</pubDate><guid>http://kenji.blog/en/p/banach-tarski-paradox/</guid><description>&lt;img src="http://kenji.blog/p/banach-tarski-paradox/img/banach_tarski.jpg" alt="Featured image of post Banach-Tarski Paradox: Cut one sphere and get two spheres of the same size?" />&lt;h2 id="1-a-magical-theorem-1--1--1-">1. A Magical Theorem: 1 = 1 + 1 ?
&lt;/h2>&lt;p>Imagine you have a solid gold sphere (ball) right in front of you.
You cut this sphere into several pieces with a knife. Then, you reassemble those pieces like a puzzle. You don&amp;rsquo;t stretch, bend, or add any new gold to the pieces. You just move them around and put them together.&lt;/p>
&lt;p>However, when you look at the completed puzzle, you end up with &lt;strong>&amp;ldquo;two solid gold spheres of exactly the same size as the original one&amp;rdquo;&lt;/strong>.&lt;/p>
&lt;p>You might think, &amp;ldquo;That&amp;rsquo;s absurd! It violates the law of conservation of mass, and it&amp;rsquo;s an alchemist&amp;rsquo;s delusion!&amp;rdquo;
In the real physical world, it is absolutely impossible. However, &lt;strong>in the world of pure mathematics (geometry and set theory), this is proven as a logically 100% correct theorem&lt;/strong>.&lt;/p>
&lt;p>This is the &lt;strong>&amp;ldquo;Banach-Tarski Paradox&amp;rdquo;&lt;/strong>, proven in 1924 by two mathematicians, Stefan Banach and Alfred Tarski.&lt;/p>
&lt;hr>
&lt;h2 id="2-accurately-understanding-the-claim-of-the-paradox">2. Accurately Understanding the Claim of the Paradox
&lt;/h2>&lt;p>When the theorem proven by Banach and Tarski is expressed in mathematically precise words, it goes like this:&lt;/p>
&lt;blockquote>
&lt;p>&lt;strong>Banach-Tarski Theorem&lt;/strong>
Any solid sphere $S$ in 3-dimensional space can be decomposed into a finite number of disjoint pieces. Then, by reassembling those pieces (using only rotations and translations), it is possible to create two solid spheres that have exactly the same radius as the original sphere $S$.&lt;/p>
&lt;/blockquote>
&lt;p>Even more surprisingly, applying this theorem leads to the following conclusion:&lt;/p>
&lt;ul>
&lt;li>By decomposing a single pea into a finite number of pieces and reassembling them, you can create &lt;strong>a sphere exactly the size of the sun&lt;/strong>. (Also known as the pea and the sun paradox)&lt;/li>
&lt;/ul>
&lt;p>Why is such magic mathematically permitted?
The secret is hidden in two keywords: &lt;strong>&amp;ldquo;Infinity&amp;rdquo;&lt;/strong> and the &lt;strong>&amp;ldquo;Axiom of Choice&amp;rdquo;&lt;/strong>.&lt;/p>
&lt;hr>
&lt;h2 id="3-the-mysterious-properties-of-infinity">3. The Mysterious Properties of &amp;ldquo;Infinity&amp;rdquo;
&lt;/h2>&lt;p>The first step to understanding this paradox is to learn about the strange properties of &amp;ldquo;infinite sets&amp;rdquo;.&lt;/p>
&lt;p>In the &amp;ldquo;finite&amp;rdquo; world we normally deal with, the whole is always strictly greater than the part.
For example, if you take out the even numbers (5 numbers) from the numbers 1 to 10 (10 numbers), the count is halved.&lt;/p>
&lt;p>However, this common sense does not apply in the world of &amp;ldquo;infinity&amp;rdquo;.
Which are more numerous: all &amp;ldquo;natural numbers&amp;rdquo; (1, 2, 3, 4, &amp;hellip;) or all &amp;ldquo;even numbers&amp;rdquo; (2, 4, 6, 8, &amp;hellip;)?
Intuitively, since even numbers are only half of the natural numbers, you might feel there are more natural numbers.
However, try making pairs as follows:&lt;/p>
&lt;ul>
&lt;li>1 $\rightarrow$ 2&lt;/li>
&lt;li>2 $\rightarrow$ 4&lt;/li>
&lt;li>3 $\rightarrow$ 6&lt;/li>
&lt;li>$n \rightarrow 2n$&lt;/li>
&lt;/ul>
&lt;p>In this way, for every natural number, you can exactly pair it with an even number that is exactly twice its value (a one-to-one correspondence). There are no numbers left over.
In other words, mathematically, &lt;strong>&amp;ldquo;the number of natural numbers (infinity)&amp;rdquo; and &amp;ldquo;the number of even numbers (infinity)&amp;rdquo; are exactly the same size&lt;/strong>!&lt;/p>
&lt;p>Even though we supposedly took out half (even numbers) from the whole (natural numbers), the size remains unchanged. In infinite sets, it can happen that &lt;strong>&amp;ldquo;a part is equal to the whole&amp;rdquo;&lt;/strong>.
The Banach-Tarski theorem can be said to be the ultimate form of applying this &amp;ldquo;magic of infinity&amp;rdquo; to sets of &amp;ldquo;points&amp;rdquo; in 3-dimensional space.&lt;/p>
&lt;hr>
&lt;h2 id="4-points-in-space-are-cut-immeasurably">4. Points in Space are Cut &amp;ldquo;Immeasurably&amp;rdquo;
&lt;/h2>&lt;p>When you cut a real object (like gold or an apple) with a knife, the pieces always have a &amp;ldquo;volume&amp;rdquo;.
However, a sphere in mathematics is a &lt;strong>&amp;ldquo;collection of an infinite number of points&amp;rdquo;&lt;/strong> with no volume in themselves.&lt;/p>
&lt;p>Banach and Tarski grouped (divided) these infinite points in a very special and complex way.
The way they are divided is so complex and scattered that they become a state where &amp;ldquo;volume can no longer be measured (non-measurable set)&amp;rdquo;.&lt;/p>
&lt;div class="mermaid">graph TD
S["Original sphere S (Volume V)"] -->|Special decomposition| P1["Piece 1 (Volume unmeasurable)"]
S --> P2["Piece 2 (Volume unmeasurable)"]
S --> P3["Piece 3 (Volume unmeasurable)"]
S --> P4["Piece 4 (Volume unmeasurable)"]
S --> P5["Piece 5 (Volume unmeasurable)"]
P1 -->|Rotation and Translation| S1["New sphere 1 (Volume V)"]
P2 -->|Rotation and Translation| S1
P3 -->|Rotation and Translation| S1
P4 -->|Rotation and Translation| S2["New sphere 2 (Volume V)"]
P5 -->|Rotation and Translation| S2
style S fill:#ffddaa,stroke:#333,stroke-width:2px
style S1 fill:#aaddff,stroke:#333,stroke-width:2px
style S2 fill:#aaddff,stroke:#333,stroke-width:2px&lt;/div>
&lt;p>Once each piece becomes a hazy collection of points that &amp;ldquo;do not have (or cannot be measured for) volume&amp;rdquo;, they can escape the constraint of the physical rule (additivity of measure) that says &amp;ldquo;the sum of the pieces must equal the original volume&amp;rdquo;.&lt;/p>
&lt;p>And by cleverly rotating and combining those pieces of hazy points, the &amp;ldquo;magic of infinity&amp;rdquo; completes two spheres packed exactly with the same points as the original sphere.
In fact, it has been proven that this operation of &amp;ldquo;making two spheres from one sphere&amp;rdquo; is possible by dividing the original sphere into just &lt;strong>5 pieces&lt;/strong>.&lt;/p>
&lt;hr>
&lt;h2 id="5-the-root-of-it-all-what-is-the-axiom-of-choice">5. The Root of It All: What is the &amp;ldquo;Axiom of Choice&amp;rdquo;?
&lt;/h2>&lt;p>So, why is a &amp;ldquo;decomposition so complex that its volume cannot be measured&amp;rdquo; mathematically possible?
It is because we accept the &lt;strong>&amp;ldquo;Axiom of Choice&amp;rdquo;&lt;/strong>, a rule that forms the foundation of modern mathematics.&lt;/p>
&lt;p>Roughly speaking, the Axiom of Choice is the following rule:&lt;/p>
&lt;blockquote>
&lt;p>&lt;strong>Concept of the Axiom of Choice&lt;/strong>
When there are items in many boxes, the rule says &lt;strong>&amp;ldquo;you can choose exactly one item from each box and form a new set&amp;rdquo;&lt;/strong>.&lt;/p>
&lt;/blockquote>
&lt;p>If the number of boxes is finite, anyone can do it normally.
However, &lt;strong>if there are an &amp;ldquo;infinite&amp;rdquo; number of boxes&lt;/strong>, humans cannot finish the operation of &amp;ldquo;choosing one by one&amp;rdquo; an infinite number of times. Even so, the Axiom of Choice admits that &amp;ldquo;it is acceptable to assume the chosen set exists&amp;rdquo;.&lt;/p>
&lt;p>This axiom was extremely convenient and essential in constructing modern mathematics. Most mathematicians accepted this rule, thinking, &amp;ldquo;Well, it&amp;rsquo;s obvious.&amp;rdquo;&lt;/p>
&lt;p>However, accepting this Axiom of Choice means admitting the existence of the &amp;ldquo;scattered, hazy set of points whose volume cannot be measured (non-measurable set)&amp;rdquo; mentioned earlier. And as a result, the Banach-Tarski theorem, which states that &amp;ldquo;one sphere becomes two&amp;rdquo;, is derived as a logical necessity.&lt;/p>
&lt;hr>
&lt;h2 id="6-conclusion-the-world-beyond-intuition-painted-by-mathematics">6. Conclusion: The &amp;ldquo;World Beyond Intuition&amp;rdquo; Painted by Mathematics
&lt;/h2>&lt;p>The Banach-Tarski paradox is not a paradox in the sense that &amp;ldquo;there is a contradiction in logic&amp;rdquo;. It is a paradox in the sense that &lt;strong>while the logic is 100% correct, the derived conclusion violently contradicts human intuition and physical laws&lt;/strong>.&lt;/p>
&lt;p>When this theorem was published, some mathematicians argued, &amp;ldquo;If such an absurd conclusion is reached, the Axiom of Choice must be wrong!&amp;rdquo;
However, today, many mathematicians accept the Axiom of Choice, and the Banach-Tarski theorem is also accepted as a &amp;ldquo;bizarre but beautiful property held by 3-dimensional space and infinite sets&amp;rdquo;.&lt;/p>
&lt;p>Since the physical world we live in is made of &amp;ldquo;finite-sized particles&amp;rdquo; called atoms, we cannot turn a pea into the size of the sun.
However, on the canvas of &amp;ldquo;mathematics&amp;rdquo; created by the human brain, the size of a point is zero, and infinite operations are allowed.&lt;/p>
&lt;p>The Banach-Tarski paradox can be said to be one of the masterpieces of modern mathematics, teaching us &lt;strong>how effortlessly the concept of &amp;ldquo;infinity&amp;rdquo; leaps over naive human intuition&lt;/strong>.&lt;/p></description></item><item><title>The Birthday Paradox: Over 50% with just 23 people? The magic of "combinations" that deceives intuition</title><link>http://kenji.blog/en/p/birthday-paradox/</link><pubDate>Thu, 10 Sep 2026 00:00:00 +0900</pubDate><guid>http://kenji.blog/en/p/birthday-paradox/</guid><description>&lt;img src="http://kenji.blog/p/birthday-paradox/img/birthday_paradox.jpg" alt="Featured image of post The Birthday Paradox: Over 50% with just 23 people? The magic of "combinations" that deceives intuition" />&lt;h2 id="1-a-test-of-intuition-how-many-people-does-it-take-for-the-probability-to-exceed-50">1. A Test of Intuition: How many people does it take for the probability to exceed 50%?
&lt;/h2>&lt;p>People are gathering at a party venue.
Here, &lt;strong>how many people do you think are needed at a minimum for the probability of having at least one pair with the exact same birthday (month and day) to exceed 50%?&lt;/strong> (*Excluding leap years, assuming a year has 365 days, and each birthday is equally probable).&lt;/p>
&lt;p>Human intuition tends to calculate like this:
&amp;ldquo;There are 365 days in a year. If we pop people into 365 slots and expect an overlap, we&amp;rsquo;d probably need at least about 180 people. Even with a conservative estimate, shouldn&amp;rsquo;t there be 50 to 60 people for the probability to be half?&amp;rdquo;&lt;/p>
&lt;p>However, the correct answer derived by mathematics is a mere &lt;strong>&amp;ldquo;23 people&amp;rdquo;&lt;/strong>.
In a typical school class (about 30 to 40 people), the probability of a pair sharing a birthday jumps to about 70% to 89%. With 50 people, the probability reaches 97%, making it &amp;ldquo;more unusual not to have people with the same birthday.&amp;rdquo;&lt;/p>
&lt;p>Why does our intuition deviate so much from actual probability?&lt;/p>
&lt;hr>
&lt;h2 id="2-why-intuition-fails-the-difference-between-me-and-someone-and-someone-and-someone">2. Why Intuition Fails: The Difference Between &amp;ldquo;Me and Someone&amp;rdquo; and &amp;ldquo;Someone and Someone&amp;rdquo;
&lt;/h2>&lt;p>The biggest reason intuition fails in this problem is that we unconsciously think about the &lt;strong>&amp;ldquo;probability that someone has the same birthday as a specific person (e.g., yourself).&amp;rdquo;&lt;/strong>&lt;/p>
&lt;p>If you enter the venue and look for &amp;ldquo;someone with the same birthday as me,&amp;rdquo; the probability that someone among the 23 people shares your birthday is only &lt;strong>about 6.1%&lt;/strong>. (For this probability to exceed 50%, you would actually need 253 people).&lt;/p>
&lt;p>However, what the Birthday Paradox asks is not a pair of &amp;ldquo;me and someone.&amp;rdquo; It only requires one match among &lt;strong>&amp;ldquo;all possible combinations between everyone present at the venue (Person A and Person B, Person B and Person C, Person C and Person A&amp;hellip;).&amp;rdquo;&lt;/strong>&lt;/p>
&lt;div class="mermaid">graph TD
subgraph "Illusion of Intuition: 'Self'-centered comparison"
You["You"] --- P1["Person A"]
You --- P2["Person B"]
You --- P3["Person C"]
You --- P4["Person D"]
style You fill:#ff9999,stroke:#333,stroke-width:4px
end
subgraph "Reality: Round-robin comparison of 'Everyone with Everyone'"
A["Person A"] --- B["Person B"]
A --- C["Person C"]
A --- D["Person D"]
B --- C
B --- D
C --- D
end&lt;/div>
&lt;p>Even in a group of just 4 people, a comparison centered around &amp;ldquo;yourself&amp;rdquo; yields 3 pairs, but a comparison among everyone yields 6 pairs (${}_4 C_2 = 6$).
When the number of people increases to 23, the combinations of pairs explosively increase to a whopping &lt;strong>253 pairs&lt;/strong> (${}_{23} C_2$).
With as many as 253 pairs, doesn&amp;rsquo;t it start to feel unsurprising that at least one of those pairs might hit the &amp;ldquo;1 in 365&amp;rdquo; chance?&lt;/p>
&lt;hr>
&lt;h2 id="3-mathematical-proof-a-brilliant-solution-using-the-complementary-event">3. Mathematical Proof: A Brilliant Solution Using the Complementary Event
&lt;/h2>&lt;p>Calculating the &amp;ldquo;probability of at least one pair sharing a birthday&amp;rdquo; head-on is difficult (because there are too many patterns, such as exactly one pair matching, two pairs matching, three people having the same birthday&amp;hellip;).
Therefore, we use a fundamental technique in probability theory: the &lt;strong>&amp;ldquo;complementary event.&amp;rdquo;&lt;/strong>&lt;/p>
&lt;p>A complementary event refers to the &amp;ldquo;probability of something not happening.&amp;rdquo;
In other words, we calculate the &lt;strong>&amp;ldquo;probability that everyone&amp;rsquo;s birthday is different (not a single pair overlaps),&amp;rdquo;&lt;/strong> and subtract it from 100% (1) to get the probability we want.&lt;/p>
$$ P(\text{At least 2 people share a birthday}) = 1 - P(\text{Everyone has a different birthday}) $$
&lt;p>Now, let&amp;rsquo;s imagine people entering the venue one by one and calculate.&lt;/p>
&lt;ol>
&lt;li>&lt;strong>1st person&lt;/strong>: There&amp;rsquo;s no worry of overlapping with anyone. The probability is $\frac{365}{365}$.&lt;/li>
&lt;li>&lt;strong>2nd person&lt;/strong>: Must have a different birthday from the 1st person. The remaining 364 days are safe. The probability is $\frac{364}{365}$.&lt;/li>
&lt;li>&lt;strong>3rd person&lt;/strong>: Must have a different birthday from the previous 2 people. The remaining 363 days are safe. The probability is $\frac{363}{365}$.&lt;/li>
&lt;/ol>
&lt;p>Multiplying this up to the $n$-th person gives the general formula for the probability $P(n)'$ that everyone has a different birthday.&lt;/p>
$$ P(n)' = \frac{365}{365} \times \frac{364}{365} \times \frac{363}{365} \times \dots \times \frac{365 - (n - 1)}{365} $$
$$ P(n)' = \prod_{k=1}^{n-1} \left(1 - \frac{k}{365}\right) $$
&lt;p>Therefore, the sought &amp;ldquo;probability $P(n)$ that at least 2 people share a birthday&amp;rdquo; is as follows:&lt;/p>
$$ P(n) = 1 - \prod_{k=1}^{n-1} \left(1 - \frac{k}{365}\right) $$
&lt;p>If we substitute the number of people $n$ into this formula, we can see the probability rises at an astonishing speed.&lt;/p>
&lt;ul>
&lt;li>When $n = 10$, the probability is about &lt;strong>11.7%&lt;/strong>&lt;/li>
&lt;li>When $n = 23$, the probability is about &lt;strong>50.7%&lt;/strong> (it crosses 50% here!)&lt;/li>
&lt;li>When $n = 40$, the probability is about &lt;strong>89.1%&lt;/strong>&lt;/li>
&lt;li>When $n = 70$, the probability is about &lt;strong>99.9%&lt;/strong>&lt;/li>
&lt;/ul>
&lt;div class="mermaid">pie title "Probability when 23 people gather"
"There is a pair with the same birthday (50.7%)" : 50.7
"Everyone is different (49.3%)" : 49.3&lt;/div>
&lt;hr>
&lt;h2 id="4-approximate-calculation-via-taylor-expansion">4. Approximate Calculation via Taylor Expansion
&lt;/h2>&lt;p>Calculating 23 multiplications by hand is tedious, so let&amp;rsquo;s use a mathematical approximation formula to understand it a bit more intuitively.&lt;/p>
&lt;p>Consider the Taylor expansion of the exponential function $e^{-x}$. When $x$ is sufficiently small, the following approximation holds:
&lt;/p>
$$ e^{-x} \approx 1 - x $$
&lt;p>Applying this to each term $\left(1 - \frac{k}{365}\right)$ from earlier:
&lt;/p>
$$ 1 - \frac{k}{365} \approx e^{-\frac{k}{365}} $$
&lt;p>Multiplying all of these together (which becomes addition by the laws of exponents):
&lt;/p>
$$ P(n)' \approx e^{-\frac{1}{365}} \times e^{-\frac{2}{365}} \times \dots \times e^{-\frac{n-1}{365}} $$
$$ P(n)' \approx \exp\left(-\sum_{k=1}^{n-1} \frac{k}{365}\right) $$
&lt;p>The sum from 1 to $n-1$ is $\frac{n(n-1)}{2}$ (that is, the number of combinations ${}_n C_2$), so:
&lt;/p>
$$ P(n)' \approx \exp\left(-\frac{n(n-1)}{2 \times 365}\right) $$
&lt;p>Using this formula, we find $n$ when the probability is 50% ($0.5$).
&lt;/p>
$$ 0.5 = e^{-\frac{n(n-1)}{730}} $$
&lt;p>
Taking the natural logarithm of both sides ($\ln 0.5 \approx -0.693$):
&lt;/p>
$$ -0.693 = -\frac{n(n-1)}{730} $$
$$ n(n-1) = 0.693 \times 730 \approx 505.89 $$
&lt;p>Approximating as $n^2 \approx 506$, we get $n = \sqrt{506} \approx 22.49$
The answer &lt;strong>$n \approx 23$&lt;/strong> is beautifully derived!&lt;/p>
&lt;hr>
&lt;h2 id="5-application-to-daily-life-and-hash-collisions">5. Application to Daily Life and &amp;ldquo;Hash Collisions&amp;rdquo;
&lt;/h2>&lt;p>This paradox is not just a party trick. It plays a critically important role in the &lt;strong>cryptography and information security&lt;/strong> that supports modern IT society.&lt;/p>
&lt;p>Computer systems use a mechanism called a &amp;ldquo;hash function&amp;rdquo; to quickly verify the identity of passwords or files. A hash function returns a random string of a fixed length (a hash value) no matter what data is put in.
However, the phenomenon where these hash values coincidentally turn out to be the same is called a &lt;strong>&amp;ldquo;Hash Collision.&amp;rdquo;&lt;/strong>&lt;/p>
&lt;p>Hash collisions occur due to the exact same principle as the Birthday Paradox.
Contrary to human intuition, which assumes &amp;ldquo;since the number of possible hash values is astronomical, collisions would rarely happen,&amp;rdquo; it is surprisingly easy for an attacker to randomly generate a massive amount of data and find a &amp;ldquo;pair that matches (has the same birthday).&amp;rdquo;&lt;/p>
&lt;p>This is called a &lt;strong>&amp;ldquo;Birthday Attack.&amp;rdquo;&lt;/strong>
Engineers designing security systems assume this mathematical fact that &amp;ldquo;collisions happen far faster than intuition suggests,&amp;rdquo; and ensure safety by setting the hash length to be extremely long.&lt;/p>
&lt;h2 id="6-conclusion-the-limits-of-human-intuition">6. Conclusion: The Limits of Human Intuition
&lt;/h2>&lt;p>The Birthday Paradox is a perfect example of &lt;strong>how fragile human intuition is against &amp;ldquo;exponential growth&amp;rdquo; and &amp;ldquo;combinatorial explosions.&amp;rdquo;&lt;/strong>&lt;/p>
&lt;p>We are strong at linear (additive) growth, but we cannot simulate in our brains a phenomenon where the number of pairs explodes at a pace of $n^2$.
Behind the intuition that &amp;ldquo;the number 23 is too small compared to the large number 365,&amp;rdquo; there are &lt;strong>&amp;ldquo;253 invisible threads (pairs)&amp;rdquo;&lt;/strong> woven by 23 people.&lt;/p>
&lt;p>Next time you go to a place where people gather, try to imagine not just the visible &amp;ldquo;number of people,&amp;rdquo; but the &amp;ldquo;threads of combinations&amp;rdquo; that exist innumerably among them. The way you view the world should change just a little bit mathematically.&lt;/p></description></item></channel></rss>