tag:blogger.com,1999:blog-4115025577315673827.post6459864784909535216..comments2019-08-19T02:06:10.667+05:30Comments on CSE Blog - quant, math, computer science puzzles: Law of Large Numbers FailedUnknownnoreply@blogger.comBlogger8125tag:blogger.com,1999:blog-4115025577315673827.post-59674318036952160362016-09-16T23:33:07.954+05:302016-09-16T23:33:07.954+05:30How does Law of Large numbers relate to the questi...How does Law of Large numbers relate to the question posed? Though there is a increase in the number of beds, the probability we calculate with Bernoulli distribution is a logical deduction rather than a inductive assumption. Law of large numbers expresses the guarantee of the axiomatic probability calculated to match with the classic frequency representation of probability. So, LLN doesn't apply here at all for it to fail. Am I missing something?Komal Kumarhttps://www.blogger.com/profile/06906686404119616156noreply@blogger.comtag:blogger.com,1999:blog-4115025577315673827.post-35612805108204699132016-09-13T03:58:15.660+05:302016-09-13T03:58:15.660+05:30I think this can be computed directly. Suppose the...I think this can be computed directly. Suppose there are 2n beds. Then the distribution of boys is a binomial with success probability p=0.5. Let the random variable X= number of boys in the hospital. Then number of girls is automatically 2n-X. So,<br />P(X=n)=\binomial(2n,n)(0.5)^(2n)<br />For n=25 : 0.1122751726592170485<br />For n=250 : 0.035664646<br />So we see that it is greater in case of n=25!!! <br />Lets look at the LLN for this problem. The LLN tells us only about the average behavior that is asymptotically on average every bed will be occupied by 0.5 boys. That is if X_i=1 if bed i has a boy and 0 o/w, then almost surely \sum_{i=1}^{2n}X_i converges to 0.5 . But LLN does not tell anything about the exact probability of the event. So we should be careful about how to apply the law of large numbers!! <br /> <br />Kushagrahttps://www.blogger.com/profile/11664824535535246894noreply@blogger.comtag:blogger.com,1999:blog-4115025577315673827.post-81317996402694100492016-09-06T22:55:58.765+05:302016-09-06T22:55:58.765+05:30One should ask which hospital will have proportion...One should ask which hospital will have proportion of boys closer to proportion of girls. LLN says sample mean to approach expected value which here means fraction of boys or girls will be closer to half in case of 500 beds, although the difference b/w boys and girls itself may rise. piyushhttps://www.blogger.com/profile/05733196654980771655noreply@blogger.comtag:blogger.com,1999:blog-4115025577315673827.post-36245075155943930422016-09-01T19:09:56.287+05:302016-09-01T19:09:56.287+05:30I can't see why law of large numbers won't...I can't see why law of large numbers won't work here . The hospital with 50 beds is expected to have more variation from the expectation than the hospital with 500 beds.Abhijit Gairolahttps://www.blogger.com/profile/01578884411764020467noreply@blogger.comtag:blogger.com,1999:blog-4115025577315673827.post-8314816283464632562016-08-02T03:38:11.234+05:302016-08-02T03:38:11.234+05:30Pr_50 = 50!/(25!*25!)/2^50
Pr_500 = 500!/(250!*250...Pr_50 = 50!/(25!*25!)/2^50<br />Pr_500 = 500!/(250!*250!)/2^500<br /> <br />Pr_50 > Pr_500.<br /><br />If Nb is the number of boys and Ng is the number of girls,<br />Law of Large Numbers only claims that Pr( (Nb - Ng)/(Nb + Ng) ) approaches 0.<br /><br />It does not claim about Pr( Nb = Ng ). It can happen that with increasing 'n', the difference increases but the ratio of differences to 'n' almost surely approaches 0.<br />Ankush Jainhttps://www.blogger.com/profile/14341091026907249096noreply@blogger.comtag:blogger.com,1999:blog-4115025577315673827.post-70325858490348064872016-07-30T10:32:00.233+05:302016-07-30T10:32:00.233+05:30The law of large numbers tells us that the expecte...The law of large numbers tells us that the expected number of boys/girls is concentrated in a width of O(sqrt(n)) around the mean. Heuristically, assuming it's a constant in this region, we deduce that the probability of getting exactly the same numbers is roughly 1/\sqrt(n), and hence larger for the 50 bed hospital.<br /><br />The same answer can be derived by using a sterling approximation for the probability.<br /><br />Here is an alternate view, you can think of taking the same distribution (gaussian without the tails), and splitting it into n buckets (n = 50, 500). The probability that we get equal numbers is just the central bucket, which since it gets smaller as n gets large, the probability must go down with n.Sushant Sachdevahttps://www.blogger.com/profile/02681534412045681372noreply@blogger.comtag:blogger.com,1999:blog-4115025577315673827.post-54959868635399275952016-07-28T02:13:51.399+05:302016-07-28T02:13:51.399+05:30The smaller hospital is more likely have an equal ...The smaller hospital is more likely have an equal number of each sex. The respective probabilities are (50 choose 25) * (1/2)^50 ≈ 11% and (500 choose 250) * (1/2)^500 ≈ 3.6%.<br /><br />The law of large numbers implies that as more and more babies are born, each with an independent 50/50 chance of being male of female, the proportion of males will converge to 50%. However, the law says nothing about this proportion equalling 50% exactly. The difference between converging to and equalling is a subtle one. To illustrate the difference, as x gets bigger and bigger, the number 1/x gets closer and closer to zero, but never actually equals zero. This is what happens with the Law of Large Numbers: the proportion of boys will get closer and closer to 50% over time, but not necessarily equal it. <br /><br />To make the "intuitive" conclusion correct, you would have to ask: "Which hospital has a higher probability of having an approximately equal number of boys and girls?", where approximately equal means, say, that the proportion of boys is between 48% and 52%. However, this fact is better proved with the Central Limit Theorem, which specifically says that says not only that the proportion converges towards 50%, but that the error is approximately normally distributed and that the variance decreases (so being close to the mean is more likely).Michael Earnesthttps://www.blogger.com/profile/07389596093529234481noreply@blogger.comtag:blogger.com,1999:blog-4115025577315673827.post-1295594825251280682016-07-27T21:42:00.042+05:302016-07-27T21:42:00.042+05:30I don't really see the connection to the LLN w...I don't really see the connection to the LLN when you think the problem per se. It should be bleeding obvious that the smaller hospital is more likely to have equal numbers born. Even without calculating the binomial probabilities one can understand that greater number of possible outcomes makes any single one like 250-250 less likely. But admittedly, the fractional numbers fluctuate less with greater sample size.Lauri Suorantahttps://www.blogger.com/profile/08858151956409973331noreply@blogger.com