Advertise here with Carbon Ads

This site is made possible by member support. ❤️

Big thanks to Arcustech for hosting the site and offering amazing tech support.

When you buy through links on kottke.org, I may earn an affiliate commission. Thanks for supporting the site!

kottke.org. home of fine hypertext products since 1998.

🍔  💀  📸  😭  🕳️  🤠  🎬  🥔

kottke.org posts about mathematics

Data Visualization of the Most Common PIN Numbers

Based on an analysis of leaked PIN numbers by Nick Berry, Information is Beautiful made this visualization of the most common PINs.

Data Visualization of the Most Common PIN Numbers

According to the analysis, just 20 4-digit numbers account for 27% of all PINs: 1234, 0000, 7777, 2000, 2222, 9999, 5555, 1122, 8888, 2001, 1111, 1212, 1004, 4444, 6969 (nice), 3333, 6666, 1313, 4321, 1010. The diagonal line is people using repeated pairs of digits (e.g. 2727 or 8888) while the horizontal line near the bottom is people who are presumably using their (19xx) birth year as a PIN. (You can see the beginning of a 20xx line on the left side.)

The best causally unguessable PINs would seem to be unrepeated pairs of numbers greater than 50 — so 8957, 7064, 9653, etc. Choose wisely.

Reply · 8

Cicadas and Prime Numbers

You may have heard that this year, for the first time since 1803, two different broods of cicadas will emerge at the same time.

This year, though, will be a rare event. Two groups, or “broods,” are waking up during the same season. There will likely be billions, if not trillions, of the insects.

There’s the 17-year-group called Brood XIII, which is concentrated in northern Illinois (brown on the map below), and the 13-year clutch, Brood XIX, which will emerge in southern Illinois, Missouri, Arkansas, and throughout the Southeast.

You may have noticed the lengths of both periodicities (13, 17) are prime numbers — and that does not appear to be a coincidence. Scientists haven’t nailed down an exact cause, but one hypothesis has to do with predator cycles:

According to the paleontologist Stephen J. Gould, in his essay “Of Bamboo, Cicadas, and the Economy of Adam Smith,” these kind of boom-and-bust population cycles can be devastating to creatures with a long development phase. Since most predators have a two-to-ten-year population cycle, the twelve-year cicadas would be a feast for any predator with a two-, three-, four-, or six-year cycle. By this reasoning, any cicada with a development span that is easily divisible by the smaller numbers of a predator’s population cycle is vulnerable.

Prime numbers, however, can only be divided by themselves and one; they cannot be evenly divided into smaller integers. Cicadas that emerge at prime-numbered year intervals, like the seventeen-year Brood II set to swarm the East Coast, would find themselves relatively immune to predator population cycles, since it is mathematically unlikely for a short-cycled predator to exist on the same cycle. In Gould’s example, a cicada that emerges every seventeen years and has a predator with a five-year life cycle will only face a peak predator population once every eighty-five (5 x 17) years, giving it an enormous advantage over less well-adapted cicadas.

See also Long-lived insects raise prime riddle.

Reply · 0

Making Connections

My teen daughter doesn’t care for crosswords or the Spelling Bee, but she does try to play Connections every day. We were working on this one together a few days ago and when I suggested SNAIL GALAXY CYCLONE SUNFLOWER as a group, she said “I was thinking spirals but sunflowers are round”. Which prompted a discussion about the Fibonacci sequence and the golden ratio (which she’d covered in math class) and a search for videos that explained how the sequence pops up in nature and, specifically, sunflowers.

As beautiful as the sunflower is, isn’t it even lovelier knowing there is a deep mathematical order to it?

That quote reminds me of Richard Feynman’s thoughts on the beauty of nature:

I have a friend who’s an artist and has sometimes taken a view which I don’t agree with very well. He’ll hold up a flower and say “look how beautiful it is,” and I’ll agree. Then he says “I as an artist can see how beautiful this is but you as a scientist take this all apart and it becomes a dull thing,” and I think that he’s kind of nutty.

First of all, the beauty that he sees is available to other people and to me too, I believe. Although I may not be quite as refined aesthetically as he is … I can appreciate the beauty of a flower. At the same time, I see much more about the flower than he sees.

I could imagine the cells in there, the complicated actions inside, which also have a beauty. I mean it’s not just beauty at this dimension, at one centimeter; there’s also beauty at smaller dimensions, the inner structure, also the processes. The fact that the colors in the flower evolved in order to attract insects to pollinate it is interesting; it means that insects can see the color. It adds a question: does this aesthetic sense also exist in the lower forms? Why is it aesthetic? All kinds of interesting questions which the science knowledge only adds to the excitement, the mystery and the awe of a flower. It only adds. I don’t understand how it subtracts.

Games, language, mathematics, the beauty of flowers, science, time spent together — Connections indeed.

Reply · 5

Our ‘Grey Swan’ Climate Crisis: Nonlinear, Predictable, and Unprecedented

Zoë Schlanger writing for the Atlantic: Prepare for a ‘Gray Swan’ Climate.

The way to think about climate change now is through two interlinked concepts. The first is nonlinearity, the idea that change will happen by factors of multiplication, rather than addition. The second is the idea of “gray swan” events, which are both predictable and unprecedented. Together, these two ideas explain how we will face a rush of extremes, all scientifically imaginable but utterly new to human experience.

It’s the nonlinearity that’s always worried me about the climate crisis — and is the main source of my skepticism that it’s “fixable” at this point. Think about another nonlinear grey swan event: the Covid-19 pandemic. When was it possible to stop the whole thing in its tracks? When 10 people were infected? 50? 500? With a disease that spreads linearly, let’s say that stopping the spread when 20 people are infected is twice as hard as when 10 are infected — with nonlinear spread, it’s maybe 4x or 10x or 20x harder. When you reach a number like 20,000 or 100,000 infected over a wide area, it becomes nearly impossible to stop without extraordinary effort.

In thinking about the climate crisis, whatever time, effort, and expense halting global warming (and the myriad knock-on effects) may have required in 1990, let’s say it doubled by 2000. And then it didn’t just double again in the next ten years, it tripled. And then from 2010 to 2020, it quadrupled. An intact glacier in 1990 is waaaaay easier and cheaper to save than one in 2010 that’s 30% melted into the ocean; when it’s 75% melted in 2020, there’s really no way to get that fresh water back out of the ocean and into ice form.

It’s like the compounding interest on your student loans when you’re not making the minimum payments — not only does the amount you owe increase each month, the increase increases. And at a certain point, the balance is actually impossible to pay off at your current resource level.1 It’s hard to say where we are exactly on our climate repayment curve (and what the interest rate is), but we’ve not been making the minimum payments for awhile now and the ocean’s repossessing our glaciers and ice shelves and…

  1. Think also of the story of the inventor of chess asking for a reward of a single rice grain on the first square of a chess board and double the amount on each successive square. After a week, he’s got only 127 grains. After four weeks, he’s got himself several thousand pounds of rice. Another week or two after that, he owns the whole kingdom. (And if the multiplication factor is only 1.2, he still gets the kingdom in fewer than 2 chess boards.)
Reply · 2

An Animated Figure Battles Mathematics

It is astounding to me the number of YouTube channels that I have never heard of with subscriber bases larger than that of many countries. (This goes double and triple for Instagram and TikTok.) Alan Becker has over 23 million subscribers and makes videos pitting animated characters against various other entities. His latest video is Animation vs. Math and it is super nerdy and engaging. You might have to be a bit of a math nerd to enjoy this fully, but even if you only get the gist of what’s going on (like I did for at least half of the video), it’s still pretty entertaining. You can check the comments for an explanation of the math or this illustrated explainer.


Curve-Fitting Methods and the Messages They Send

Curve-Fitting Methods and the Messages They Send

From XKCD, Curve-Fitting Methods and the Messages They Send. Ahhhh, this takes me back to my research days in college, tinkering with best fits and R-squared values…


SineRider: A Game About Love & Graphing

Remember Line Rider? It’s a simple video game / physics toy where you draw slopes and curves for a person on a sled to navigate, pulled along by gravity. SineRider, a project started by Chris Walker and finished by a group of teen hackers at Hack Club, is a version of Line Rider where you use math equations to draw curves to maneuver the sledder through a series of points, sometimes in a certain order. Here’s a trailer with some gameplay examples:

Let me tell you, I haven’t had this much fun mucking around with an online game/toy since I don’t know when. My math is super rusty, but SineRider eases you into the action with some simple slopes (no cosines or tangents necessary) and before you know it, it’s 20 minutes later and you’re googling equations for parabolas.

Right now, there are two ways to play. You can start on the front page and go through a progression of puzzles that get more challenging as more concepts are introduced (such as the curve changing over time). Or you can do the challenges, which are posted daily to Twitter or Reddit. My son and I spent 10-15 minutes solving these two challenges and we were laughing and cheering when we finally got them. (The educational opportunity here is obvious…)

SineRider is currently in beta so some of the UI stuff is a little rough around the edges, but I was really charmed by the music, the animations…everything really. The project is open source — the code is available on GitHub and the Hack Club folks are looking for contributors and collaborators:

There’s a reason it’s open-source and written in 100% vanilla JavaScript. We need volunteer artists, writers, programmers, and puzzle designers. And, if you’re a smart teenager who wants to change education for the better, you should come join Hack Club!


A Potential Major Discovery: An Aperiodic Monotile

an aperiodic monotile

The authors of a new preprint paper claim that they’ve discovered what’s called an aperiodic monotile, a single shape that can cover a two-dimensional space with a pattern that never repeats itself exactly. One of the authors, Craig Kaplan, explains on Mastodon:

How small can a set of aperiodic tiles be? The first aperiodic set had over 20000 tiles. Subsequent research lowered that number, to sets of size 92, then 6, and then 2 in the form of the famous Penrose tiles.

Penrose’s work dates back to 1974. Since then, others have constructed sets of size 2, but nobody could find an “einstein”: a single shape that tiles the plane aperiodically. Could such a shape even exist?

Taylor and Socolar came close with their hexagonal tile. But that shape requires additional markings or modifications to tile aperiodically, which can’t be encoded purely in its outline.

In a new paper, David Smith, Joseph Myers, Chaim Goodman-Strauss and I prove that a polykite that we call “the hat” is an aperiodic monotile, AKA an einstein. We finally got down to 1!

The full paper is here. You can play around with the tiles here & here and watch an animation of an infinite array of these monotiles.

If you’re looking for a quick explanation of what aperiodic tiling is, check out the first 20 seconds of this video:

This video from Veritasium and this Numberphile one might also be helpful in understanding the concept. (thx, caroline)

Update: Siobhan Roberts wrote a good layperson’s account of the discovery and its import & implications. One of the paper’s authors discovered the hat shape while working with paper shapes:

“It’s always nice to get hands-on,” Mr. Smith said. “It can be quite meditative. And it provides a better understanding of how a shape does or does not tessellate.”


The Algorithmic Trick That Can Solve Rubik’s Cubes

Any Rubik’s Cube can be solved in 20 moves or less. The “meet in the middle” algorithmic trick can help a computer program solve a Cube in minutes or hours instead of millenia.

If you’re interested, there’s a lot more information about algorithms and Rubik’s Cubes in the video’s description.

See also MIT Robot Solves Rubik’s Cube in 0.38 Seconds and A Self-Solving Rubik’s Cube.


Cistercian Numerals

a series of symbols showing a different kind of base 10 number system

Cistercian numerals were invented by the Cistercian order of monks in the 13th century. Giuseppe Frisella explains how the notation system works:

A vertical straight line acts as an axis dividing the plane into four quadrants, each one representing one of the four digits: the upper right quadrant for the units, the upper left quadrant for the tens, the lower right quadrant for the hundreds, and the lower left quadrant for the thousands.

What this does well, indeed better than the roman or Arabic numeral systems it’s related to, is to represent both small and large numbers (1 up to 9999) in a single glyph. What it doesn’t do well, compared to roman or Arabic systems, is allow you to reduce operations on large numbers to operations on smaller ones. There’s no long division, in other words — and even addition and multiplication aren’t very straightforward.

So you might think about this as a kind of mathematical compression system, optimizing for storage rather than operations. If you just need to record a number — say, a four-digit year — you can do it quickly and in a minimum amount of space in the Cistercian system. If you need to do bookkeeping, then the Arabic numerals are probably what you want.

But if you’ve read this far, you’re probably thinking what I usually think anytime I encounter something a little strange in the world of mathematical notation — what about aliens? One can imagine an alien species that can easily do simple arithmetic operations on what they would call small numbers (less than 10,000) in their heads (or has offloaded such tasks to machine), and which would correspondingly value the storage and computational efficiency of a system of numbers like this. Maybe Cistercian numerals, rather than the clumsy digits of our intellectual infancy, will be the best way to make ourselves understood when first contact begins.

(Via Clive Thompson)

Update: Shelby Wilson has created an easy-to-use Cistercian numeral generator. (Via Alex Miller)


Geometric Primes

detail of a poster that visualized prime numbers as geometric shapes

a poster that visualized prime numbers as geometric shapes

Nicholas Rougeux designed a series of posters to visualize all 143 prime numbers with three digits based on simple rules.

Each print contains all 143 prime numbers with 3 digits. Each is represented by an image composed of simple geometric shapes based on its digital root and colors based on its digits. Arranging these images sequentially creates colorful collages of prime numbers based on simple rules.

For each poster, a unique shape was assigned to the digital root of each prime number which is calculated by iteratively summing its digits until one remains. (All known prime numbers greater than 3 have digital roots of 1, 2, 4, 5, 7, or 8.)

There are nine posters in all that use a few different styles of geometric shape.


The Topologist’s Map of the World

The Topologist's Map of the World

After seeing an abstract US map where the borders between the states were preserved but the shapes of the individual states were not, Tom Comerford was inspired to design what he calls The Topologist’s Map of the World.

I describe this a a topologist’s map because topology is a branch of mathematics concerned with the way that space is connected. In topology it’s common to think of stretchy, distortable surfaces that can be moved around without being punctured or torn.

With many connections to other countries and bodies of water, countries like Russia, India, Brazil, and China are prominent on the map while the US, which only borders two other countries, is a tiny box in the corner. (via hacker news)


Vintage-Style Map of the Mandelbrot Set

a vintage-style map of the Mandelbrot set

Bill Tavis designed this lovely vintage-style map of the familiar fractal shape, the Mandelbrot set. He is selling a poster version of the map, starting at the very reasonable price of $24. I don’t usually highlight the price on this sort of thing, but an unauthorized seller on Amazon was selling poor-quality counterfeits of the map and even though it wasn’t his fault, Tavis offered to replace any of the crappy maps for free. Great map, and apparently a great human who made it.

I found Tavis’s map when I was searching for the creator of this similarish map that I found on Twitter (bigger here).

a vintage-style map of the Mandelbrot set

Anyone know who made this version? Jonny Laser made the map in the second image for VSauce (scroll down a bit). (thx, kirsten)


Why Algorithms Are Called Algorithms

Because of their relevance to social media, the algorithm has become an everyday concept. Why do we see the posts we see on Instagram or TikTok? Oh, it’s the algorithm. This video from BBC Ideas explains that the term has its roots in the work of 9th century Persian mathematician Muḥammad ibn Mūsā al-Khwārizmī, who also gave the world the word “algebra”. (via the morning news)


Math on Screen

Simpsons - Homer Simpson writes mathematical equations (some of them wrong) on a blackboard

Mathematics isn’t the most obviously cinematic academic discipline out there, but it is one that the movies (and to a lesser extent television) have repeatedly tried to understand, or in some cases, used to goose up a vaguely science-y story. Unsurprisingly, mathematicians often become sticklers for detail in such high-profile depictions of what they do, and a good or bad portrayal can become famous or infamous.

My friend Jordan Ellenberg, a math professor at the University of Wisconsin-Madison, is also an expert in translating math to popular audiences, in his books and sometimes on screen. In this video, he takes a look at some popular representations of math in TV and the movies, and tries to explain what’s going on, including what the filmmakers do well or not so well.

Good Will Hunting’s use of math is famously bad, and Ellenberg unsurprisingly agrees (although, surprisingly, he had never before seen the movie or even the math scenes in question). Portrayals that get a perhaps-surprisingly high score include The Simpsons (which includes several former mathematicians among its writers) and Jurassic Park — Jeff Goldblum pulls off a passable explanation of chaos theory while also eerily accurately capturing the slightly-creepy vibe of a neurotic academic asked to describe what he studies to a layperson. “He was the one who I most felt might have spent a long time studying mathematicians and truly trying to give off a mathematician vibe,” says Ellenberg.

One thing I love is Ellenberg’s attention to how each of the on-screen mathematicians write (if they do any writing themselves at all, rather than ponder something that’s already been written by a character offscreen) — the connection between math and writing is so powerful, and math is one of the great remaining repositories of manuscript culture (even as it’s also taken on computers and machines, like everything else).

Ellenberg also adds that the most important thing a movie about mathematics can do is to convey to the audience that being a mathematician is something real, ordinary people still do, rather than being just a bunch of old dead men wearing robes.


Fun Algorithmic, Puzzle, and Mathematical Typefaces

The father-son duo of Martin and Erik Demaine make typefaces that are algorithmic, mathematical, or puzzle-like in nature. For instance, here’s their Tetris font, where each letter is made up of the seven possible Tetris pieces:

a typeface where each letter is made from Tetris pieces

Or their newest one, Everything, where each letter can be folded into any other letter:

a sample of a typeface where each letter can be 'folded' into any other letter

Everything to everything. This typeface illustrates how to fold any letter into any other letter, or more precisely, how to fold a piece of paper in the shape of any letter into the shape of any other letter. This lets you write one message inside another in a couple of ways. On the one hand, you could present the 6x6 crease patterns whose silhouettes look like one message (first text), and folding them reveals another message (second text). On the other hand, you could present the folded forms (as physical objects) whose silhouettes look like one message (second text), and unfolding them reveals another message (first text).

From a recent-ish profile of the Demaines and their typefaces in the NY Times:

In a 2015 paper, “Fun With Fonts: Algorithmic Typography,” the Demaines explained their motivations: “Scientists use fonts every day to express their research through the written word. But what if the font itself communicated (the spirit of) the research? What if the way text is written, and not just the text itself, engages the reader in the science?”

Inspired by theorems or open problems, the fonts — and the messages they compose — can usually be read only after solving the related puzzle or series of puzzles.

You can check out the rest of their typefaces on their website — they include fonts with infinitely tiling letters, Sudoku puzzle fonts, and a font whose letters are made up of shapes that can be packed into a 6x6 square. So fun!


Simpson’s Paradox, a Mindblowing Statistical Gotcha

Even for mathematically minded folks, statistics can be hard to grasp. Take statistical paradoxes for example: Simpson’s Paradox is a real mind-boggler. Ryan Anderson explains this paradox in a recent issue of Why is this interesting?

It’s simple to describe, yet it still stops me in my tracks when I see it in the wild. The paradox is that a measurable effect on a large population disappears, or even reverses when that population is split into subgroups. The cause of these results is almost always a material change in the denominators from one period to the next.

Showing is easier than telling with paradoxes, so here is a classic example: In 1995 and 1996, David Justice had a higher batting average than Derek Jeter in each year. However, Jeter had a higher cumulative batting average over those two years.

It’s true; look:

comparison of batting averages

Anderson continues:

How does this work? Jeter’s 1996 stats accounted for over 92% of his total performance over the two years, as he was 20 years old and only called up to the major league for a few games in 1995. Meanwhile, Justice’s 1996 stats were only 25% of his total performance due to a separated shoulder he suffered barely two months into the season. So while Justice performed better on smaller sample size, Jeter’s 183 hits in 1996 were the strongest signal for overall performance.

Read the rest of the piece; he goes on to connect statistical paradoxes to efforts to mislead people about the pandemic and vaccine effectiveness.

Update: A pair of videos on Simpson’s Paradox, in case you need some more explanation or examples.

(thx, @JunieGrrl)


An Infinite Hotel Runs Out of Rooms

This video from Veritasium is a nice explanation of the mathematician David Hilbert’s paradox of the Grand Hotel, which illustrates that a hotel with an infinite number of rooms can still accommodate new guests even when it’s full. Until it can’t, that is. See also Steven Strogatz’s explanation of Hilbert’s infinite hotel and how Georg Cantor’s discovery of different types of infinities complicated the hotel’s hospitality. (via digg)


The Secret of Synchronization

What do swaying bridges, flashing fireflies, clapping audiences, the far side of the Moon, and beating hearts have in common? Their behavior all has something to do with synchronization. In this video, Veritasium explains why and how spontaneous synchronization appears all the time in the physical world.

I was really into the instability of the Millennium Bridge back when it was first opened (and then rapidly closed), so it was great to hear Steven Strogatz’s explanation of the bridge’s failure.

Oh, and do go play with Nicky Case’s firefly visualization to see how synchronization can arise from really simple rules.


New Alan Turing £50 Banknote Revealed

50 Pounds Turing

The Bank of England unveiled the final design of the new £50 banknote honoring mathematician and computer scientist Alan Turing.

Commenting on the new note, Governor Andrew Bailey said: “There’s something of the character of a nation in its money, and we are right to consider and celebrate the people on our banknotes. So I’m delighted that our new £50 features one of Britain’s most important scientists, Alan Turing. Turing is best known for his codebreaking work at Bletchley Park, which helped end the Second World War. However in addition he was a leading mathematician, developmental biologist, and a pioneer in the field of computer science. He was also gay, and was treated appallingly as a result. By placing him on our new polymer £50 banknote, we are celebrating his achievements, and the values he symbolises”.

The note will be placed into circulation beginning June 23, 2021. As part of the introduction of the note, GCHQ (the successor agency to the one Turing worked for) has created a series of 12 puzzles for folks to decipher. Good luck!


Let’s Clear This Up: What Does 95% Covid-19 Vaccine Efficacy Actually Mean?

In popular press and social media, there’s been a misunderstanding of what is actually meant when scientists say that the Pfizer and Moderna Covid-19 vaccines have an efficacy of 94-95%. It does not mean that 95% of vaccinated people are protected from infection — these vaccines are better than that. Dr. Piero Olliaro explains in a letter to The Lancet:

The mRNA-based Pfizer and Moderna vaccines were shown to have 94-95% efficacy in preventing symptomatic COVID-19, calculated as 100 x (1 minus the attack rate with vaccine divided by the attack rate with placebo). It means that in a population such as the one enrolled in the trials, with a cumulated COVID-19 attack rate over a period of 3 months of about 1% without a vaccine, we would expect roughly 0.05% of vaccinated people would get diseased.

Another way to put it: you’re 20 times less likely to get Covid-19 with a vaccine than without. (And again, data indicates these are safe vaccines.) Olliaro explains with some simple math:

If we vaccinated a population of 100,000 and protected 95% of them, that would leave 5000 individuals diseased over 3 months, which is almost the current overall COVID-19 case rate in the UK. Rather, a 95% vaccine efficacy means that instead of 1000 COVID-19 cases in a population of 100,000 without vaccine (from the placebo arm of the abovementioned trials, approximately 1% would be ill with COVID-19 and 99% would not) we would expect 50 cases (99.95% of the population is disease-free, at least for 3 months).

And of course if you vaccinate widely, it becomes a compounding situation because the virus just runs out of people to infect.


Lava Lamps Help Keep The Internet Secure??

Web performance and security company Cloudflare uses a wall of lava lamps to generate random numbers to help keep the internet secure. Random numbers generated by computers are often not exactly random, so what Cloudflare does is take photos of the lamps’ activities and uses the uncertainty of the lava blooping up and down to generate truly random numbers. Here’s a look at how the process works:

At Cloudflare, we have thousands of computers in data centers all around the world, and each one of these computers needs cryptographic randomness. Historically, they got that randomness using the default mechanism made available by the operating system that we run on them, Linux.

But being good cryptographers, we’re always trying to hedge our bets. We wanted a system to ensure that even if the default mechanism for acquiring randomness was flawed, we’d still be secure. That’s how we came up with LavaRand.

LavaRand is a system that uses lava lamps as a secondary source of randomness for our production servers. A wall of lava lamps in the lobby of our San Francisco office provides an unpredictable input to a camera aimed at the wall. A video feed from the camera is fed into a CSPRNG [cryptographically-secure pseudorandom number generator], and that CSPRNG provides a stream of random values that can be used as an extra source of randomness by our production servers. Since the flow of the “lava” in a lava lamp is very unpredictable, “measuring” the lamps by taking footage of them is a good way to obtain unpredictable randomness. Computers store images as very large numbers, so we can use them as the input to a CSPRNG just like any other number.

(via open culture)


Half-Century Mix: 50 Songs from the Last 50 Years

DJ Earworm has made a chronological mix of songs, one from each year from 1970 to 2020.1 The Jackson 5 flows into Rod Stewart, Def Leppard into Milli Vanilli, Eric Clapton into Chumbawamba into The Verve, Shakira into Rihanna, and Ed Sheeran into Justin Bieber. Go on then, take a ride.

  1. Ok, the title says “50 Songs from the Last 50 Years” but 1970 to 2020 is really 51 years (and therefore 51 songs). This is a common counting challenge, source of many off-by-one errors in software engineering. The way I learned to deal with it in grade school math class (and how I still think about it) is: are you counting fence posts or the gaps between them? So, a person born in 1970 turned 50 years old in 2020 but a song from each year from 1970 to 2020 totals 51 songs.

    Anyway, I fudged the title to the nice round number of 50. I’m fun at parties!


Q: What Is a Hole? A: We’re Not Sure!

How many holes does a donut have? That’s pretty easy: one. What about a straw? Two (one at each end) or just one? (Isn’t a straw just an elongated donut?) Does a coffee mug have one hole or two? Does a bowl have a hole? If no, then what about a hole in the ground or a hole in a wall that doesn’t pass all the way through? Does a basketball have a hole? A Reddit user asked 1600 people how many holes were in various objects and the results are fantastically all over the place.

How Many Holes

This is a trivial question, but it reveals something interesting about people’s perceptions. The dictionary definition of “hole” includes two main meanings for the purposes of this question: “an opening through something” and “a hollowed-out place”. Mathematics offers another possible meaning:

A hole in a mathematical object is a topological structure which prevents the object from being continuously shrunk to a point. When dealing with topological spaces, a disconnectivity is interpreted as a hole in the space. Examples of holes are things like the “donut hole” in the center of the torus, a domain removed from a plane, and the portion missing from Euclidean space after cutting a knot out from it.

But a hole isn’t clearly defined in math or topology. From What We Talk about When We Talk about Holes in Scientific American:

Here’s my short answer that is also the reason I’m not an algebraic topologist. If you can put it on a necklace, it has a one-dimensional hole. If you can fill it with toothpaste, it has a two-dimensional hole. For holes of higher dimensions, you’re on your own.

That answer isn’t very satisfying. Is there a better way to describe holes? I talked with some of my topologist friends and discovered two things: topologists don’t all agree on what a hole is, and it’s fun and interesting to think about different interpretations of a word whose mathematical definition isn’t completely settled. I think my larger conclusion, in the spirit of the season, is that holes are like Santa Claus: the true meaning is in your heart.

No wonder those poll results are all over the place. But at the same time, it’s interesting that many more people say that donuts have a hole than washers or rubber bands. I guess donut holes have better marketing? As for straws — reason tells me they only have one hole but I know in my heart they have two. (via the whippet)


Anthony Fauci: USA on Track for 100,000 Covid-19 Cases Per Day

US Covid Stupid Graph

The director of the National Institute of Allergy and Infectious Diseases, Anthony Fauci, told a Senate committee today that the US could be heading towards 100,000 new reported cases of Covid-19 per day. 100,000 cases per day. Yesterday the US recorded about 40,000 new cases.

“It is going to be very disturbing, I will guarantee you that,” he said.

“What was thought to be unimaginable turns out to be the reality we’re facing right now,” Fauci said, adding that “outbreaks happen, and you have to deal with them in a very aggressive, proactive way.”

Fewer than 20 countries have recorded more than 100,000 cases in total. Canada, for instance, has confirmed about 106,000 Covid-19 cases since the outbreak began.

Public health and infectious diseases experts, who have been gravely concerned about the way the U.S. response has unfolded, concurred with Fauci’s assessment.

Bars and restaurants are reopening around the country without any serious effort to test/trace/isolate/support. In the absence of strident guidance from the federal government, people are worrying less about social distancing and wearing masks to protect others. As this guy says, it’s just a matter of math:

“It’s unfortunately just a simple consequence of math plus a lack of action,” said Marm Kilpatrick, an infectious diseases dynamics researcher at the University of California, Santa Cruz. “On the one hand it comes across as ‘Oh my God, 100,000 cases per day!’ But then if you actually look at the current case counts and trends, how would you not get that?”

Absolutely nothing has changed about the virus, so its spread is determined by pretty simple exponential growth.

Limiting person-to-person exposure and decreasing the probability of exposures becoming infections can have a huge effect on the total number of people infected because the growth is exponential. If large numbers of people start doing things like limiting travel, cancelling large gatherings, social distancing, and washing their hands frequently, the total number of infections could fall by several orders of magnitude, making the exponential work for us, not against us. Small efforts have huge results.

We’ve known for months (and epidemiologists and infectious disease experts have known for their entire careers) what works and yet the federal government and many state governments have not listened and, in some cases, have actively suppressed use of such measures. So the pandemic will continue to escalate in the United States until proper measures are put in place by governments and people follow them. The virus will not change, the mathematics will not change, so we must.

Graph at the top of the post via Rishi Desai.


Nature By Numbers

This lovely short film by Cristóbal Vila shows how the simple Fibonacci sequence manifests itself in natural forms like sunflowers, nautilus shells, and dragonfly wings.

See also Arthur Benjamin’s TED Talk on the Fibonacci numbers and the golden ratio and the Fibonacci Shelf. (via @stevenstrogatz)


On the Accuracy of Covid-19 Testing

As someone who suspects I may have had a mild case of Covid-19 a couple of months ago, I’ve been thinking about getting tested for antibodies. But as this video from ProPublica shows, even really accurate tests may not actually tell you all that much.

And the thing is, the “do I have Covid-19 right now” tests are plagued by the same issue.

For patients getting tested, the main concern is how to interpret the outcome: If I test negative with an RT-PCR genetic test, what are the chances I actually have the virus? Or if I test positive with an antibody test, does it actually mean I have the antibodies?

It turns out that the answers to these questions don’t just hinge on the accuracy of the test. “Mathematically, the way that works out, that actually depends on how many people in your area have Covid,” Eleanor Murray, an assistant professor of epidemiology at the Boston University School of Public Health, said.

The rarer the disease in the population, the less you’ll learn by testing.

Let’s say we have a hypothetical Covid-19 test for antibodies that is both 99 percent sensitive — meaning almost all people with antibodies will test positive — and 99 percent specific, meaning almost all people who were never infected will yield a negative result.

If you test a group of 100 uninfected people, odds are one of them will still test positive even though they don’t have the virus. Conversely, if you test 100 people who were infected, it’s likely one of them will still test negative.

Now let’s presume the virus has a prevalence rate of 1 percent, so one person in 100 carries antibodies to it. If you test 100 random people and get a positive result, what is the chance that this person was truly infected?

Deborah Birx, the White House Covid-19 response coordinator, explained the answer at a press conference on April 20: “So if you have 1 percent of your population infected and you have a test that’s only 99 percent specific, that means that when you find a positive, 50 percent of the time will be a real positive and 50 percent of the time it won’t be.”

So even if I test positive for antibodies and I assume that confers immunity, given that the number of confirmed infections in Vermont is so low (~900 statewide), it doesn’t seem like I would be justified in changing my behavior at all. I would still have to act as though I’ve never had the virus, both for my own health and the health of those around me. Maybe if I had two or three corroborating tests could I be more certain…


Simulating Many Scenarios of an Epidemic

Back when the COVID-19 pandemic was beginning to be taken seriously by the American public, 3blue1brown’s Grant Sanderson released a video about epidemics and exponential growth. (It’s excellent — I recommend watching it if you’re still a little unclear on how things are got so out of hand so quickly in Italy and, very soon, in NYC.) In his latest video, Sanderson digs a bit deeper into simulating epidemics using a variety of scenarios.

Like, if people stay away from each other I get how that will slow the spread, but what if despite mostly staying away from each other people still occasionally go to a central location like a grocery store or a school?

Also, what if you are able to identify and isolate the cases? And if you can, what if a few slip through, say because they show no symptoms and aren’t tested?

How does travel between separate communities affect things? And what if people avoid contact with others for a while, but then they kind of get tired of it and stop?

These simulations are fascinating to watch. Many of the takeaways boil down to: early & aggressive actions have a huge effect in the number of people infected, how long an epidemic lasts, and (in the case of a disease like COVID-19 that causes fatalities) the number of deaths. This is what all the epidemiologists have been telling us — because the math, while complex when you’re dealing with many factors (as in a real-world scenario), is actually pretty straightforward and unambiguous.

The biggest takeaway? That the effective identification and isolation of cases has the largest effect on cutting down the infection rate. Testing and isolation, done as quickly and efficiently as possible.

See also these other epidemic simulations: Washington Post and Kevin Simler.

Note: Please keep in mind that these are simulations to help us better understand how epidemics work in general — it’s not about how the COVID-19 pandemic is proceeding or will proceed in the future.


An Epidemic Graphing Calculator

Epidemic Calculator

By manipulating values like R0, incubation time, and hospitalization rate with this this epidemic graphing calculator, you really get a sense of how effective early intervention and aggressive measures can be in curbing infection & saving lives in an exponential crisis like the COVID-19 pandemic.


The Power of the Individual in an Exponential Crisis

Over the past week or so, echoing public health officials & epidemiologists, I’ve been trying to illustrate the often counterintuitive concept of exponential growth that you see in an epidemic and how flattening the curve can help keep people healthy and alive. But I think people have a hard time grasping what that means, personally, to them. Like, what’s one person in the face of a pandemic?

Well, epidemiologist Britta Jewell had a similar thought and came up with this brilliantly simple graph, one of the best I’ve seen in illustrating the power of exponential growth and how we as individuals can affect change:

One Person Exponential

Jewell explains a bit more about what we’re looking at:

The graph illustrates the results of a thought experiment. It assumes constant 30 percent growth throughout the next month in an epidemic like the one in the U.S. right now, and compares the results of stopping one infection today — by actions such as shifting to online classes, canceling of large events and imposing travel restrictions — versus taking the same action one week from today.

The difference is stark. If you act today, you will have averted four times as many infections in the next month: roughly 2,400 averted infections, versus just 600 if you wait one week. That’s the power of averting just one infection, and obviously we would like to avert more than one.

So that’s 1800 infections averted from the actions of just one person. Assuming a somewhat conservative death rate of 1% for COVID-19, that’s 18 deaths averted. Think about that before you head out to the bar tonight or convene your book group as usual. Your actions have a lot of power in this moment; take care in how you wield it.