<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Humanicus on Medium]]></title>
        <description><![CDATA[Stories by Humanicus on Medium]]></description>
        <link>https://medium.com/@humanicus?source=rss-59cbccd473fe------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*5Qe0cTvvlh657zhlVeEWmQ.gif</url>
            <title>Stories by Humanicus on Medium</title>
            <link>https://medium.com/@humanicus?source=rss-59cbccd473fe------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sat, 05 Dec 2026 01:26:04 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@humanicus/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[Avoiding the pitfalls of statistics]]></title>
            <link>https://humanicus.medium.com/avoiding-the-pitfalls-of-statistics-7693fc043f42?source=rss-59cbccd473fe------2</link>
            <guid isPermaLink="false">https://medium.com/p/7693fc043f42</guid>
            <category><![CDATA[statistics]]></category>
            <category><![CDATA[mathematics]]></category>
            <category><![CDATA[enigma]]></category>
            <category><![CDATA[science]]></category>
            <category><![CDATA[science-for-fun]]></category>
            <dc:creator><![CDATA[Humanicus]]></dc:creator>
            <pubDate>Tue, 01 Mar 2022 03:31:26 GMT</pubDate>
            <atom:updated>2022-03-01T03:31:26.223Z</atom:updated>
            <content:encoded><![CDATA[<p>Statistics are adorned with a scientific aura that elevates them to the rank of absolute truth. However, the traps they set are numerous. The subtlety of some of them delights us.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*EKA0HLYikAdXxvTl" /><figcaption>Photo by <a href="https://unsplash.com/@kmuza?utm_source=medium&amp;utm_medium=referral">Carlos Muza</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><p>Lucid, Mark Twain wrote: “The facts are stubborn, it is easier to deal with the statistics. He added:”There are three kinds of lies: lies, the sacred lies and statistics. The field of calculations and statistical reasoning is full of traps, misleading evidence, and even scams: let us be on our guard, because intuition is often a bad advisor.</p><p>In Statistics. Beware !, the mathematician and psychologist Nicolas Gauvrit, from the Human and Artificial Cognitions laboratory, lists all the errors, tricks and misconceptions you should be aware of. We will borrow several examples from him. Let’s start with the percentages that we believe we have mastered since elementary school. Let’s check with a few questions (no machine or pencil needed).</p><p>Question 1. If the price of gasoline increases by 25%, it will return to its original price after decreasing by: (a) 25%, (b) 20% or © 16.67%?</p><p>Question 2. Two products A and B have the same price. The price of A increases by 12%, then decreases by 23%. B’s drops 23%, then increases 12%. In the end, (a) A is more expensive than B, (b) B is more expensive than A or © A and B are worth the same price again.</p><p>Question 3. We increase your salary by 2% per year. In ten years, it has increased by: (a) 21.90%, (b) 20%, or © 18.62%?</p><p>Question 4. A member of the government assures us that “the increase in debt which was 15% last year has been reduced to 14% this year”. The opposition claims, however, that “the deficit which was 15 billion euros last year has further increased this year by more than one billion euros”. Is one of them lying (a) or is it possible (b)?</p><p>Question 5. In a university, on the biology license examination, girls did better than boys and on the physics license examination, girls again performed better than boys. However, by combining the results of the two licenses, we discover that the boys were more successful than the girls. Has there been any gender-based wrongdoing?</p><p>To answer the first three questions correctly, a multiplicative perception of the percentages is necessary.</p><p>When the price of gasoline increases by 25%, rather than adding P to 25P / 100, multiply P by 1.25 (1 + 0.25) to calculate the new price. In order for it to return to its initial price, it must be multiplied by the inverse of 1.25, i.e. 0.80 or (1–0.20). The price must therefore be lowered by 20% to bring it back to its previous value. The correct answer to question 1 is therefore (b).</p><p>For question 2, the correct answer is ©, because the price of A has been multiplied by 1.12 then 0.77, which is equivalent to a multiplication by 0.77 then by 1.12, the operation being commutative. More generally, if you have increases and decreases to calculate, the order of calculation does not matter for the end result. On the other hand, we should not simplify by saying that + 12% and + 23% is + 35%!</p><p>For question 3, ten consecutive increases of 2% equals a multiplication by (1.02) 10. Without doing any calculations, we know that the total increase is greater than 20%, because (1 + x) n&gt; 1 + nx. The correct answer is (a).</p><p>The last two questions of the test are more subtle. Both statements in question 4 may be true simultaneously. Last year’s € 15 billion deficit corresponds to 15% of the original debt (from two years ago). It was therefore 100 billion euros. Last year, the debt went from 100 billion to 115 billion. If, as the first statement indicates, the increase in the debt, that is to say the deficit, was 14%, this year, then the increase reached 14% of 115 billion, or 16 , 1 billion. This is in keeping with the second claim that the deficit has increased by over $ 1 billion. The two statements are perfectly compatible: the increase in debt can decrease in percentage each year at the same time as it increases in absolute value.</p><h3>The simpsons at school</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*M0CGWUCgSLwZ6Qeg" /><figcaption>Photo by <a href="https://unsplash.com/@stefangrage?utm_source=medium&amp;utm_medium=referral">Stefan Grage</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><p>Question 5 corresponds to a remarkable situation which offends intuition and can distort the analysis of certain real figures. Indeed, it is quite possible that girls do better than boys in biology bachelor’s degree and better in physics bachelor’s degree, and that, overall, boys do better than girls!</p><p>Take the (fictitious) example of a situation where 100 female candidates and 100 male candidates sit for the biology or physics license exams.</p><p>Physics biology cumulative G F G F G F PASS 80 10 4 50 84 60 FAIL 10 0 6 40 16 40 TOTAL 90 10 10 90 100 100</p><p>Girls do better in physics since 100% graduated compared to only 88% of boys. Likewise, in biology, 55.5% of girls and only 40% of boys are successful. Overall, however, 84% of boys have a diploma, compared to 60% of girls. How to explain it?</p><p>Girls are more numerous in biology license and boys more numerous in physics license. However, the success rate is better in physics than in biology. Girls therefore attempt a more difficult exam on average than boys. They only win, in total, because they opt for the easy way! Ninety out of 100 girls attempt the biology license which has a success rate of 55% while 90 out of 100 boys attempt the physics exam which has a 90% success rate. This situation is called the Simpson paradox or the Yule-Simpson effect. It was described by Edward Simpson in 1951 … and by George Yule in 1903.</p><p>This effect can have annoying consequences, as shown in a comparative study on the effectiveness of two different treatments for kidney stones, conducted in 1986 by C. Charig, D. Webb, S. Payne and O. Wickham.</p><p>Overall, treatment A had led to 273 successes (78%) out of 350 cases while treatment B in 350 cases gave 289, or 83%. Treatment B therefore seemed better than A. However, on closer inspection, it was found that in the case of small kidney stones, treatment A was better than treatment B: A obtained 80 of 87 successes, or 93%, against 234 successes out of 270, or 87%, for treatment B. And it was the same for the large kidney stones where A obtained 73% of successes (192 successes out of 263) whereas B only obtained 69% (55 success out of 80)!</p><p>Another real case of Simpson’s paradox was reported in 1975 by P. Bickel, E. Hammel and J. O’Connell regarding the admission of students to the various faculties of the University of Berkeley, USA. . Overall analysis of the data indicated a bias in favor of boys who, as in the previous fictitious example, performed better than girls. However, the detailed study of admissions, faculty by faculty, showed no such thing: the faculties favoring boys were not more numerous than those favoring girls.</p><p>The explanation of the phenomenon was similar to that of our example: girls applied for more difficult faculties on average than those attempted by boys. Should we conclude that one thing and its opposite can be said to the statistics? Is there always a risk of encountering such situations? The answer is no: in the data aggregation that generates the Simpson paradox, we do not mix data corresponding to equal numbers for the sub-cases. If we aggregate the results of the exams of 100 girls taking biology, 100 girls taking physics, 100 boys taking biology, 100 boys taking physics, then the Simpson paradox disappears. If one wants to obtain sensible conclusions, the aggregation of the results must respect certain rules of homogeneity.</p><p>Note that the Simpson paradox is generalized by taking more than two categories of students. Data, depending on whether you look at it one way or another, can lead to exactly the opposite rankings. Let us continue with some examples proposed by Nicolas Gauvrit which show that paradoxes similar to that of Simpson are more frequent than one imagines.</p><p>Welcome to the Marchive company whose salary situation can be summarized as follows:</p><p>managerial workers 2016 salary 200 € 2,000 € workforce 1,000 100 2017 salary 180 € 1,800 € workforce 600,500</p><p>A conflict opposes the unions and the boss. The former say: “The wages of workers and managers have fallen this year by 10%. “The boss replies:” Our calculations indicate that the average salary in the company has increased. It went from 363.64 euros per week to 916.34 euros, which corresponds to an increase of 152%. Yet again no one is lying. How is it possible ?</p><p>The table responds: the weekly wages of workers, from 200 euros to 180 euros, fell by 10%. That of executives, from 2,000 to 1,800 euros, has also fallen by 10%. The unions are therefore right to claim that wages have fallen by 10%.</p><p>For his part, the boss does not cheat! The salary paid to the 1,100 employees of the company in 2006 was 400,000 euros each week (1,000  200 + 100  2,000), or 363.64 euros per employee. In 2007, the salary paid to 1,100 employees (the overall workforce is unchanged) amounted to 1,008,000 euros (180  600 + 1,800  500), or 916.34 euros per employee. The average salary has therefore increased by 152%.</p><p>The scam, because there is one, is that the workforce by category changed between 2016 and 2017. As a result, the decrease in salary in each category is offset by the increase in the number of executives who are better paid. A 10% reduction in the salary of each category of personnel is perfectly compatible with an increase in the average salary of employees.</p><p>This situation is not so fictitious as that, because each year the French State insists on the figures of the wage bill of civil servants and on the average salary of a civil servant which evolve more favorably than the index point used to pay. salaries of civil servants. This index point determines, for a fixed grade, the salary of a civil servant and of course it is to him that the unions prefer to trust. The increase in the average age of civil servants — due in particular to strong recruitment into education in the 1970s and 1980s — automatically leads to an increase in the average grade (as in the fictitious company in the example indicated above ) and therefore leads to a discrepancy between the figures relating to the average salary of a civil servant and those relating to the index point, which ministers and unions use in the way that suits them best.</p><p>Still on the subject of civil servants, let us see another apparent paradox. It can be said without contradicting ourselves that: (a) the average salary in the public service is higher than that in the private sector; (b) the majority of civil servants would earn more if they went into the private sector. The explanation lies again in the distribution of jobs in the public and private sectors: in the first, the number of skilled jobs is greater, which has the effect of increasing the average wage in the public sector, without for as much to contradict that with the same diploma one earns less in the public than in the private sector.</p><p>Statistics use indices with precise definitions which summarize in a single number a sometimes considerable mass of figures. These clues are inevitable: without them, we could not synthesize data tables. However, statisticians’ indices set traps and can generate completely absurd results. Either the one who examines them understands them imperfectly, or he does not take specific situations into account.</p><p>Life expectancy is a trick index. The poverty line as defined by INSEE is just as disturbing. By definition, the poverty line in a country is half of the median income, i.e. half of income X such that there are as many people earning more than X as people earning less in the country. . The poverty index is the percentage of people living below the poverty line.</p><p>If now someone announces to you that in such and such a country 60% of the people live below the poverty line, that is nonsense. By definition, this is not possible: half (to a few units) of people have income below the median income, and necessarily less than half have an income below half of the median income.</p><p>The dramatic consequence is that even in a country where everyone died of starvation, the number of poor would remain below 50%, while in contrast, in a country composed only of billionaires, there could very well be 45% of people living below the poverty line. Poverty and wealth are relative concepts, of course, but still!</p><h3>To be poor in plenty</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*jDZbU7kejQpWQB6l" /><figcaption>Photo by <a href="https://unsplash.com/@roberto_sorin?utm_source=medium&amp;utm_medium=referral">Roberto Sorin</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><p>Nicolas Gauvrit imagines the following short story which shows absurdly how dangerous the use of the poverty index is. In the land of plenty, an apple costs a thousandth of the floor. Accommodation costs 5. We eat well for 0.2 sol. We live in comfort for 100 sols per month, and like a mogul for 200 sols per month. There are two types of workers in this country: workers who have an income of 1,000 sols per month, and thinkers who have a monthly income of 3,000 sols. There are as many workers as there are thinkers, exactly. All of them live in harmony and in an opulence that neighboring countries envy. The only exception to the rule of two salaries: the president of the country, for his part, receives a salary of 2,800 sols. The median income is then 2,800 sol, as any statistician would confirm. Half of the median income is therefore 1,400 sols, and half of the population (not including the president) receives a lower salary. The poverty index is therefore 50% and it is the highest possible value of this index.</p><p>But one fine day in May 2068, the president agreed to lower his indemnities, because, he said, “there is no reason why I should claim more than a worker! I am a worker like the others ”. Taking into account his responsibilities, however, he allowed himself a small extension and declared himself satisfied with his new income of 1,400 sols per month.</p><p>The median income in Cocagne then drops immediately to 1,400 sols, and the median half-income to 700 sols, and by a breathtaking statistical miracle, the poverty index immediately drops, in May 2068, to 0, the minimum. possible. “</p><p>Created following a controversy over the poverty index, the BIP 40 or barometer of inequalities and poverty is a synthetic indicator of inequalities and poverty. This index was proposed by the Inequalities Alert Network in 2002 and it eliminates some of the problems mentioned above. However, it is quite complex, so it is difficult to understand its meaning and we cannot guarantee that it will avoid all the absurdities of simpler clues.</p><h3>A family matter</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*OzXlD7-Jt7y7YYC2" /><figcaption>Photo by <a href="https://unsplash.com/@tylernixcreative?utm_source=medium&amp;utm_medium=referral">Tyler Nix</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><p>Among all the traps detailed in Nicolas Gauvrit’s book, one of them is quite subtle and deserves special attention, we will call it the paradox of the average number of children. An exhaustive survey carried out in a distant city indicates that families with children under 18 are distributed as follows: 10% families with 1 child, 50% with 2 children, 30% with 3 children, 10% with 4 children. The average number of children per family (among those with children) is therefore (10 + 100 + 90 + 40) / 100 = 2.4.</p><p>To check this statistic, the administrative authorities carry out a survey. We interview 1,000 carefully selected children under the age of 18 and ask them how many children there are in their families, including themselves. By taking the average of the answers, we get… 2.68! It sounds absurd. So we start the survey again, this time interviewing 10,000 children, we now find 2.67. A third poll of 100,000 children gives 2,668 again. Why this difference so important with the 2.4 of the statistic which took into account all the families with children?</p><p>The answer lies in the fact that by interviewing children at random, you will interview 4 times more children in families with 4 children than you will interview in families with 1 child, which skews the average. If there are 1000 families, there will be 100 only children, 1000 children belonging to a family of 2 children, 900 children belonging to a family of 3 children, 400 children belonging to a family of 4 children. In total, the answers given by these 2,400 children will lead to the result of 2,666… children per family.</p><p>The surveys conducted do not estimate the average number of children in a random family, but the average number of children found in the family of a random child. “Take a random family” and “Take a random child” are not the same thing.</p><p>We know since Condorcet for the votes, it is very difficult to synthesize a set of numbers in only one. We hope that the pitfalls of statistics, graphical representations, synthetic clues, polls presented here — and those you will find in Nicolas Gauvrit’s book — will help you better understand the truths behind the disturbing and fluctuating world of numbers.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=7693fc043f42" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Learn about chance by observing the world]]></title>
            <link>https://humanicus.medium.com/learn-about-chance-by-observing-the-world-99923b6f34fa?source=rss-59cbccd473fe------2</link>
            <guid isPermaLink="false">https://medium.com/p/99923b6f34fa</guid>
            <category><![CDATA[complex-number]]></category>
            <category><![CDATA[mathematics]]></category>
            <category><![CDATA[statistics]]></category>
            <category><![CDATA[nature]]></category>
            <category><![CDATA[random]]></category>
            <dc:creator><![CDATA[Humanicus]]></dc:creator>
            <pubDate>Sat, 26 Feb 2022 03:21:07 GMT</pubDate>
            <atom:updated>2022-02-26T03:21:07.593Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*VUbdqKbLJB3U5s2F" /><figcaption>Photo by <a href="https://unsplash.com/@shalevcohen?utm_source=medium&amp;utm_medium=referral">Shalev Cohen</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><p>When we ask mathematicians if the sequence of dice rolls “666666666” is less random than the sequence “152635224”, they answer no, since both have exactly the same probability of happening. However, one can doubt that these same mathematicians will show themselves impassive if they obtain the first continuation during a game of dice! We all have a certain intuition of chance, which tells us that getting a 6 nine times in a row is more amazing than getting 1, then 5, then 2, etc. Researchers have long tried to understand where this mistaken intuition comes from and what it is based on.</p><p>Imagine figures formed by grids of 16 squares, some of which are black, others white (see opposite). Are these patterns the result of chance, or does their construction obey certain rules? This is the question psychologists have asked many participants for decades.</p><p>It has long been noticed that some figures seem more random than others to almost everyone. The first grid at the top left, for example, seems to you intuitively not very random, while the one at the bottom right seems to be the result of chance. Psychologists first looked for clues to predict this intuition. What do participants use to judge the degree of hazard? Several clues were put forward, such as the number of boxes of each color or the spread of black boxes, but that did not explain everything.</p><p>The idea of ​​many researchers at the time was that the question is just absurd. From a mathematical point of view, each of these figures has exactly the same probability. Also, if one of them seems more “random” than another to almost everyone, it is because we have a biased view of chance.</p><p>Yet another idea has emerged more recently: there may be something rational behind this perception of chance.</p><p>When you ask yourself if a figure is random, you are not looking to estimate the probability of obtaining it by chance, but rather to determine the probability that this figure was produced by a random process. Although the two statements are alike, they do not mean the same thing. In the mathematical sense, the second question appeals to the notion of algorithmic complexity. Briefly said, a figure is “complex” if there is no simple procedure for producing it.</p><p>It actually appeared that we tend to consider a figure as all the more random the more complex it is in the mathematical sense. So we have an intuitive sense of complexity. Where does it come from?</p><p>To find out, Anne Hsu, from Queen Mary University in London, and her collaborators studied in 2010 the frequency of appearance of the different patterns opposite in photos of natural scenes (at the scale of one box = one pixel ). Photographs often have large dark areas and large light areas, such as all-black or white grids, appear frequently. The researchers have thus shown that the perception of the randomness of a pattern is correlated with its frequency of appearance: the grids that appear the least in natural scenes are those considered to be the most random. Conversely, uniform grids, which often appear, are judged to be not very random … However, they have low complexity.</p><p>Thus, the probability of the appearance of a pattern in the real world, its algorithmic complexity and the impression of chance it gives rise to in us are linked. We have recently shown that the frequency of appearance of patterns in the real world can explain a large part of our perception of complexity. It is therefore partly through the confrontation with the real world that we develop a certain idea of ​​chance, consistent with the mathematical notion.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=99923b6f34fa" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[An explanation for Benford’s law]]></title>
            <link>https://humanicus.medium.com/an-explanation-for-benfords-law-c8e8f1301cf7?source=rss-59cbccd473fe------2</link>
            <guid isPermaLink="false">https://medium.com/p/c8e8f1301cf7</guid>
            <category><![CDATA[mathematics]]></category>
            <category><![CDATA[statistics]]></category>
            <category><![CDATA[benfords-law]]></category>
            <category><![CDATA[science]]></category>
            <category><![CDATA[demonstration]]></category>
            <dc:creator><![CDATA[Humanicus]]></dc:creator>
            <pubDate>Fri, 25 Feb 2022 07:23:00 GMT</pubDate>
            <atom:updated>2022-02-25T07:23:00.686Z</atom:updated>
            <content:encoded><![CDATA[<h4>Benford’s law, which relates to the first significant digit of numbers, has lost its mystery. At the same time, it has been generalized and, thus, has become more effective in detecting fraudulent data.</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*wJR3JJmTZ-jtp-b2.jpg" /></figure><p>Benford’s law or “law of the first significant digit” continues to disturb, interest and give rise to studies and applications. Over 130 scientific papers have been published on the subject over the past five years (see <a href="http://www.benfordonline.net/">http://www.benfordonline.net</a>).</p><p>Some find it mysterious, while others believe they understand its nature and offer explanations. It has been generalized and used to test and spot fraud. We will present some of the recent ideas on this strange and exciting subject.</p><h3>The law of the first digit</h3><p>The numbers that we meet to measure the population of cities, the distances between stars or the prices appearing on the products of a large supermarket show a surprising property. In these series, the proportion of numbers whose first significant digit is 1 is greater than the proportion of numbers whose first significant digit is 2, itself greater than the proportion of numbers whose first significant digit is 3, and so following.</p><p>The law of the first significant digit indicates precisely that in a general context, and without opposing particular reasons, the probabilities of meeting the various digits at the head of the numbers are respectively:</p><p>p (1) = 30.1%<br> p (2) = 17.6%<br> p (3) = 12.5%<br> p (4) = 9.7%<br> p (5) = 7.9%<br> p (6) = 6.7%<br> p (7) = 5.8%<br> p (8) = 5.1%<br> p (9) = 4.6%.</p><p>Although today referred to as Benford’s law, this law was first formulated by Canadian astronomer Simon Newcomb in 1881. He noticed that the first pages of the logarithm tables were more damaged than the following ones. . His article was ignored until, 57 years later, American physicist Frank Benford also noticed the uneven wear of the pages of the digital tables. The articles of Newcomb and Benford propose the same formula: the probability of encountering the digit c as the first digit of a number is according to them log₁₀ (c + 1) — log₁₀(c), where the logarithm used is the logarithm decimal which, remember, checks:</p><p>log₁₀ (1) = 0;<br> log₁₀ (10ⁿ) = n for integer n;<br> log₁₀ (ab) = log₁₀(a) + log₁₀ (b);<br>log₁₀(a / b) =log₁₀(a) — log₁₀(b).</p><p>Not all statistical series verify this Benford law. The height of an adult human measured in centimeters starts, with rare exceptions, with 1 and therefore does not verify it. Likewise, the registration plates of motor vehicles have numbers which, in each country, are most often well distributed: as many numbers starting with 1, as with 2, etc. For the law to manifest itself, it seems necessary that the numbers of the series considered take values ​​varying over several orders of magnitude (this is the case of the sizes of cities), and that they be fairly regularly spaced (see box 1 for further details).</p><p>For some numerical sequences, Benford’s law is not conjectured, but proven. This is the case for powers of 2 (2, 4, 8, 16, 32, …). We have shown that at infinity, the proportion of powers of 2 that start with the number 1 is exactly log₁₀(2) — log₁₀(1), that the proportion of powers of 2 that start with 2 is log₁₀(3) —log₁₀(2), etc.</p><h3>The expected uniform spread</h3><p>Can we formulate a simple explanation of what we observe and prove for certain numerical sequences? It seems so. The one we are going to present now convinces most of those who make the effort to understand it. It might seem a bit complicated, but it is the most general intuitive rationale known, and what it suggests is useful, as we will see.</p><p>The explanation is based on a first law which is rarely stated, because it is undoubtedly considered too simple, and which we will call “the law of uniform spreading of the fractional part”. Before formulating it, let’s set notations that will help to express yourself effectively. Let r be a real number (for example r = 2.71828 …). Its integer part is the largest integer less than or equal to r, which we will denote by frg. Its fractional part is r — frg and will be denoted {r}: thus, f2.71828g = 2 and {2.71828} = 0.71828. In simple language, the integer part is what lies in front of the comma, the fractional part is what lies behind.</p><h3>The fractional part spreading law</h3><p>If one chooses real numbers r at random in an interval wide of several units (for example between 0 and 20), and the law which indicates the probability of falling on one of the possible values ​​is fairly regular and spread out, then the fractional part of the numbers r will be, more or less, evenly distributed in the interval of the numbers between 0 and 1.</p><p>Consider, for example, the overall grade average (out of 20) of students in a school. We find numbers like: 10.54; 12.43; 7.23; 11.97; 12.41; 13.80; 16.55… whose fractional parts are: 0.54; 0.43; 0.23; 0.97; 0.41; 0.80; 0.55 …</p><p>The notes will not necessarily be uniformly spread over the entire range from 0 to 20, and it is even likely that there will be a large number of notes around 10 or 11. On the other hand, what the law of d indicates The uniform spread is that the fractional part of these notes will be well spread between 0 and 1. In particular, there will be about as many fractional parts starting with 0 (after the comma) as there will be fractional parts starting with 1 , that of fractional parts starting with 2, etc. With undoubtedly small variations around 1/10, the proportion of notes will be the same for each of the 10 categories.</p><p>More generally, if we give ourselves two numbers a and b between 0 and 1 with a &lt;b, the proportion of notes whose fractional part is between a and b is equal to b — a, the length of the interval [ a, b]. In our example, the proportion of student marks whose fractional part is between 0.25 and 0.40 is equal to approximately 15%.</p><p>The explanation of this law is that, except in special cases, the fractional parts of the numbers will not be concentrated on the same area of ​​the interval [0, 1]. If there are more numbers between 12.3 and 12.4, this will not be true (with some exceptions) between 15.3 and 15.4. Thus, the possible irregularities in density over the 20 possible intervals between two consecutive integers will more or less compensate for each other, which will standardize the series of fractional parts, which can be seen as a sort of average of what happens on each of the 20 intervals between two integers. A graphic interpretation of this idea is provided in Box 3, as well as an analogy to the belief in the fairness of a lottery in Box 2.</p><p>Beside the intuitive and somewhat vague idea, there are of course precise formulations of mathematical conditions which ensure that the deviation from uniformity is small, or even zero; interested readers will be able to consult them in the articles of the bibliography.</p><p>The origin of this law, the central importance of which we will understand, is difficult to trace. In 1912, Henri Poincaré expressed an equivalent principle without stating a precise theorem. He explained about the third decimal of the numbers found in a table of logarithms that we will observe “that the ten digits 0, 1, 2, 3, …, 9 are equally distributed on this list and therefore the probability for that this third decimal is even is equal to 1/2 ”. For him, this statement of uniformity was obvious; he wrote: “[…] an invincible instinct leads to think so.”</p><p>The idea of standardizing fractional parts was taken up by the Croatian-born mathematician William Feller in his famous 1966 treatise on probability theory, but as has been noted since, in wanting to formulate a mathematical statement, he made a mistake. Without knowing either Poincaré’s or Feller’s text, and this time with an exact statement and demonstration, Nicolas Gauvrit and I rediscovered the idea in 2008, at the same time that another different and correct precise statement was proposed independently. by German researchers Lutz Dümbgen and Christoph Leuenberger. The inability to classify mathematical results for easy retrieval, as one classifies words in a dictionary, often results in results which do not clearly relate to a specific area of mathematics are independently discovered more than once.</p><h3>Evidence of Benford’s Law</h3><p>Thanks to this spreading law, which is both intuitive and formalizable, we will obtain a natural and simple justification of Benford’s law. The idea is just to apply a decimal logarithm to the previous law … and think a bit.</p><p>We take the previous statement and apply it not to the numbers r of the series considered, but to their decimal logarithm, log₁₀(r). If we choose real numbers r at random over a wide range covering several orders of magnitude (for example between 1 and 10²⁰), and the law which indicates the probability of falling on one of the possible values is fairly regular and spread out, then the fractional parts of the decimal logarithms of the numbers, i.e. the {log₁₀(r)}, will be roughly evenly distributed between 0 and 1.</p><p>We don’t see it straight away, but what we have just stated is Benford’s law (or more accurately a more powerful law sometimes referred to as “continuous Benford’s law”). Indeed, asserting that c is the first significant digit of the number r is equivalent to stating that log₁₀( c )≤ { log₁₀ (r)} &lt;l log₁₀(c + 1), which will be justified a little later.</p><p>The fractional parts of the images by log10 of the numbers r whose first significant digit is c therefore occupy in the interval [0, 1] an interval of length log₁₀(c + 1) — log₁₀( c ), which means, if l ‘we assume the uniform distribution, that their proportion is log₁₀(c + 1) — log₁₀( c ). This is exactly what Benford’s law says about the first significant digit in decimal!</p><p>Benford’s continuous law is actually a little more powerful than the law that only mentions significant digits in base 10. It allows, for example, to find, in any number base, a statement evoking the first significant digit.</p><p>The rationale for equivalence used above is rigorous, but an example will clarify equivalence. Let us take r = 7 234. We have:</p><p>{ log₁₀(7 234)} = log₁₀(7 234) — flog₁₀ (7 234) g</p><p>= log₁₀ (7 234) — f3.8593 … g = log₁₀(7 234) — 3</p><p>= log₁₀ (7 234) — log₁₀(103) = log₁₀(7 234/1000)</p><p>= log₁₀(7.234).</p><p>Since log10 is an increasing function, we have: log₁₀(7) &lt;log₁₀ (7,234) &lt;log₁₀(8).</p><p>Subtracting flog₁₀(r) g from log₁₀(r) reduces the value in log₁₀ between 1 and 10 and so the box between log₁₀( c ) and log₁₀(c + 1) marks the first significant digit. Hence the indicated equivalence.</p><h3>We want proof!</h3><p>As before, the stated principle, i.e. Benford’s continuous law, is a bit vague, and it should be specified when it does not apply, using demonstrated mathematical results.</p><p>Such mathematical statements exist; they are a little complicated to formulate (see the article by Michel Valadier cited in the bibliography). They consist in formulating hypotheses expressing the idea of ​​spreading and regularity, and, depending on the precision with which the hypotheses are imposed, they assert that the series of numbers satisfies Benford’s law with a precision that the theorem explains. .</p><p>You have to be a little careful with the informal formulation of Benford’s law; it is only the translation of an “invincible” intuition as Poincaré writes, but which remains an intuition. It all depends on what we call “wide range of several orders of magnitude” and “spread and regular law”. However, the informal statement shows why the law is often verified, at least approximately.</p><p>The informal law also explains another property of Benford’s law that has long been noted: by increasing the size of a series of numbers, we do not always tend towards the stated values ​​of the probabilities log₁₀(c + 1) — log₁₀( c ) . The explanation is clear: if the numbers follow a precise law, the compensation between the intervals when we go to the fractional parts of the logarithms will be done only exceptionally, and therefore by multiplying the data, we do not converge to a perfectly uniform law. on [0, 1], but towards an approximately uniform distribution.</p><p>Understanding is the best way forward and it is here. Identifying the origin of Benford’s law suggests a simple method of generalizing it: replace the function log10 with another of the same type, i.e. increasing and continuous.</p><p>If f is an increasing continuous function, if we choose real numbers r at random over a wide range, and if the law which indicates the probability of falling on one of the possible values ​​is fairly regular and spread out, then the fractional part of the f (r) will be roughly evenly distributed between 0 and 1.</p><p>Here again, theorems are possible. Unfortunately, for the functions f that we can consider (for example f (x) = œ — x, f (x) = x², f (x) = exp (x)) there is no simple translation of the general law in terms of the first significant digit. These generalizations are therefore not as spectacular as the law obtained with f (x) =log₁₀(x). They are useful, however, as they provide fraud detection tools.</p><h3>Using general benford’s law to detect fraud</h3><p>Benford’s law has been used many times to detect fraud. A recent book is even devoted to this subject (Mark Nigrini, Benford’s Law: Applications for Forensic Accounting, Auditing, and Fraud Detection, Wiley, 2012).</p><p>The principle is simple: if they are spread regularly over several orders of magnitude, the numbers appearing in accounts or statistics should, except for special reasons, verify Benford’s law. If they are invented numbers, their author may have wanted to create about as many that start with 1 as with 2, 3, etc. Not being aware of the property under Benford’s law, the forger will not respect it. If the suspicious data does not agree with Benford’s law, it will be concluded that the data has been tampered with.</p><p>It happened in financial and tax data expertise, it happened in science where tests found data from fraudulent experiments. Benford’s law has also been used to distinguish artificial digital images from natural digital images or to identify which images in a series contained hidden data (steganography).</p><p>A problem appears. By dint of talking about Benford’s Law, data riggers could be informed. They would endeavor to produce invented data that respects it and thus pass through statistical tracking tools based on Benford’s law. The general law makes it possible to counter this risk: by using the variants with various functions f, we will identify the falsified data.</p><p>To test this method, a series of experiments were carried out by a group of researchers gathered around Nicolas Gauvrit. We describe here one of the experiments carried out. Human pseudo-random productions have been examined in four contexts where Benford’s law of significant digits is observed.</p><p>A group of 169 adults, recruited via social media or email, participated in this experiment. Their ages ranged from 13 to 73 years old. Participants were randomly divided into four groups to deal with data:</p><p>-(a) on the population of the 5,000 most populous American cities,<br> -(b) on mathematical constants from the tables of Simon Plouffe,<br> -© the distances in light years between the Earth and the nearest visible stars,<br> -(d) on the number of tuberculosis cases by country for the year 2012.</p><p>In each group, participants were told that a series of 30 numbers had been randomly selected from the actual data, and that they were to attempt to produce what they believed to be an analogous and plausible series of 30 numbers. Series of 30 numbers from actual databases were also constructed.</p><p>For each set of 30 values of r (manufactured or real), we examined the distributions of the fractional parts of f (r), with f (r) = Log (r), f (r) = p r² and f (r ) = Œ — r. The deviation from general Benford’s law was measured by a classical method (the Kolmogorov-Smirnov statistic). As expected, human-made data conforms less well to Benford’s law than real data (see Box 4).</p><p>Out of the 12 comparisons (3 functions, 4 data types), only one exception was noted coming from the comparison of the data of the table of constants of Simon Plouffe tested with Benford’s law for the function f (r) = p r² : in this case, humans are on average more compliant with Benford’s law than real data!</p><p>So the conclusion is clear: Humans get caught out by general Benford’s law when they attempt to fabricate fake data.</p><p>Other results of the study also suggest that, depending on the type of data whose authenticity is to be checked, some choices of the replacement function log₁₀ in general Benford’s law are preferable to others. Understanding why will be important to create detection tools that no fraudster can escape. But, to be sure, thanks to General Benford’s Law, the panoply of digital cheat hunters has been enriched with a powerful new weapon.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=c8e8f1301cf7" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[I see it, I demonstrate it, but do I understand it?]]></title>
            <link>https://humanicus.medium.com/i-see-it-i-demonstrate-it-but-do-i-understand-it-cf62762d975a?source=rss-59cbccd473fe------2</link>
            <guid isPermaLink="false">https://medium.com/p/cf62762d975a</guid>
            <category><![CDATA[paul-lévy]]></category>
            <category><![CDATA[universal-string-theorem]]></category>
            <category><![CDATA[sharkovskii]]></category>
            <category><![CDATA[enigma]]></category>
            <category><![CDATA[mathematics]]></category>
            <dc:creator><![CDATA[Humanicus]]></dc:creator>
            <pubDate>Thu, 24 Feb 2022 15:17:44 GMT</pubDate>
            <atom:updated>2022-02-24T15:17:44.307Z</atom:updated>
            <content:encoded><![CDATA[<h4>One of the fascinating things about mathematics is that it holds countless truths that are both quite simple and very unexpected. Illustration with eight amazing examples.</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*gmEG1en0t-R1rc7w" /><figcaption>Photo by <a href="https://unsplash.com/@jannerboy62?utm_source=medium&amp;utm_medium=referral">Nick Fewings</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><p>Mathematical reasoning is not a simple calculation of which we foresee what it will give and of which we know in advance all the limits; it sometimes generates miracles. We are going to present eight small puzzles and their solutions that you will find unexpected, absurd or implausible.</p><p>They all make us discover a fairly simple property which achieves a sort of exploit which is a priori impossible, or which places us in front of an affirmation very far from anything we could imagine.</p><h3>Miracle 1 — Do you know the root of 2?</h3><p>Only head, so without using any computer, pencil, paper … or smartphone, find the 200th decimal digit after the decimal point of the number (1 + √2)¹⁰⁰⁰ . Yes, it is possible!</p><p>Reply</p><p>(1 + √2)¹⁰⁰⁰ + (1 — √2)¹⁰⁰⁰ is an integer, because when we expand, all terms with √2– cancel out, as with (1 + √2–)² + (1 –√2–)² = 1 + 2√2– + 2 + 1–2√2– + 2 = 6.</p><p>However (1 –√2)¹⁰⁰⁰ is very small since it is a number lower than 1/2 raised to the power of 1000. Knowing that 210 = 1024, we see that it is lower than 1/2¹⁰⁰⁰ = 1/1024¹⁰⁰ &lt;1 / (10³) 100 = 1/10³⁰⁰.</p><p>The number of the statement is therefore the difference between an integer and a number less than 0.000 … 0001 with 300 zeros. All its digits between the decimal point and the 300th digit after the decimal point are therefore 9s.</p><p>This riddle comes from a problem column by Elwyn Berlekamp and Joe Buhler that appeared in the Fall 1999 issue of the Emissary newsletter, a publication of msri, the Mathematical Sciences Research Institute at the University of California at Berkeley.</p><h3>Miracle 2 — The sum of the numbers</h3><p>The number magician tells you: “Take any whole number made up of increasing digits in the broad sense, and the last two digits of which are different (eg 1,333,456,778). Multiply it by 9. ”She adds,“ I know the sum of the numbers in the result. “ Why ?</p><p>Reply</p><p>Because the sum of the digits is always 9. With our example: 9  1 333 456 778 = 12 001 111 002. The sum of the digits is indeed 9. This is unexpected, because the starting number can be very long, and so the one obtained by multiplying by 9 also.</p><p>The demonstration of this strange and astonishing result is based on the method of subtraction learned in school. Let’s start with a 6-digit integer N (the method extends to any number of digits): N = a1 a2 a3 a4 a5 a6</p><p>with a1 ≤ a2 ≤ a3 ≤ a4 ≤ a5 ≤ a6.</p><p>The number 9 × N is equal to 10 × N — N. It is therefore the result of the following subtraction:</p><p>a1 a2 a3 a4 a5 a6 0<br>- a1 a2 a3 a4 a5 a6<br> — — — — — — — –<br>b1 b2 b3 b4 b5 b6 b7</p><p>10 × N<br>- NOT<br> — — — <br>9 × N</p><p>The number b7 is 10 — a6, because there is a carry.</p><p>The number b6 is equal to a6 + 1 — a5, because the previous carry has been carried over. The hypothesis a6&gt; a5 ensures that there is no new carry to introduce and take into account for the next column.</p><p>The number b5 equals a5 — a4, because a5 ≥ a4 ensures that there is no new carry to be introduced. Likewise, b4 is a4 — a3, b3 is a3 — a2, b2 is a2 — a1, and b1 is a1. The sum of the digits of 9N is therefore:</p><p>(10 — a6) + (a6 — a5–1) + (a5 — a4) + (a4 — a3) + (a3 — a2) + (a2 — a1) + a1 = 10–1 = 9.</p><p>The discovery of this beautiful little result seems due to Felix Lazebnik of the University of Delaware (Mathematics Magazine, vol. 87 (3), pp. 212–221, 2014).</p><h3>Miracle 3 — An exceptional number?</h3><p>The magician of numbers wants to amaze you a second time. She places a transparent glass on the table in which a crumpled scarf has been sunk. She gives you a paper and a pencil and prompts you to choose a number N of four digits not all equal (for example, the number 3,333 is not allowed). She asks :</p><p>“Sort the digits of N in ascending order, that gives you a four-digit number X; sort the digits of N in descending order, this gives you a four digit Y number. Calculate Z = Y — X. Repeat from Z the same operations. Do this until it becomes unnecessary, the resulting Z giving back Z. “</p><p>In a matter of seconds you are doing what was asked and so you have a four-digit Z result. The sorceress then pulls the scarf from the glass and unfolds it. It says 6,174 there. This is indeed the Z you found. Why ?</p><p>Reply</p><p>Whatever the initial number N, we always end up falling on 6 174! I don’t know any proof by reasoning of this result, but since it is a verifiable property by a finite computation of trying all possible Ns, I wrote a small program and made sure that we actually always get Z = 6,174. This computer proof is a little disappointing, but leaves no room for doubt.</p><p>Here is some more information about this quirk of four-digit numbers which today has no deep or general explanation. This exceptional property of the number 6 174 could be the simple fruit of chance.</p><p>• No number other than 6,174 falls on itself when the required calculation is carried out.</p><ul><li>The maximum number of steps of calculation to arrive at 6 174 is 7. This is for example what happens for 1 400, which gives successively 4086, 8 172, 7 443, 3 996, 6 264, 4 176 , 6,174.</li><li>The average number of calculation steps before reaching 6,174 is 4.7. This number of steps takes all possible values between 0 (for 6 174) and 7. The number XN of four-digit integers requiring N calculation steps is given by the following list: X₀ = 1, X₁ = 356, X₂ = 519, X₃ = 2,124, X₄ = 1,124, X₅ = 1,379, X₆ = 1,508, X₇ = 1,980.</li></ul><p>The same miracle occurs when we start from a number of three digits not all equal. This invariably leads to 495, again without being able to do anything but see it. We are in a situation where we know an unexpected result, which we prove by the force of calculation, but which basically we do not understand.</p><p>The mystery is all the more profound that, if one tries the same thing starting with numbers of five digits, it does not work any more: all the numbers lead to cycles (it cannot be otherwise), but not necessarily the same.</p><p>This formidable property of 6 174 and 495 was discovered by the Indian mathematician Dattatreya Kaprekar (Scripta Mathematica, vol. 15, pp. 244–245, 1949). Details can be found at <a href="https://plus.maths.org/content/mysterious-number-6174">https://plus.maths.org/content/mysterious-number-6174</a>.</p><h3>Miracle 4 — The 229 Power of Lenstra</h3><p>As for the first miracle, you must answer just by reasoning, without using a computer, paper, pencil … or smartphone: knowing that 229 has 9 all different digits, what is the missing digit?</p><p>You don’t have to be a prodigy calculator who actually calculates 229. Even if it seems impossible, the information in the statement allows you to find the answer.</p><p>Reply</p><p>For n varying from 1 to infinity, the number 2n modulo 9 (that is to say by counting as when we do a “proof by 9”, see the box opposite) is successively worth 2, 4, 8, 7 (because 16 gives 1 + 6 = 7), 5 (because 32 gives 3 + 2 = 5), 1 (because 64 gives 10, which gives 1), then again 2, 4, 8, 7, 5 , 1 cyclically. Since 29 = 6 × 5–1, we deduce that 229 modulo 9 is worth 5. We also know that all the digits, except one of them, are present. If they were all present, the value of 229 modulo 9 would be that of the sum 1 + 2 + 3 + 4 + 5 + 6 + 7 + 8 + 9 = 45, or 0 modulo 9. Only the deletion of 4 leads to a total which equals 5 modulo 9. It is therefore the number 4 which is missing. This can be easily verified, this time with a machine, since 229 = 536 870 912.</p><p>The problem is due to the famous Dutch mathematician Hendrik Lenstra, a specialist in integer factorization algorithms.</p><h3>Miracle 5 — An Incredible Strategy</h3><p>You have in front of you two envelopes containing two different amounts of money. You open one and look at its contents. Now you have to choose either to keep the contents of the envelope you have opened or to take the other envelope without knowing the contents. There is a strategy that allows you to make the right choice, that is, to leave with the envelope containing the most, in more than 50% of the cases.</p><p>It seems absurd since you will only open one envelope and know nothing about the other. The astonishing thing is that such a strategy does exist!</p><p>Reply</p><p>One way to do this is to:</p><p>1) Uniformly choose a real number x between 0 and 1. For example, we spin a lottery wheel with a perimeter of 1 meter and which has a mark on this perimeter; once the wheel has stopped, the distance x between the mark and the stopping point of the wheel is measured on the perimeter.</p><p>2) Calculate y = x / (1 — x), which will be a number between 0 and infinity.</p><p>3) If the open envelope contains more than y euros, keep it; if not, take the other.</p><p>To demonstrate that this method gives more than a 50% chance of making the right choice, suppose that the envelopes contain the sums a and b respectively, with a &lt;b, and calculate the probability of taking the correct envelope (the one that contains b) . Consider two cases.</p><p>Case 1. The number y is between a and b.</p><p>We will be sure to make the right choice, because if we took the right envelope, we will not change it, and if we took the wrong one, we will change it.</p><p>Using the equivalence of the relations y = x / (1 — x) and x = y / (y + 1), we know that the number y is between a and b if and only if x is between a / ( a + 1) and b / (b + 1). Since x is drawn with a uniform probability between 0 and 1, the probability c that x is between a / (a ​​+ 1) and b / (b + 1) is the length of the interval [a / (a ​​+ 1 )), b / (b + 1)]. In other words, c = b / (b + 1) — a / (a ​​+ 1).</p><p>Case 2. The number y is not between a and b.</p><p>The probability of having made the right choice is then equal to 1/2. Indeed :</p><p>- if a and b are both less than y, then we will have chosen an envelope at random and we will change it, which will lead to an envelope chosen at random, which will therefore be the best with a probability equal to 1/2.</p><p>- if a and b are both greater than y, then we will have chosen an envelope at random and we will not change it. As before, we will still have made the right choice with a probability equal to 1/2.</p><p>The probability of making the right choice when y is not between a and b is therefore 1/2. As the probability for y of not being in the interval [a, b] is equal to 1 — c, by combining the two cases we find that the probability of making the right choice is c + (1 — c) / 2 = 1/2 + c / 2 = 1/2 + (b / (b + 1) — a / (a ​​+ 1)) / 2, which is strictly greater than 1/2.</p><p>For a = 10 and b = 100, for example, the probability of keeping the best envelope is equal to:</p><p>1/2 + 1/2 × (100/101–10/11) = 54.05%.</p><p>This disturbing miracle seems to have been discovered several times in various forms. It is found mentioned, for example, by the American mathematician David Blackwell (1919–2010) and by the American information theorist and probability specialist Thomas Cover (1938–2012).</p><h3>Miracle 6 — Will the beetles fall?</h3><p>A family of 20 beetles sits on a wooden ruler in a horizontal position, the length of which is exactly 1 meter. They are placed randomly on the ruler, each facing right or left, at random. Each beetle advances at 1 centimeter per second. When two beetles meet, they both turn around. It is assumed that the U-turn is instantaneous and that the beetles are of negligible length. When a beetle gets to one end of the ruler, it falls to the ground.</p><p>Without knowing any more precise data, and this is the miracle, we can be sure that all the beetles will be on the ground in less than an hour, and that it is still true if, instead of 20 beetles, there are has 30 or 100. Why? The answer is given in the box above.</p><h3>Miracle 7 — The Universal String Theorem</h3><p>Some math results are totally baffling and seem almost absurd. This is the case with the “universal string theorem” of which I admit that, even after having read the proof, I cannot really understand the reason for it. We present it in the form of a riddle.</p><p>We consider a continuous function f of the interval [0, 1] in the set of real numbers, such that f (0) = f (1). For example f (x) = x (1 — x). We call a horizontal chord of f of length L, any horizontal segment of length L connecting two points of the graph of f. The abscissas of these two points are x and x + L and we have f (x) = f (x + L).</p><p>Depending on the function, some lengths of horizontal ropes are possible and others are not. Thus, for f (x) = x (1 — x) or sin (πx), all lengths L between 0 and 1 are possible (of course, for the functions f as defined above, we are certain that they have a chord of length 1 because, by hypothesis, f (0) = f (1)). But for the function h (x) = sin (2πx), there is no horizontal chord of length strictly between 1/2 and 1. Other lengths L than length 1 are always possible whatever the continuous function. f satisfying f (0) = f (1). Which ones?</p><p>Reply</p><p>The result is astounding: for any positive integer n, and whatever the function f verifying the hypotheses, there will be a horizontal chord of length L = 1 / n. Moreover, for the numbers L which are not inverses of integers, there exist functions satisfying the hypotheses and having no chord of length L.</p><p>The positive part of the theorem was discovered in 1806 by the physicist André-Marie Ampère. For the negative part, we had to wait for the French mathematician Paul Lévy (1886–1971), who demonstrated it in 1934.</p><p>Let’s prove the positive part. We consider, whatever the integer n&gt; 1, the function g (x) = f (x + 1 / n) — f (x), which is defined for any x between 0 and 1–1 / n. We have :</p><p>g (0) + g (1 / n) + g (2 / n) + … + g (1–1 / n) = f (0) — f (1) = 0. We deduce that the function g cannot be strictly positive everywhere. Nor can it be strictly negative everywhere. According to the intermediate value theorem (according to which a continuous function which is equal to y at one point and z at another passes through all the values ​​between y and z), g therefore takes the value 0. In other words, there exists at minus a value x₀ such that g (x₀) = 0, i.e. f (x₀) = f (x₀ + 1 / n), and there is therefore a horizontal chord of length 1 / n.</p><p>Paul Lévy’s function, which shows that these are the only chord lengths required, is gL (x) = sin2 (πx / L) — x sin2 (π / L), which has no chord of length L if L is not the inverse of an integer. The study that shows this is not very easy, but by having your computer draw the function gL (x) — gL (x + L) for x between 1 and 1 — L, you will see that it does not is never zero.</p><p>A discussion of this little-known theorem can be found in the book A Primer of Real Functions, by Ralf Boas (4th edition, The Mathematical Association of America, 1996).</p><h3>Miracle 8 — Period 3 involves chaos</h3><p>Let’s finish, this time without giving any demonstrations because they are too complicated, with an incredible result on the cycles of continuous functions.</p><p>We consider a continuous function from [0, 1] to [0, 1]. For any x between 0 and 1, we consider the following numerical sequence: x, f (x), f (f (x)), f (f (f (x))), …, f (f (. .. (x) …)).</p><p>If this sequence falls on the initial number x, we say that we have a cycle. The smallest integer for which this occurs is the “order” of the cycle. For example, the function f (x) = 1 — x is such that any x  1/2 generates a cycle of order 2: starting from x = 1/3, we have the cycle 1/3 → 2/3 → 1/3.</p><p>We have the following astonishing property, discovered several times, in particular by Tien-Yien Li and James Yorke (“Period three implies chaos”, The American Mathematical Monthly, vol. 82 (10), pp. 985–992, 1975): if fa has a cycle of order 3, then it has cycles of any order. But the reverse is false: for all k ≠ 3, there exist functions having a cycle of order k and not having a cycle of order 3.</p><p>The theorem was made more precise in 1964 by the Ukrainian mathematician Oleksandr Charkovski, who discovered a very subtle and totally unexpected relationship of necessity between the orders of cycles. Order 3 implies order 5 which implies 7, which implies 9, etc. But also, the 6 implies the 10, which implies the 14, etc. This system of involvement is defined by the table above which must be read line by line, from top to bottom.</p><p>This table cannot be simplified, because there are for example functions having cycles of order 10 (therefore 14, 18, etc.), but no cycles of order 6, 3, 5, 7, … for details, see Chung-Wu Ho and Charles Morris, “A graph-theoretic proof of Sharkovsky’s theorem on the periodic points of continuous functions”, Pacific Journal of Mathematics, vol. 96 (2), pp. 361–370, 1981 (<a href="http://bit.ly/2haC9LH">http://bit.ly/2haC9LH</a>) and the article Sharkovskii’s theorem on Wikipedia.</p><p>Who would have imagined that the mere fact of being a continuous function of an interval within itself hid this mysterious painting?</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=cf62762d975a" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Empire of numbers]]></title>
            <link>https://humanicus.medium.com/empire-of-numbers-e77fcf3e1d22?source=rss-59cbccd473fe------2</link>
            <guid isPermaLink="false">https://medium.com/p/e77fcf3e1d22</guid>
            <category><![CDATA[short]]></category>
            <category><![CDATA[mathematics]]></category>
            <category><![CDATA[numbers]]></category>
            <category><![CDATA[statistics]]></category>
            <dc:creator><![CDATA[Humanicus]]></dc:creator>
            <pubDate>Sun, 05 Dec 2021 04:56:03 GMT</pubDate>
            <atom:updated>2021-12-05T04:56:03.238Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*4GSVlflE0c0hSWiw" /><figcaption>Photo by <a href="https://unsplash.com/@krisetya?utm_source=medium&amp;utm_medium=referral">Markus Krisetya</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><p>By being surrounded by numerical data from which we determine ourselves, we come to see them as absolutes describing things in a neutral and natural way. These data are in fact a social construct. This book offers a history of the process that led us to quantify everything.</p><p>According to the author, science has followed suit rather than driven it. The geometrization that she practiced for a long time was not a quantification. Quantifying did not appear as an act of knowledge until the 17th century. Where did the need for unified units come from? Among other things, taxation! Old measurements referred to the human body and varied depending on the locality. A length could be measured in cubits, in arms, in feet; the surface of a land, in time necessary for a man to exploit it; measurements for storage volumes could differ from those for transport, etc. This complicating the collection of taxes, the authorities worked for the unification of the units of measure. This was done at the cost of an increasing disregard of them.</p><p>The movement towards abstraction is general (it is observed for the measurement of times, temperatures, etc.) and has made it possible to extend the notion of measurement to such a point that nothing escapes quantification. We measure intelligence, depression, give ratings to restaurants, universities, movies, hospitals… and individuals. Evaluated at work, everyone must always do more and better, which exacerbates the competition of each against all.</p><p>This book, unfortunately lax in writing, is full of information. Although balanced, devoid of partisan aim, it gives a harsh image of certain options adopted by our society. It just goes to show that scholarly words can be contentious!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=e77fcf3e1d22" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[The art and science of passwords]]></title>
            <link>https://humanicus.medium.com/the-art-and-science-of-passwords-e2ee1e25c36c?source=rss-59cbccd473fe------2</link>
            <guid isPermaLink="false">https://medium.com/p/e2ee1e25c36c</guid>
            <category><![CDATA[passwords]]></category>
            <category><![CDATA[mathematics]]></category>
            <category><![CDATA[cracking]]></category>
            <category><![CDATA[code]]></category>
            <category><![CDATA[hacking]]></category>
            <dc:creator><![CDATA[Humanicus]]></dc:creator>
            <pubDate>Tue, 30 Nov 2021 11:03:21 GMT</pubDate>
            <atom:updated>2021-11-30T11:03:21.676Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*nHqlsk6LenwbdzuZ" /><figcaption>Photo by <a href="https://unsplash.com/@towfiqu999999?utm_source=medium&amp;utm_medium=referral">Towfiqu barbhuiya</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><p>Choose passwords, keep them while protecting them, succeed in revealing them: the science of passwords is a treasure trove of subtleties.</p><p>We all use passwords to protect our accounts, email, access to particular sites, computers, phones, etc. Often, when we choose a password, the system refuses it, telling us that our choice is too simple and that annoys us. Among the advice given was not to write down passwords on a piece of paper next to the computer. It is also necessary to give up using the same password on several websites, to change it regularly and… not to forget it.</p><p>To fully understand all this, is a little common sense enough? Nay! Do you know why 6 characters are not enough for a good password and why you should not use all lowercase letters? Did you know that there are methods of indirectly storing passwords on a computer server which, even if visited by a hacker, will prevent the hacker from profiting from what it finds? Did you know that between “doing a lot of calculations” and “memorizing a lot of data”, you can find compromises and thus succeed in breaking passwords that would otherwise be inaccessible? Understanding all of this will be our goal.</p><p>When you are asked for a password, it falls within a certain space of possibilities, the size of which you should be aware of. If you choose 6 lowercase letters for your password, for example “afzjxd”, “uncle”, “secret”, “wwwwww”, the space has 266 = 308 915 776 possibilities. There are indeed 26 possible choices for the first letter, 26 possible choices for the second, etc. These choices are independent, you are not required that all letters be different, and therefore the size of the password space is the product of the possibilities, which gives 26 × 26 × 26 × 26 × 26 × 26 × 26 = 26^6.</p><h3>Combinatorics</h3><p>If you choose a password of 12 characters taken from upper case, lower case, 10 digits and 10 symbols &amp; é §? ç ù œ / + =, there are 72 possibilities for each of the 10 signs of the word; the space of possibilities is then 7212, that is to say:</p><p>19 408 409 961 765 342 806 016 ≈ 19 × 10^21.</p><p>This is over 62 trillion times the size of the first space. Considering all the passwords in the second space one at a time will take 62 trillion times longer. If it took your computer a second to visit the first space, it would take two million years for it to examine each of the passwords in the second space: the proliferation of possibilities has made some possible operations on the first space impractical.</p><p>To measure the size of these spaces, it is common to count the number of binary digits of the number N of possibilities. This number is given by the formula 1 + integer part (log2 (N)). For the first example, the measurement gives 29 bits, and for the second 75 bits. We also talk about 29-bit entropy, or 75 bits.</p><p>The National Information Systems Security Agency (Anssi) advises on these issues. When it comes to passwords or secret keys for encryption systems that you absolutely want to be secure, she advises only using spaces of at least 100 bits. It is even recommended a size of at least 128 bits if you want the security to be ensured for several years. The Anssi specifies that spaces of less than 64 bits must be considered as very small, as weak those between 64 and 80 bits, as medium those between 80 and 100. The difference between instantaneous security and long-term security comes from Moore’s Law, according to which the computing power of a computer at a given price doubles about every two years. Even if Moore’s Law seems to be losing its pace, it is wise to take it into account for passwords that we want to secure permanently.</p><h4>How long to go through all the passwords?</h4><p>To make a password difficult to find, it must be chosen uniformly from a wide range of possibilities. According to the length Ade the list of characters authorized to compose it and according to the number N of symbols which compose the password, the size T = AN of this space varies considerably. Here are five examples.</p><p>In each of the examples, we specify A, N, T and the number D of hours it takes to explore the space of possibilities, followed by the number X of years that it would take, assuming that the law of Moore (“doubling of computing capacity every two years”) is still valid, so that this space becomes explorable in less than an hour. We take as a starting point the assumption that in 2018 your machine explores a billion possibilities per second. So we have :</p><ul><li>T = AN, D = T / (109 × 3600),</li><li>X = 2 log2 [T / (109 × 3600)].</li></ul><p>_____________________________________________________</p><ul><li>A = 26, N = 6</li><li>T = 308 915 776</li><li>D = 0.000 085 8 hour of calculation</li><li>X = 0 year waiting</li></ul><p>_____________________________________________________</p><ul><li>A = 26, N = 12</li><li>T = 9.5 × 1016</li><li>D = 26,508 hours of calculation</li><li>X = 29 years of waiting</li><li>A = 100, N = 10</li><li>T = 1020</li><li>D = 27,777,777 computing hours</li><li>X = 49 years of waiting</li></ul><p>_____________________________________________________</p><ul><li>A = 100, N = 15</li><li>T = 1030</li><li>D = 2.7 × 1017 hours of calculation</li><li>X = 115 years of waiting</li></ul><p>_____________________________________________________</p><ul><li>A = 200, N = 20</li><li>T = 1.05 × 1046</li><li>D = 2.7 × 1033 hours of calculation</li><li>X = 222 years of waiting</li></ul><p>_____________________________________________________</p><p>For a truly robust password in the Anssi sense, it would be necessary, for example, to request a sequence of 16 characters each taken from a set of 200 characters. This would make a 123-bit space.</p><p>This is hardly an option, so system designers are less demanding and are content with weak or medium password spaces; they only apply the long key requirement when the user does not have to memorize it themselves, as it is handled automatically by the system.</p><p>Other methods are used to prevent exploration of the space of possibilities and crack passwords. The simplest is well known and used by bank cards: after three unsuccessful attempts, the card is blocked. Other ideas have been suggested such as doubling the wait times between two retries with each new error, unless a long time has passed, for example 24 hours, in which case the system will reset.</p><p>These methods are ineffective, however, when the attacker of the system can work offline and secretly conduct tests in isolation, or the system cannot be configured to stop and curb unsuccessful attempts.</p><p>Quite often, an attacker succeeds in obtaining the encrypted password or password fingerprint (we’ll see what a fingerprint is) by gaining access to data on the system he is attacking. He can then, in complete peace, for days or even weeks, make any attempt he wishes to crack the passwords he has seized in encrypted form.</p><p>Before explaining the subtle devices used by such attackers, let’s review the size of the space of possibilities.</p><p>When we evaluated the size in bits of a key or password space, called entropy, we implicitly assumed that the user uniformly randomly chooses their password from that space. Most often, this is not the case, because to memorize a password we prefer a common word, for example “locomotive”, to a really arbitrary word, for example “xdichqewax”.</p><h3>Dictionaries to attack</h3><p>This is a serious problem that gives rise to dictionary attacks. Lists of commonly used passwords have been collected and categorized according to the frequency with which these passwords are used. An attacker will attempt tries by taking one of these lists and using it in order. This works remarkably well because, without particular constraints, we are all tempted to choose simple words, surnames, first names, short sentences, and the possibilities are then relatively few.</p><p>This uneven use of possibilities is tantamount to a reduction in the space of possibilities, which decreases the average number of attempts to crack a password.</p><p>Here are the first 25 items of one of these password dictionaries. It is taken from a database of 5 million passwords leaked in 2017 and spotted by SplashData:</p><p>1,123456; 2. Password; 3,12345678; 4. qwerty; 5. 12345; 6. 123456789; 7. letmein; 8. 1234567; 9. football; 10. iloveyou; 11. admin; 12. welcome; 13. monkey; 14. login; 15. abc123; 16. starwars; 17. 123123; 18. dragon; 19. passw0rd; 20. master; 21. hello; 22. freedom; 23. whatever; 24. qazwsx; 25. trustno1.</p><p>Notice the “password” in the second position and the nice “iloveyou” in position 10. Of course, such lists change according to the country where they are collected, the sites concerned and over time.</p><p>For 4-digit passwords (eg PIN code for phone SIM cards) the results are even more amazing. In 2013, the DataGenetics site, relying on a collection of 3.4 million passwords, each with 4 digits, measured that the most used 4-digit sequence was 1234, which represented 11% of the choices, followed by by 1111 and 0000 with scores of 6% and 2%.</p><blockquote>Hackers disappointed with hash functions</blockquote><blockquote>Cryptographic hash functions are carefully developed processes that transform a computer file F, however long, into a small-sized sequence h (F) called hash of F. For example, the function denoted SHA256 transforms the sentence “The weather is nice” in: 316FF650DC5FFC6F8B9CFF25069942F4AA5088 78930A1410D81D5F1DD8C71077 (64 hexadecimal characters which are equivalent to 256 bits).</blockquote><blockquote>Changing a single character in the file completely changes its footprint. For example, for “the weather is nice”, the SHA256 function gives the fingerprint: D66D08EC93EBA6ACCDD552E2A38EBE6474285E0D4F2370A87E206553E29AB93C.</blockquote><blockquote>You can redo and verify these calculations at: <a href="https://passwordsgenerator.net/sha256-hash-generator/">https://passwordsgenerator.net/sha256-hash-generator/</a> or <a href="https://www.xorbin.com/tools/sha256-hash-calculator">https://www.xorbin.com/tools/sha256-hash-calculator</a>.</blockquote><blockquote>Good hash functions produce results analogous to those which would be obtained if they were drawn uniformly at random. Above all, for a possible arbitrary result (a sequence of 64 hexadecimal characters), it is impossible to find in a reasonable time an F file with this fingerprint.</blockquote><blockquote>There are several generations of hash functions. The SHA0 and SHA1 generations are considered obsolete and deprecated. The SHA2 generation, to which SHA256 belongs, is considered safe. Instead of memorizing their client’s passwords, Internet servers must memorize the fingerprints of these passwords. In the event of an intrusion, it will then be impossible or very difficult for the hacker to exploit what they find.</blockquote><p>The least used 4-digit password was 8068. Beware though, that may not be true now that these results have been released. The choice 8068 was only present 25 times among the 3.4 million 4-digit sequences in the database, which is much less than the 340 uses that would have been found if each 4-digit combination had been used with the same frequency.</p><p>The first 20 series of 4 digits are: 1234; 1111; 0000; 1212; 7777; 1004; 2000; 4444; 2222; 6969; 9999; 3333; 5555; 6666; 1122; 1313; 8888; 4321; 2001; 1010.</p><p>Even without a password dictionary, using the differences in letter frequencies (or double letters) in a language can effectively organize an attack. Some attack methods also take into account that, to facilitate memorization, we choose words with a certain structure such as A1 = B2 = C3, AwX2AwX2, O0o.Ili. (which I have used for a long time), or obtained by combining several single words like password123 or johnABC0000. By exploiting such regularities, we determine an order of attack of the passwords which accelerates the research. The conclusion is simple: in a given space, you really have to choose your password at random. Some software does this for you and therefore gives you a random password. However, be aware that software that generates a random password risks using, deliberately or not, a bad pseudo-random generator, in which case what it offers will be imperfect.</p><p>Informed of all this, properly designed websites analyze the passwords offered at the time of their creation and refuse those that would be too easy to find. It’s annoying, but it’s for your good!</p><h3>Test passwords …</h3><p>A tool allows you to check if one of your passwords has not already been hacked. It uses a database of more than 500 million passwords obtained by grouping together lists revealed following various attacks:</p><p><a href="https://haveibeenpwned.com/Passwords">https://haveibeenpwned.com/Passwords</a></p><p>I tried e = mc2e = mc2 which I liked and thought sure, and got the bewildering response: “This password has been seen 110 times before. A few other tests show that it is difficult to come up with a password that is easy to remember and that the base does not know. For example, aaaaaa has occurred 353,071 times; a1b2c3d4, 105134 times; abcdcba, 353 times; abczyx: 158 times; acegi, 111 times; chirac, 600 times; sarkozy, 680 times; holland, 832 times; macron, 279 times.</p><blockquote>Rainbow tables</blockquote><blockquote>You are a hacker and you are looking for a way to exploit one or more data that you have obtained. These data are of the type [user ID, h (password)], where h is a known and fixed hash function (see Box 2). The password belongs to the resulting space with 12 lowercase letters, which corresponds to 56 bits of information and 2612 = 9.54 × 1016 possible passwords.</blockquote><blockquote>Method 1. You scroll through all possible M passwords. You calculate everyone’s h (M) footprint by seeing if it’s the right one. You don’t need a lot of memory, because each time you try again, you erase the previous results, except of course the cue point which lets you know where you are in your enumeration.<br>On the other hand, it takes a long time for you to scroll through all the possible passwords. If your computer can perform a billion tests per second, you need 2,612 / (109 × 3,600 × 24) = 1,104 days, or about 3 years. It is not impossible to imagine and, using a computer network of a thousand machines, a day will suffice. However, it is not possible to repeat such a calculation each time you discover new data in the same category.</blockquote><blockquote>Method 2. You say to yourself, “I’m going to calculate fingerprints for all the passwords, which will take some time, but I’m going to memorize these fingerprints in a large table.” Then I’ll just have to look at this table to find out what password was used, and I will use it for any new password in the same category that I can find the fingerprint of. “</blockquote><blockquote>It will take (9.54 × 1016) × (12 + 32) bytes of memory, because it takes 12 bytes for the password and 32 for the fingerprint if it has 256 bits as for the SHA256 function. That’s 4.2 × 1018 bytes, or 4.2 million hard drives with a capacity of 1 terabyte!</blockquote><blockquote>Memory required is too large. This method is no more feasible than the first. Method 1 requires too much calculation, method 2 too much memory. That gets stuck in both cases: the computation is too long for each new problem, or the precomputation with storage of the results too large to keep the computations made.</blockquote><blockquote>Could we find an intermediate method which would require less calculations than method 1 for each new data, but perhaps a little more memory, and which would require less memory than method 2, but perhaps a little more? calculations? Yes it’s possible. The idea was proposed by the American Martin Hellman in 1980, then perfected in 2003 by Philippe Oechslin, of the Federal Polytechnic School of Lausanne, and more recently still by Gildas Avoine, of the Insa of Rennes.</blockquote><blockquote>Here is how to proceed: we first equip ourselves with a C function which, from the h (M) hash of the password M produces a new password C (h (M)). Fingerprints are numbers written in binary, and passwords are numbers written in a number base with as many digits as there are allowed symbols (say K). This C function, known as conversion, will for example be a conversion from base 2 to base K. The precomputation creates data tables called rainbow tables, probably because they are like a set of parallel lines. . For a data item in this table, we start from any password M0, we calculate its fingerprint h (M0), then a new possible password C (h (M0)) = M1, and we start again from M1, and so on. Without memorizing anything other than M0, we thus calculate the sequence M1, M2, … until h (Mn) begins with 20 zeros, which only occurs once in about 1,000,000 ( because what produces a hash function is comparable to a uniform random selection<br>and that 220 is worth roughly 1,000,000). The pair [M0, h (Mn)] is then stored in the table.</blockquote><blockquote>We calculate a very large number of couples of this type. If, during a calculation, we fall on the same final h (Mn), we add nothing, except if the calculation was longer (in number of steps), in which case we keep the new pair and we erases the old one.</blockquote><blockquote>Each pair [M0, h (Mn)] represents the series of passwords M0, M1, …, Mk and their fingerprints, but without memorizing them. If you do not want to leave any empty space in the calculated table, the calculation time will be longer than that required to scroll through all the passwords in the space you are exploring. This can be done with a network of computers, but we can only partially calculate the table: the database created will only resolve part of the passwords whose fingerprint we will know. In the case of a complete calculation, the memory space to store (indirectly) all the calculated couples is, in order of magnitude, a million times smaller than that of method 2 considered above. It is therefore less than 4 hard drives of 1 terabyte. This time it’s easy.</blockquote><blockquote>Let’s see now how this data recorded in the disks allows to find each password of the space envisaged in a few seconds. We will assume for the sake of reasoning that in the precomputation phase of the table, all the passwords of the target category have been taken into account, for example 12-character passwords taken from the 26 letters of the alphabet.</blockquote><blockquote>To examine an e0 fingerprint, we proceed as follows. We calculate h (C (e0)) = e1, then h (C (e1)) = e2, etc., until we get an em fingerprint that starts with 20 zeros. We then look in the table to which M0 it is associated. There is necessarily one, because the password we are studying is in one of the series we have scrolled through. We then start from this M0 and calculate h (M0), h (C (h (M0))) = h1, etc., until we find e0, which necessarily happens. Suppose this happens for hk (i.e. hk = e0). The password we are looking for is then C (hk — 1).</blockquote><blockquote>The computation time required is that it takes to find em in the table, to which must be added the computation time of h1, h2, …, hk, which is about a million times shorter than the time of calculation having been necessary to calculate the table, that is to say very reasonable.</blockquote><blockquote>Thus, having made a precomputation (very long) and having partially recorded the results allows to find in a reasonable time any password of which we know the imprint.</blockquote><blockquote>In summary, the idea is: (1) to classify passwords into packets, in each of which are the passwords that result in the same fingerprint starting with 20 zeros; (2) when faced with a password whose fingerprint we know, to first find the package to which it belongs thanks to what we have memorized; (3) Determine in this package where the password is located by performing a fairly short calculation.</blockquote><p>Note that being original remains possible. Here are five examples of passwords that the site does not have in its list: eyahaled (my name backwards); bizzzzard; bad space; modeuxpass; abcdef2018. Now that I have tried them, I am wondering if the base could add them during its next update and therefore I will not use them!</p><p>The National Institute of Standards and Technology (NIST) in the United States recently published an advisory recommending the dictionary method to filter the password chosen by a user who is creating one.</p><h3>… And know how to keep them</h3><p>Among the rules that a good web server designer must absolutely apply, there is this one: do not keep in the memory of the computer which operates the website the list in clear of the couples [user identifier, password].</p><p>The reason is obvious: a hacker could access the computer containing this list, either because the site is poorly protected, or because a deep flaw in the system, or in the chip at the heart of the machine, has been exploited. , while it is unknown to everyone (zero-day flaw)… except the attacker.</p><p>A first idea is to encrypt the passwords in the list, that is, to use a secret code that transforms them with an encryption key into apparently random sequences of signs for anyone who ignores the decryption key. This method works, but has two drawbacks. You have to decipher the password associated with a user each time you want to compare it to the one it indicates, which is not very easy. More seriously, to carry out this decryption, which is necessary for the comparison, it is necessary to keep the decryption key in the memory of the site computer. However, this key could be spotted by the hacker, which brings us back to the previous problem!</p><h3>Chopping… preceded by salting!</h3><p>The correct method is with hash functions which produce hashes. A hash function is a function which, with any given file F, associates a “fingerprint” (we also speak of “hash”, or of “hash”) h (F), which is a rather short word, specific to the file. F, but produced in such a way that in practice it is impossible to find F from h (F). We speak of a one-way function: going from F to h (F) is easy, going from h (F) to F is impossible in practice. In addition, the hash functions used have the property that even if two files F and F ‘may have the same hash h (F) = h (F’) (we speak of collision), in practice no one knows, for a given F, to find an F ‘having the same fingerprint as F.</p><p>With such a hash function, storing passwords on a computer server is easy: instead of the list of couples [username, password], only the list of couples [username, h (password)].</p><p>When a user wants to log in, the server will read their mdp password, calculate the h (mdp) fingerprint and see if this is what their list of memorized pairs indicates in front of the user ID. The hacker will be very annoyed, because even if he was able to access this list, he will not be able to know the users’ passwords (in practice impossible to switch from h (mdp) to mdp), and will also be in the impossibility of producing another password mdp ‘which would have the same fingerprint and would fool the server (practical impossibility of collisions).</p><p>This recommended caution is really important, because even large sites that take the trouble to protect themselves against intrusions are regularly hacked. In 2016, the Yahoo! the data of a billion accounts had been stolen!</p><p>To further complicate the use of a stolen list of the type [identifier, h (password)], the “salting” method is sometimes used which consists in adding to the password a string of random characters, different for each password. This way, even if two users use the same password, the memorized footprints will be different. Of course, it will then be necessary for the list held by the server to contain three elements for each user: [username, h (password + salting), salting]. When the server wants to verify the password a user has just given, it adds the salt to it, calculates the fingerprint, and compares it with what it has in its database.</p><p>Even when users’ passwords are weak, this method makes the hacker’s job much harder. Without salting, it can calculate all the fingerprints in a dictionary and look at which ones are present in the stolen data; all the passwords present in its dictionary will be identified. With salage, the work of exploiting his dictionary becomes more complicated: the hacker is obliged, for each user, to calculate the fingerprints of all the passwords in his dictionary to which he adds the user’s own salting (that he knows since he stole the list). If there are 1000 users, that multiplies by 1000 the calculation to be made to use his dictionary.</p><h3>A compromise between too much computation and too much memory</h3><p>To defend yourself well against an attacker, it is better to know the methods that he could use to locate passwords and more generally to exploit a table of couples [user identifier, h (password)]. We are caught between two difficulties: either it is necessary to calculate a lot, that is to say to have a great power of calculation, or it is necessary to have a lot of memory to carry out a long precomputation, possibly for weeks or months, by recording everything that we calculate and that we can then easily use.</p><p>Often, neither method works. There remains the hope of devising an intermediate method, which requires less memory to store the result of a calculation made in advance, and which, at the time of its use, requires a reasonable amount of calculation. Box 3 presents the rainbow table method, which achieves this compromise. The science of passwords, in the age of the Internet, powerful computers and computer networks, is the scene of a merciless struggle between those (each of us) who want to use them to protect ourselves, and those who seek to know them in order to profit from them… at our expense.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=e2ee1e25c36c" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Rare events: anticipating the unlikely]]></title>
            <link>https://humanicus.medium.com/rare-events-anticipating-the-unlikely-d257e240bd9c?source=rss-59cbccd473fe------2</link>
            <guid isPermaLink="false">https://medium.com/p/d257e240bd9c</guid>
            <category><![CDATA[science]]></category>
            <category><![CDATA[black-swan]]></category>
            <category><![CDATA[probability]]></category>
            <category><![CDATA[mathematics]]></category>
            <category><![CDATA[statistics]]></category>
            <dc:creator><![CDATA[Humanicus]]></dc:creator>
            <pubDate>Sat, 27 Nov 2021 11:02:16 GMT</pubDate>
            <atom:updated>2021-11-27T11:02:16.228Z</atom:updated>
            <content:encoded><![CDATA[<h4>Nuclear accident, stock market crash … the law of large numbers and the Gaussian distribution, foundations of the statistics of average magnitudes, fail to account for such rare or extreme events. Adapted tools exist… but they are not always used!</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*NcfiTUu6N_BjysHs" /><figcaption>Photo by <a href="https://unsplash.com/@roymuz?utm_source=medium&amp;utm_medium=referral">Roy Muz</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><p>On September 15, 2008, the American bank Lehman Brothers declared bankruptcy. This event, following the subprime crisis the previous year, shook the global financial system and panicked the stock markets around the world. Governments and central banks chain together stimulus plans, but nothing helps, the world plunges into the most serious financial crisis since that of 1929. To what extent could we have predicted this cataclysm?</p><p>Such rare and catastrophic events (to stock market crashes, let’s add earthquakes, floods, nuclear accidents, etc.) fascinate by their unpredictability and the importance of the social and scientific issues they represent. They are also challenges to scientific modeling. Exceptional almost by definition, or sometimes set aside as “statistical aberrations”, rare events are nonetheless accessible to statistical theory… as long as it requires tools better suited than those of everyday life.</p><p>In many applications, statistics are reduced to the calculation of means and standard deviations, and the distribution of observations is distributed wisely according to the famous “bell curve” or Gaussian distribution.</p><h3>Stats for Dummies</h3><p>The statistician often represents a sample of observations (temperatures, precipitations, stock market indices, etc.) as a series of independent draws of a “random variable” noted X and representing the quantity in question. We are then interested in the mean, or mathematical expectation, of this random variable, its standard deviation (the dispersion of values ​​around the mean) and, more generally, its probability distribution.</p><p>The law of large numbers, first established in its simplest version in the 18th century by Jacques Bernoulli, ensures that, when the sample size is large enough, the empirical mean of the sample tends towards the theoretical mean of the random variable it represents. Likewise, the empirical standard deviation converges to the standard deviation of the random variable. By ensuring that a sample provides a good estimate of a real random variable, the law of large numbers emerges as one of the pillars of statistics.</p><p>The law of large numbers is an asymptotic law: the mean of a sample only converges to the mathematical expectation if the size N of the sample is large. The difference between the two values ​​- the statistical error — is governed by the “central limit theorem”. This theorem, the second pillar of statistics, has been known in various forms since the eighteenth century, but its final form, due to the French mathematician Paul Lévy, dates from the beginning of the twentieth century. He asserts that, if the random variable X has a finite standard deviation, then for a sample of N independent observations of X, the difference between the sample mean and the mean of X is well represented by a Gaussian distribution whose l The standard deviation is proportional to 1 / √N.</p><p>The Gaussian distribution therefore appears as a statistical description of any quantity that can be represented as the sum of a large number of small independent contributions.</p><p>These two principles are far reaching. The law of large numbers is the foundation of surveys, because it shows that it is enough to survey a sample large enough to approximate the statistical characteristics of the real population. The central limit theorem makes it possible, for its part, to control the error thus made: the difference between the empirical mean and the theoretical mean follows a Gaussian law.</p><p>For example, if an election poll covers 10,000 people and 46% of them say they are in favor of candidate A, the central limit theorem indicates that there is a 95% chance that during the vote, he will collect between 45 and 47% of the votes. Concretely, it is not necessary to survey a very large sample of the population to have a reliable estimate.</p><p>The central limit theorem is invoked to justify representation by a Gaussian distribution in fields ranging from social sciences to physics, including economics, biology or finance. The bell curve is used in all sauces. It is even used to “normalize” the distribution of marks in competitions …</p><p>However, the omnipresence of the Gaussian distribution in statistics (hence its qualifier of “normal distribution”) is perhaps due to the too great confidence of statisticians rather than to reality: not all phenomena can be reduced to a sum of small independent contributions. In fact, in economic and social sciences, the normal law seems to be the exception rather than the rule.</p><p>From the beginning of the twentieth century, economist Vilfredo Pareto, for example, was interested in Italian national wealth, and found that the richest 20% of the population held 80% of the country’s total wealth. This situation of inequality is clearly not well represented by a Gaussian distribution of wealth, where individual wealth is concentrated around average wealth and where very rich or very poor individuals are very rare.</p><p>Pareto proposed a more realistic distribution which today bears his name: the share of individuals with a wealth greater than a level u is proportional to 1 / uα. The smaller the exponent α of this power law, the greater this proportion and the more unequal the distribution of wealth. Faced with such distributions, the notions of mean and standard deviation prove to be inadequate and offer a misleading description.</p><h3>The math of inequalities</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*iGeAyMDcFdq6T5JQ" /><figcaption>Photo by <a href="https://unsplash.com/@jiangxulei1990?utm_source=medium&amp;utm_medium=referral">青 晨</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><p>Indeed, the average wealth and the standard deviation can for example remain identical while the distribution of wealth changes (which is impossible in the context of a Gaussian distribution).</p><p>Worse, if the exponent of the Pareto law is less than two, then the standard deviation of the distribution is infinite. If it is less than one, this is also the case for the mean. These indicators are therefore meaningless for Pareto laws.</p><p>This fact has led economists to define other indicators to better characterize the unequal distributions. The Gini coefficient, proposed by the Italian statistician Corrado Gini in 1912, is thus a number between 0 and 1 which measures the degree of inequality in the distribution of wealth. The closer it is to 1, the more unequal the distribution. In the case of a Pareto law with exponent α, the Gini coefficient is equal to 1 / (2α — 1). These indicators focus on the largest events in a sample, events of low occurrence, but of predominant importance. These “rare events” form tails of distributions.</p><p>Once the mean and the standard deviation no longer necessarily make sense for unequal distributions, what happens to the law of large numbers and the central limit theorem? In the 1920s, Lévy was one of the first to notice that the assumptions underlying them may cease to be valid in the event that rare events have a major influence on the sample mean.</p><p>Lévy extended the central limit theorem to these situations: he showed that for a sample of centered variables whose tail distribution behaves like a Pareto law with an exponent between 0 and 2, the empirical mean no longer behaves like a Gaussian variable, but according to a distribution that Lévy called stable law, whose tail behaves like a Pareto law with the same exponent. In other words, the limit law is a Lévy’s law, and not a normal law.</p><p>For these Lévy distributions, variance and standard deviation no longer have any meaning: they are infinite. Benoît Mandelbrot, who was a student of Lévy at the École Polytechnique, showed in 1963 that, far from being a mathematical curiosity, the situations described by Lévy’s laws were omnipresent in economics, finance and insurance: the yields of materials First, the wealth of individuals or the size of firms follow Pareto laws.</p><p>Mandelbrot characterized these situations, where the behavior of the sample is no longer correctly characterized by the mean and the standard deviation, as wild chance, as opposed to the wise chance of the Gaussian law.</p><h3>Taming wild chance</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*x7UGJK3EvLKrxXte" /><figcaption>Photo by <a href="https://unsplash.com/@dima7k?utm_source=medium&amp;utm_medium=referral">Dmitriy Karfagenskiy</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><p>This wild behavior is evident in stock index returns. While the amplitude of the fluctuations of a Gaussian sample remains of the order of its standard deviation, some stock market indices exhibit erratic amplitude variations reaching several tens of times the standard deviation! Many other situations conforming to Lévy’s laws were quickly highlighted in statistical physics.</p><p>The epithet “savage” suggests the uncontrollability of chance, but a good understanding of the hazard sometimes helps tame it. This is the case in some physical systems, as well as in situations, where, regardless of whether the underlying hazard is wise or wild, the mean or standard deviation of a sample is simply not. the relevant indicators, even if they can be estimated with precision.</p><p>This is the case with reliability studies, where, to determine the probability of failure of a system, we seek to estimate that of its “weakest link”. For example, to choose the size and characteristics of a dam, it is necessary to have a precise idea of ​​the maximum pressure that the structure will be able to withstand, and not of the average pressure that it will undergo under normal conditions. For this, it is necessary to directly characterize the extreme values ​​in the sample of observations. The notions of standard deviation, of mean and the theorem of the central limit are not then of much help …</p><p>Alongside Lévy’s work on the central limit theorem, a group of statisticians, including Sir Ronald Fisher and Leonard Tippett in Great Britain, Boris Gnedenko in the Soviet Union, Maurice Fréchet in France and Ludwig von Mises in Austria, as well as Emil Julius Gumbel, German mathematician who took refuge in France, developed a new branch of statistics whose goal is to study no longer the average values ​​of samples, but their extreme values, that is to say maximum or minimum.</p><p>Just as the central limit theorem describes the behavior of the mean of a large sample, this extreme value theory describes the behavior of the maximum of a sample. These statisticians have shown that, depending on the nature of the random variable studied, the maximum value of the sample can only obey one of three different distributions: the Fréchet, Gumbel or Weibull distributions.</p><p>Like the normal law and Lévy’s law, which are natural candidates for modeling the sums of independent variables, the extreme value laws are preferred candidates for modeling the maximum values ​​of a sample. Gumbel presented in 1941 an application of these concepts to the statistical analysis of river floods. This theory was to be applied in a dramatic context.</p><h3>Taming scarcity … and the sea</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*ULM4OtHondYzedQu" /><figcaption>Photo by <a href="https://unsplash.com/@luipeng?utm_source=medium&amp;utm_medium=referral">Lui Peng</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><p>The Netherlands has always lived under the threat of rising sea levels. The many dikes that dotted the country have long been enough to protect it. But on the night of January 31 to February 1, 1953, rising waters due to a storm overcame their resistance and submerged the southwest of the country, killing more than 1,800 people and thousands of cattle.</p><p>In shock, the Dutch government soon launched a massive dam construction project. The commission responsible for reviewing safety standards demanded that the height of the dikes be fixed so that the probability of the tide exceeding them is less than 1 / 10,000. A team of scientists, armed with the recent theory of extreme values, then began to study past tides and floods in order to estimate the probability distribution of the maximum flood height. They showed that it follows a law of Gumbel, and that the required height exceeded 5 meters, a clear increase compared to the dikes of the time. On the basis of these estimates, huge dams were built; these buildings still protect the country today.</p><p>In an atmosphere of growing faith in quantitative methods, extreme value theory was subsequently applied to insurance, financial risk management and environmental risk management. Insurers use it, for example, to estimate the biggest losses they can suffer from selling insurance against natural disasters.</p><p>The disaster scenario par excellence being the explosion of a nuclear power plant, all ideas on the measurement of extreme risks sooner or later found a field of application in the field of nuclear safety. In the 1970s, probabilistic safety studies (EPS) appeared, a methodology for estimating the probability of accident scenarios in nuclear installations. The method consists of identifying the sequences of events that can lead to a catastrophic result, such as a meltdown of the reactor core; and assign probabilities to these sequences based on physical principles or acquired experience. The objective, as for the Dutch dikes, is to define the standards to be met to guarantee a probability of occurrence of the catastrophic event below a given threshold.</p><p>But in 1979, the accident at the Three Mile Island nuclear power plant in Pennsylvania, United States, was a stark reminder that in a complex system formed of multiple interrelated components like a nuclear power plant, one small error — human in it. occurrence — can cause disaster.</p><p>However, the occurrence of such errors, which are not linked to a physical factor obeying a well-identified law, is difficult, if not impossible, to quantify. Therefore, what faith should be given to the “quantitative certainties” produced by the safety studies and the resulting technical certifications?</p><p>Frank Knight, American economist and risk theorist, already distinguished in 1921 in Risk, Uncertainty and Profit the probabilizable risk, corresponding to events whose probability can be assessed with reasonable certainty, and uncertainty, which covers events whose ignores until the probability of occurrence. When we move away from physical systems to areas where human factors are more important, the share of uncertainty increases.</p><p>Incomplete observational data, overly simplifying assumptions (such as the independence of risk factors, frequently postulated in statistical models), or even omission of certain risk factors, the sources of uncertainty in risk models are numerous. They are all limitations that invite us to remain modest in our expectations of statistical models when they are not based on well-anchored physical principles.</p><h3>Black swan hunting</h3><p>What to do then? At most, the results of the models can be supplemented by a case-by-case analysis of extreme scenarios. This is the purpose of the stress test method, which provides a useful complement to statistical risk analyzes. The CEA and EDF have chosen this option in addition to the EPS studies to define the nuclear safety policy.</p><p>The statistics show their limits here. However, should we abandon the ambition to quantify rare events outside the physical sciences, where physical principles make it possible to calculate their probabilities?</p><p>This is what some seem to suggest, such as Nassim Taleb or Nicolas Bouleau, of the National School of Bridges and Roads, in particular in light of the apparent failure of quantitative methods of financial risk management during the financial crisis of which we have spoken. According to Nassim Taleb, it is indeed impossible to quantify the risk of rare catastrophic events of which we have never known an example in the past. These “black swans”, as he calls them, would invalidate statistical risk modeling approaches.</p><h3>Avoid the crisis?</h3><p>However, is the recent financial crisis a black swan like the Three Mile Island accident, where, despite precautions, unquantifiable human error thwarted the safety system? Or does it rather resemble the storm that ravaged the Netherlands in 1953, an event that was rare, but whose probability could be measured?</p><p>I favor the second option: financial institutions are far from having put into practice adequate methods to measure the risks of their portfolios. More than forty years after Mandelbrot’s work, a number of banking establishments, for ease, still use the normal law in their risk calculations: difficult then to blame the statistical models… which are not used!</p><p>Without going so far as to assert, as a journalist from the Nouvel Observateur did recently, that if the investment bank Lehman Brothers had calculated its risks with Lévy’s distributions, it would have avoided bankruptcy, it is certain that the use of more realistic models will only improve financial risk management.</p><p>But Nicolas Bouleau raises another point, of a sociological nature. The enormous social stakes of certain catastrophic events — meteorological, geological or economic — have the consequence of generating significant pressure from public decision-makers on “experts” to, if not predict these rare events, at least to quantify their risk of occurrence. The temptation is then great to prefer inappropriate statistical indicators rather than to recognize that current scientific knowledge does not provide answers to certain questions.</p><p>This is undoubtedly one aspect of the failure of financial risk management systems during the recent crisis: regardless of their accuracy, they maintained the illusion of security in the eyes of their users, who consequently declined their guard. Do not reject statistical risk modeling methods, use them with care!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=d257e240bd9c" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[The puzzle of small effects]]></title>
            <link>https://humanicus.medium.com/the-puzzle-of-small-effects-dc09e58055e2?source=rss-59cbccd473fe------2</link>
            <guid isPermaLink="false">https://medium.com/p/dc09e58055e2</guid>
            <category><![CDATA[statistics]]></category>
            <category><![CDATA[enigma]]></category>
            <category><![CDATA[science]]></category>
            <category><![CDATA[puzzle]]></category>
            <category><![CDATA[mathematics]]></category>
            <dc:creator><![CDATA[Humanicus]]></dc:creator>
            <pubDate>Thu, 25 Nov 2021 11:02:57 GMT</pubDate>
            <atom:updated>2021-11-25T11:02:57.864Z</atom:updated>
            <content:encoded><![CDATA[<h4>Sometimes small differences are given meaning they don’t have. Distinguishing small statistically relevant effects from those arising from chance is a challenge!</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*mXsELpQWuVFrcdZu" /><figcaption>Photo by <a href="https://unsplash.com/@ryoji__iwata?utm_source=medium&amp;utm_medium=referral">Ryoji Iwata</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><p>“Engineers have more boys, nurses have more girls”, “Violent men have more boys”, “Attractive individuals have more daughters”… We owe these final sentences to Satoshi Kanazawa, evolutionary psychologist at the School. of Economics of London. The author is admittedly controversial, but he has nevertheless published these unusual “findings” in serious scientific journals. One of his latest articles, published in 2017, is entitled “Individuals are all the less attractive the older their father was at the time of conception.” What do you think ?</p><p>The specialists gave their opinion: the statistical analyzes on which these articles were based have been invalidated, for example because of sampling bias. Thus, these “discoveries” are not significant and may only be the result of chance: they would never have been published if their statistical relevance had been correctly assessed.</p><p>Should we therefore reject this work as a whole? No, and moreover, certain hypotheses of Satoshi Kanazawa are based on theories recognized by the scientific community. However, the bulldozer of media coverage has crushed any nuance and precaution, however essential to the interpretation of the small statistical differences noted by the psychologist. They come under what are called small effects. To what extent do these make statistical sense? How to interpret non-significant results (and which one still seeks to interpret)? What can be the consequences of an incorrect interpretation of these small effects?</p><p>Before answering, let’s see what “statistically significant” and “standard deviation” mean, two central concepts in the study of small effects. We will use the example of the study showing that “Attractive people have more daughters”. The standard deviation measures the dispersion of the studied random variable (the difference in the proportions of girls between two categories of parents, the beautiful and the others) around its mean value. The larger the standard deviation, the greater the dispersion of the values ​​found. How to estimate it? The standard deviation is the square root of the variance, which is calculated from the size of the groups. For a proportion, it is inversely proportional to the size of the sample tested. It is therefore in the interest of choosing large samples to reduce measurement uncertainty. For example, for a sample of 100 couples, the standard deviation of the proportion of girls is equal to 5%. For a sample of 3,000 couples, the standard deviation is only 0.9%.</p><p>In the case that interests us, we seek to verify the following hypothesis: the proportion of girls is higher in the group of attractive parents than in the group of parents considered less beautiful. When can we say that the result found is statistically significant? To confirm this, it must be far enough from a plausible result if the parents considered beautiful have as much chance of having a daughter as the other parents (about one chance in two). The difference in proportions between two groups is not statistically significant when it is probable, due only to sampling fluctuations, even if there is no real difference between the two groups.</p><p>Take the simpler example of a sequence of 20 coin flips. Say we get 8 heads for 12 stacks. The observed proportion of faces would be 40%, for a standard deviation of 11%. Since the estimate obtained is not far enough from 50% (half faces and half tails), the result obtained can be attributed to chance and is therefore not significant. In the studies in question here, we will approximate the law of the random variable by a Gaussian law, and we will be satisfied to say, without detailing the calculation, that a difference is significant if it is greater than its multiplied standard deviation. by 1.96.</p><h3>Girl or boy ?</h3><p>Let’s take a closer look at Kanazawa’s analysis. The subjects’ beauty was rated on a scale of 1 to 5 and the sex of their children listed. For the 3,000 or so parents studied, Kanazawa reported a difference in proportions of 8%, which seemed significant: the proportion of girls was equal to 52% for the most attractive parents (rated 1), against 44% for the average of the other four. categories (from 2 to 5). In fact, comparing the first category to the other four is only one of many possible approaches. We could, for example, have compared the two most beautiful groups to the two least beautiful groups: this time, the significance disappears.</p><p>This is a fine example of a suggestive sociological result, but one which is not statistically significant: it could very well be the result of chance. Yet it seems to support the proposed model. Faced with this type of statistical problem, we must take into account the magnitude of the expected effects.</p><p>The effects studied here are expected to be small, as evidenced by multiple studies of changes in the girl-to-boy ratio at birth. This ratio varies from 1% (the probability of having a daughter, for example, from 48.5 to 49.5%), depending on various factors: the ethnic group, the age of the parents, the birth order, the weight of the mother, the couple’s status and the season of birth. Socioeconomic conditions, especially poverty and undernourishment, have a stronger influence, reaching 3%, because male fetuses are more fragile.</p><p>Based on these scientific data, one would expect the effect of parental beauty on the girl-to-boy ratio at birth to be less than 1%, comparable to commonly observed variations. Let us check whether this is indeed the case by basing ourselves on two statistical approaches: the so-called frequentist analysis and the Bayesian analysis.</p><h3>Frequentist analysis</h3><p>In the first approach, we set ourselves some hypotheses, then we statistically treat the data to find out if they are more compatible with one of the hypotheses: this one will then possibly be declared true. In the second, we take into account a priori information (here, the effects of the beauty of the parents on the sex ratio at birth cannot be great) in the form of a distribution of plausible values ​​of the effect. The information which one draws from the experiment is the law conditioned by the observation, therefore modified by it, which is called a posteriori law: it is a new distribution of the plausible effects.</p><p>Resuming the Kanazawa study, we first followed a frequentist analysis method to estimate the probability of daughters being born based on the beauty of the parents. We estimated a 4.7% probability difference between the two groups, for a standard deviation of 4.3%, which remains consistent with Kanazawa’s result. With these values, we can calculate the confidence interval which contains the true value with a probability of 95%, and which is, in percentages: [-3.9; 13.3]. How to statistically interpret the confidence interval?</p><p>It contains the value zero which corresponds to the lack of effect of the beauty of the parents on the sex ratio at birth. Our estimate of 4.7% is therefore not significant and it is necessary to continue the statistical analyzes before concluding (if it is possible!). And outside the bounds of the 95% confidence interval, what happens? What does the remaining 5% probability represent?</p><p>For the effect found to be statistically significant, it would have to be greater than 1.96 times the standard deviation, i.e. above 8.4% (the confidence interval would not contain 0). Expressed differently: the probability of wrongly rejecting the zero value is 5%.</p><p>But is it reasonable to consider significant effects as large as 8.4%? No, of course. This is called a magnitude error. The study is constructed in such a way that any statistically significant result overestimates the true effect (which cannot exceed 1%). Sign errors are added when the estimate found is of the opposite sign to the true effect (here: “handsome parents have more boys than girls”). Thus, there are two types of effect: positive, if the “beautiful” parents have more daughters than the others, and negative, if they have fewer.</p><p>To illustrate the probabilities associated with these errors, consider four scenarios based on standard deviations equal to 4.3%. They show that a study based on this sample size (approximately 3,000 couples) is not relevant for estimating small effects of the order of 1%. This is due in particular to the value of the standard deviation which is particularly high. This is why studies of the sex distribution of newborns use much larger samples, based on large demographic databases, numbering over one million individuals.</p><h3>Bayesian analysis</h3><p>We summarize everything we know about the effect to be analyzed, using external sources already known, by an a priori distribution. This distribution will be modified (conditioned) by the result of the experiment to give the a posteriori distribution. If we did not know anything in advance, we could take an a priori non-informative distribution and the result would correspond to that of the frequentist approach. Here, the distribution obtained a posteriori would then be approximately a Gaussian, with mean 4.7% and standard deviation 4.3%, which would correspond to a probability of approximately 86% that the real effect is positive. In general, the more the prior distribution is concentrated around zero (the assumption that the real effect on gender difference is small), the closer the posterior probability is to 50%.</p><p>Let us choose, for example, a Gaussian a priori distribution (bell-shaped), centered on zero with a shape such that the real difference in probability of having a daughter (depending on whether the parents are beautiful or not) is close to zero, with 50%, 90% and 94% probabilities of being respectively in the intervals: [–0.3; 0.3], [–1; 1], and [–3; 3]. Why focus the distribution on zero? Because we do not have a priori on the sign of the real difference in the probability of the birth of daughters according to the beauty of the parents.</p><p>In the next step, we calculate, from this prior distribution and the data, the posterior distribution of the effect. To summarize, the posterior distribution gives a probability that the effect is positive (beautiful parents have more daughters) of only 58%, of which 45% that this positive difference is less than 1%. This analysis depends — but little — on the a priori distribution; for example, if one decides to widen the distribution curve around zero, the probability that the real effect is positive increases only by 7% (to reach 65%). Changing the family of distribution curves has little effect on the results: the real effects remain weak, which is confirmed by the data.</p><p>The scientific ideal in inference about a quantity (here, the link between the beauty of the parents and the sex ratio at birth) is the description of the uncertainty which is summarized here by a distribution of probabilities. Researchers can collect data or analyze data that has already been published creatively (as Kanazawa has done) and publish their findings. Meta-analyzes can be done to review all of these results together; they will smooth out the variations that are inherent in these small sample studies in which the probability of a positive effect may drop from 50% to 58%, then perhaps drop back down to 38% and so on.</p><p>How to recognize reliable data? By collecting more and more data. Each year, the American magazine People publishes a list of the 50 most beautiful world celebrities. We have listed the sex of their children for issues published between 1995 and 2000. In 1995, for example, there were 32 births of girls to 24 boys, or 57.1% of girls, which is 8.6% more than in the general population (48.5%). A result in agreement with the Kanazawa hypothesis. But the standard deviation being 6.7%, the estimate of 8.6% is not statistically significant. To confirm this, we compared this result with those of the following years. Between 1995 and 2000, the most beautiful people according to People had 157 daughters out of a total of 329 children, or 47.7% of girls (for a standard deviation of 2.8%), which is only 0.8% lower than the figure obtained for the general population. We can not conclude …</p><p>Why waste our time studying statistical errors that no one has noticed? For two reasons. First, the results that seem to make sense without being statistically significant are the most problematic. Then, certain media and various scientific publications, by their interest in certain sociological subjects and their selection of results, bias research in social sciences.</p><p>In fact, the Kanazawa results immediately attracted media interest, including blogs from The New York Times. This publication in a peer-reviewed journal seemed to be sufficient guarantee to dispel any doubts.</p><h3>A deafening noise</h3><p>What’s more, the effect has been steadily increasing. Thus, the estimate — statistically not significant — of 4.7% that we made rose to 8% in the Kanazawa analysis (comparison of the most beautiful group to the average of the four least attractive groups), to reach the value of 26% after an additional study introducing other corrections, before climbing to 36% for still unclear reasons!</p><p>This inflation surprised us, this figure being 10 to 100 times higher than all the girl-boy ratios published in the literature. We concluded that in this study the noise (spurious data) was greater than the relevant signal. Statistical power refers to the ability to detect a difference when it exists. Studies with larger samples always have more power. So, if we want to say something about effects of the order of 1%, we have every interest in starting from relevant data and to carry out tests which exploit the data well. This example illustrates well that studies that lack statistical power are unlikely to achieve statistical relevance and, more importantly, overestimate the size of the effects. In other words, with these studies, the noise becomes stronger than the signal, that is to say the observed effect.</p><p>How to escape this type of problem in sociology? Today, most subjects in sociology have been sifted through, and researchers are therefore reduced to studying the small effects. The study of the sex ratio at birth is a social subject close to our concerns. Presented as a “politically incorrect truth”, the Kanazawa result, because it concerns births, touches on sensitive issues such as abortion, parental leave, the role of men and women. in the society.</p><p>We have seen that studies with insufficient statistical relevance produce random results, sometimes statistically significant, but more often intuitive. This is one of the weak points of evolutionary psychology: it interprets random results without recognizing the fragility of the explanations it gives. For example: people considered attractive are more likely to be healthy, wealthy and from dominant ethnic groups, and more generally to have characteristics valued by society. They would have power, which according to some sociological theories, would be more beneficial for men than for women. It would therefore be “natural” for attractive parents to have more boys. We do not claim that it is true; we are simply saying that it could be, but that we could just as easily imagine an argument leading to the fact that they have more daughters… Which is not without posing some difficulties!</p><h3>Find differences where there are none</h3><p>Compare these two statements: “Beautiful parents have more daughters” and “It is not proven that beautiful parents have more or less daughters”. There is no doubt that the sensational premiere would make the headlines more! Have the editors of the serious journals where Kanazawa’s claim appeared been influenced themselves? No doubt, and there are two possible reasons for this. On the one hand, statistical errors are sometimes difficult to detect, even by specialists. On the other hand, statistical significance is not directly related to sample size when the effects tested are small. With a large enough sample, one can almost always find statistically significant small effects. But when the effects studied are minimal, studies carried out on cohorts that are too small lead to abusive interpretations.</p><p>The study of the sex ratio at birth is not new. For example, in his work Probability, Statistics and Truth, published in 1957, Richard von Mises studied this relationship for the 1907 and 1908 births in Vienna, and found less variation than one would expect from mere chance. He attributed it to different gender distributions according to ethnic groups. However, the uncertainty obtained on the measurements was neither more nor less than that of pure chance. What to do in the face of this desire to find differences where there are none? To avoid these biases, it is necessary to show that the observed results represent real effects independent of the selection of the samples, and to find a biological argument confirming that effects of the order of 1% are important.</p><p>When we need to estimate small effects, statisticians should keep a critical eye on the estimates obtained. But the analysis methods are not exempt from methodological flaws: frequentist calculations do not take into account the sizes of the effects; Bayesian analyzes are often not better using mostly Gaussian prior distributions, and often ignore issues of statistical power. Hence the importance of correctly estimating the uncertainties, in particular by calculating the statistics on the sign of the effects and their amplitude. There is no doubt that the exchange of methods and ideas will pave the way for a better estimate of small effects.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=dc09e58055e2" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Surprising, but banal coincidences]]></title>
            <link>https://humanicus.medium.com/surprising-but-banal-coincidences-3e18a2780281?source=rss-59cbccd473fe------2</link>
            <guid isPermaLink="false">https://medium.com/p/3e18a2780281</guid>
            <category><![CDATA[mathematics]]></category>
            <category><![CDATA[correlation]]></category>
            <category><![CDATA[statistics]]></category>
            <category><![CDATA[causality]]></category>
            <category><![CDATA[coincidence]]></category>
            <dc:creator><![CDATA[Humanicus]]></dc:creator>
            <pubDate>Wed, 24 Nov 2021 11:01:05 GMT</pubDate>
            <atom:updated>2021-11-24T11:01:05.179Z</atom:updated>
            <content:encoded><![CDATA[<h4>Errors in judgment lead us to see incredible phenomena in certain coincidences and to seek impossible explanations for them.</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*agDev1fQTlJopM8k" /><figcaption>Photo by <a href="https://unsplash.com/@lazycreekimages?utm_source=medium&amp;utm_medium=referral">Michael Dziedzic</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><p>It is true that, on average in a primary school, the faster the pupils read, the older they are. Will we conclude that learning to read makes you grow taller? More seriously, a statistical study by Franz Messerli of Columbia University, conducted with all the necessary methodological rigor and published in 2012 in the New England Journal of Medicine, established that there is a close correlation between the consumption of chocolate per capita of a country and the number of Nobel Prizes obtained by that country per million inhabitants. Will we conclude that researchers must eat chocolate to increase their chances of being awarded the famous prize?</p><p>Wouldn’t the explanation be rather that the social and educational system of rich countries favors good research and therefore the attribution of Nobel Prizes, and that this same wealth favors the purchase by all of chocolate? The two facts are well linked, but only because they are the consequence of the same cause, not because one implies the other. When two facts are correlated, it does not mean that one is the consequence of the other, but sometimes only that a third factor causes them both. The search for causal links between facts must be carried out with caution.</p><h3>Pure luck?</h3><p>Apart from those situations where, despite everything, the identified correlation has a satisfactory explanation involving a third factor, such as age or economic wealth, there are cases where, ultimately, the only explanation is chance.</p><p>The few examples given by the figure below make it possible to understand what this means. These illusory correlations were painstakingly collected by Tyler Vigen when he was a student at Harvard Law School in Cambridge, Massachusetts. He now works at the Boston Consulting Group and has published a book with his amusing findings (see bibliography and sites <a href="http://www.tylervigen.com/spurious-correlations">www.tylervigen.com/spurious-correlations</a> or <a href="http://tylervigen.com/old-version.html">http://tylervigen.com/old-version.html</a>).</p><p>Particularly disturbing is the observation on the same graph of the curve showing year after year the number of suicides in the United States by hanging or suffocation and the curve showing year after year the expenditure of American scientific research is particularly disturbing. When one of the curves goes down or up, the other follows it in parallel. The synchronization is almost perfect. It is translated in mathematical terms by a correlation coefficient of 0.992082, close to 1, the maximum possible. Does this establish that there is a real connection between the two sets of numbers?</p><p>This is so unlikely that we have to face the facts: it is only a matter of chance, or as they say, a coincidence. The only reasonable way to explain the parallelism of the two curves and the many cases of the same type proposed by Tyler Vigen is as follows:</p><p>- He collected a very large number of statistical series.</p><p>- He was able to compare them systematically, which allowed him to find them having similar gaits, hence correlation coefficients close to 1.</p><p>- We should not be surprised: it was inevitable because of the very large number of digital series taken into account.</p><p>The amount of basic data is the explanation and Tyler Vigen has detailed his method: after having gathered thousands of numerical series, he entrusted them to his computer so that he systematically searches for the pairs of series giving good correlation coefficients. ; he then called on the students of his faculty to indicate to him, by votes, the pairs of curves considered to be the most spectacular among those preselected by the computer.</p><p>This procedure is known in English as data dredging, which can be translated as “data dredging”. It is important to be aware of the dangers that such processing creates, especially today when collecting and exploiting colossal amounts of information of all kinds has become easy and widely practiced. The new computer discipline of data mining could be unwittingly a victim of these illusory correlations: without precaution, it can take them for real links between series of data that are in reality completely independent. .</p><h3>A victim: medical research</h3><p>Medical research is frequently confronted with the problem of such questionable correlations. In a 2011 article, Stanley Young and Alan Karr of the American Institute for Statistical Studies cited 12 published studies that allegedly established links between vitamin consumption and the occurrence of cancer. These studies had sometimes been performed using a placebo protocol and double-blind measurement, and therefore appeared serious. Yet when they were repeated, in some cases multiple times, the new results contradicted the original results. In addition to the great temptation to round off the figures a bit so that they speak in a clear sense and allow the publication of an article, it may simply be that the authors of these works with conclusions impossible to reproduce have been victims of an illusory correlation situation, as Tyler Vigen has spotted many.</p><p>This misleading chance resulting from the exploration of too many combinations is a statistical error of judgment. We are mistaken in believing that an observation is significant and must therefore be explained, whereas it had to occur (it or another of the same type) because of the large number of hypotheses considered, sometimes collectively by all the research teams, in the quest for statistical regularities.</p><h3>Data snooping</h3><p>This illusion is close to that known as data snooping which can be used for deliberate deception. To illustrate how this works, Halbert White of the University of California at San Diego suggested the following method of enabling a financial newspaper to increase the number of its subscribers.</p><p>The first week, the newspaper sends a free copy to 20,000 people; in half of the issues sent, it is written that the stock index (eg the Dow Jones) will go up, in the other half the newspaper says that the index will go down. Depending on whether the index has actually risen or fallen, the newspaper sends the following week, to the 10,000 addresses which have received the correct forecast, a second free number, with half of the copies announcing the following week that the index will go up and in the other half it will go down. In the third week, the newspaper sends 5,000 free issues to those who have received the right anticipation two weeks in a row, and so on.</p><p>Each time, the newspaper insists that it has correctly forecast the trend for several weeks and offers a subscription newsletter. At the end of 10 weeks, there will only be about 20 entries to make, but to be convinced that the newspaper can predict the good trend of the stock market index, few potential readers wait for an exact forecast 10 times of. following. Consequently, a good number of new subscriptions will have been taken out as the shipments progress.</p><p>Another situation of data snooping in the processing of financial data leads to heartbreaking disillusionment. We are looking for rules of the type “If today the price of A share rises and the price of B share falls and …, then the price of X share will rise tomorrow”. We write a large number of them, even we write all the rules of this type with 10 elements in their premises. The best rules are then selected using a series of data from the past. We eliminate all the rules that were wrong with the past data, and we only retain those which have always provided a good prediction, or those which have been right most often. We will then inevitably have a reduced set of rules which, if they had been applied to the test data, would have made it possible to save a lot of money … and yet which will not yield anything in the weeks following their implementation. to make purchases and sales.</p><p>Of course, researchers are familiar with the trap and methods have been developed to avoid falling victim to the illusion. For example, we will try to evaluate, before carrying out the search for the right rules, the probability that when the data are drawn at random one of the rules of the considered list works with this chance, and we will ensure that this probability is close from 0.</p><h3>Lottery rigged?</h3><p>Who can consider it normal that a few days later, the same series of 6 numbers come out of a Loto draw? However, this is what happened on September 10, 2009 for the Bulgarian Loto. The series 4, 15, 23, 24, 35, 42 is nothing out of the ordinary, except that it had already been drawn 6 days before, on September 4, by the same Bulgarian Lotto. An incredible coincidence, to the point that Sports Minister Svilen Neikov called for an investigation. No cheating was detected, and moreover the two draws had taken place in front of the television cameras. The thing was considered so extraordinary that the press all over the world reported the event.</p><p>Perhaps more surprisingly, a year later, a month apart, on September 21 and October 16, 2010, the Israeli Lotto released the series 13, 14, 26, 32, 33, 36, again causing astonishment global. As David Hand explained in his article “Not so strange coincidences” (Pour la Science n ° 438, April 2014), if we take into account the number of Loto games in the world, and the number of draws that each of them operates, often several times a week, our astonishment must cease.</p><p>Specifically, consider the Bulgarian Lotto where 6 numbers are drawn between 1 and 49, which gives a probability of winning of 1 / 13,983,816. between them give the same result ”has a probability greater than 50% of occurring. The answer is 4,404.</p><p>The calculation is analogous to that made for the famous paradox of birthdays, according to which as soon as 23 people are reunited, the probability that two of them have the same anniversary date exceeds 50%. This shows that the events felt to be extraordinary for the Bulgarian and Israeli lotteries are in fact necessary. It is not the occurrence of identical prints that is improbable, but the reverse: if all the prints were always different, we should be surprised and seek the explanation.</p><p>Another source of astonishment comes from the close series of rare events, such as plane crashes. Journalists like to mention an alleged “law of series”, yet unknown to mathematicians, which would explain these comparisons considered both highly improbable and explainable by this untraceable law … Jacques Chirac simply said: “Emmerdes, it always flies in a squadron. ! ”… Some analyzes attempt to identify its origin by speaking of an“ excessive expectation of spreading out ”(see my article“ Our vision of chance is quite hazardous ”, Pour la Science n ° 293, March 2002): our intuition tells us wrongly that, for example, the dates of plane crashes should be evenly spaced, while statistics show us something else.</p><p>This excessive expectation of spreading has been clearly analyzed in the specific cases of aircraft accidents by Élise Janvresse and Thierry de la Rue, of the University of Rouen (see box 3 on page 111).</p><h3>Very different series, but with the same statistic</h3><p>Our common sense fails to deal with probabilities and we are surprised in cases where there is no need to be. To use the word “coincidence” does not explain anything or else it introduces strange ideas like the synchronicity of Carl Gustav Jung or the morphic fields of Rupert Sheldrake, whose scientists have vainly sought to prove the existence (see for example <a href="http://www.skeptics/">www.skeptics</a> .qc.ca / dictionary /).</p><p>This weakness of our mind to perceive probabilities correctly has only recently been highlighted. We are tempted to think that if the data have similar statistical parameters, they must necessarily resemble each other; and Justin Matejka and George Fitzmaurice of Autodesk Research in Toronto have deliberately created magnificent examples that show this to be wrong.</p><p>To generate their series, they have developed a technique that allows them to easily play with the shapes of the graphs created. Thus, the figure in box 4 opposite visualizes a collection of 13 series of pairs of numbers (x, y) which, despite their very different graphs (each pair (x, y) representing a point on the plane), have the same 5 following parameters: mean of x, standard deviation of x, mean of y, standard deviation of y, correlation between x and y.</p><h3>Simple and unexpected</h3><p>Always in order to understand and classify the situations where our mind is surprised when it should not, let us now detail a less known case, because it is linked to a fairly recent theory. The poor understanding of what is probable, because simple, leads to perceive certain events as surprising when they are not, and therefore to believe to be in the presence of miraculous coincidences without good explanation, whereas the situation is banal.</p><p>The most general notion of simplicity is that which comes from algorithmic information theory. As we do not always have a good understanding of it, it leads us to see complex and unexpected things when there are in fact only simple things. This algorithmic information theory, or Kolmogorov’s theory of complexity, measures the complexity of an object by the size of the smallest program that generates it. It applies to digital objects, or objects capable of being represented digitally, such as images, sounds, films, and to most objects in the real world, if only their appearance is taken into account.</p><p>The theory suggests that among objects using the same number of bits of information (e.g. images of one million pixels), the simplest, i.e. those with the lowest Kolmogorov complexity, are those that we will meet the most frequently. This follows from a theorem by Leonid Levin according to which the higher the Kolmogorov complexity of an object or structure, the less likely it is that this object or structure is produced by a machine taken at random.</p><p>If one thinks that the physical world is a kind of large system of interactions leading to a form of calculation which produces the objects and structures that one meets there, it is then natural to think that the objects present in the world appear there. with a probability linked to their Levin measure, and therefore that the simplest in the sense of Kolmogorov complexity are the most frequent. Details on this idea are given in an article by Hector Zenil and myself (see bibliography). Note that this is an idea consistent with intuition: in a digital black and white image representing a photo taken from the real world, we are more likely to encounter the series of 10 white pixels, bbbbbbbbbb, which has a low Kolmogorov complexity, which the series specifies bnbbnnbnbb whose Kolmogorov complexity is greater.</p><p>A star is spherical, as are many fruits. The section of a tree trunk is circular, as are the wheels that equip our vehicles. A wheat stalk is perfectly straight, like the edges of a crystal. The surface of a lake is flat, like the skin of many animals, when viewed closely. All of this corresponds to simple forms within the meaning of Kolmogorov’s theory. In these cases, we therefore do not seek to find a common origin for two spherical, or rectilinear, or planes. Simple shapes do not necessarily have a common origin, their simplicity is enough to explain that they are found everywhere. So far, so good.</p><p>On the other hand, some objects or shapes that Kolmogorov’s theory of complexity identifies as simple are not perceived as such by our immediate judgment. A structure like that of the Sierpiński triangle (see the figure above) appears complex to us, although it is not, since very short programs generate it. If we often meet this shape in nature, especially on the surface of seashells, it is because this structure is simple, like a sphere or a line segment.</p><p>We should therefore not marvel at these multiple unrelated encounters, nor above all imagine that they come from a sort of secret functioning of the Universe which remains to be understood. As with the sphere, their simplicity is the explanation for their frequent appearance.</p><p>What is true for the Sierpiński carpet is also true for the Fibonacci sequence, which some people mistakenly marvel at so often. This is still true for the golden ratio, which arouses numerological superstition. This is also true of a multitude of fractal forms which are simple and which one should therefore not be surprised to find them. It is normal for low complexity Kolmogorov objects to be found everywhere. To seek a deep explanation for the multiple presence of the Fibonacci sequence in all kinds of natural or artificial objects is as naive as to seek a common explanation for the presence of long rectilinear segments in trees, in the lines drawn by geological layers, stalagmites or in the sky when a meteorite enters the Earth’s atmosphere.</p><p>We easily perceive the simplicity of some shapes, but for others, we need to think about the theory that allows us to understand simplicity. If we are successful, we will be less inclined to want to explain what we perceive to be coincidences. Here, as with the double Lotto identical draws, or the parallel curves showing illusory correlations, we must avoid looking for common causes for what, logically, does not need them.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=3e18a2780281" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Fuzziness and falsehood in mathematics]]></title>
            <link>https://humanicus.medium.com/fuzziness-and-falsehood-in-mathematics-ea72aef6f0f7?source=rss-59cbccd473fe------2</link>
            <guid isPermaLink="false">https://medium.com/p/ea72aef6f0f7</guid>
            <category><![CDATA[euler]]></category>
            <category><![CDATA[formal-verification]]></category>
            <category><![CDATA[mathematics]]></category>
            <category><![CDATA[proof]]></category>
            <category><![CDATA[demonstration]]></category>
            <dc:creator><![CDATA[Humanicus]]></dc:creator>
            <pubDate>Tue, 23 Nov 2021 11:02:36 GMT</pubDate>
            <atom:updated>2021-11-23T11:02:36.169Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*uxFcWtBcNm9SNEj2" /><figcaption>Photo by <a href="https://unsplash.com/@roman_lazygeek?utm_source=medium&amp;utm_medium=referral">Roman Mager</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><p>Mathematics is the most precise and exact science … Their history shows us many examples of serious errors. How to limit the risks of producing others?</p><p>By wanting to go fast and as far as possible, mathematicians take risks which they do not always dominate and which sometimes lead them to state false theorems, or true theorems based on false proofs. With the increasing complexity of the areas covered, new methods are becoming necessary to track down errors.</p><h3>A reproducibility crisis</h3><p>For the past fifteen years, various leading scientific journals have alerted to the problem of reproducibility in science. In May 2016, the British journal Nature published a study in which it appeared that 70% of the researchers it had interviewed said they had at least once failed in trying to reproduce a published result that interested them.</p><p>Mathematics did not seem concerned; however, verifying a published demonstration is a form of “reproduction”. When a researcher proposes a result and indicates his demonstration, he claims to have an argument leading him with certainty to the conclusion; to read and control one’s affirmations is to reproduce this mental experience. The problem of reproducibility therefore concerns mathematics and we will see that it is particularly delicate there.</p><p>You would think that any competent mathematician could read any mathematical article and verify the proofs presented there. This is wrong for several reasons.</p><p>First of all, reading a mathematical article often requires a good knowledge of the concepts, definitions, previous results and methods of the subject to which it relates. Since the breadth of mathematics fields has grown dramatically in the twentieth century, each researcher is only proficient in a small proportion of the thousands of mathematical papers published each year.</p><p>There is, however, a deeper reason that makes verification difficult even for a specialist: a demonstration is only a more or less detailed indication of an argumentative path, sometimes with important passages omitted or dangerous shortcuts.</p><p>To read a demonstration step by step, you must: be very well informed about the field; be ready to work at length on certain steps of the reasoning which require unexplained calculations or the treatment of non-detailed cases; sometimes also schedule computer checks because it is inconceivable otherwise; well, in some cases, to be as brilliant as the author, and in mathematics there are exceptional researchers with above-average abilities who are unaware that it is necessary to explain points which seem obvious to them … and which are only for them.</p><p>From this situation, it results that many errors are made, published and sometimes ignored for quite a long time. Several books have been devoted to errors in mathematics, but significant progress is also being made in checking and correcting the most important results.</p><h3>Mechanically verifiable: formal proofs</h3><p>There are several notions of “formal proof” which, when written down, can be verified mechanically, that is to say by a computer program. Unfortunately, it is not these formal proofs that mathematicians write in their papers, as it would be too long and would obscure important ideas in a jumble of logical arguments and micro-calculations.</p><p>For David Ruelle, a physicist-mathematician at IHES, near Paris, “human mathematics is actually talking about formal proofs, not actually writing them down. The mathematician asserts quite convincingly that there is a certain formal text leading to the results he proposes, and that it would be possible to make it fully explicit, but he does not do so because it would be difficult work unsuited to the brain. human, who is not good at checking that a long formal text is free from errors. Human mathematics is a kind of dance around an unwritten formal text, which, if written, would be unreadable. “</p><p>The problem of mathematical errors is not new, especially since the notions of formal proof which allow everyone to agree — we will come back to this — have only existed since the beginning of the twentieth century. Throughout its history, mathematics has been confronted with beliefs in inaccurate results, or with the illusion of taking a proof to be a true statement, but which in reality is not demonstrated due to missing or false elements. in reasoning, or sometimes because of poorly understood concepts such as number or function.</p><p>Here are a few quick examples from the greatest mathematicians that show that no one achieves perfection in mathematics.</p><p>In Greece, in the 6th century BC, the mysterious Pythagoras maintained that the ratio of two magnitudes is always equivalent to the ratio of two whole numbers. The demonstrations he discovered in his day of the immeasurability of the diagonal of a square with its side, or in modern parlance of the irrationality of √ — 2, he seems to have troubled members of his school. Note, however, that historians are unanimous in considering that correcting the Pythagorean error was one of the most important steps in the progress of mathematics.</p><h3>Everything is almost perfect at Euclide</h3><p>About two centuries later, Euclid left us a treatise, the Elements, of an astonishing maturity and rigor that even today we can read, understand and approve the gist of his demonstrations. Yet careful readers of Euclid have spotted a series of omissions, for example in his formulation of the axioms of geometry, or of imprecisions rendering some of his proofs false or incomplete. The use of figures leads him to arguments that are only valid for a particular arrangement of the elements involved. Sometimes, too, he takes as obvious properties that today we force ourselves to demonstrate, such as the existence of a point in common between two intersecting curves (lines, circles, etc.). This problem linked to continuity arises from proposition 1 of book 1 of the Elements, when Euclid constructs with a compass an equilateral triangle on a given segment AB.</p><h3>Euler, “our master to all”</h3><p>Let’s skip two millennia to talk about some of the geniuses of the modern age. The Swiss mathematician and physicist Leonhard Euler (1707–1783) is perhaps the greatest: he wrote a considerable number of mathematical memoirs gathered today in the seventy volumes of his complete works (http: // eulerarchive. maa.org). He made considerable progress in the analysis and Pierre-Simon de Laplace advised: “Read Euler, read Euler, he is everyone’s teacher. However, this prodigious mathematician was sometimes wrong by indicating for example that there was never a closed path of a knight on a 3 × n rectangular chessboard whereas there exists for example for the 3 × 10 chessboards. .</p><blockquote>The rider’s route:<br>The rider’s route. Finding out whether a chess rider can travel all the squares of an m × n checkerboard without going through the same square twice and returning to his starting point (closed course) may seem like a lesser problem. However, we have been interested in it since the tenth century in India and Leonhard Euler devoted a rather long article to it (“<a href="http://eulerarchive.maa.org/docs/originals/E309.pdf">Solution of a curious question which does not appear subject to any analysis</a>”, Mémoires de l’Académie Royale des Sciences et Belles Letters, vol. 15, pp. 310–337, year 1759, Berlin 1766).<br>Among the simplest questions that arise, there is that of chess boards of size 3 × n. When n is odd, there is no solution because, more generally, there is no solution if n and m are odd (will you find out why?). On the other hand, for all even numbers n from 10, there are solutions (see the figure above) contrary to what Euler asserts.<br>His mistake was not corrected until a century and a half later, in 1917, by Ernest Bergholt. For those interested in this type of problem, the very complete <a href="http://www.mayhematics.com/t/t.htm">site</a> should be consulted.<br>It is remarkable that the problem still gives rise to mathematical work, for example Alfred Brown’s master’s thesis, “Knight’s tour and Zeta function”, defended in 2017 at the State University of San José, in the United States.</blockquote><p>The rigor of Euler’s reasoning is sometimes insufficient and today we consider incomplete his proof of 1749 of the “fundamental theorem of algebra” on the roots of a polynomial. The way in which he uses the notion of function, which he assimilates more or less to polynomials of finite or infinite degree, lacks rigor and even clarity; It is only in the 19th century that we will be able to resume his precious work on these subjects and put them perfectly in order.</p><blockquote>The notion of function in Euler. More boring than the rider question, where Euler made a one-off error, the way he handled the concept of function was the center of an ambiguity and even a contradiction since he wanted both to have a concept close to that of polynomial and state results valid for a large class of functions, without succeeding in defining them precisely. Or rather by proposing a definition lacking in clarity: “A function is an analytical expression composed in some way of this variable quantity and of numbers or of constant quantities” (Introductio in analysin infinitorum, Marcum-Michaelem Bousquet &amp; socios, 1748) .<br>Today, a function is defined as a relation — a precise set notion — which, at any point of a starting set, associates one in the ending set (a), without any particular constraint. However, the theorems of the analysis that Euler endeavored to specify only concern reduced classes of functions, such as those developable in integer series (b). This is an example of a seemingly serious lack of rigor which, however, does not prevent the progress of a mathematical field which only logically becomes perfect later (see J. Dhombres, “Les presupposés d’Euler in the employment of functional method ”, Revue d’histoire des sciences, vol. 40 (2), pp. 179–202, 1987).</blockquote><p>We will not come back to the case of Augustin Cauchy and his famous statement wrongly asserting that a limit of continuous functions is also a continuous function (<a href="http://fredrickey.info/hm/CalcNotes/CauchyWrgPr.pdf">http://fredrickey.info/hm/CalcNotes/CauchyWrgPr.pdf</a>), nor on Henri Poincaré and his false memoir which earned him the prize in honor of King Oscar of Sweden (<a href="https://journals.openedition.org/lettre-cdf/1103">https://journals.openedition.org/lettre-cdf/1103</a>) and which he had reprinted at his expense after correction.</p><p>David Hilbert, also considered one of the greatest mathematicians and logicians, left many small errors in his articles. When it was decided, in order to publish her complete works, to cleanse them of everything that needed to be put back together, it took Olga Taussky-Todd three years to complete the work. Hilbert was also once seriously mistaken in proposing an erroneous proof of the “continuum hypothesis” that there is no intermediate infinity between that of integers and that of real numbers.</p><h3>Write the proofs in the language of logic</h3><p>The development of logic led at the beginning of the twentieth century to the idea that a correct mathematical demonstration can be controlled mechanically, provided it is written in a language the first sketches of which were proposed by Alfred Whitehead and Bertrand Russell in the three volumes of Principia Mathematica (1910–1913). By slightly completing the Principia method, the basic syntax of which is not completely fixed, we end up with the notion of “formal system” today at the heart of mathematical logic. It is this that gives full meaning to Kurt Gödel’s famous incompleteness theorems, asserting that no formal system will ever be powerful enough for all mathematics and therefore it will always be necessary to seek new axioms.</p><h4>The causes of errors</h4><p>Today, the reasons for the presence of sometimes persistent errors in the works published by mathematicians are multiple and can be classified as follows.</p><p>1) Pre-publication control procedures are very imperfect. Some journals try to publish as much as possible and do not exercise a serious filter before accepting the articles they publish. Even when very rigorous, journals entrust expertise to mathematicians who are not paid for their work and remain anonymous, which may not be the best way to engage these experts.<br>in-depth verification work.</p><p>2) Certain fields are very specialized and the published works are known only to very few researchers and therefore very little checked or not at all after their publication. An error present in an article can therefore remain ignored for a long time.</p><p>3) Some areas give rise to extremely long and terribly difficult demonstrations, which require considerable control work. This exam can only be done in earnest with the help of evidence-based computer assistants, which for some demonstrations is still difficult. Thereby,<br>it took several years to formalize and validate Thomas Hales’s proof of the proof of Kepler’s conjecture on the most compact stacking of spheres in space.</p><p>The absolute precision made possible by formal systems should have put an end to errors in mathematics. This was only an illusion, because it is very difficult in practice to write these texts which are mechanically verifiable and which provide absolute certainties. Today, we have designed computer programs, “proof assistants”, that develop this proof. These systems do not find new proofs on their own, but help mathematicians write compelling proofs.</p><h4>Proof assistants correct errors</h4><p>Computer systems called “proof assistants” allow mathematicians to write formal, and therefore perfectly complete, proofs without any errors being able to remain. Did this software make it possible to correct errors that went unnoticed? In some cases yes (see the case<br>of Gödel’s ontological proof in the text of the article). Manuel Eberl is an expert who has been working for<br>years of writing proofs using the Isabelle / HOL proof assistant. He testifies to his work:</p><p>“Normally it takes a very thorough understanding of paper evidence to formalize it and you have to think about how to go about formalizing it. […] If you formalize a particular proof like that of the prime number theorem […], you probably will not find that everything is wrong and everything collapses, but you will run into small problems.</p><p>I have found “errors” in many demos, including when they were published in textbooks or articles. Most of these errors are easy to correct, and most<br>mathematicians would probably consider them to be harmless. Some are identified within days, others actually require changing definitions, adding assumptions, or modifying the theorem statement. Most “errors” fall into the following categories.</p><blockquote>Surprisingly non-trivial arguments are declared easy and unimportant. […]<br> Cases are omitted.<br> Arithmetic errors are made, such as multiplying both sides of an inequality by a constant that is not verified to be positive.<br> Unspecified assumptions are used surreptitiously.</blockquote><blockquote>I am aware that mathematicians often have an indulgent point of view. […] The types of errors that I mention are generally considered insignificant, and it is believed that someone would have corrected them even in the absence of a computer system, and therefore that ultimately the theorems and proofs complained of are correct in meaning, since the problems identified are minor.</blockquote><blockquote>However, I don’t agree with that. I want my demonstrations to be as rigorous as possible. I want to be sure that I haven’t missed any guess. “</blockquote><p>(For the full text of Manuel Eberl, see: <a href="https://mathoverflow.net/questions/291158/proofs">https://mathoverflow.net/questions/291158/proofs</a> assistant / 312661)</p><p>Thanks to them, we formalized an important part of basic mathematics, which confirms that we should not have any worries about the central part of mathematics. For the most difficult theorems, whose proofs are very long or use abstract and delicate concepts, we do not yet have these formalized versions.</p><h3>Formally proven statements …</h3><p>Among the statements whose proofs have been verified in this way, we have for example:</p><ul><li>There are exactly five Platonic solids (regular convex polyhedra).<br> Impossibility of trisection of an angle with the ruler and the compass.</li><li>Independence of the postulate of parallels towards the other axioms of the basic geometry of the plane.</li><li>Fundamental theorem of algebra on the roots of polynomials.</li><li>Intermediate value theorem concerning the continuous functions of the set of real numbers in itself.</li><li>Two-squares theorem: an integer is sum of two squares if and only if each of its prime factors, of the form 4k + 3, occurs with an even exponent.</li><li>Fundamental theorem of analysis: the derivative with respect to x of the integral of the function f, taken between a constant a and x, is equal to F(x).</li><li>Liouville’s theorem: the number 1/10^(1!) + 1/10(2!) + 1/10^(3!) + … is transcendent.</li><li>The numbers e and ≠ are transcendent.</li><li>Prime number theorem: the density of prime numbers around n is 1 / log (n).</li><li>Cantor’s diagonal method: real numbers cannot be bijected with whole numbers.</li><li>Gödel’s first incompleteness theorem.</li><li>Four-color theorem: Any geographic map drawn on a plan can be colored with four colors so that two neighboring countries are different colors.</li><li>Kepler’s conjecture about the densest stacking of spheres in space.</li></ul><h3>… and others not</h3><p>The following results have not been checked by proof assistants, but for the first two, specialists agree that the informal proof available is satisfactory.</p><ul><li>Fermat’s theorem which indicates that the equation <em>a^n</em> + <em>b^n</em> = <em>c^n</em> has no solutions in positive integers if n&gt; 2.</li><li>The giant theorem concerning the classification of finite simple groups, the current proof of which occupies tens of thousands of pages scattered in more than five hundred articles. We try to write a shorter (unformalized) demonstration that will be around five thousand pages long.</li><li>The theorem proving the ABC conjecture (it relates to the divisors of numbers verifying a + b = c), which remains the subject of a controversy between mathematicians: some claim to have a proof, others consider that it is not satisfactory.</li></ul><p>Fields such as algebraic geometry present considerable difficulties and it seemed necessary to several mathematicians, including Fields medalist Vladimir Voevodski (1966–2017), to work so that the work of this field is all formalized to avoid the too frequent demonstrations. false, which even the best specialists had difficulty eliminating</p><h3>Application to the ontological proof of the existence of God</h3><p>A rather strange and amusing recent case has highlighted the interest of proof assistants, which are now used to spot and correct errors even in controversial philosophical reasoning.</p><p>It happened to Gödel, considered as the greatest logician to have existed, to be mistaken: in 1970, he submitted to Alfred Tarski, for publication in Proceedings of The National Academy of Sciences, a demonstration based on new axioms that the The continuum assumption was wrong. The erroneous evidence was never published.</p><p>But the most interesting case of Gödel’s error concerns a philosophical-logical work on the question of whether pure logical reasoning is capable of proving the existence of God. Anselm of Canterbury in the 11th century and then Gottfried Leibniz in the 17th century had proposed such reasoning using the ideas of perfection, necessity and existence combined as rigorously as possible. These are logical games which have the advantage of allowing analyzes of concepts, especially when they are made precise by completely axiomatizing them, which Gödel attempted to do. Whether one arrives at the conclusion that God exists, or that one arrives at the conclusion that the modes of reasoning which one wants to implement to prove it produce contradictions or unacceptable statements, is interesting on a logical level .</p><h4>Ontological proof</h4><blockquote>Saint Anselm of Canterbury (1033–1109), then Gottfried Leibniz (1646–1716), then the Austrian logician Kurt Gödel (1906–1978) each in turn proposed reasoning using only logical considerations to conclude that God exists.</blockquote><blockquote>Anselm’s ontological reasoning in its crude version is: “God has all the qualities, therefore the quality of existence, therefore God exists. “More precisely:” God, by definition, is that of which nothing greater can be conceived. God exists in human understanding. If God exists in human understanding, we can imagine him greater, considering that he also exists in reality. Therefore, God exists. “</blockquote><blockquote>A more elaborate version was given by Leibniz and it is this that Gödel tried to improve further. These versions are more complex and use notions of modal logic (such as “it is necessary”, “it is possible”, etc.), logics of which formal versions were proposed and studied as early as 1918 by Clarence Lewis, then deepened throughout. long twentieth century.</blockquote><blockquote>The validity of these arguments rests on the individual acceptance of the starting axioms and definitions which can be discussed endlessly. It also depends on the validity of reasoning when we have accepted axioms and definitions. This validity can be checked using the computer tools available today. However, even if one accepts the axioms individually and the reasoning is judged correct, it is still possible that the axioms are generally unsatisfactory because they lead to obvious absurdities. This is what happened with the reasoning proposed by Gödel.</blockquote><blockquote>In February 1970, believing he was dying, Gödel allowed mathematician Dana Scott (b.1932) to copy the latest version of his reasoning. A little later, Gödel told his friend the mathematician and economist Oskar Morgenstern (1902–1977) that he was satisfied with his proof, specifying that he did not want to publish it because he was afraid that it would be deduce that he believed in God, when he was only engaged in a logical exploration.</blockquote><blockquote>Recently, Christoph Benzmüller, of the Free University of Berlin, and Bruno Woltzenlogel Paleo, of the Australian National University, showed, using proof assistants, that the system used by Gödel was absurd (see their article cited in the bibliography).</blockquote><p>The work of Christoph Benzmüller and David Fuenmayor and a few researchers around them have answered questions that might be asked. By using systems of demonstration and automatic verification of proof, on the one hand, they established that the system of axioms used by Gödel in his ontological proof was contradictory, which of course deprives his reasoning of any value. However, by studying certain variants proposed for example by Dana Scott or Melvin Fitting, they were able to validate these variants of the reasoning — which, this time, are based on systems which do not produce obvious absurdities and succeed without committing any fault of reasoning to the conclusion that God exists, at least a god such as the adopted axioms envisage it. We therefore have systems of axioms passed through the computer mill which we are sure are not stupid, and which leave room for reasoning about the existence of God!</p><p>These examples of using formal logic and computer validation systems to advance questions of a philosophical nature should encourage philosophers to make their assumptions and the course of their reasoning as precise as possible. According to Christoph Benzmüller, this work opens up “new perspectives for a theoretical philosophy assisted by computer. Critical discussion of the underlying concepts, definitions and axioms remains the responsibility of humans, but the computer can help construct and verify that logical arguments are rigorously correct. In the event of a conflict, the computer will decide between the conflicting arguments and satisfy the recommendation of Leibniz Calculemus (“Let’s calculate!”). The dream of a perfect language, the Characteristica Universalis, which Leibniz wanted to create, where right and wrong would be identifiable by simple calculation, is therefore partly realized.</p><h3>No progress without risk …</h3><p>It is because mathematics is advancing and entering fields of far greater complexity than anything known in previous centuries that it takes risks. The desire to go as far as possible creates a danger that must be accepted, on condition that everything is done that can limit it.</p><p>On the border between the true and the false, the ground becomes uncertain; mathematics must therefore invent and perfect their control tools and, in certain fields, use them systematically. The errors that occur are not the proof of a general and increasing risk to which mathematics would be subjected, for the guarantees are reinforced in the central part which extends, but the manifestation of the vitality of a curious and thirsty science. , and which has always explored and cleared new lands without respite.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=ea72aef6f0f7" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>