
亨利・庞加莱(JulesHenriPoincaré)是法国数学家、天体力学家、数学物理学家、科学哲学家,1854年4月29日生于法国南锡,1912年7月17日卒于巴黎。庞加莱的研究涉及数论、代数学、几何学、拓扑学、天体力学、数学物理、多复变函数论、科学哲学等许多领域。

提到庞加莱,可能人们最先想到的是著名的“庞加莱猜想”,不过这一小节我们聊聊庞加莱一段真实又有趣的故事,这个故事对于理解数理统计中假设检验这个模块很有帮助。
我们买一些食品时,食品的重量多少会有些浮动,例如面包包装袋的重量标识可以这样写:
表示面包的重量应该是1000g,但由于种种原因可能会有50g的误差。庞加莱是个每天都会吃面包的人,他也遇到了同样的事,一个面包师声称卖给庞加莱的面包平均重量是1000g,上下浮动50g。这位面包师每天都会卖个庞加莱一个面包,面对这位忠实的顾客,他没有丝毫的防备,按照自己的买卖方式每天卖个这位数学天才1个面包,不过这位面包师的噩梦也从此开始。
在庞加莱眼中,面包应有重量1000g,上下浮动50g,用数学语言来表达就是:面包的重量服从期望为1000g,标准差为50g的正态分布。作为一个严谨的数学家,庞加莱每天都会将买来的面包称重,前9天的记录数据(单位g)如下:98197296699210101008954952969
这组数据的期望(平均数)为x=978.2,尽管期望小于1000g,但也有50g的浮动,从感觉上尽管有些不爽但也难说有问题,不过对于身为数学家的庞加莱有8成的把握认定面包师在制作过程中偷工减料。但此时证据难说确凿,庞加莱决定按兵不动,继续记录了16天,累计25个数据如下:
25天的记录数据的平均数为978.7g,略有增加,但此时庞加莱有95%的把握认定面包师在制作过程中偷工减料。
庞加莱果断举报给质检部门,当质检员到来时,面包师百般抵赖,声称自己做的面包就是以1000g为基准做的,最多有上下50g的误差,从庞加莱提供的数据中,全部符合他描述的规律,一时间质检工作人员也无可奈何。但这位面包师可能还不认识他的对手,一位精通假设检验的数学家,下面是庞加莱的证词:
第一点.如果面包师的说法的正确的,则每个面包的质量X服从以1000g为期望,50g为方差的正态分布
这点倒是没什么问题,好像25个面包的每一个都服从这个规律。但是25个面包的平均值也服从正态分布,这就是重要的第二点。
第二点.25个面包的平均数也服从正态分布,期望依然是1000,不过方差却改变了,计算公式如下:
也就是说25个面包的平均重量服从以下正态分布:
面包师和质检人员表示没听懂,这能说明什么?庞加莱给出了通俗的解释:一个面包的重量波动的会大一点,多个面包的平均重量的波动范围就会小很多。就想你投掷骰子,投掷1次可能的点数是1到6中的任意一个,但是如果你投掷100次骰子,这100次总数的平均值基本就是3.5这个常数,不信您可以试试。面包师和质检员基本理解了这个道理,继续听庞加莱的第三点说明。
第三点.既然25个面包总重量的均值服从期望为1000g,方差为10g的正态分布,我们先看看正态分布数据的分布特点,如图:
从上图中可以看出,95.44%的数据落入以期望1000g为中心,2倍方差为浮动(即20g)的范围里,即[980,1020]。换句话说,如果面包师严格按照1000g为基准,50g为浮动制作面包,那么25个面包质量的平均值,将有95.44%的可能性落入[980,1020]这个范围里,相反低于980g或者高于1020g的概率还不到5%,所以面包师一定故意偷工减料了。
听过了庞加莱对假设检验的科普,质检员对面包师做了处罚,面包师也承认自己确实是以980g为基准做的面包,并同意做出改正。
英文版:
Jules Henri Poincar é, a French mathematician, astromechanist, mathematical physicist and philosopher of science, was born in Nancy, France on April 29, 1854, and died in Paris on July 17, 1912. Poincare's research involves many fields, such as number theory, algebra, geometry, topology, celestial mechanics, mathematical physics, function theory of multiple complex variables, philosophy of science and so on.
When it comes to Poincare, perhaps people first think of the famous "Poincare conjecture". However, in this section, we will talk about a true and interesting story of Poincare, which is very helpful to understand the hypothesis testing module in mathematical statistics.
When we buy some food, the weight of the food will fluctuate. For example, the weight label of bread bag can be written as follows:
The weight of bread should be 1000g, but there may be an error of 50g due to various reasons. Poincare is a man who eats bread every day. He has the same thing. A baker claims that the average weight of bread sold to Poincare is 1000g, with 50g fluctuation. The Baker would sell a piece of Poincare bread every day. Faced with this loyal customer, he was unprepared. He sold one bread a day according to his own way of trading. However, the baker's nightmare began.
In Poincare's eyes, the weight of bread should be 1000g and 50g, which can be expressed by mathematical language: the weight of bread should obey the normal distribution with expectation of 1000g and standard deviation of 50g. As a rigorous mathematician, Poincare weighed the bread he bought every day. The record data of the first nine days (in G) were as follows: 981972966699210101008954952969
The expectation (average) of this set of data is x = 978.2. Although the expectation is less than 1000g, there is a 50g fluctuation. Although it is a bit unpleasant, it is difficult to say that there is a problem. However, as a mathematician, Poincare is 80% sure that the baker is cutting corners in the production process. But at this time, the evidence is hard to say. Poincare decided not to act and continued to record for 16 days. The accumulated 25 data are as follows:
The average of 25 days' recorded data was 978.7g, slightly increased, but Poincare was 95% sure that the Baker was cutting corners in the production process.
Poincare decisively reported to the quality inspection department. When the quality inspector arrived, the baker refused in every way, claiming that his bread was made based on 1000g, with a maximum error of 50g. From the data provided by Poincare, all of them were in accordance with the law described by him. For a time, the quality inspection staff were helpless. But this Baker may not know his opponent, a mathematician who is proficient in hypothesis testing. Here is Poincare's testimony:
First, if the baker's statement is correct, then the mass X of each bread obeys a normal distribution with 1000g as the expectation and 50g as the variance
There's nothing wrong with this, as if each of the 25 loaves obeys this rule. But the average of 25 breads also follows the normal distribution, which is the second important point.
Second, the average of 25 breads also obeys normal distribution. The expectation is still 1000, but the variance has changed. The formula is as follows:
In other words, the average weight of 25 breads follows the following normal distribution:
The baker and the quality control personnel said they didn't understand. What can this say? Poincare gave a popular explanation: the weight of one bread fluctuates a little more, and the average weight of multiple breads fluctuates much less. If you roll dice once, the possible points are any one from 1 to 6. However, if you roll 100 dice, the average value of the total number of these 100 times is basically the constant of 3.5. You can try it if you don't believe it. The baker and the quality inspector basically understood this truth and continued to listen to Poincare's third point.
Third, since the mean value of the total weight of 25 breads follows the normal distribution with expectation of 1000g and variance of 10G, let's take a look at the distribution characteristics of normal distribution data, as shown in the figure:
It can be seen from the above figure that 95.44% of the data fall into the range of expected 1000g as the center and the double variance as floating (i.e., 20g), i.e. [9801020]. In other words, if the baker strictly follows 1000g as the benchmark and 50g as the floating bread, then the average value of 25 bread quality will fall into the range of [9801020], on the contrary, the probability of lower than 980G or higher than 1020g is less than 5%, so the baker will deliberately cut corners.
After listening to Poincare's popular science on hypothesis testing, the quality inspector punished the baker, and the baker admitted that he did make bread based on 980G and agreed to make corrections.



