<?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 Jon Simon on Medium]]></title>
        <description><![CDATA[Stories by Jon Simon on Medium]]></description>
        <link>https://medium.com/@jon-simon?source=rss-f4ea01c5978f------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*Tn_uhlauWYY8Xaw4sWVcTA.jpeg</url>
            <title>Stories by Jon Simon on Medium</title>
            <link>https://medium.com/@jon-simon?source=rss-f4ea01c5978f------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Tue, 24 Nov 2026 22:17:01 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@jon-simon/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[What’s the Best Starting Wordle Word?]]></title>
            <link>https://jon-simon.medium.com/whats-the-best-starting-wordle-word-81376e2bcbbf?source=rss-f4ea01c5978f------2</link>
            <guid isPermaLink="false">https://medium.com/p/81376e2bcbbf</guid>
            <category><![CDATA[word-game]]></category>
            <category><![CDATA[probability]]></category>
            <category><![CDATA[puzzle]]></category>
            <category><![CDATA[words]]></category>
            <category><![CDATA[wordle]]></category>
            <dc:creator><![CDATA[Jon Simon]]></dc:creator>
            <pubDate>Sat, 08 Jan 2022 02:51:31 GMT</pubDate>
            <atom:updated>2022-01-10T23:27:52.353Z</atom:updated>
            <content:encoded><![CDATA[<h4>Frequencies of letters in Wordle words, for fun and strategy</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/648/1*MSvEdIHph8IZztURsOMHrA.png" /></figure><p>I was recently turned on to the great word game <a href="https://www.powerlanguage.co.uk/wordle/">Wordle</a>, it’s basically the classic “guess the hidden sequence” game <a href="https://en.wikipedia.org/wiki/Mastermind_(board_game)">Mastermind</a>, but with words instead of color sequences.</p><p>The general strategy is clear: Start off guessing words containing a variety of letters, and then as you receive feedback about which letters were correct, try to guess words incorporating those letters.</p><p>The question is, before you’ve received any feedback, what’s the best word to guess?</p><h4>The Best Starting Word</h4><p>The way the game is designed, all words are common 5-letter Engish words. Specifically, they come from a set of 2500 common English words <a href="https://www.nytimes.com/2022/01/03/technology/wordle-word-game-creator.html">hand-picked by the creator’s partner</a>.</p><p>We can create a comparable dataset for ourselves by grabbing the few thousand most common 5-letter words from the <a href="https://www.kaggle.com/rtatman/english-word-frequency">Google Web Trillion Word Corpus</a>.</p><p>We can then ask, for each of the 26 letters in the English alphabet, how many of these 5-letter words contain that letter? This results in the following set of counts:</p><blockquote>E : 1892<br>A : 1683<br>S : 1564<br>R : 1335<br>O : 1219<br>I : 1196<br>N : 1079<br>…<br>F : 306<br>W : 272<br>V : 241<br>X : 114<br>J : 87<br>Z : 79<br>Q : 36</blockquote><p>In a game like Wordle you’re constantly negotiating a tradeoff between exploring new letters, and <a href="https://towardsdatascience.com/the-exploration-exploitation-dilemma-f5622fbe1e82">exploiting</a> the information about the letters you already have. However on the first turn you have no information to exploit, therefore your best strategy is to explore as many letters as possible, prioritizing those which are most likely to be present in the word.</p><p>Therefore the best first Wordle word is one which contains the 5 most common letters: E, A, S, R, and O.</p><p>And as it turns out, there is <a href="https://unscramblex.com/anagram/easro">only one</a>* 5-letter English word which contains all of these letters: <strong>AROSE</strong></p><p>This is the word you should be playing if you want to maximize the number of letters you guess correctly on the first turn.</p><p>Happy Wordle’ing!</p><p><strong>*EDIT:</strong> It turns out <a href="https://matt-rickard.com/wordle-whats-the-best-starting-word/">there’s another</a> English word containing this combination of letters that’s even better: <strong>SOARE</strong></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=81376e2bcbbf" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[What Does Transformer Self-Attention Actually Look At?]]></title>
            <link>https://medium.com/data-science/what-does-transformer-self-attention-actually-look-at-5318df114ac0?source=rss-f4ea01c5978f------2</link>
            <guid isPermaLink="false">https://medium.com/p/5318df114ac0</guid>
            <category><![CDATA[machine-learning]]></category>
            <category><![CDATA[transformers]]></category>
            <category><![CDATA[naturallanguageprocessing]]></category>
            <category><![CDATA[nlp]]></category>
            <category><![CDATA[neural-networks]]></category>
            <dc:creator><![CDATA[Jon Simon]]></dc:creator>
            <pubDate>Sun, 12 Dec 2021 06:03:31 GMT</pubDate>
            <atom:updated>2021-12-15T05:26:05.074Z</atom:updated>
            <content:encoded><![CDATA[<h4>A deep dive into BERT’s attention heads</h4><p><strong>Background: Transformers, Self-Attention, and BERT</strong></p><p>In the past few years the progress on natural language understanding has <a href="https://www.forbes.com/sites/louisaxu/2021/12/01/a-golden-age-for-natural-language/">exploded</a>, thanks largely to the new neural network architecture known as the <a href="https://jalammar.github.io/illustrated-transformer/">Transformer</a>. The main architectural innovation of the Transformer model has been the extensive use of so-called <a href="https://towardsdatascience.com/illustrated-self-attention-2d627e33b20a">“self-attention”</a>, so much so that the paper introducing the model was titled <a href="https://arxiv.org/abs/1706.03762">“Attention is All You Need”</a>. The self-attention mechanism encodes each input as a function of all of the other inputs, helping algorithmetize the intuitive notion of contextuality in language.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/687/0*5H6xAEoDFlvVnMAA.gif" /><figcaption>Example usage of <a href="https://copilot.github.com/">GitHub Copilot</a> to instantiate a complex object by looking only at its class signature and preceding boilerplate. Copilot was created by training a Transformer model on open source code from Github. (<a href="https://towardsdatascience.com/tips-for-using-github-copilot-in-everyday-python-programming-8ef9e91a9b47">What can GitHub copilot do for Data scientists?</a>)</figcaption></figure><p>Since its introduction in 2017, the Transformer architecture has branched off into multiple subfamilies, most notably those of the causal decoder variety (<a href="https://openai.com/blog/better-language-models/">GPT-2</a>, <a href="https://arxiv.org/abs/2005.14165">GPT-3</a>) which are trained to predict the next word in a sequence, and those of the encoder variety (<a href="https://arxiv.org/abs/1810.04805">BERT</a>, <a href="https://arxiv.org/abs/1910.10683">T5</a>, <a href="https://blog.google/products/search/introducing-mum/">MUM</a>) which are trained to fill-in-the-blank at arbitrary positions in a sequence. Each has its own strengths and weaknesses, but for the purposes of this article we will be focusing on the encoder variety, particularly BERT.</p><p><strong>BERT Architecture Refresher</strong></p><p><a href="https://arxiv.org/abs/1810.04805">BERT</a> is designed to be a very general language encoder model which can be repurposed for many different types of tasks without the need for changes to its architecture. It achieves this by receiving inputs in the general form of word tokens* with a special [CLS] token at the start, and a special [SEP] token after each piece of text. (*technically <a href="https://towardsdatascience.com/wordpiece-subword-based-tokenization-algorithm-1fbd14394ed7">WordPiece</a> tokens)</p><p>This sequence of inputs is then converted to vector embeddings, which get repeatedly re-encoded with respect to one another via the self-attention mechanism (more on that later), with each subsequent re-encoding maintaining the same sequence length.</p><p>In this way any task that receives multiple inputs, say a paragraph of text + a question about the text, can be naturally passed in as [SEP]-demarcated token sequences. And similarly any task that expects a classification to be made, such as “does the input have negative sentiment or positive sentiment?” can be naturally outputted via the final layer’s [CLS] token embedding.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*fUMpqBZb1RyykmUfajNJ6g.png" /><figcaption>Illustration of how BERT digests the input “The boy rode a horse” + “It was fun”. The input tokens are converted into embeddings which are then repeatedly reencoded by each layer. The final embedding of the special [CLS] token can be used to perform a classification. (Image by author)</figcaption></figure><p>For the base BERT model there are 12 layers, and each layer contains 12 attention heads, making for 144 attention heads in total. The attention operation is somewhat involved (for a detailed walkthrough see <a href="https://towardsdatascience.com/illustrated-self-attention-2d627e33b20a">Illustrated: Self-Attention</a>), but the important thing to know is, for each attention head:</p><ol><li>Each input is assigned three vectors: a Key a Query, and a Value</li><li>To determine how much input i should “pay attention” to input j, we take the dot product of input i’s Query vector with input j’s Key vector, rescale it, and pass it through a sigmoid.</li><li>We then use this resulting attention score to weight input j’s Value vector.</li></ol><p>Ok, with all of that introduction out of the way we can finally get to the interesting part.</p><p><strong>What BERT’s Attention Heads (Don’t) Look At</strong></p><p>Often when you hear a high level description of BERT’s attention, it’s followed by “and this allows the attention heads to learn <a href="https://arxiv.org/abs/1905.05950">classic NLP relationships</a> all on their own!” followed by a provocative graphic like this:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*K0Mz3v5eqt9pBa1RV5qyXw.png" /><figcaption>One of BERT’s Layer 5 attention heads performing <a href="https://en.wikipedia.org/wiki/Coreference">coreference resolution</a>. “it” is attended to most strongly by its associated noun phrase “the dog”. (Image by author, generated using <a href="https://github.com/jessevig/bertviz">BertViz</a>)</figcaption></figure><p>And while it’s true that <em>some</em> attention heads learn to represent nice interpretable relationships like this, most of them don’t. <a href="https://arxiv.org/abs/1908.08593">Kovaleva et al. (2019)</a> group BERT’s attentional focus into 5 types:</p><ol><li><em>Vertical</em>: All tokens attend strongly to the same single other token, usually the [SEP] token.</li><li><em>Diagonal</em>: All tokens attend strongly either to themselves, or to a token with a constant offset, e.g. the token immediately after themselves.</li><li><em>Vertical + Diagonal</em>: A combination of the first two patterns.</li><li><em>Block</em>: Tokens attend strongly to other tokens within their [SEP]-demarcated block, and not to any of the tokens outside of that.</li><li><em>Heterogenous</em>: More complex, non-obvious patterns.</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*8-9MhCHOU5low2Zb" /><figcaption>Each grid represents the behavior of a particular attention head for a particular input. Position (i,j) in the grid denotes the strength of the attention of token i for token j. Shown here are inputs demonstrating the 5 characteristic attention patterns. (<a href="https://arxiv.org/abs/1908.08593">Kovaleva et al., 2019</a>)</figcaption></figure><p>The interesting thing is that when you look at how common each of these attentional patterns are, you find that the Heterogenous + Block patterns, aka the only ones that do anything interesting, only account for the typical behavior of <em>half</em> of the attention heads. And even more bizarrely the Vertical pattern, which just stares at the same single token in all cases, characterizes <strong><em>a full third</em></strong> of the attention heads.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*G8BCUjW4wbNFIj69" /><figcaption>Fraction of inputs producing each attention pattern. Each bar represents a different set of inputs, all of which are tasks from the <a href="https://gluebenchmark.com/">GLUE</a> dataset. (<a href="https://arxiv.org/abs/1908.08593">Kovaleva et al., 2019</a>)</figcaption></figure><p>When you dig into the Vertical pattern, you find that most of the single-tokens being looked at are the [CLS], [SEP], and punctuation tokens. So, why on earth would a model as supposedly smart as BERT be spending so much of its valuable attentional resources looking at these uninformative tokens?</p><p>The theory about what’s going on here is that when an attention head stares at one of these stop-tokens, it acts like a no-op. So if whatever linguistic structures a particular attention head is tuned for aren’t present within the input, this allows it to “turn off”.</p><p><a href="https://arxiv.org/abs/2004.10102">Kobayashi et al. (2020)</a> dug into this strange finding further, and found that although the attention score on these tokens is high, the norm of the Value vector that is being multiplied with the attention score is very low. So low in fact that the final product winds up being near-zero.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*s_TXwVmpg0ZJdMTE" /><figcaption>The amount of attentional weight given to different token types in each layer. Left: Naive attention score, Right: Attention score weighted by the norm of the Value vector. (<a href="https://arxiv.org/abs/2004.10102">Kobayashi et al., 2020</a>)</figcaption></figure><p>The really funny thing is that because there are so many of these attention heads that are basically doing nothing, you can actually improve the model’s performance by removing certain attention heads! In fact for some tasks like <a href="https://paperswithcode.com/dataset/mrpc">MRPC</a> (determine if two sentences are equivalent) and <a href="https://paperswithcode.com/dataset/rte">RTE</a> (determine if one sentence implies another) removing a head <strong><em>at random</em></strong> is more likely to help performance than hurt it.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*WDOglm6zowP35Er9" /><figcaption>Task performance when disabling different attention heads. Orange line indicates the accuracy of the unaltered BERT model. Layer # shown on y-axis, head # shown on x-axis. Left: Performance on the MRPC task, Right: Performance on the RTE task. (<a href="https://arxiv.org/abs/1908.08593">Kovaleva et al., 2019</a>)</figcaption></figure><p><strong>What about the Useful Attention Patterns?</strong></p><p>Going back to the figure in the first section: It’s true that there are <em>some</em> attention heads in BERT which seem to be tuned to perform recognizable NLP subtasks. So, what are these heads, and what can they do?</p><p>Some attention heads are found to encode the same relationships as those of particular edges within <a href="https://web.stanford.edu/~jurafsky/slp3/14.pdf">Dependency Parse</a> trees. In particular, there are heads for which the strongest attention score for a given input (ignoring [CLS] and [SEP]) is consistently given to pairs of words having a <a href="https://universaldependencies.org/u/dep/">specific dependency relation</a>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*H8FiyJkM5G8kWyrL" /><figcaption>BERT heads encoding specific dependency relations. Left: <a href="https://universaldependencies.org/u/dep/obj.html">Direct Object</a> relation, Center: <a href="https://universaldependencies.org/u/dep/det.html">Determiner</a> relation, Right: <a href="https://universaldependencies.org/u/dep/nmod-poss.html">Possessive Modifier</a> relation. (<a href="https://arxiv.org/abs/1906.04341">Clark et al., 2020</a>)</figcaption></figure><p>Another complex and important task for many NLP systems is <a href="https://nlp.stanford.edu/projects/coref.shtml">coreference resolution</a>. This is the problem of determining when two words in a sentence refer to the same entity. To see why this is such a hard problem, consider the sentence “Sally gave Sarah a Mentos because her breath was bad.” In this case “her” refers to “Sarah”, but making this determination requires knowing that Mentos are used to alleviate bad breath, and are not some kind of apology gift.</p><p>This reliance on world knowledge renders this a very nontrivial task, yet Clark et al. find that Head #4 in Layer #5 correctly identifies (i.e. most strongly attends to) the coreferent with 65% accuracy, compared to only 27% for a system which selects the nearest mention as the coreferent.</p><p>Another route we can go is to look at what all of the attention heads learn <em>in aggregate</em>. Remember that dependency parse tree from earlier? One question we can ask is: For a given word pair, if we consider the attention scores produced by <em>all</em> of the attention heads in the network, can we figure out whether they should be connected by an edge in the dependency parse?</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*rZxzAP0zJP0pXBDE" /><figcaption>Creating a network-wide attention vector for a given word pair by aggregating the attention scores across all of the 144 attention heads (<a href="https://arxiv.org/abs/1906.02715">Coenen et al., 2019</a>)</figcaption></figure><p>It turns out that the answer is yes, a classifier constructed in this way can predict edges in the Dependency Parse with 85.8% accuracy, far higher than chance (<a href="https://arxiv.org/abs/1906.02715">Coenen et al., 2019</a>). Although as pointed out by <a href="https://arxiv.org/abs/2002.12327">Rogers et al. (2020)</a>, when constructing a classifier on top of a high-dimensional representation like this, it’s not always clear how much of the knowledge is contained in the underlying representation, vs how much is injected by the classifier.</p><p><strong>Final Thoughts</strong></p><p>There is <em>a lot</em> of research on this topic that I haven’t had time to touch on, such as what role different architectural decisions have in determining BERT’s capabilities (<a href="https://arxiv.org/abs/2108.04378">Ontañón et al., 2021</a>), what sorts of reasoning is being performed within different layers of BERT (<a href="https://arxiv.org/abs/1905.05950">Tenney et al., 2019</a>), and what the word-embeddings downstream of the attention heads encode (<a href="https://nlp.stanford.edu/pubs/hewitt2019structural.pdf">Hewitt &amp; Manning, 2019</a>).</p><p>So many of the headline papers are about the breakthrough capabilities that these sorts of enormous neural network models possess, but what’s always interested me most about the field was how such models work under the hood. And I think especially in cases like this, where we find that the much-touted attention mechanism spends a lot of time looking at useless tokens, that we realize just how poor our understanding of these models is. And I think this air of mystery makes them even cooler.</p><p><strong>Works Cited</strong></p><p>[1] J. Alammar, The Illustrated Transformer (2018), GitHub Blog</p><p>[2] R. Karim, Illustrated: Self-Attention (2019), Towards Data Science</p><p>[3] J. Vig, Deconstructing BERT, Part 2: Visualizing the Inner Workings of Attention (2019), Towards Data Science</p><p>[4] A. Keerthi, What can GitHub copilot do for Data scientists? (2021), Towards Data Science</p><p>[5] J. Devlin, M. Chang, K. Lee, and K. Toutanova, BERT: Pre-Training of Deep Bidirectional Transformers for Language Understanding (2019), ArXiv.org</p><p>[6] A. Rogers, O. Kovaleva, and A. Rumshisky, A Primer in BERTology: What We Know about How BERT Works (2020), ArXiv.org</p><p>[7] K. Clark, U. Khandelwal, O. Levy, and C. D. Manning, What Does BERT Look At? An Analysis of BERT’s Attention (2019), ArXiv.org</p><p>[8] O. Kovaleva, A. Romanov, A. Rogers, and A. Rumshisky, Revealing the Dark Secrets of BERT (2019), ArXiv.org</p><p>[9] G. Kobayashi, T. Kuribayashi, S. Yokoi, and K. Inui, Attention Is Not Only a Weight: Analyzing Transformers with Vector Norms (2020), ArXiv.org</p><p>[10] A. Coenen, E. Reif, A. Yuan, B. Kim, A. Pearce, F. Viégas, and M. Wattenberg, Visualizing and Measuring the Geometry of BERT (2019), ArXiv.org</p><p>[11] S. Ontañón, J. Ainslie, V. Cvicek, and Z. Fisher, Making Transformers Solve Compositional Tasks (2021), ArXiv.org</p><p>[12] I. Tenney, D. Das, E. Pavlick, Bert Rediscovers the Classical NLP Pipeline (2019), ArXiv.org</p><p>[13] J. Vig, A Multiscale Visualization of Attention in the Transformer Model (2019), ACL Anthology</p><p>[14] C. D. Manning, K. Clark, J. Hewitt, U. Khandelwal, and O. Levy, Emergent Linguistic Structure in Artificial Neural Networks Trained by Self-Supervision (2020), Proceedings of the National Academy of Sciences</p><p>[15] J. Hewitt and C. D Manning, A structural probe for finding syntax in word representations (2019), Association for Computational Linguistics</p><p>[16] M. Marneffe, B. MacCartney, and C. D. Manning, Generating typed dependency parses from phrase structure parses (2006), Lrec</p><p>[17] D. Jurafsky and J. H. Martin, Speech and Language Processing, Second Edition (2014), Pearson Education</p><p>[18] Universal Dependency Relations, UniversalDependencies.org</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=5318df114ac0" width="1" height="1" alt=""><hr><p><a href="https://medium.com/data-science/what-does-transformer-self-attention-actually-look-at-5318df114ac0">What Does Transformer Self-Attention Actually Look At?</a> was originally published in <a href="https://medium.com/data-science">TDS Archive</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Running with the Fibonacci Numbers]]></title>
            <link>https://jon-simon.medium.com/running-with-the-fibonacci-numbers-448da6391ebd?source=rss-f4ea01c5978f------2</link>
            <guid isPermaLink="false">https://medium.com/p/448da6391ebd</guid>
            <category><![CDATA[measurement]]></category>
            <category><![CDATA[science]]></category>
            <category><![CDATA[fibonacci]]></category>
            <category><![CDATA[running]]></category>
            <category><![CDATA[math]]></category>
            <dc:creator><![CDATA[Jon Simon]]></dc:creator>
            <pubDate>Wed, 27 Oct 2021 03:26:29 GMT</pubDate>
            <atom:updated>2021-10-27T03:26:29.687Z</atom:updated>
            <content:encoded><![CDATA[<h4>The surprising connection between distance measurements and a famous mathematical sequence</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*eKRP63XWg33NbnN5ejzDHw.jpeg" /></figure><p>If you’ve ever done any long-distance running, you’ve probably noticed that there’s a mishmash of distance measures used: meters, kilometers, miles. But if you convert the lengths of different races into alternate units, you notice something peculiar:</p><ul><li>5k race: 5km → 3.11mi ~ 3mi</li><li>8k race: 8km → 4.97mi ~ 5mi</li><li>Half-marathon: 13mi → 20.92km ~ 21km</li></ul><p>For one thing, all of the converted units are very close to exact integers. For another, all of these numbers, when rounded to the nearest integer, are part of the famous Fibonacci Sequence:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/313/0*cqLeUQcEc5CNsL4Q.png" /></figure><p>This is just <em>super</em> weird, right? What on earth could distance unit measurements have to do with the Fibonacci Sequence, which was created to model <a href="https://en.wikipedia.org/wiki/Fibonacci_number#History">rabbit population growth</a>?</p><h4>Fibonacci Numbers and the Golden Ratio</h4><p>The Fibonacci Sequence is generated using the simple rule that each number in the sequence is the sum of the two numbers that came before it. Assuming that the first two numbers in the sequence, Fib(1) and Fib(2), are both equal to 1, this gives:</p><ul><li>Fib(3) = Fib(1) + Fib(2) = 1 + 1 = 2</li><li>Fib(4) = Fib(2) + Fib(3) = 1 + 2 = 3</li><li>Fib(5) = Fib(3) + Fib(4) = 2 + 3 = 5</li><li>etc</li></ul><p>The Fibonacci numbers are closely tied to another famous mathematical constant, the <a href="https://en.wikipedia.org/wiki/Golden_ratio">golden ratio</a>.</p><p>The golden ratio, denoted by 𝜙, is defined as the ratio such that for two positive numbers a &amp; b, the ratio of a/b is the same as the ratio of (a+b)/a. When you do the algebra, you find that 𝜙 equals around 1.618.</p><p>This value turns out to have a special relationship with the Fibonacci numbers. Namely for a given pair of successive Fibonacci numbers, Fib(n) and Fib(n+1), the ratio of the two approximately equals the golden ratio. That is:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/250/0*tTyg9hfyYTC0l_tH" /></figure><p>Or equivalently:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/249/0*kcHpZ_qceBMSpg0h" /></figure><h4><strong>Converting from Miles to Kilometers</strong></h4><p>The mile and the kilometer have very different origins, with the mile being derived from <a href="https://www.mentalfloss.com/article/25108/why-are-there-5280-feet-mile-making-sense-measurements">the length of Roman paces</a>, and the kilometer being derived from <a href="https://en.wikipedia.org/wiki/Kilometre#History">the distance from the north pole to the equator</a>. Nonetheless there is a simple way to convert between them: Just multiply a distance in miles by ~1.609 to get the distance in kilometers.</p><p>Now coincidentally, this happens to be very close to the value of 𝜙≈1.618 described in the last section.</p><p>This therefore leads to the odd situation where, for no reason other than bizarre coincidence, you can multiply a distance in miles by the golden ratio, and approximately get the distance measured in kilometers.</p><h4><strong>Tying it all together</strong></h4><p>So now we have all of the pieces we need to understand why Fibonacci numbers keep popping up when we convert the lengths of races between miles and kilometers.</p><p><strong>Piece #1: </strong>Multiplying the n’th Fibonacci number by 𝜙 gives the (n+1)’th Fibonacci number</p><p><strong>Piece #2: </strong>Multiplying a distance in miles by ~1.609 gives the distance in kilometers</p><p><strong>Piece #3: </strong>The value of 𝜙 (~1.618) is coincidentally very close to this 1.609 value</p><p>This means that if our distance starts out as a Fibonacci number when measured in miles or kilometers, then it will continue to be a Fibonacci number when converted to the other unit.</p><p>Writing it out concretely, suppose <em>d</em> is the n’th Fibonacci number. Then:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/324/0*TOGZ-I1_Iwo_BCRG.png" /></figure><p>The same steps can be performed in reverse to go from Fib(n+1) kilometers to Fib(n) miles.</p><p>As for why so many long-distance races start out already being Fibonacci numbers (5km, 8km, 13mi), that is just a happy coincidence about the universe.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=448da6391ebd" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How to Convert from Celsius to Fahrenheit in your Head]]></title>
            <link>https://jon-simon.medium.com/how-to-convert-from-celsius-to-fahrenheit-in-your-head-8368ae7267cf?source=rss-f4ea01c5978f------2</link>
            <guid isPermaLink="false">https://medium.com/p/8368ae7267cf</guid>
            <category><![CDATA[travel-tips]]></category>
            <category><![CDATA[math]]></category>
            <category><![CDATA[lifehacks]]></category>
            <category><![CDATA[tricks]]></category>
            <category><![CDATA[traveling]]></category>
            <dc:creator><![CDATA[Jon Simon]]></dc:creator>
            <pubDate>Mon, 18 Oct 2021 02:31:07 GMT</pubDate>
            <atom:updated>2021-10-18T15:23:39.427Z</atom:updated>
            <content:encoded><![CDATA[<h4>A simpler formula than what you were taught in school</h4><h4><strong>The Simplified Formula</strong></h4><p>As an American who frequently travels abroad and has a European partner, I’m often faced with the problem of needing to convert temperatures from Celsius to Fahrenheit. The exact formula is a bit too complicated to do in your head, but thankfully there’s a simplified version that gives extremely accurate results. Given a temperature in Celsius you simply:</p><ol><li>Multiply by 2</li><li>Add 30</li></ol><p>That’s it, that’s the whole thing. (You can also go from °F→°C by inverting the steps: first subtract 30, then divide by 2.)</p><p>To show how accurate it is, see the graph below showing the exact formula alongside this approximate formula.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/402/1*LLzpBwZ1AsPYv6Gm6SFpPQ.png" /></figure><p>For temperatures within typical day-to-day ranges, the two differ by only a few degrees. In particular:</p><ol><li>Between 5°C and 15°C, the results differ by less than 1°F</li><li>Between 0°C and 20°C, the results differ by less than 2°F</li><li>Between -5°C and 25°C, the results differ by less than 3°F</li><li>Between -10°C and 30°C, the results differ by less than 4°F</li></ol><h4><strong>Why It Works</strong></h4><p>The exact formula for converting from Celsius to Fahrenheit as it’s taught in school is:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/161/0*7dMsRDWG3RmhW3eH.png" /></figure><p>The reason why this is hard to use directly is twofold:</p><ol><li>It’s awkward to mentally multiply 9/5</li><li>It’s awkward to mentally add 32</li></ol><p>So to simplify things we replace each of these values with the nearest nice round number:</p><ol><li>9/5 (=1.8) → 2</li><li>32 → 30</li></ol><p>Because the first approximated constant is an overestimate (2 &gt; 9/5), and the second is an underestimate (30 &lt; 32), the two effects roughly cancel each other out.</p><p>In particular, they perfectly cancel each other out when the magnitude of the overestimate (2–9/5 = 1/5x) exactly matches the magnitude of the underestimate (32–30 = 2), which happens at 10°C since 1/5 x 10 = 2. This is why the lines in the above graph cross at 10°C.</p><h4><strong>Wrap-up</strong></h4><p>I’ve used this trick to mentally convert temperatures more times than I can count. In fact I’ve used it so much that I’ve started adding correction factors for the cases where it significantly over or underestimates. Given how often I’ve come to rely on it, I’m sure you all can get some usefulness out of it too.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=8368ae7267cf" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Why does Greek have 6 “ee” sounds?]]></title>
            <link>https://jon-simon.medium.com/why-does-greek-have-6-ee-sounds-b756a47ae402?source=rss-f4ea01c5978f------2</link>
            <guid isPermaLink="false">https://medium.com/p/b756a47ae402</guid>
            <category><![CDATA[language]]></category>
            <category><![CDATA[probability]]></category>
            <category><![CDATA[greek]]></category>
            <category><![CDATA[naturallanguageprocessing]]></category>
            <category><![CDATA[language-learning]]></category>
            <dc:creator><![CDATA[Jon Simon]]></dc:creator>
            <pubDate>Mon, 16 Aug 2021 04:22:23 GMT</pubDate>
            <atom:updated>2021-08-16T05:48:12.684Z</atom:updated>
            <content:encoded><![CDATA[<h4>Ambiguous Greek vowels and their probabilities</h4><p>My girlfriend is Greek, and because I love her dearly I have been making an ill-fated attempt to learn the language.</p><p>Thankfully from my background in math and physics, I already know most of the alphabet, so I’ve decided to lean on that as much as possible. When she teaches me a new word, I first try to spell it, to get it better ingrained in my memory.</p><p>The problem with this approach is that although Greek is generally a phonetically well-behaved language (η <em>always</em> makes the “ee” sound), it’s not a phonetically unique language (ι and υ <em>also</em> make the “ee” sound). This becomes an even bigger problem when you account for special letter combinations in the language (ει, οι, and υι <em>also</em> make the “ee” sound).</p><p>This leads to a lot of interactions like the following:</p><blockquote>GF: The word for “thank you” is “efcharistó”.<br>Me: Ok, so that’s spelled ε-φ-…<br>GF: No, that’s a different ‘f’ sound. It’s spelled ε-υ-…<br>Me: <em>😑</em></blockquote><p>And although she’s been able to give me a few rules-of-thumb about which letters are more common, the advice mainly boils down to “you just need to learn the language”.</p><p>But since I do natural language processing for a living, I decided to just compute the probabilities of all of the different letter combinations myself.</p><p>I found a dataset containing the <a href="https://opus.nlpl.eu/Europarl.php">proceedings of the European Parliament</a>, which amounts to ~44M words of Greek-language text. I then asked the question, for each of the ambiguous vowel sounds “ee”, “eh”, and “oh”, how likely is it that a specific letter or letter-combination made that sound? The results are shown in the table below:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/710/1*fb4y1iKGIee8pnQ3GxD-Dw.png" /></figure><p>This… basically just tells me what my girlfriend had already said. That single-letter vowels are more common than their double-letter counterparts, and that ο is a more common “oh” sound than ω.</p><p>So the next step is to take some context into account and ask the slightly more involved question: For a given ambiguous vowel sound, how likely is it that a specific letter or letter-combination made that sound <em>conditioning on the letter that came before it</em>? So instead of asking “What’s the probability that an “oh” sound was made by an ω?” we’re asking “What’s the probability that an “oh” sound was made by an ω <em>given that the previous letter was τ</em>?”</p><p>I won’t show the full table for this because it’s over 300 lines long (link is provided at the bottom of the article for the curious), but here are some of the more informative entries. The final column shows the previously-computed sound-only probability for comparison:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*SQ2wKvGaX3c82Y5ZQjsFQg.png" /></figure><p>Concretely this tells us:</p><ol><li>The “ee” sound naively corresponds to ι ~35% of the time, but when following a δ or β it corresponds to ι ~70% of the time.</li><li>The “ee” sound naively corresponds to η ~23% of the time, but when following a ο or οι it corresponds to η &gt;69% of the time.</li><li>The “oh” sound naively corresponds to ο ~78% of the time, but when following a start-of-word or π it corresponds to ο ~90% of the time.</li><li>The “oh” sound naively corresponds to ω ~22% of the time, but when following a σ or ε it corresponds to ω &gt;48% of the time.</li></ol><p>Unfortunately this isn’t enough to solve my spelling problems overnight, but at least it gives me some more granular heuristics to refer back to in the future. And hopefully it will be of help to other Greek language learners too.</p><p>If you’re interested in the code or data behind this post, please check out my <a href="https://github.com/jonadsimon/greek-vowel-patterns">Github repository</a>.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=b756a47ae402" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[What Cleaning the Lint Trap Says About Your Political Philosophy]]></title>
            <link>https://jon-simon.medium.com/what-cleaning-the-lint-trap-says-about-your-political-philosophy-93198f545e27?source=rss-f4ea01c5978f------2</link>
            <guid isPermaLink="false">https://medium.com/p/93198f545e27</guid>
            <category><![CDATA[sociology]]></category>
            <category><![CDATA[family]]></category>
            <category><![CDATA[humor]]></category>
            <category><![CDATA[politics]]></category>
            <category><![CDATA[game-theory]]></category>
            <dc:creator><![CDATA[Jon Simon]]></dc:creator>
            <pubDate>Mon, 24 May 2021 17:29:25 GMT</pubDate>
            <atom:updated>2021-05-24T17:29:25.085Z</atom:updated>
            <content:encoded><![CDATA[<h4>The game theory behind a simple task</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*lIlZ5JKbCOXQMA8BWqh73w.png" /><figcaption><a href="https://www.shutterstock.com/image-vector/washing-machine-box-fight-1157825440">Tomas Teslik</a></figcaption></figure><p>Growing up my dad and I had an ongoing spat about the right way to clean our clothing drier’s lint trap.</p><p>He argued that it should be cleaned <em>after</em> each run, that way you don’t need to worry about cleaning up someone else’s mess.</p><p>I argued that it should be cleaned <em>before </em>each run, that way you don’t need to worry about what the person before you did or didn’t do.</p><p>(The reason why this was such a point of contention was that my dad was concerned about <a href="https://www.thespruce.com/dryer-vent-lint-fire-hazard-2145839">lingering lint leading to fires</a>, and therefore wanted to be sure that the lint trap was always empty before the machine was run.)</p><h3>The Game Theory</h3><p>It turns out that in the case where the clothing drier is being used in an alternating fashion by two people, then this is very similar to the classic <a href="https://en.wikipedia.org/wiki/Prisoner%27s_dilemma">Prisoner’s Dilemma</a> problem in Game Theory. For two people A and B, they each have two options: either clean out the lint trap before using the machine, or clean it out after. Each person wants to minimize the number of times that they need to clean out the trap, and each time they do we can think of this as yielding a “negative reward” of -1. This allows us to write out what in Game Theory is known as a <a href="https://xplaind.com/953905/payoff-matrix">payoff matrix</a>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*3TAArpBHR_a0My_6LK1ubw.png" /><figcaption>Payoff matrix for players A and B</figcaption></figure><p>If both players always clean out the trap beforehand, everything is fine. Each of them has to clean it out once, and only once, before each use of the machine, meaning they each get a payoff of <strong>-1</strong>. The same is true if they always clean it out after.</p><p>But what if they start off both always cleaning after, and then player A decides to switch to cleaning before? In that case, player A no longer has to do anything, since player B cleaning after means that the trap will always already be cleaned when A arrives. This means player A now gets a payoff of <strong>0</strong>, strictly better than before. Meanwhile player B is now forced to clean out player A’s remnants before starting the machine each time <em>and</em> clean up after themselves, resulting in a payoff of <strong>-2</strong>, strictly worse than before.</p><p>Within the confines of the game, the only action that player B can take at this point to better their situation is to <em>also</em> switch to cleaning before, which will then restore the payoffs to -1 for both players. This tendency of the After/After strategy to devolve into the Before/Before strategy implies that the Before/Before strategy is a so-called <a href="https://en.wikipedia.org/wiki/Nash_equilibrium">Nash Equilibrium</a>. It’s the combination of strategies such that it’s not in either’s player’s best interest to switch to doing something else.</p><h3>The Political Philosophy</h3><p>At the time I was having these conversations with my dad, I didn’t know anything about Game Theory, and instead thought about our predicament from the perspective of political ideologies.</p><p>From his perspective, it made sense to clean up after himself for the same reason you shouldn’t litter in the rainforest: it ensures that you’re leaving the world as nice a place as the way you found it.</p><p>From my perspective, it made sense to clean up beforehand because it ensured that the machine would always work properly when I needed it, and that I would never accidentally set my clothes on fire.</p><p>These correspond to a <a href="https://www.verywellmind.com/what-are-individualistic-cultures-2795273">more collectivist vs a more individualist</a> political philosophy. In the former case you’re taking steps to look after the needs of others and the wider society, whereas in the latter case you focus on bolstering traits like self-sufficiency and autonomy.</p><p>In the case of the lint trap, both the collectivist and individualist approaches are equivalent in terms of results so long as both parties are doing the same thing, but in most cases there are clear pros and cons with each.</p><p>Individualism is the de-facto religion of the United States, which makes sense due to its close links to modern capitalism. Businesses greedily pursuing their own self-interest is a large part of what drives rapid technological innovation, and is the reason why <a href="https://www.statista.com/statistics/203734/global-smartphone-penetration-per-capita-since-2005">half of the world</a> now carries around a supercomputer in their pocket.</p><p>By contrast, the merits of collectivism were on full display during Covid, where countries with more collectivist cultures had <a href="https://www.frontiersin.org/articles/10.3389/fpubh.2021.627559/full">dramatically fewer Covid cases and deaths</a> compared to countries with more individualist cultures (see figure). This was due at least in part to their wider adherence to public health measures such as masking and social distancing.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*AH65mbeT4QoM_nCYpHvdgg.png" /><figcaption>Figure from the <a href="https://www.frontiersin.org/articles/10.3389/fpubh.2021.627559/full">paper</a> “The Tragedy of the Commons: How Individualism and Collectivism Affected the Spread of the COVID-19 Pandemic”, Yossi Maaravi et al.</figcaption></figure><p>It’s interesting to note all of the ways in which this collectivist/individualist divide (which in the United States roughly corresponds to the left/right political divide) correctly predicts the broader political, professional, and recreational differences between myself and my dad:</p><ul><li>My dad is generally supportive of far-left political candidates and policies, whereas I prefer center-left and moderate candidates and policies.</li><li>My dad spent his life working in the public sector, including volunteering in the Peace Corp, whereas I’ve worked primarily in the private sector, including for Big Tech.</li><li>My dad loves spending time in nature, especially state and national parks, whereas I prefer spending time on Twitter, which was heavily influenced by <a href="https://www.afterecon.com/politics-and-government/jack-dorsey-a-plausible-libertarian/">founder Jack Dorsey’s libertarian politics</a>.</li></ul><h3>Conclusion</h3><p>I talked to my dad while writing this article, and he remembered our arguments over the lint trap well. He agreed that it was a good microcosm through which to view our broadly differing world-views, and that the game theory analysis made sense.</p><p>But he still insisted that the lint trap should be cleaned <em>after</em> running the drier.</p><ol><li><a href="https://www.usfa.fema.gov/downloads/pdf/statistics/v13i7.pdf">Topical Fire Report Series: Clothes Dryer Fires in Residential Buildings (2008–2010)</a>. <em>U.S. Department of Homeland Security: U.S. Fire Administration National Fire Data Center</em>, August 2012.</li><li>Kendra Cherry. <a href="https://www.verywellmind.com/what-are-individualistic-cultures-2795273">Individualistic Cultures and Behavior</a>. <em>Verywell Mind</em>, December 2020.</li><li><a href="https://www.afterecon.com/politics-and-government/jack-dorsey-a-plausible-libertarian/">Jack Dorsey, a Plausible Libertarian</a>. <em>AfterEcon</em>, January 2021.</li><li>S. O’Dea. <a href="https://www.statista.com/statistics/203734/global-smartphone-penetration-per-capita-since-2005/">Smartphone penetration worldwide as share of global population 2016–2020</a>. <em>Statista</em>, March 2021.</li><li>Yossi Maaravi, Aharon Levy, Tamar Gur, Dan Confino, Sandra Segal. <a href="https://www.frontiersin.org/articles/10.3389/fpubh.2021.627559/full">“The Tragedy of the Commons”: How Individualism and Collectivism Affected the Spread of the COVID-19 Pandemic</a>. <em>Frontiers in Public Health</em>, February 2021.</li></ol><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=93198f545e27" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Your 1-hour-from-now Self]]></title>
            <link>https://jon-simon.medium.com/your-1-hour-from-now-self-a16d5d98453b?source=rss-f4ea01c5978f------2</link>
            <guid isPermaLink="false">https://medium.com/p/a16d5d98453b</guid>
            <category><![CDATA[delayed-gratification]]></category>
            <category><![CDATA[productivity-hacks]]></category>
            <category><![CDATA[psychology]]></category>
            <category><![CDATA[productivity]]></category>
            <category><![CDATA[time-management]]></category>
            <dc:creator><![CDATA[Jon Simon]]></dc:creator>
            <pubDate>Mon, 17 May 2021 03:30:53 GMT</pubDate>
            <atom:updated>2021-08-18T17:44:04.250Z</atom:updated>
            <content:encoded><![CDATA[<h4>Making the ephemeral future more concrete</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1000/0*_-o2piWD6Z1B0dgF.jpg" /></figure><p>We all know how important it is to postpone immediate pleasures for long-term rewards. Whether it’s not eating that tasty treat so you can get your dream body, or stopping your Twitter scrolling so you can work on your novel, we’re always making moment-to-moment decisions weighing off the present against the future.</p><p>The problem though is that the future is just <em>so damn far away</em>, it makes it really hard to care about that <a href="https://www.cgpgrey.com/blog/i-have-died-many-times">hypothetical future you</a>. How much will you even have in common with that guy? Maybe he’ll turn out to be a big jerk, and deserves to be fat and novel-less.</p><p>But as we know from the famous <a href="https://www.simplypsychology.org/marshmallow-test.html">Marshmallow Experiment</a>, being able to delay gratification at a young age is correlated with later measures of life success, such as academic achievement. (And I know what you’re thinking, and no, the Marshmallow Experiment <a href="https://journals.sagepub.com/doi/full/10.1177/0956797619839045">was <em>not</em> debunked</a>.) In fact due to the close relationship between delayed gratification and conscientiousness, more recent studies indicate that it’s predictive of not just academic and professional success, <a href="https://www.frontiersin.org/articles/10.3389/fpsyg.2012.00356/full">but overall life satisfaction as well</a>.</p><p>So, how can we make ourselves take at least a small baby-step in this life-bettering direction of postponing immediate desires for future payoffs? Well an easy way to start is to make the future not so future-y. How about thinking of how you’ll feel 1 hour from now?</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/704/0*kFwc4hH6_BVkhuHR.jpg" /></figure><p>1-hour-from-now-you is pretty similar to now-you. You look the same, talk the same, think the same. The only real difference is that when 1-hour-from-now-you thinks back on what he’s been doing for the last hour, he’s thinking about what now-you is currently doing.</p><p>So what might you be doing now that 1-hour-from-now-you would be shaking his head at? For me the question is obvious: <strong>Wasting time on stupid crap</strong></p><p>It’s ok to waste a <em>little</em> time here and there. A short Youtube video, a peek at the Crypto market, a quick Twitter scroll. After all, even the rigid <a href="https://en.wikipedia.org/wiki/Pomodoro_Technique">Pomodoro technique</a> for increasing productivity factors in 5-minute breaks every so often.</p><p>The problem is when these brief interludes turn into rabbit holes that time mysteriously vanishes down, never to be seen again. When that one 5-minute Youtube video leads to a second video, and then a third, and then… oh hello there 1-hour-from-now-me! What are you doing here in 5-minutes-from-now? What’s that you say, that an hour has already gone by? Well that can’t possibly be right…</p><p>So how can you avoid these embarrassing collisions with your future self?</p><ol><li>Set a reminder or alarm: In the spirit of Pomodoro, set an explicit timer to hold yourself accountable to the length of break you wanted to take.</li><li>Eye-on-the-clock: With each click or scroll, glance at the time to see just how much time has passed. If you sense future-you (that judgemental ass) creeping a bit too close for comfort, it probably means it&#39;s time to stop what you’re doing.</li><li>Don’t start in the first place: If you know that you find a certain activity particularly addictive, and you don’t want to risk falling down any rabbit holes, then don’t even start unless you have a large amount of time blocked off.</li></ol><p>And if none of those seem to work, just remind yourself that if <a href="https://www.youtube.com/watch?v=QX_oy9614HQ">some five-year-olds</a> can envision their future-selves well enough to keep their wits about them, then you can too.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=a16d5d98453b" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Why Perfectionism Leads to Procrastination]]></title>
            <link>https://jon-simon.medium.com/why-perfectionism-leads-to-procrastination-11b70a799677?source=rss-f4ea01c5978f------2</link>
            <guid isPermaLink="false">https://medium.com/p/11b70a799677</guid>
            <category><![CDATA[self-improvement]]></category>
            <category><![CDATA[perfectionism]]></category>
            <category><![CDATA[procrastination]]></category>
            <category><![CDATA[productivity]]></category>
            <category><![CDATA[time-management]]></category>
            <dc:creator><![CDATA[Jon Simon]]></dc:creator>
            <pubDate>Sun, 09 May 2021 23:16:01 GMT</pubDate>
            <atom:updated>2021-05-09T23:31:51.877Z</atom:updated>
            <content:encoded><![CDATA[<h4>And why procrastination leads to more imperfect results</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*yyGFVZx82KeFoHFPzmbYxw.jpeg" /></figure><p>Deep down, I think everyone is a perfectionist. Being a perfectionist just means wanting to do things the right way. And what kind of person wants to do things the <em>wrong</em> way?</p><p>The problem is that with most things in life, it’s hard to know what the right way to do something is, and even harder to actually do it. In fact for real-life problems, it’s not just hard to solve them perfectly, it’s <a href="https://medium.com/hackernoon/life-decisions-are-like-np-hard-problems-eca0076a5ed6">literally impossible</a>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/604/0*odU0aS0LJdGKGdFw.jpg" /><figcaption>Real life: More complicated than a game of chess</figcaption></figure><p>This leaves the perfectionist with a couple of options:</p><ol><li>Make the problem simpler by focusing on small pieces of it, and work on making those pieces “perfect”</li><li>Add additional constraints to the problem until it’s simple enough that a perfect solution <em>is</em> possible</li></ol><p>I argue that in practice, both of these approaches tend towards procrastination, and procrastination leads to far from perfect results.</p><h3>Focusing on Subproblems</h3><p>In my day job I’m a software engineer. This means that I work on a lot of large projects, with long time-horizons, and many different pieces that all somehow need to fit together. It also means that every performance review cycle (and I mean <em>every</em> cycle), I end up giving the same answer to the “What are you bad at?” question:</p><ul><li>In 2019: “I get lost in technical minutiae that may not be critical to the project goal”</li><li>In 2020: “I get side-tracked by over-optimizing for individual steps within a project”</li><li>In 2021: “I spend too much time on a single step of a project at the cost of ensuring that other essential parts of it are ready”</li></ul><p>You get the idea.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*HuZP0DVPchWwqUPczL__Zg.jpeg" /><figcaption>Rare photo of me at work</figcaption></figure><p>I attribute this unhelpful behavior to what I’ll call “myopic perfectionism”: You see only what’s right in front of your face, and you want what’s right in front of your face to be <em>perfect</em>. The obvious problem with this is that in any large undertaking there are many different pieces that need to come together, and spending the time to ensure that one single piece of it is perfect comes at the expense of all of the others. This inevitably dooms the larger project to mediocrity.</p><p>This is procrastination in the sense that by focusing all of your time and attention on step A, you’re avoiding thinking about steps B-Z, since you’ll “get to those later”. But of course steps B-Z have to be worked on eventually, it’s just that now they will have to be dealt with under much tighter time constraints. And that brings us to…</p><h3>Adding Arbitrary Constraints</h3><p>Most of my memories from my Masters program are pretty hazy <a href="https://friedmansprout.com/2010/05/05/insomnia-the-grad-students-disorder/">what with all the sleep-deprivation</a>, but one brief period sticks out clearly in my mind.</p><p>I had been begrudgingly working on a research project over the course of the semester, and although I had written some code, done some experiments, and had some preliminary results, I didn’t know what the next step was, or how to tie it all together. I remained in this procrastinative limbo for several weeks until I was just a short 24hr away from the final deadline, at which point everything clicked, and I could envision, hour-by-hour, exactly how I needed to allocate my time to finish the project by the deadline.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Ijd25n8Rg2L2UmD-fl3DZA.png" /><figcaption>Tim Urban’s painfully familiar procrastination <a href="https://www.youtube.com/watch?v=arj7oStGLkU">TED talk</a></figcaption></figure><p>While this in many ways describes a stereotypical procrastination experience, I think it highlights an important and under-discussed point: By waiting until the last minute to do something, you are adding constraints to the problem, and constrained problems are <em>easier to solve</em>.</p><p>This might be counter-intuitive, since by adding constraints you’re restricting the actions you can take, but consider <a href="https://en.wikipedia.org/wiki/Goldbach%27s_conjecture">Goldbach’s conjecture</a>, one of the most famous unsolved problems in all of mathematics. The problem is to prove that the following is true:</p><blockquote><em>Every even whole number greater than 2 is the sum of two primes</em></blockquote><p>Mathematicians have been struggling with this for almost 300 years, with no success. But suppose we add a constraint, so that now we’re trying to prove:</p><blockquote><em>Every even whole number greater than 2 </em><strong><em>and less than 9 </em></strong><em>is the sum of two primes</em></blockquote><p>Well that makes things easy, you can just list all of the solutions:</p><blockquote><em>4 = 2 + 2<br>6 = 3 + 3<br>8 = 3 + 5</em></blockquote><p>Voila, centuries-old problem solved! (Please contact me by email to know where to send the Fields Medal.)</p><p>By the same token, my procrastination transformed my research project from the intractably difficult:</p><blockquote><em>Write the best damn research paper possible</em></blockquote><p>into the much simpler:</p><blockquote><em>Write the best damn research paper possible </em><strong><em>in under 24hr</em></strong></blockquote><p>But while this is a problem that has a chance of being solved perfectly, it’s not the problem that we actually wanted to solve, again resulting in a mediocre final product.</p><h3>Resolving the Perfectionism Paradox</h3><p>The answer here is pretty straightforward, and surprisingly freeing: Real-world problems are simply too complicated to solve perfectly, and the only way to do so is to trick yourself into solving the <em>wrong</em> problem.</p><p>So the resolution is to acknowledge in advance that you won’t be able to produce a perfect solution, and to instead aim for an imperfect-but-holistic one. That way the constraints you get stuck with are more likely to be ones of your own choosing.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=11b70a799677" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Ordering People]]></title>
            <link>https://jon-simon.medium.com/ordering-people-29e8730738a7?source=rss-f4ea01c5978f------2</link>
            <guid isPermaLink="false">https://medium.com/p/29e8730738a7</guid>
            <category><![CDATA[math]]></category>
            <category><![CDATA[people]]></category>
            <category><![CDATA[self-improvement]]></category>
            <category><![CDATA[comparison]]></category>
            <dc:creator><![CDATA[Jon Simon]]></dc:creator>
            <pubDate>Sun, 25 Apr 2021 22:00:17 GMT</pubDate>
            <atom:updated>2021-04-25T22:11:05.004Z</atom:updated>
            <content:encoded><![CDATA[<h4>Why it’s (mathematically) wrong to put someone on a pedestal</h4><p>I’m currently going through a concerted period of personal development, and one of the steps in that process is to identify unhelpful patterns of thought and behavior in myself, and either decide that it’s there for a good reason, or else discard it. And at the risk of airing my inner jerkishness for all to see, I’ve decided to do this thinking in public. Maybe it will help others working through similar issues, or maybe it will just help me concretize my thoughts, but either way, here we are.</p><p>The topic I’m working through today is one that’s been in my head from a very early age, namely that some people are just <em>better</em> than others. What does that mean exactly? Well hopefully we can agree that one person can be more athletic than another, or more kind than another, or more intelligent than another. So suppose that two people are identical in every way, except that on one of these traits, say athleticism, person A has “more” of it (setting aside complicated discussions of learned vs innate ability) than person B. Then it makes sense to say that in some absolute sense person A is “better” than person B, unless for some reason you consider athleticism to be a bad thing. This idea that all people can be meaningfully ordered with respect to one another is known as a <a href="https://en.wikipedia.org/wiki/Total_order">Total Ordering</a>.</p><h3>The Problem with Total Orderings</h3><p>You may have noticed that there was a big assumption in the above example, namely that person A and person B were identical in all ways but one. Obviously for real people with real complicated personalities, they will be better in some ways, and worse in others.</p><p>As a very simple example, suppose now we have three people, A, B and C, and for each of them there are two traits we care about, intelligence and athleticism. Assigning each trait a score between 1 and 10, where 1 is “bad at this thing” and 10 is “awesome at this thing”, suppose they wound up as follows:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/547/1*mnt3wi3ShqPK00bQVGv6vQ.png" /></figure><p>Then we would be able to say that Person A is “better” than Person B (since 6&gt;4 and 10&gt;7), and Person A is also “better” than Person C (since 6&gt;5 and 10&gt;4), but we would not be able to say one way or the other whether Person B is better or worse than Person C (4&lt;5, but 7&gt;4)! This situation wherein some things can be meaningfully compared but others can’t, is known as a <a href="https://en.wikipedia.org/wiki/Partially_ordered_set">Partial Ordering</a>.</p><h3>The Problem with Partial Orderings</h3><p>In the above example things didn’t look too bad. Sure, we couldn’t directly compare Person B with Person C, but that’s not the end of the world, we can’t expect our mental models to be <em>perfect</em>. But actually the situation is much worse than this, because in reality people have a <em>huge</em> number of defining characteristics, not just 2. And if two people have N many characteristics, it means that the chance that they are comparable to one another is roughly 1/2^(N-1), which shrinks <em>very</em> quickly as N gets large:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/560/1*AFyrQOcVGrSJLFfU-wiH2A.png" /></figure><p>That last row with N=100 is such a small probability that even if you were considering all humans on earth, the chance of any two of them being comparable is essentially zero.</p><p>So this approach of decomposing people into descriptive traits, and ranking those features against each other seems like a dead end, but what if we had a way of comparing different traits to one another? For example suppose we thought that being intelligent was 2x more important than being athletic, but only 0.5x more important than being kind? Then we could weigh all of the traits and add them up to get a single number, which would then not only give us a Partial Ordering, but would provide the Total Ordering that we wanted at the start! This is what’s known as computing a <a href="https://en.wikipedia.org/wiki/Weighted_sum_model">Weighted Sum</a>.</p><h3>The Problem with Weighted Sums</h3><p>While it’s true that simply weighting traits and adding them up would solve the problem of not being able to compare people to one another, it leads to some very counter-intuitive results. For example, suppose that we had three people, A, B and C, each of them having scores for intelligence, athleticism, and kindness, and each of those traits having an associated weighting as given in the last section:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/672/1*HU5tC9PrWGFxcW6P5_ThXw.png" /></figure><p>These are three very different types of people: Person A is a dumb scrawny Mother Teresa, Person B is your average Joe, and Person C is a genius Olympian who’d be happy to stab you in the back in a business deal. But despite these dramatic differences, our Weighted Sum considers all three of these people to be <em>exactly the same</em>, each receiving 42 goodness points. (For example for Person A: 2 x 2 + 1 x 2 + 4 x 9 = 4 + 2 + 36 = 42.)</p><p>Note that this doesn’t have anything to do with the specific weightings chosen here, it’s a feature of the overall approach: By mapping everyone onto a single continuum, it means that we can compare anyone to anyone else, including pairs of people who have no business being compared.</p><h3>Clusterings, Restrictions, and Final Thoughts</h3><p>There are two ways to salvage this weighted-sum notion of comparability, both having different but related issues:</p><ol><li>Only compare people to others who are similar to them. This is related to the idea of <a href="https://en.wikipedia.org/wiki/Cluster_analysis">Clustering</a>, where we group people with similar traits together. This sidesteps the issue of comparing radically different people to one another entirely.</li><li>Consider only a restricted notion of “betterness” rather than a universal one. For example “who would be a better salesman” (Answer: genius Olympian), or “who would make a better romantic partner” (Answer: Mother Teresa).</li></ol><p>In both of these cases we are slicing up our original goal of having a universal idea of “betterness”, either by considering only a limited group of people, or limited types of “betterness”. <strong>So in other words the only way to salvage our original idea of comparing everyone on everything is to either <em>not </em>compare everyone or <em>not</em> compare everything.</strong></p><p>There are definitely other ways of thinking about these questions that I didn’t touch on, for example the way that distances <a href="https://chrislrowe.medium.com/the-higher-dimensions-series-part-three-the-distance-between-points-b284576582f4">blur together</a> when the number of dimensions gets large, or the fact that aptitude in one area often <a href="https://en.wikipedia.org/wiki/G_factor_(psychometrics)">correlates with</a> aptitude in other areas, but I feel like this has been enough to drive home the conclusion in the subtitle: That people may be “better” than some of their peers, or “better” in certain aspects of their life, but once the group of people and set of considerations gets large enough, it doesn’t make sense to put anyone on a pedestal.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=29e8730738a7" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>