In My Hands Today…

Everything Is Predictable: How Bayesian Statistics Explain Our World – Tom Chivers

At its simplest, Bayes’s theorem describes the probability of an event, based on prior knowledge of conditions that might be related to the event. But in Everything Is Predictable, Tom Chivers lays out how it affects every aspect of our lives. He explains why highly accurate screening tests can lead to false positives and how a failure to account for it in court has put innocent people in jail. A cornerstone of rational thought, many argue that Bayes’s theorem is a description of almost everything.

But who was the man who lent his name to this theorem? How did an 18th-century Presbyterian minister and amateur mathematician uncover a theorem that would affect fields as diverse as medicine, law, and artificial intelligence?

Fusing biography, razor-sharp science writing, and intellectual history, Everything Is Predictable is an entertaining tour of Bayes’s theorem and its impact on modern life, showing how a single compelling idea can have far reaching consequences.

In My Hands Today…

The Code Book: The Science of Secrecy from Ancient Egypt to Quantum Cryptography – Simon Singh

In his first book since the bestselling Fermat’s Enigma, Simon Singh offers the first sweeping history of encryption, tracing its evolution and revealing the dramatic effects codes have had on wars, nations, and individual lives. From Mary, Queen of Scots, trapped by her own code, to the Navajo Code Talkers who helped the Allies win World War II, to the incredible (and incredibly simple) logisitical breakthrough that made Internet commerce secure, The Code Book tells the story of the most powerful intellectual weapon ever known: secrecy.

Throughout the text are clear technical and mathematical explanations, and portraits of the remarkable personalities who wrote and broke the world’s most difficult codes. Accessible, compelling, and remarkably far-reaching, this book will forever alter your view of history and what drives it. It will also make you wonder how private that e-mail you just sent really is.

Benford’s Law

Numbers are all around us and with numbers come number patterns. And when we research number patterns, we come across something very interesting. Also known as the Newcomb–Benford law, the law of anomalous numbers or the first-digit law, Benford’s Law is a statistical statement about the occurrence of digits in lists of data and is an observation that in many real-life sets of numerical data, the leading digit is likely to be small.

According to the law, in sets that obey the law, the number 1 appears as the leading significant digit about 30% of the time, while 9 appears as the leading significant digit less than 5% of the time. If the digits were distributed uniformly, they would each occur about 11.1 % of the time. Benford’s Law also makes predictions about the distribution of second digits, third digits, digit combinations, and so on. The law is named after physicist Frank Benford, who stated it in 1938 in a paper titled “The Law of Anomalous Numbers”, although it had been previously stated by Simon Newcomb in 1881 and is similar in concept, though not identical in distribution, to the Zipf’s law. So according to Benford’s Law, the finding that the first digits or numerals to be exact of the numbers found in series of records of the most varied sources do not display a uniform distribution, but rather are arranged in such a way that the digit “1” is the most frequent, followed by “2”, “3”, and so in a successively decreasing manner down to “9”

The discovery of Benford’s law goes back to 1881 when the Canadian-American astronomer Simon Newcomb noticed that in logarithm tables the earlier pages that started with 1 were much more worn than the other pages. Newcomb’s published result is the first known instance of this observation and includes distribution on the second digit, as well. Newcomb proposed a law that the probability of a single number N being the first digit of a number was equal to log(N + 1) − log(N). The phenomenon was again noted in 1938 by the physicist Frank Benford, who tested it on data from 20 different domains and was credited for it. Benford’s data set included the surface areas of 335 rivers, the sizes of 3259 US populations, 104 physical constants, 1800 molecular weights, 5000 entries from a mathematical handbook, 308 numbers contained in an issue of Reader’s Digest, the street addresses of the first 342 persons listed in American Men of Science and 418 death rates. The total number of observations used in the paper was 20,229.

It has been shown that this result applies to a wide variety of data sets, including electricity bills, street addresses, stock prices, house prices, population numbers, death rates, lengths of rivers, and physical and mathematical constants. Like other general principles about natural data – for example, the fact that many data sets are well approximated by a normal distribution — some illustrative examples and explanations cover many of the cases where Benford’s law applies, though there are many other cases where Benford’s law applies that resist a simple explanation. It tends to be most accurate when values are distributed across multiple orders of magnitude, especially if the process of generating the numbers is described by a power-law, which is common in nature.

Benford’s law tends to apply most accurately to data that span several orders of magnitude. As a rule of thumb, the more orders of magnitude that the data evenly covers, the more accurately Benford’s law applies. For instance, one can expect that Benford’s law would apply to a list of numbers representing the populations of UK settlements. But if a settlement is defined as a village with a population between 300 and 999, then Benford’s law will not apply.

In general, it has been seen a series of numerical records follows Benford’s Law when they
represents magnitudes of events or events, such as populations of cities, flows of water in rivers or sizes of celestial bodies; do not have pre-established minimum or maximum limits; are not made up of numbers used as identifiers, such as identity or social security numbers, bank accounts, telephone numbers; and have a mean which is less than the median, and the data is not concentrated around the mean

This law can be utilised to detect patterns or the lack thereof in naturally occurring datasets. This can lead to important applications in data science such as catching anomalies or fraud detection. It’s expected that a large set of numbers will follow the law, so accountants, auditors, economists and tax professionals have a benchmark what the normal levels of any particular number in a set are.

In the latter half of the 1990s, accountant Mark Nigrini found that Benford’s law can be an effective red-flag test for fabricated tax returns; True tax data usually follows Benford’s law, whereas made-up returns do not. Ponzi schemes can be detected using the law. Unrealistic returns, such as those purported by the Maddoff scam, fall far from the expected Benford probability distribution.

In 1972, Hal Varian suggested that the law could be used to detect possible fraud in lists of socio-economic data submitted in support of public planning decisions. Based on the plausible assumption that people who fabricate figures tend to distribute their digits fairly uniformly, a simple comparison of first-digit frequency distribution from the data with the expected distribution according to Benford’s law ought to show up any anomalous results. In the United States, evidence-based on Benford’s law has been admitted in criminal cases at the federal, state, and local levels.

Walter Mebane, a political scientist and statistician at the University of Michigan, was the first to apply the second-digit Benford’s law-test (2BL-test) in election forensics. Such analyses are considered a simple, though not foolproof, method of identifying irregularities in election results and helping to detect electoral fraud. Benford’s law has been used as evidence of fraud in the 2009 Iranian elections. An analysis by Mebane found that the second digits in vote counts for President Mahmoud Ahmadinejad, the winner of the election, tended to differ significantly from the expectations of Benford’s Law and that the ballot boxes with very few invalid ballots had a greater influence on the results, suggesting widespread ballot stuffing. Another study used bootstrap simulations to find that the candidate Mehdi Karroubi received almost twice as many vote counts beginning with the digit 7 as would be expected according to Benford’s law, while analysis from Columbia University concluded that the probability that a fair election would produce both too few non-adjacent digits and the suspicious deviations in last-digit frequencies as found in the 2009 Iranian presidential election is less than 0.5%. Benford’s Law has also been applied for forensic auditing and fraud detection on data from the 2003 California gubernatorial election, the 2000 and 2004 United States presidential elections, and the 2009 German federal election.

Benford’s law has also been misapplied to claim election fraud. When applying the law to Joe Biden’s election returns for Chicago, Milwaukee, and other localities in the 2020 United States presidential election, the distribution of the first digit did not follow Benford’s law. The misapplication was a result of looking at data that was tightly bound in range, which violates the assumption inherent in Benford’s law that the range of the data is large.

Macroeconomic data the Greek government reported to the European Union before entering the eurozone was shown to be probably fraudulent using Benford’s law, albeit years after the country joined the EU. In genome data, the number of open reading frames and their relationship to genome size differs between eukaryotes and prokaryotes with the former showing a log-linear relationship and the latter a linear relationship. Benford’s law has been used to test this observation with an excellent fit to the data in both cases. The law has also been used successfully in scientific fraud detection. A test of regression coefficients in published papers showed agreement with Benford’s law. As a comparison group subjects were asked to fabricate statistical estimates. The fabricated results conformed to Benford’s law on first digits but failed to obey Benford’s law on second digits.

So if you want to test Benford’s Law yourself, it’s very simple. Just pick up a random book or magazine and list or sort the numbers. You will find about 30% of the numbers collected from any issue will start with the number 1. Let me know in the comments section if the law fit in your experiment. 

Fibonacci Day

Every year, November 23 is celebrated as Fibonacci Day. And it is because when the date is written in the mm/dd format (11/23), the digits in the date form a Fibonacci Sequence – 0, 1, 1, 2, 3, 5, 8, 13, 21, 34, 55, 89, 144, … A Fibonacci Sequence is a series of numbers where a number is the sum of the two numbers before it. For example: 1, 1, 2, 3…is a Fibonacci sequence. Here, 2 is the sum of the two numbers before it (1+1). Similarly, 3 is the sum of the two numbers before it (1+2) and 5 is the sum of 2 and 3 and so on.

Fibonacci numbers are named after the Italian mathematician Leonardo of Pisa, later known as Fibonacci. In his 1202 book Liber Abaci, Fibonacci introduced the sequence to Western European mathematics, although the sequence had been described earlier in Indian mathematics, as early as 200 BC in work by Pingala on enumerating possible patterns of Sanskrit poetry formed from syllables of two lengths. The numbers are strongly related to the golden ratio: Binet’s formula expresses the nth Fibonacci number in terms of n and the golden ratio, and implies that the ratio of two consecutive Fibonacci numbers tends to the golden ratio as n increases.

Fibonacci numbers appear unexpectedly often in mathematics, so much so that there is an entire journal dedicated to their study, the Fibonacci Quarterly. Applications of Fibonacci numbers include computer algorithms such as the Fibonacci search technique and the Fibonacci heap data structure, and graphs called Fibonacci cubes used for interconnecting parallel and distributed systems. They also appear in biological settings, such as branching in trees, the arrangement of leaves on a stem, the fruit sprouts of a pineapple, the flowering of an artichoke, an uncurling fern, and the arrangement of a pine cone’s bracts. Computer data storage and processing uses this number sequence today and the sequence is also useful in the trading of stocks and architecture. DNA patterns and hurricanes contain patterns showing this sequence. Math and science classes refer to the Fibonacci sequence as nature’s secret code or nature’s universal rule.

In his book Liber Abaci or The Book of Calculation, written in 1202, Fibonacci used the growth of rabbit population as the basis of the sequence. Fibonacci considers the growth of an idealised, but biologically unrealistic, rabbit population, assuming that a newly born breeding pair of rabbits are put in a field; each breeding pair mates at the age of one month, and at the end of their second month they always produce another pair of rabbits; and rabbits never die, but continue breeding forever. Fibonacci posed the puzzle: how many pairs will there be in one year?

At the end of the first month, they mate, but there is still only 1 pair. At the end of the second month they produce a new pair, so there are 2 pairs in the field. At the end of the third month, the original pair produce a second pair, but the second pair only mate without breeding, so there are 3 pairs in all. At the end of the fourth month, the original pair has produced yet another new pair, and the pair born two months ago also produces their first pair, making 5 pairs. At the end of the nth month, the number of pairs of rabbits is equal to the number of mature pairs, that is, the number of pairs in month n – 2 plus the number of pairs alive last month (month n – 1). The number in the nth month is the nth Fibonacci number. The name Fibonacci Sequence” was first used by the 19th century number theorist Édouard Lucas.

Fibonacci’s book Liber Abaci also introduced the western world to the Hindu-Arabic numeral system we use today which writes numbers as 1,2,3, etc. instead of the Roman numerals I, II, III, etc.

So how can we observe Fibonacci Day? There are many way to do that.

We could watch a video showing the Fibonacci sequence in nature or a video discussing the magic of Fibonacci numbers and the Fibonacci Sequence and its theoretical and practical uses. Or look for items in our home or in nature containing the Fibonacci Sequence. A number of fruits and vegetables, like pineapples, romanesco which is a cross between broccoli and cauliflower display the Fibonacci series.

The Fibonacci Sequence is there everywhere in our lives. If an orange is cut in half, the sections are always a Fibonacci number. The chambers of a nautilus shell, no matter the size of the shell or number of chambers, will be a Fibonacci number. If an apple is cut through its centre, not through its stem, the five-pointed star is another hidden Fibonacci number. Outside, if the petals of flowers and the points of leaves are counted, it will always be a Fibonacci number. And the reason a four-leaf clover is so rare is because four is not a Fibonacci number and they don’t happen often in nature. Music is also filled with Fibonacci numbers with the piano keyboard, keys in an octave all good examples. Check it out!

International Day of Mathematics

Yesterday was a day which many of us don’t know about and many of us are glad of the fact. There is a very small percentage of our population who love this subject – Mathematics. Maybe someone like BB and his friends who are math nerds would appreciate this day, but for the rest of us plebs, it is one just like any other.

Each year on Pie day which is March 14 or in the American way of writing dates, 3/14 is the
mathematical constant for pie is approximately 3.14 and this day has been celebrated in many countries as Pie Day.

The International Day of Mathematics or IDM is the opportunity the explain and celebrate the essential role that mathematics and mathematics education play in breakthroughs in science and technology, improving the quality of life, empowering women and girls, and contributing to the achievement of the Sustainable Development Goals of the 2030 Agenda of the United Nations. The first IDM proclaimed by UNESCO and co-organised with the International Mathematical Union or IMU was celebrated in 2020 which celebrated the beauty and importance of mathematics in our everyday lives. This annual event will be marked in more than 107 countries with over 1000 individual events.

The major goals of an International Day of Mathematics, with expected benefits for students, for teachers, for women and girls and for society at large are to improve understanding among the general public, decision makers and in schools, of the importance of mathematics in education; contribute to capacity building in mathematical and scientific education, with special focus on girls and children from developing countries; achieve gender equality and empower women and girls in mathematics; improve understanding among the general public, with decision makers and in schools of the importance of mathematics as a tool for developments which lead to more prosperous economy circumstances; emphasise the importance of basic research in mathematical sciences as the seed to breakthroughs in technology and the management of society; highlight the role of mathematics in the organization of modern society, including economic, financial, health and transport systems, telecommunications in the quest for human well-being, etc.; raise awareness of the role of mathematics in fighting disasters, epidemics, emerging diseases, invasive species; highlight the role of mathematics in moving to a circular economy of sustainability compatible with preservation of biodiversity; equip the general public and young people with tools for understanding the planetary challenges and the capacity to respond as knowledgeable citizens; increase international networking and collaborations in public awareness of mathematics and increase the access to information, providing a simple way to give citizens a choice in all aspects of their daily life.

Each year, the day is commemorated with a different theme and the theme for 2021 is Mathematics for a Better World. As the world faces the COVID-19 pandemic, mathematics provides its models and tools to help us understand, monitor, and control the spread of the virus. It is also used to create weather forecasts and prepare for natural disasters. It warns us of climate change and helps us to anticipate and mitigate its consequences. Mathematics is central to the efficient organization of societies for the benefit of all citizens. It optimizes transportation and communication networks and enables smart planning and management of health, economic, and social systems. Science and mathematics have a crucial role in steering decisions to promote peace and social justice. As a common language to the planet, mathematics is an essential part of humankind’s cultural heritage. It is present in arts, music, and games, for human enjoyment and well-being.

For more information on the IDM and the events happening around the world, please head to the official website of the International Day of Mathematics. The site also has interesting games and activities you do to commemorate IDM. Here’s another interesting place where you can learn more about the beauty of mathematics is