If you’re reading this and you’re also from the math community, this is an attempt to showcase some “global” ideas in the real world. If you’re from the math community and you’re curious about what this “global” thing is, you can learn more at Chapter 7 of the OTIS Excerpts. Nominally you could check out the wikipedia page, but I think that the explanation in OTIS Excerpts is better.
If you don’t have a math background, feel free to skip the “Two Canonical Math Examples” section. I think they’re pretty interesting and not too tricky, but I wouldn’t want to lose y’all with weird math.
NB: I will use the terms “Counting in Two Ways”, “Linearity of Expectation”, and “Double Counting” somewhat interchangeably because they are all basically the same concept.
Two Canonical Math Examples
The way that a lot of math people first come across double counting is through “Linearity of Expectation”, which is just double counting but divided through by the probability space.
In a barn, 100 chicks sit peacefully in a circle. Suddenly, each chick randomly pecks the chick immediately to its left or right. What is the expected number of unpecked chicks?
MATHCOUNTS 2017 National Countdown Round (Final Question). There’s also a news article about it at: https://www.nytimes.com/2017/05/15/us/math-counts-national-competition.html
Solution: The idea is it consider the probability that any specific chick is unpecked, which is 1/4. Thus, on the whole, 1/4 * 100 = 25 chicks will be unpecked on average.
However, I’m pretty sure that the canonical example is
Let G be a finite simple graph. Then the sum of all the degrees of vertices of G is twice the number of edges.
Folklore
Solution: Count the number of pairs (vertex, edge) where the edge passes through a vertex. The number of such pairs is the sum of the degrees if you choose the vertex first, and then choose an edge coming out of it. On the other hand, if you choose the edge first, there’s two vertices attached to it, so there are 2*|E| such pairs. These two values must be equal because they’re counting the same thing, and you’re done. yay!
Lotteries
The way that people usually claim that the lottery is a scam is by multiplying a bunch of numbers to find that the probability of winning. For examples, with a lot of calculations, the probability of winning the Mega Millions is “1 in 302,575,350”, and since the payout is less than 2$ * 302,575,350, you’d lose money on average. This is absurd though, it plays into the lottery’s abuse of human’s inability to intuitively grasp large numbers, and it’s so complicated that Khan Academy used it as a math exercise.
There’s a far simpler way to show that lotteries are a cash grab by the state. Instead of considering cash flow on the consumers end, consider it from the side of the government. (By law, lotteries must be run by the government) Even before taxes, a simple way to see that you cannot make money on it is the following quote:
“For Mega Millions (and Powerball) tickets, 50 percent of the sales goes to the prize pool. The remaining 50 percent is used to pay for the states’ retailer commissions, vendor fees, lottery administration, and the state beneficiaries or good causes of that state,” she told ABC News.
https://abcnews.go.com/US/mega-millions-lottery-lottery-money-states/story?id=58661412
Thus, on average, you will get back 50% of your ticket price. This is a lot simpler than figuring out the probabilities of each payout, and finding the expected payout that way.
But wait there’s more! When the payout finally happens, these massive sums of money are taxed at the highest interest bracket. The lottery is especially brilliant because it takes money from people who are usually lower income, and thus have untaxable money, and then put that together into one massive pot that can be taxed at the 50% maximum tax rate (federal + state taxes).
Somewhat expectedly, Vox says that
You hear it a lot: The lottery is a tax on people who are bad at math.
https://www.vox.com/identities/2016/1/13/10763268/lottery-poor-prey
But even the people who are “good at math” and calculate the probabilities are thinking about it in the wrong way. It is far simpler to consider it from the dual questions of “why does the government bother doing this?” and “what’s their profit margin?”
Economic Production and Energy Consumption
A surprising example of a nonmathematician using these ideas is Li Keqiang, the current Premier of the PRC. The story goes that in order to measure economic growth, he created his own list of indicators to track because he did not trust GDP estimates. The Li Keqiang index tracks railway cargo volume, electricity consumption, and loans disbursed by banks.
This is another example of double counting because instead of calculating GDP as the sum of all economic activities, (calculating sum_{v\in G} deg v in the first example), one can simply record some economic indicators which should go up with economic activity instead. (like counting 2*|E|).
Pyramid Schemes
Another fun double counting example is this scam that went around on instagram awhile ago. I happened across it when I went on instagram for the first time in a week.

I’m looking for people to participate in a huge book exchange pyramid scheme. You can be anywhere in the world. All you have to do is buy your favorite book (just one) and send it to a stranger (I’ll send their details through in a private message).
You’ll receive roughly a maximum of 36 books back to you, to keep (we have sponsors or something). They’ll be favorite books from strangers around the world!
If you’re interested in taking part, please send a message saying “GULLIBLE”
My satirical version which I posted to my story. It got shoutouted/reposted by a Choate meme account 🙂
This is absurd by double counting. Firstly, this is obviously a pyramid scheme and some people will end up with no books because it’s impossible for everyone to receive more books than they buy.
Formally though, this violates the fact that in a directed graph, the sum of indegrees = number of edges = sum of outdegrees. (indegree is the number of arrows pointing to a graph, corresponding to buying a book for someone, and outdegree is the number of outward pointing arrows, corresponding to getting a book bought for you.)
Fermi Problems
Finally, this idea works pretty well in Fermi problems. Pretty much all Fermi problems where you don’t follow the most obvious thought process is a form of Double Counting. My favorite Fermi problem/solution pair is an answer to
“ How many hairs are present on your head?”
Instead of directly counting, we consider the balding process. Usually men lose hair and eventually go bald over the period from age 50 to age 80, so a period of 30 years. You don’t hear about balding men losing more hair than young people, and it seems reasonable to lose around 20 hairs a day. This gives
20 hairs/day * 30 years * 365 days/year = 219,000 hairs
The actual answer is ~100,000, which is surprisingly close to the estimate generated by considering balding men.
Conclusion
There’s a lot of olympiad math ideas which are extremely powerful in math, but also very useful in real life. There are people like Li Keqiang who have a decent informal grasp of ideas like counting in two ways. However, understanding the formal mathematical version makes the usage more conscious and therefore more powerful.
There’s two other ideas that I want to talk about, sharp ness and equality[1]. These are more philosophical, but they are also very powerful.
One thing I need to figure out is whether showing the informal examples first, and then the math, would be more accessible to a non-mathematical reader. I might try doing that in the post about sharpness or equality.
I guess leave a comment about which structure you would prefer?
[1] Unfortunately unaccessible if you’re not in OTIS 🙁 There doesn’t seem to be any good online source on what equality is, so this means that I’ll probably write about equality next.