Sponsored Links

Sabtu, 26 Mei 2018

Sponsored Links

Learn Cryptography - The Birthday Problem
src: learncryptography.com

In probability theory, the birthday problem or birthday paradox concerns the probability that, in a set of n randomly chosen people, some pair of them will have the same birthday. By the pigeonhole principle, the probability reaches 100% when the number of people reaches 367 (since there are only 366 possible birthdays, including February 29). However, 99.9% probability is reached with just 70 people, and 50% probability with 23 people. These conclusions are based on the assumption that each day of the year (excluding February 29) is equally probable for a birthday.

Real-world applications for the birthday paradox include a cryptographic attack called the birthday attack, which uses this probabilistic model to reduce the complexity of finding a collision for a hash function.

The history of the problem is obscure. W. W. Rouse Ball indicated (without citation) that it was first discussed by Harold Davenport. However, Richard von Mises proposed an earlier version of what is considered today to be the birthday problem. The problem was featured by Martin Gardner in his April 1957 "Mathematical Games" column in Scientific American.


Video Birthday problem



Calculating the probability

The problem is to compute an approximate probability that in a group of n people at least two have the same birthday. For simplicity, variations in the distribution, such as leap years, twins, seasonal or weekday variations are disregarded, and it is assumed that all 365 possible birthdays are equally likely. (Real-life birthday distributions are not uniform, since not all dates are equally likely, but these irregularities have little effect on the analysis.)

The goal is to compute P(A), the probability that at least two people in the room have the same birthday. However, it is simpler to calculate P(A?), the probability that no two people in the room have the same birthday. Then, because A and A? are the only two possibilities and are also mutually exclusive, P(A) = 1 - P(A?).

In deference to widely published solutions concluding that 23 is the minimum number of people necessary to have a P(A) that is greater than 50%, the following calculation of P(A) will use 23 people as an example. If one numbers the 23 people from 1 to 23, the event that all 23 people have different birthdays is the same as the event that person 2 does not have the same birthday as person 1, and that person 3 does not have the same birthday as either person 1 or person 2, and so on, and finally that person 23 does not have the same birthday as any of persons 1 through 22. Let these events respectively be called "Event 2", "Event 3", and so on. One may also add an "Event 1", corresponding to the event of person 1 having a birthday, which occurs with probability 1. This conjunction of events may be computed using conditional probability: the probability of Event 2 is 364/365, as person 2 may have any birthday other than the birthday of person 1. Similarly, the probability of Event 3 given that Event 2 occurred is 363/365, as person 3 may have any of the birthdays not already taken by persons 1 and 2. This continues until finally the probability of Event 23 given that all preceding events occurred is 343/365. Finally, the principle of conditional probability implies that P(A?) is equal to the product of these individual probabilities:

The terms of equation (1) can be collected to arrive at:

Evaluating equation (2) gives P(A?) ? 0.492703

Therefore, P(A) ? 1 - 0.492703 = 0.507297 (50.7297%).

This process can be generalized to a group of n people, where p(n) is the probability of at least two of the n people sharing a birthday. It is easier to first calculate the probability p(n) that all n birthdays are different. According to the pigeonhole principle, p(n) is zero when n > 365. When n <= 365:

p ¯ ( n ) = 1 × ( 1 - 1 365 ) × ( 1 - 2 365 ) × ? × ( 1 - n - 1 365 ) = 365 × 364 × ? × ( 365 - n + 1 ) 365 n = 365 ! 365 n ( 365 - n ) ! = n ! ? ( 365 n ) 365 n = 365 P n 365 n {\displaystyle {\begin{aligned}{\bar {p}}(n)&=1\times \left(1-{\frac {1}{365}}\right)\times \left(1-{\frac {2}{365}}\right)\times \cdots \times \left(1-{\frac {n-1}{365}}\right)\\&={\frac {365\times 364\times \cdots \times (365-n+1)}{365^{n}}}\\&={\frac {365!}{365^{n}(365-n)!}}={\frac {n!\cdot {\binom {365}{n}}}{365^{n}}}={\frac {_{365}P_{n}}{365^{n}}}\end{aligned}}}

where ! is the factorial operator, (365
n
)
is the binomial coefficient and kPr denotes permutation.

The equation expresses the fact that the first person has no one to share a birthday, the second person cannot have the same birthday as the first (364/365), the third cannot have the same birthday as either of the first two (363/365), and in general the nth birthday cannot be the same as any of the n - 1 preceding birthdays.

The event of at least two of the n persons having the same birthday is complementary to all n birthdays being different. Therefore, its probability p(n) is

p ( n ) = 1 - p ¯ ( n ) . {\displaystyle p(n)=1-{\bar {p}}(n).}

The following table shows the probability for some other values of n (this table ignores the existence of leap years, as described above, as well as assuming that each birthday is equally likely):


Maps Birthday problem



Approximations

The Taylor series expansion of the exponential function (the constant e ? 2.718281828)

e x = 1 + x + x 2 2 ! + ? {\displaystyle e^{x}=1+x+{\frac {x^{2}}{2!}}+\cdots }

provides a first-order approximation for ex for x << 1:

e x ? 1 + x . {\displaystyle e^{x}\approx 1+x.}

To apply this approximation to the first expression derived for p(n), set x = -a/365. Thus,

e - a 365 ? 1 - a 365 . {\displaystyle e^{-{\frac {a}{365}}}\approx 1-{\frac {a}{365}}.}

Then, replace a with non-negative integers for each term in the formula of p(n) until a = n - 1, for example, when a = 1,

e - 1 365 ? 1 - 1 365 . {\displaystyle e^{-{\frac {1}{365}}}\approx 1-{\frac {1}{365}}.}

The first expression derived for p(n) can be approximated as

p ¯ ( n ) ? 1 ? e - 1 365 ? e - 2 365 ? e - n - 1 365 = e - 1 + 2 + ? + ( n - 1 ) 365 = e - n ( n - 1 ) / 2 365 = e - n ( n - 1 ) 730 . {\displaystyle {\begin{aligned}{\bar {p}}(n)&\approx 1\cdot e^{-{\frac {1}{365}}}\cdot e^{-{\frac {2}{365}}}\cdot e^{-{\frac {n-1}{365}}}\\&=e^{-{\frac {1+2+\cdots +(n-1)}{365}}}\\&=e^{-{\frac {n(n-1)/2}{365}}}=e^{-{\frac {n(n-1)}{730}}}.\end{aligned}}}

Therefore,

p ( n ) = 1 - p ¯ ( n ) ? 1 - e - n ( n - 1 ) 730 . {\displaystyle p(n)=1-{\bar {p}}(n)\approx 1-e^{-{\frac {n(n-1)}{730}}}.}

An even coarser approximation is given by

p ( n ) ? 1 - e - n 2 730 , {\displaystyle p(n)\approx 1-e^{-{\frac {n^{2}}{730}}},}

which, as the graph illustrates, is still fairly accurate.

According to the approximation, the same approach can be applied to any number of "people" and "days". If rather than 365 days there are d, if there are n persons, and if n << d, then using the same approach as above we achieve the result that if p(n, d) is the probability that at least two out of n people share the same birthday from a set of d available days, then:

p ( n , d ) ? 1 - e - n ( n - 1 ) 2 d ? 1 - e - n 2 2 d . {\displaystyle {\begin{aligned}p(n,d)&\approx 1-e^{\frac {-n(n-1)}{2d}}\\&\approx 1-e^{\frac {-n^{2}}{2d}}.\end{aligned}}}

A simple exponentiation

The probability of any two people not having the same birthday is 364/365. In a room containing n people, there are (n
2
) = n(n - 1)/2
pairs of people, i.e. (n
2
)
events. The probability of no two people sharing the same birthday can be approximated by assuming that these events are independent and hence by multiplying their probability together. In short 364/365 can be multiplied by itself (n
2
)
times, which gives us

p ¯ ( n ) ? ( 364 365 ) ( n 2 ) . {\displaystyle {\bar {p}}(n)\approx \left({\frac {364}{365}}\right)^{\binom {n}{2}}.}

Since this is the probability of no one having the same birthday, then the probability of someone sharing a birthday is

p ( n ) ? 1 - ( 364 365 ) ( n 2 ) . {\displaystyle p(n)\approx 1-\left({\frac {364}{365}}\right)^{\binom {n}{2}}.}

Poisson approximation

Applying the Poisson approximation for the binomial on the group of 23 people,

Poi ( ( 23 2 ) 365 ) = Poi ( 253 365 ) ? Poi ( 0.6932 ) {\displaystyle \operatorname {Poi} \left({\frac {\binom {23}{2}}{365}}\right)=\operatorname {Poi} \left({\frac {253}{365}}\right)\approx \operatorname {Poi} (0.6932)}

so

Pr ( X > 0 ) = 1 - Pr ( X = 0 ) ? 1 - e - 0.6932 ? 1 - 0.499998 = 0.500002. {\displaystyle \Pr(X>0)=1-\Pr(X=0)\approx 1-e^{-0.6932}\approx 1-0.499998=0.500002.}

The result is over 50% as previous descriptions.

Square approximation

A good rule of thumb which can be used for mental calculation is the relation

p ( n ) ? n 2 2 m {\displaystyle p(n)\approx {\frac {n^{2}}{2m}}}

which can also be written as

n ? 2 m × p ( n ) {\displaystyle n\approx {\sqrt {2m\times p(n)}}}

which works well for probabilities less than or equal to 1/2. In these equations, m is the number of days in a year.

For instance, to estimate the number of people required for a 1/2 chance of a shared birthday, we get

n ? 2 × 365 × 1 2 = 365 ? 19 {\displaystyle n\approx {\sqrt {2\times 365\times {\tfrac {1}{2}}}}={\sqrt {365}}\approx 19}

Which is not too far from the correct answer of 23.

Approximation of number of people

This can also be approximated using the following formula for the number of people necessary to have at least a 1/2 chance of matching:

n ? 1 2 + 1 4 + 2 × ln ( 2 ) × 365 = 22.999943. {\displaystyle n\approx {\tfrac {1}{2}}+{\sqrt {{\tfrac {1}{4}}+2\times \ln(2)\times 365}}=22.999943.}

This is a result of the good approximation that an event with 1/k probability will have a 1/2 chance of occurring at least once if it is repeated k ln 2 times.

Probability table

The white fields in this table show the number of hashes needed to achieve the given probability of collision (column) given a hash space of a certain size in bits (row). Using the birthday analogy: the "hash space size" resembles the "available days", the "probability of collision" resembles the "probability of shared birthday", and the "required number of hashed elements" resembles the "required number of people in a group". One could of course also use this chart to determine the minimum hash size required (given upper bounds on the hashes and probability of error), or the probability of collision (for fixed number of hashes and probability of error).

For comparison, 10-18 to 10-15 is the uncorrectable bit error rate of a typical hard disk. In theory, 128-bit hash functions, such as MD5, should stay within that range until about 8.2×1011 documents, even if its possible outputs are many more.


The Birthday Problem - YouTube
src: i.ytimg.com


An upper bound

The argument below is adapted from an argument of Paul Halmos.

As stated above, the probability that no two birthdays coincide is

1 - p ( n ) = p ¯ ( n ) = ? k = 1 n - 1 ( 1 - k 365 ) . {\displaystyle 1-p(n)={\bar {p}}(n)=\prod _{k=1}^{n-1}\left(1-{\frac {k}{365}}\right).}

As in earlier paragraphs, interest lies in the smallest n such that p(n) > 1/2; or equivalently, the smallest n such that p(n) < 1/2.

Using the inequality 1 - x < e-x in the above expression we replace 1 - k/365 with e-k/365. This yields

p ¯ ( n ) = ? k = 1 n - 1 ( 1 - k 365 ) < ? k = 1 n - 1 ( e - k 365 ) = e - n ( n - 1 ) 730 . {\displaystyle {\bar {p}}(n)=\prod _{k=1}^{n-1}\left(1-{\frac {k}{365}}\right)<\prod _{k=1}^{n-1}\left(e^{-{\frac {k}{365}}}\right)=e^{-{\frac {n(n-1)}{730}}}.}

Therefore, the expression above is not only an approximation, but also an upper bound of p(n). The inequality

e - n ( n - 1 ) 730 < 1 2 {\displaystyle e^{-{\frac {n(n-1)}{730}}}<{\frac {1}{2}}}

implies p(n) < 1/2. Solving for n gives

n 2 - n > 730 ln 2. {\displaystyle n^{2}-n>730\ln 2.}

Now, 730 ln 2 is approximately 505.997, which is barely below 506, the value of n2 - n attained when n = 23. Therefore, 23 people suffice. Incidentally, solving n2 - n = 730 ln 2 for n gives the approximate formula of Frank H. Mathis cited above.

This derivation only shows that at most 23 people are needed to ensure a birthday match with even chance; it leaves open the possibility that n is 22 or less could also work.


Birthday Problem - Wikipedia | blue jeans Ideas
src: www.tele-sport.info


Generalizations

The generalized birthday problem

Given a year with d days, the generalized birthday problem asks for the minimal number n(d) such that, in a set of n randomly chosen people, the probability of a birthday coincidence is at least 50%. In other words, n(d) is the minimal integer n such that

1 - ( 1 - 1 d ) ( 1 - 2 d ) ? ( 1 - n - 1 d ) >= 1 2 . {\displaystyle 1-\left(1-{\frac {1}{d}}\right)\left(1-{\frac {2}{d}}\right)\cdots \left(1-{\frac {n-1}{d}}\right)\geq {\frac {1}{2}}.}

The classical birthday problem thus corresponds to determining n(365). The first 99 values of n(d) are given here:

A number of bounds and formulas for n(d) have been published. For any d >= 1, the number n(d) satisfies

3 - 2 ln 2 6 < n ( d ) - 2 d ln 2 <= 9 - 86 ln 2 . {\displaystyle {\frac {3-2\ln 2}{6}}<n(d)-{\sqrt {2d\ln 2}}\leq 9-{\sqrt {86\ln 2}}.}

These bounds are optimal in the sense that the sequence n(d) - ?2d ln 2 gets arbitrarily close to

3 - 2 ln 2 6 ? 0.27 , {\displaystyle {\frac {3-2\ln 2}{6}}\approx 0.27,}

while it has

9 - 86 ln 2 ? 1.28 {\displaystyle 9-{\sqrt {86\ln 2}}\approx 1.28}

as its maximum, taken for d = 43.

The bounds are sufficiently tight to give the exact value of n(d) in 99% of all cases, for example n(365) = 23. In general, it follows from these bounds that n(d) always equals either

? 2 d ln 2 ? or ? 2 d ln 2 ? + 1 {\displaystyle \left\lceil {\sqrt {2d\ln 2}}\,\right\rceil \quad {\text{or}}\quad \left\lceil {\sqrt {2d\ln 2}}\,\right\rceil +1}

where ? · ? denotes the ceiling function. The formula

n ( d ) = ? 2 d ln 2 ? {\displaystyle n(d)=\left\lceil {\sqrt {2d\ln 2}}\,\right\rceil }

holds for 73% of all integers d. The formula

n ( d ) = ? 2 d ln 2 + 3 - 2 ln 2 6 ? {\displaystyle n(d)=\left\lceil {\sqrt {2d\ln 2}}+{\frac {3-2\ln 2}{6}}\right\rceil }

holds for almost all d, i.e., for a set of integers d with asymptotic density 1.

The formula

n ( d ) = ? 2 d ln 2 + 3 - 2 ln 2 6 + 9 - 4 ( ln 2 ) 2 72 2 d ln 2 ? {\displaystyle n(d)=\left\lceil {\sqrt {2d\ln 2}}+{\frac {3-2\ln 2}{6}}+{\frac {9-4(\ln 2)^{2}}{72{\sqrt {2d\ln 2}}}}\right\rceil }

holds for all d <= 1018, but it is conjectured that there are infinitely many counterexamples to this formula.

The formula

n ( d ) = ? 2 d ln 2 + 3 - 2 ln 2 6 + 9 - 4 ( ln 2 ) 2 72 2 d ln 2 - 2 ( ln 2 ) 2 135 d ? {\displaystyle n(d)=\left\lceil {\sqrt {2d\ln 2}}+{\frac {3-2\ln 2}{6}}+{\frac {9-4(\ln 2)^{2}}{72{\sqrt {2d\ln 2}}}}-{\frac {2(\ln 2)^{2}}{135d}}\right\rceil }

holds for all d <= 1018, and it is conjectured that this formula holds for all d.

Cast as a collision problem

The birthday problem can be generalized as follows:

Given n random integers drawn from a discrete uniform distribution with range [1,d], what is the probability p(n; d) that at least two numbers are the same? (d = 365 gives the usual birthday problem.)

The generic results can be derived using the same arguments given above.

p ( n ; d ) = { 1 - ? k = 1 n - 1 ( 1 - k d ) n <= d 1 n > d ? 1 - e - n ( n - 1 ) 2 d ? 1 - ( d - 1 d ) n ( n - 1 ) 2 {\displaystyle {\begin{aligned}p(n;d)&={\begin{cases}1-\displaystyle \prod _{k=1}^{n-1}\left(1-{\frac {k}{d}}\right)&n\leq d\\1&n>d\end{cases}}\\[8px]&\approx 1-e^{-{\frac {n(n-1)}{2d}}}\\&\approx 1-\left({\frac {d-1}{d}}\right)^{\frac {n(n-1)}{2}}\end{aligned}}}

Conversely, if n(p; d) denotes the number of random integers drawn from [1,d] to obtain a probability p that at least two numbers are the same, then

n ( p ; d ) ? 2 d ? ln ( 1 1 - p ) . {\displaystyle n(p;d)\approx {\sqrt {2d\cdot \ln \left({\frac {1}{1-p}}\right)}}.}

The birthday problem in this more generic sense applies to hash functions: the expected number of N-bit hashes that can be generated before getting a collision is not 2N, but rather only 2N/2. This is exploited by birthday attacks on cryptographic hash functions and is the reason why a small number of collisions in a hash table are, for all practical purposes, inevitable.

The theory behind the birthday problem was used by Zoe Schnabel under the name of capture-recapture statistics to estimate the size of fish population in lakes.

Generalization to multiple types

The basic problem considers all trials to be of one "type". The birthday problem has been generalized to consider an arbitrary number of types. In the simplest extension there are two types of people, say m men and n women, and the problem becomes characterizing the probability of a shared birthday between at least one man and one woman. (Shared birthdays between two men or two women do not count.) The probability of no shared birthdays here is

p 0 = 1 d m + n ? i = 1 m ? j = 1 n S 2 ( m , i ) S 2 ( n , j ) ? k = 0 i + j - 1 d - k {\displaystyle p_{0}={\frac {1}{d^{m+n}}}\sum _{i=1}^{m}\sum _{j=1}^{n}S_{2}(m,i)S_{2}(n,j)\prod _{k=0}^{i+j-1}d-k}

where d = 365 and S2 are Stirling numbers of the second kind. Consequently, the desired probability is 1 - p0.

This variation of the birthday problem is interesting because there is not a unique solution for the total number of people m + n. For example, the usual 50% probability value is realized for both a 32-member group of 16 men and 16 women and a 49-member group of 43 women and 6 men.


Check your intuition: The birthday problem - David Knuffke - YouTube
src: i.ytimg.com


Other birthday problems

Reverse problem

For a fixed probability p:

  • Find the greatest n for which the probability p(n) is smaller than the given p, or
  • Find the smallest n for which the probability p(n) is greater than the given p.

Taking the above formula for d = 365 we have:

n ( p ; 365 ) ? 730 ln ( 1 1 - p ) . {\displaystyle n(p;365)\approx {\sqrt {730\ln \left({\frac {1}{1-p}}\right)}}.}

Sample calculations

Note: some values falling outside the bounds have been colored to show that the approximation is not always exact.

First match

A related question is, as people enter a room one at a time, which one is most likely to be the first to have the same birthday as someone already in the room? That is, for what n is p(n) - p(n - 1) maximum? The answer is 20--if there is a prize for first match, the best position in line is 20th.

Same birthday as you

Note that in the birthday problem, neither of the two people is chosen in advance. By way of contrast, the probability q(n) that someone in a room of n other people has the same birthday as a particular person (for example, you), is given by

q ( n ) = 1 - ( 365 - 1 365 ) n {\displaystyle q(n)=1-\left({\frac {365-1}{365}}\right)^{n}}

and for general d by

q ( n ; d ) = 1 - ( d - 1 d ) n . {\displaystyle q(n;d)=1-\left({\frac {d-1}{d}}\right)^{n}.}

In the standard case of d = 365 substituting n = 23 gives about 6.1%, which is less than 1 chance in 16. For a greater than 50% chance that one person in a roomful of n people has the same birthday as you, n would need to be at least 253. Note that this number is significantly higher than 365/2 = 182 1/2: the reason is that it is likely that there are some birthday matches among the other people in the room.

It is not a coincidence that 253 = 23 × (23 - 1)/2; a similar approximate pattern can be found using a number of possibilities different from 365, or a target probability different from 50%.

Near matches

Another generalization is to ask what is the probability of finding at least one pair in a group of n people with birthdays within k calendar days of each other's, if there are m equally likely birthdays.

p ( n , k , m ) = 1 - ( m - n k - 1 ) ! m n - 1 ( m - n ( k + 1 ) ) ! {\displaystyle {\begin{aligned}p(n,k,m)&=1-{\frac {(m-nk-1)!}{m^{n-1}{\bigl (}m-n(k+1){\bigr )}!}}\end{aligned}}}

The number of people required so that the probability that some pair will have a birthday separated by k days or fewer will be higher than 50% is:

Thus in a group of just seven random people, it is more likely than not that two of them will have a birthday within a week of each other.

Collision counting

The probability that the kth integer randomly chosen from [1,d] will repeat at least one previous choice equals q(k - 1; d) above. The expected total number of times a selection will repeat a previous selection as n such integers are chosen equals

? k = 1 n q ( k - 1 ; d ) = n - d + d ( d - 1 d ) n . {\displaystyle \sum _{k=1}^{n}q(k-1;d)=n-d+d\left({\frac {d-1}{d}}\right)^{n}.}

Average number of people

In an alternative formulation of the birthday problem, one asks the average number of people required to find a pair with the same birthday. If we consider the probability function Pr[n people have at least one shared birthday], this average is determining the Mean of the distribution, as opposed to the customary formulation which determines the Median. The problem is relevant to several hashing algorithms analyzed by Donald Knuth in his book The Art of Computer Programming. It may be shown that if one samples uniformly, with replacement, from a population of size M, the number of trials required for the first repeated sampling of some individual has expected value n = 1 + Q(M), where

Q ( M ) = ? k = 1 M M ! ( M - k ) ! M k . {\displaystyle Q(M)=\sum _{k=1}^{M}{\frac {M!}{(M-k)!M^{k}}}.}

The function

Q ( M ) = 1 + M - 1 M + ( M - 1 ) ( M - 2 ) M 2 + ? + ( M - 1 ) ( M - 2 ) ? 1 M M - 1 {\displaystyle Q(M)=1+{\frac {M-1}{M}}+{\frac {(M-1)(M-2)}{M^{2}}}+\cdots +{\frac {(M-1)(M-2)\cdots 1}{M^{M-1}}}}

has been studied by Srinivasa Ramanujan and has asymptotic expansion:

Q ( M ) ~ ? M 2 - 1 3 + 1 12 ? 2 M - 4 135 M + ? . {\displaystyle Q(M)\sim {\sqrt {\frac {\pi M}{2}}}-{\frac {1}{3}}+{\frac {1}{12}}{\sqrt {\frac {\pi }{2M}}}-{\frac {4}{135M}}+\cdots .}

With M = 365 days in a year, the average number of people required to find a pair with the same birthday is n = 1 + Q(M) ? 24.61659, somewhat more than 23, the number required for a 50% chance. In the best case, two people will suffice; at worst, the maximum possible number of M + 1 = 366 people is needed; but on average, only 25 people are required.

An informal demonstration of the problem can be made from the list of Prime Ministers of Australia, of which there have been 29 as of 2017, in which Paul Keating, the 24th Prime Minister, and Edmund Barton, the first Prime Minister, share the same birthday, 18 January.

In the 2014 FIFA World Cup, each of the 32 squads had 23 players. An analysis of the official squad lists suggested that 16 squads had pairs of players sharing birthdays, and of these 5 squads had two pairs: Argentina, France, Iran, South Korea and Switzerland each had two pairs, and Australia, Bosnia and Herzegovina, Brazil, Cameroon, Colombia, Honduras, Netherlands, Nigeria, Russia, Spain and USA each with one pair.

Voracek, Tran and Formann showed that the majority of people markedly overestimate the number of people that is necessary to achieve a given probability of people having the same birthday, and markedly underestimate the probability of people having the same birthday when a specific sample size is given. Further results were that psychology students and women did better on the task than casino visitors/personnel or men, but were less confident about their estimates.


The Birthday Problem with Applications to Cryptography Amy Prager ...
src: images.slideplayer.com


Partition problem

A related problem is the partition problem, a variant of the knapsack problem from operations research. Some weights are put on a balance scale; each weight is an integer number of grams randomly chosen between one gram and one million grams (one tonne). The question is whether one can usually (that is, with probability close to 1) transfer the weights between the left and right arms to balance the scale. (In case the sum of all the weights is an odd number of grams, a discrepancy of one gram is allowed.) If there are only two or three weights, the answer is very clearly no; although there are some combinations which work, the majority of randomly selected combinations of three weights do not. If there are very many weights, the answer is clearly yes. The question is, how many are just sufficient? That is, what is the number of weights such that it is equally likely for it to be possible to balance them as it is to be impossible?

Some people's intuition is that the answer is above 100000. Most people's intuition is that it is in the thousands or tens of thousands, while others feel it should at least be in the hundreds. The correct answer is 23.

The reason is that the correct comparison is to the number of partitions of the weights into left and right. There are 2N - 1 different partitions for N weights, and the left sum minus the right sum can be thought of as a new random quantity for each partition. The distribution of the sum of weights is approximately Gaussian, with a peak at 1000000N and width 1000000?N, so that when 2N - 1 is approximately equal to 1000000?N the transition occurs. 223 - 1 is about 4 million, while the width of the distribution is only 5 million.


The Birthday Problem with Applications to Cryptography Amy Prager ...
src: images.slideplayer.com


In fiction

Arthur C. Clarke's novel A Fall of Moondust, published in 1961, contains a section where the main characters, trapped underground for an indefinite amount of time, are celebrating a birthday and find themselves discussing the validity of the birthday problem. As stated by a physicist passenger: "If you have a group of more than twenty-four people, the odds are better than even that two of them have the same birthday." Eventually, out of 22 present, it is revealed that two characters share the same birthday, May 23.


3.9. Generalized Birthday Algorithm for Decoding - Inria - Vidéo ...
src: www.canal-u.tv


Notes


The pigeonhole principle and the birthday problem (Part 2) - YouTube
src: i.ytimg.com


References


When Is Cheryl's Birthday? Answer To Viral Math Puzzle - YouTube
src: i.ytimg.com


Bibliography

  • Abramson, M.; Moser, W. O. J. (1970). "More Birthday Surprises". American Mathematical Monthly. 77: 856-858. doi:10.2307/2317022. 
  • Bloom, D. (1973). "A Birthday Problem". American Mathematical Monthly. 80: 1141-1142. doi:10.2307/2318556. JSTOR 2318556. 
  • Kemeny, John G.; Snell, J. Laurie; Thompson, Gerald (1957). Introduction to Finite Mathematics (First ed.). 
  • Klamkin, M.; Newman, D. (1967). "Extensions of the Birthday Surprise". Journal of Combinatorial Theory. 3: 279-282. doi:10.1016/s0021-9800(67)80075-9. 
  • McKinney, E. H. (1966). "Generalized Birthday Problem". American Mathematical Monthly. 73: 385-387. doi:10.2307/2315408. 
  • Schneps, Leila; Colmez, Coralie (2013). "Math error number 5. The case of Diana Sylvester: cold hit analysis". Math on Trial. How Numbers Get Used and Abused in the Courtroom. Basic Books. ISBN 978-0-465-03292-1. 
  • Sy M. Blinder (2013). Guide to Essential Math: A Review for Physics, Chemistry and Engineering Students. Elsevier. pp. 5-6. ISBN 978-0-12-407163-6. 

probability - The birthday problem when the order is not important ...
src: i.stack.imgur.com


External links

  • The Birthday Paradox accounting for leap year birthdays
  • Weisstein, Eric W. "Birthday Problem". MathWorld. 
  • A humorous article explaining the paradox
  • SOCR EduMaterials activities birthday experiment
  • Understanding the Birthday Problem (Better Explained)
  • Eurobirthdays 2012. A birthday problem. A practical football example of the birthday paradox.
  • Grime, James. "23: Birthday Probability". Numberphile. Brady Haran. 
  • Computing the probabilities of the Birthday Problem at WolframAlpha

Source of the article : Wikipedia

Comments
0 Comments