Regression to the Mean Girls:Marcos Huerta と作る Wordle ソルバー

Regression to the Mean Girls | Wordle Solver with Marcos Huerta

Casual Inference1時間1分
Regression to the Mean Girls:Marcos Huerta と作る Wordle ソルバー

Regression to the Mean Girls:Marcos Huerta と作る Wordle ソルバー

Casual Inference

0:001:01:34

要約

CarMax のデータサイエンスマネージャー Marcos Huerta が、SNS に投稿された Wordle の色付きマス目の共有結果だけから、その日の答えを当てるプロジェクトを紹介した回。Twitter から Bluesky に移ってデータが減り精度が落ちたため、複数の指標を組み合わせて再び100%に近づけた経緯を語る。後半は満月のデマ検証、星座とワクチン接種率、第三子の性別に関する論文など、分母や選択バイアスをめぐる統計の話題に広がる。

この回のポイント

  • ●手法は、共有された色パターンを作り得る単語を全候補から集め、一般的な単語頻度でスコア化する。作れないパターンが出たら減点して答えを絞り込む。
  • ●Twitter 時代はパターンの約90%を観測できたが、Bluesky では60〜70%程度に減り、BUDDY が PADDY と誤判定されるなどの失敗が出た。
  • ●改善策として、見つかったパターンの割合、不可能パターン数、スコア、初手分布の Kolmogorov-Smirnov 検定の順位を足し合わせた、ハックな複合指標を導入した。
  • ●Marcos 本人によれば、複合指標の導入後は失敗がなく100%に戻っている。ただし、いつ壊れるかは分からないとも述べている。
  • ●Google Cloud の広告にある満月と野球の統計を再計算し、誤差が大きく恣意的な閾値に依存していて、満月神話の根拠にならないと指摘した。
  • ●第三子の性別に関する論文は、次の子を持つかどうかの判断が無作為ではない選択バイアスによるものだと批判した。

章立て

  1. メディアの話題と自己紹介

    Marcos の紹介の後、Netflix の Nobody Wants This、Slow Horses、Elizabeth Holmes のドキュメンタリーなどの感想を雑談する。

  2. Wordle ソルバーの発想

    Kaggle の Ben Hamner のプロジェクトに着想を得て、共有された色マスから答えを推定する構想を説明する。

  3. スコアリングの仕組み

    単語頻度と、あるパターンを作れる推測語の集計を使って候補を評価する。作れないパターンには減点を課す。

  4. Bluesky 移行と失敗

    データ量が減ってノイズに弱くなり、他言語の Wordle 投稿も混ざった。BUDDY が PADDY と誤判定される例が出た。

  5. 複合指標とKS検定

    初手の分布を使った KS 検定などの指標を順位化して足し合わせた。KS統計量の意味もホストが解説する。

  6. 代替案と過去の派生プロジェクト

    ロジスティック回帰や分類器の案、初手の人気推定への Ridge 回帰、生存分析の授業への応用などを話す。

  7. 満月と野球・出生データ

    Google Cloud 広告の満月統計を検証した話と、出生データ、星座、ワクチン接種率の分母の問題を取り上げる。

  8. 第三子の性別論文への批判

    家族の性別構成が偏るという論文に対し、停止規則による選択バイアスを指摘して寄稿した経緯を語る。

解説記事

CarMax でデータサイエンスマネージャーとして価格設定を担当する Marcos Huerta が、ポッドキャスト Regression to the Mean Girls に登場した。テーマは、SNS に共有された Wordle の色付きマス目だけから、その日の答えを推定するソルバーである。後半では、彼が手がけてきた他のデータ検証プロジェクトも紹介された。

答えを知らずに答えを当てる

Wordle は、5文字の英単語を6回以内に当てるゲームである。結果は緑・黄・黒(灰)の色付きマスで共有できる。Marcos は、Kaggle の Ben Hamner が Twitter の共有データを使って約90%の答えを当てたプロジェクトに触発され、自分ならもっと精度を上げられるのではと考えたと語った。

仕組みは次のとおりである。まず、ある色パターンを作り得る推測語が、答えの候補ごとに何語あるかを調べる。次に、その語の一般的な頻度を足し合わせてスコアにする。頻度には、GloVe 由来とみられる英単語の頻度データを使ったという。たとえば特定のパターンを作れるのが ORGAN と、ドイツ語由来の珍しい語だけなら、ORGAN のほうが尤もらしいと判断できる。逆に、ある答えでは決して作れないパターンが投稿に含まれていれば、その候補を減点する。

Bluesky への移行で崩れた精度

Twitter の API が使えた頃は、数千件の投稿が集まり、起こり得るパターンの約90%が観測できた。出現が1回だけのパターンを捨てる閾値も置けた。ところが Bluesky に移ると投稿は数百件に減り、観測できるパターンは60〜70%程度にとどまった。閾値も1にせざるを得なくなった。

そこにドイツ語版などの別サイトの投稿や、同じ人による複数の投稿が混ざる。1件の不正な投稿が「不可能パターン」を生み、正解を落としてしまう。実例として、答えが BUDDY なのに PADDY が選ばれたケースが挙げられた。どちらも不可能パターンがなく、元のスコアでは PADDY が上回ったという。

指標を足し合わせるハックな解決

Marcos はこれを分類問題として捉え直し、複数の指標を組み合わせた。使ったのは、見つかったパターンの割合、不可能パターン数(二乗して重く罰する)、元のスコアである。さらに、New York Times が公開している初手の人気分布と、各候補から予想される初手分布の一致度も使う。一致度は SciPy の Kolmogorov-Smirnov 検定で測り、順位化して足し合わせた。

ホストの Lucy は KS 統計量を、二つの累積分布関数の最大の差と説明した。確率が左から右へ積み上がる様子を比べ、最も離れた地点の差を見るものである。

Marcos は、この手法が「非常にハック」で事後的だと認めている。それでも導入後は失敗がなく、100%に戻ったと述べた。ただし、いつ壊れるかは時間の問題だとも話している。ロジスティック回帰や線形モデルで重みを学習する案がホストから出た。彼は ExtraTrees 系の分類器を一度試したが、数件外れたので深追いしていないという。ロジスティック回帰は試していないかもしれず、今後試すと答えた。

他のサイドプロジェクトと統計の落とし穴

同じ手法を応用して、共有パターンから人気の初手を Ridge 回帰で推定したこともあるという。ADIEU や CRANE が上位に出て、実際の上位3語と一致したと語った。

後半では、Google Cloud の広告にあった「満月で本塁打や大差の試合が増える」という主張を、1900年まで遡って再計算した話が出た。Marcos によれば、誤差の大きさが示されておらず、閾値の選び方しだいで結果が変わる。満月神話の根拠にはならないという。

さらに、星座別のワクチン接種率に関する分析も紹介された。郡ごとの出生月の分布が違うのに全国分布で補正したため、接種率ではなく星座の構成比を見ていたという指摘である。第三子の性別を扱った論文についても、第三子を持つかどうかの判断が前の子の性別に左右される選択バイアスだと説明した。Marcos は同様の批判を投稿した他の統計家と合わせ、論文の掲載誌に3通の投書が載ったと語っている。彼は、元の論文は大きく報じられたが、批判はほとんど報じられなかったと述べた。

まとめ

この回の魅力は、遊びのパズルを題材に、データの観測率、ノイズ、評価指標の設計といった実務にも通じる論点を扱っている点にある。観測データが減ったときに、モデルを複雑にする前に入力のフィルタリングを徹底し、複数の弱い信号を組み合わせるというアプローチは、現場の分析者にも参考になる。一方、分母の取り方や選択バイアスの事例は、統計的な報道や広告を読み解く際の注意点を示している。サイドプロジェクトが、実務で使える感覚を磨く場になることもよく伝わる回である。

文字起こし(英語・自動生成)

This is Regression to the Mean Girls, where we chat with brilliant data people about their silliest side quests. We're mean as in average, but actually very nice. Come sit with us. I'm Lucy D'Agostino-McGowan. And I'm Sarah Lotzbeach. And today we're really excited to be chatting with Marcos Huerta, who is a data science manager at CarMax, largely in charge of pricing. But I saw, Marcos, that your background is in astrophysics, which is super cool. Thanks for being here with us today. You're welcome. Thanks for having me. I enjoy listening to the podcast, so it's fun to be on. Awesome. We're happy to have you. So if you've listened, then you know that we like to kick off with what we call a media minute. So what kind of media are you consuming right now? There's a new season of a Netflix show called nobody wants this i think we chatted with christine about this on one of the earlier episodes

it's got adam brody and kristin bell but lucy i was realizing that i can never remember adam brody's name i had to google it before and i always think of him as lane's best boyfriend on gilmore girls because he was dave regalski who was dave regalski and then he got on what the oc is that what it was and then he stopped being on and then i think they made kind of a like in joke about that when he like moved to california didn't they say something like he moved yeah i think he does move to california yeah why they had to break up yes yep yeah absolutely so good well how is the new season how does it compare only a couple of episodes in and i made the mistake of peeking at like people's reactions to it on threads and i feel like threads in particular is such a toxic echo chamber on the internet like everything I like people on threads hate aggressively um and so it is true that like the Christopher Bell character can be kind of hard to like at times

like she just makes decisions that I feel I wouldn't make she's very cringy and so I was saying to Matt that I think I'm at the stage where I'm actually not rooting for the main couple anymore i kind of don't care about them i'm now rooting for their siblings to get together because they've been like friends this whole time and there's like maybe some chemistry um and so honestly at this point i am in it for them team sasha and morgan we just watched the most recent season of slow courses on apple tv which i highly recommend that the books are also very good but i haven't actually read the books my wife has read some of the books wait i want to hear about this because so my husband and i watched the first episode of slow horses i actually saw this pass by on Blue Sky because I think it was like New York Times or New Yorkers. Someone was like a real like darker, I don't know, like a real one that nobody's noticing is Slow Horses. And I would consider myself in that camp where we tried once and didn't get into it. And then everybody's response was like, what are you talking about? We love Slow Horses. And so I told Patrick we have to try it again.

So give me the pitch. It's a bit of a slow burn. And what's nice about it is that they're only six. They basically do one book a season. So it's like six episodes. so it's a pretty, and I think the first season is probably the hardest one to get into, because you've got to learn the characters, you've got to get into the cantankerous Gary Oldman and stuff. But yeah, the premise is that it's these spies, these rejects of MI5, who get sent off to a turkey farm, get sent off to this low house, where they're still employed, but they can't do any real work. But it's clearly run by Gary Oldman's character, who clearly has been sent there, not because he's a bad spy, but because there's some other reason that we don't really know. And then he's got all these rejects. But somehow, despite the fact that I rejects, they keep getting involved in all these big, you know, London-wide, or not London-wide, you know, UK-wide intrigues. Or they have to clean up some methods that the actual, quote, smart MI5 people did. So I love it. Every season is kind of based on a book. The most recent season we just finished, it actually probably was a step in from the previous seasons. But in general, it's a show we really enjoy. For my medium minute, I was going to do the – I've been listening to –

So I've listened for a while to the Hard Fork podcast. Do any of you listen? It's the New York Times, like, tech podcast. I think my wife listens to it. Yeah. I, like, so I have, like, a complex relationship, I feel like, with it because there used to be, like, two guys who were running it that I used to like and then found myself not aligning with in a lot of different ways but kept listening because I was, like, I don't know, intrigued by it. It was Kevin Roos and what was the other guy? Casey Newton. Yeah, Kevin Roos. Anyway, so they were the original Carver people, but a couple weeks ago, maybe like a month ago now, they've moved on to start their own company, and now it's just, like, tech reporters from the New York Times that sort of still run it. But anyways, the most recent one was about the Elizabeth – actually, the most recent, too, were about that new Elizabeth Holmes documentary. I saw that. I was going to mention that movie. We saw that Saturday. Did you see it? Okay, so that's what I want to – okay, good. Because I actually, I haven't seen it yet because it's three hours long, as you're aware. And I, like, cannot find three hours in my day to, like, go.

I actually have looked a couple times to see if there's matinees because that would be, like, the best bet for when all my children are in school to be able to get to a three-hour movie. But locally, no one was showing a matinee until actually this week. It's the first week. We're going to have a couple that start at two. But it was, like, the earliest showings when it first came out were at four. So, anyway. That's the exact same problem. The exact same conundrum. The exact same conundrum. I had to suggest to my wife, let's see if your mom can watch the kids, because we don't want to spend three hours of the movie and spend $80 on the sitter or whatever it would be. So I was like, ask her mom if she can watch the kids. And she said yes. And so that's the only reason we were able to go. My wife, like you, is kind of obsessed. She's really listening to podcasts and all the stuff about her home. So I was just intrigued by all the buzz. She actually knew something about the story, about the company, et cetera. I think similarly, like if I'm going to go to the movie, this is one I want to watch at home, I think. So I can watch it across the whole thing. I mean, three hours is a lot to ask for people at the theater. Yeah. I probably, I mean, if I can find a way to get into the next couple weeks, I probably will still do it because I'm like, I don't know.

I just didn't want to get spoiled. Yeah, you didn't want it to be spoiled before you. Yeah, well, I thought there was a lot of just buzz everywhere, I'm blue sky and everywhere else. I'm like, I need to, I want to see this before someone spoils it for me. Not that there was really that, not that you can really spoil it, but I was trying to, I wanted to participate in the spoiler discussions as soon as possible. Yes. I've allowed myself to just enter these discussions without actually seeing it. Because I feel like I'm curious how your wife's fascination with it, too, because I do think, I mean, there's a lot of discourse around this, but I think the fact that she was like a female founder that got very much like allotted for being a female founder at the time, I think that plays into it, too, in a way that I haven't quite been able to psychologically wrap my brain around exactly why that like makes me so interested in her fall because it's like I do think there's but I do think there's something around this like people who were pushed to the forefront more so maybe than they're like what otherwise maybe would have been and then you sort of put all this extra weight on them because it's like they have to represent all of the female

founders of whom there's like three at the time and and then when they fall so spectacularly it's like oh boy you know see i didn't know a lot of like the legal like i hadn't really i've had to listen to any podcast i didn't really understand the legal structure of the case against her like what were the actual charges and like rent an indictment i didn't know anything right so um so i just kind of got what they showed me and you can see everything whereas i think my wife had more context about what she's actually convicted of and stuff so she you know obviously in the trailer you can see she's trying to make case that she doesn't think she did anything wrong right and so um so i i feel like i thought i would have benefited in the movie with that's not only spoiler, but there were no talking heads like saying, you know, giving you a legal breakdown of the charges. It was just, you know, it wasn't that kind of documentary. So I enjoyed it, but yeah, report back if you find a way to see it. This was a lovely media minute. Let's switch to hear the context of your analysis. Sure, well, so I used to do a lot of side projects, so we debated what I would talk about, but I might be talking about a mortal, you know, which I think

has probably fallen a little from its height of its popularity, but Portal is a puzzle game that was an independent game, and then you know, Times bought it like three or four years ago. So you're trying to guess a word, a five-character word in English, and basically what you took to guess, it gives you kind of some hints as to what you got wrong, how many. Kind of like the old game Mastermind, but you have to use real words. You can't just type in all Zs or whatever, all As. So, a couple years back, someone on Kaggle, I think he was at Kaggle, his name is Ben Hammer? Hammer? Van Hamner did a Kaggle project. He got some data from Twitter, and he pulled it. When you solve a Wordle, at the end of it, you can share it on social media, and you kind of have these little colorful squares that kind of show people, like, how did you get it quickly? You know, all five greens. Did you take a while? And it kind of shows that. And so Van Hamner's idea was to take all the social media shares from Twitter and kind of use those to figure out what the answer is without actually doing any – we're not actually playing the game. Is Barry and all these social shares a signal of what the actual answer is?

And he did it, and he kind of got, I think, like 90% of them right. Like he had, like, you know, I'll drop a link to his original project, which is still up. But I saw that and was kind of inspiring. I'm like, well, I think I can probably improve upon this success rate. So I kind of got it. He had a nice data set of tweets that were stored in Kaggle, and I pulled those down, and I tried to solve them myself. So that is the context for what I was trying to do. Okay, this is amazing. So, okay, so Wordle, I have played, I probably still play, like, maybe once a week. I used to play a lot more. And, yes, I guess, so, like, the thing at output, it's sort of like a pattern of guesses, but it just shows you, did you get it right, which would be green, which would be, like, right and in the right spot, or is that letter not in there at all, which would be, like, gray, I think. Is that right? Or did you get a correct letter, but it's just in the wrong spot, which would be yellow? So there's sort of this, like, pattern of guesses, and then you have to get it within six, I guess, within five. Yeah. Okay. So that's, like, so the data set, what does it look like?

Is it, like, how do those patterns translate? Is it just, like, a one or a zero or a 0.5 or something? So what, yeah, so the data we're getting is basically a big block of text, right? So I have to find, so you have to, and sometimes there's text above it or below it, right? So ultimately you find like one to six rows of these colorful squares, right? And then what I do is eventually, I mean, we can get into this. We're leading the context into what I actually do. Down the rabbit hole, yeah, right down. So you get these squares, and the way, so there's a lot of ways. I was inspired by, again, from the Kaggle project, the initial idea was, well, Some words, certain words can make certain patterns, right? So actually, I have something I can screen share if you would like. I can just do that in a second. But if I don't want to just go ahead and do that, because I think that'll help people understand. So not every pattern can be made from every potential target word, right? So there's certain words where, like, there's certain patterns

where, like, certain words, there's no word you could type in that would make that pattern, right? So the idea is to kind of use that and how common is a word. It could be one really obscure word that makes a certain pattern as opposed to like 10 common words. So the idea is that you kind of use that frequency of how common is this word? Is it a weird, obscure word? And then whatever type in, or is it a common word like about the title it might type in or whatever? So let me see if my screen share is working. It does appear to be working. This is interesting, too, because I guess the obscurity of the word, I mean, I do think there's some strategy to like thinking about what types of words the New York Times would pick. But it's also what you're saying is that like a person would have to have picked the word to show up in the pattern. And so, like, the first word they pick is, like, almost never going to be some obscure. Yeah. We'll get into using the first guest, too. So, for example, I'm showing, and we'll find some way to put something like this in the blog post or whatever. So, for example, if you have black, green, black, yellow, black. So that's great. This is great for audio. Just great. Seems better. There's only so many words that can make this better. So you have black, green, black, yellow, black.

So these are the words. These are two potential answers. answer. The actual answer is grown for this one. But these are the 10 most common words by this kind of frequency number. I think I got this from, I think I use this glove data set, which have these essentially numeric scores for how common the word is. So an obscure word would be 10 or 1 or 0, and then this is just out there in the internet, out there in the world, like five other words. And then the higher the number, the more common the word is out in English. So that is an inherent flaw. It's not what words someone might play in Wordle, but it's just how common is the word period in English, right? Can you say, sorry, one more time, what the name of it, you said it was called GLOB? GLOB is like some kind of big data, internet data scrape. Like some embeddings of ICD. Yeah, that they use, they're mostly used to make embeddings, but like there's a way to basically use it just to get sheer word frequencies. And so I believe I parsed that down to the five-letter words and then made a CSC with all those of them. This is like a callback to that, because the second episode, I did this, like, analysis trying to see if the severance data to see if Milchak was using common words.

And I don't think I knew about this. I used, like, I guess I used, what did I use? The Zips frequency? You used the one that's for writing specifically? For I, yeah. So this is, like, probably. I remember listening to that episode, yeah. You probably know the time we're like, where's the glove? Why is she using the glove? It's, like, lowercase G, uppercase L. It's, like, an old, like, NLP data set. I think that's what I use. Honestly, the file is now called unigramfreak.csv, and I don't know how I made it. So I'm pretty sure I extracted it from the other big file and deleted the big file. But it essentially is a web scrape thing where, like, what are the most common five-character words in English out there? I think they're all English words. There might be some non-English things out there. But I actually cross-matched that with allowable guesses in Wordle because you can't guess every single thing in Wordle. There's like 14,000 words you can type in in Wordle. Not all of them can be the answer, but they can be typed in as a guess. so essentially what I do is that, so these are the top, so what I'm showing everyone is that the top 10 words that can make this particular pattern for our world share, so

again we have black, green, black, yellow, black and there's like, you know, games, and it's the word if the answer was carve, it could be game, it could be base, it could be pages, it could be sales, now if you're a world player, you know they'd hardly ever use plurals so I realize now that maybe I should have felt out the plurals but nevertheless, and then if the answer was grown, if that was the answer to the world, then the guess could be print or error. There's other words that can make that. So the idea is that these are just the top ten that I'm showing you all. The idea is you take every single word, you look at all 14,000 words that someone could guess, and you figure out the sum of all those that could make that pattern. Does that make any sense? For every potential answer. So for these two for this particular pattern we would add in something like this number this big number for carve and this smaller number for growth But I do that for every single single one So that was the idea behind it But here a more obscure pattern for the same puzzle right Where only one word each could make this pattern So this is yellow green yellow, black, green. And between grown and carve, only one word can make that pattern. And it's

organ for grown, which seems pretty likely. And it's raque, which is like a German word, for carve. So that seems unlikely. So you loop through all the patterns for every possible guess and you kind of build up this score of like how likely is it that this pattern would actually occur if this was the answer. And then you do that over and over again. Now this is amazing. And this is so fascinating too. I love this because all 14, whatever, the number of words that exist, it's like there's a finite thing and you have all of them and you have all the information about all of them. So like in theory, this is like a closed I mean you might get things wrong because there might be five options that have different probabilities even assigned to them but like so maybe your first choice will be wrong but there's a the answer is contained within the data set like I feel like a lot of times in statistics we're training on observations where the answer just might not really the true answer might not be in that data but this is beautiful it's sufficiently constrained that it's usually possible to do it so the original way I did

this. I had Twitter and I had the Twitter API access before Twitter got you know, the game access and everything. And before the API got locked down. So I could he had a bunch of data and I could go out and get like, I could get 10,000, 8,000 I could get thousands of people sharing their Twitter scores. And then I could process them all. I could have a minimum threshold. I could throw out the ones. Like if I saw a pattern only appeared once, I could throw it out. And I had all this data. So that's what I would do. And I would loop through all of the patterns, all of the potential words. And I have a little animation. I'll just add a little This is on my website, so we'll link to this. So the idea is it's going through all the patterns and it's computing the new score. It also subtracts a penalty if the pattern's impossible because some patterns just can't be made. And so it's iterating through every single pattern and by the end, eventually, kind of one potential victor emerges both from the patterns that are positive that it could make and then subtracting a penalty term for a pattern that's impossible because sometimes there's certain patterns that just can't be made for a given word. Like if the answer is solid, there's just some patterns that can never help. Right. So that was the idea.

So I did this and I kind of played with it back in the Twitter days and then I kind of forgot about it. But then, because when we lost the API and stuff. But then Blue Sky came around. I'm like, I wonder how you get this working again. So I started dusted off the code and, you know, kind of, you know, re-switched it to search Blue Sky instead of searching Twitter. But now I have a lot less stuff because Blue Sky is just not as big as Twitter. Right. So instead of having like 6,000 posts for Twitter, 1,200, I would have like 700, 800. So I bust out the system, and I started, you know, rolling that again with this kind of adding, iterating and making this store and subtracting this penalty and kind of doing these iterations. And it didn't work. I mean, it worked most of the time, but there were words where it just wouldn't work. Yeah, because now there's too many. Like the constraints, there's not enough data for the number of – I feel like with Twitter, it's like because there are constraints and you have like a couple thousand or, you know, you maybe could figure it out with that. I mean, if you think about all the possible patterns that a word can make, like what percentage would I get on Twitter? It was like 90%. I would get 90% of every potential pattern would ultimately be there.

When Blue Sive is more like 60% to 70%. I wasn't sampling the space as much. And then the other thing is that I could do in the Twitter days when I had thousands of posts is that if a pattern only appeared once, I could just say, you know what, the pattern needs to appear at least twice across all these posts before I consider it. But since I didn't have that much data, I couldn't do that anymore. I had to use a minimum count of one. and that would introduce any kind of like random Twitter that someone posted two Twitters at once, someone posted a German Twitter. Like, you know, I would get these like kind of these posts that were just not the right, not the today's New York Times Twitter. There was some other weird Twitter from Germany or some third-party site or whatever. And that would contaminate it. So I would get true answers with like these important impossible patterns that would break everything. So everything was, so I had to get more aggressive about filtering out like the Wordles. I couldn't, I had to like make sure it wasn't like Wordle.at or some other third-party site that has a similar game, I'd have to drop the minimum count. And then despite all that, I would have these wordles that wouldn't work. So I'm scrolling, literally showing you guys that blog post now. So this is great, again, great for an audio format.

But let's see if I can find the one. So the example I put in the blog post is Buddy, right? Buddy was the answer, but the system, when I iterated and did everything, it got Patty, P-A-D-D-Y, instead of B-U-D-D-Y. and the Paddy just had a better score they both had no impossible guesses so there weren't any patterns that were like this can't happen so the system just broke it so I had to rethink the whole thing because I was not satisfied with this like 95% accuracy or whatever is not what I wanted I wanted to find a way to get to 100% but now I was starting to get a little kind of what's the phrase I was basically looking at all the things I failed on like well how can I find a post hoc thing It's like, all right, well, this first system didn't work. Let's go back and find a system that does work. And so I ended up with a bunch of new, I sort of treated it more like a classification problem like in data science. Instead of using one metric, my little scoring system, I'm going to need to use that and a bunch of other metrics. And maybe if I swap all these together in some very hacky way,

I can finally get back to my 100% accuracy. For these edge cases where my original system was failing. So I used a bunch of things. We talked about fraction of possible patterns found, right? Like I said, in Twitter, when I had 5,000 posts, I would get 90% of them. Now I'm getting like 60, 70. But maybe if I find all these candidates, maybe the candidate with the highest percentage of patterns found, maybe that's a signal. So I would use that. So if I have two potential words that could be the answer based on the initial scoring system, maybe one has 75% of its patterns found and one has 70%. So I would rank them based on that. Then, like I said, I mentioned the impossible pattern. and pattern count, right? You have some patterns that just can't be made for a given word. So obviously I would take that number. But instead of just adding it in, I was like squaring it, and I was ranking it, and then adding like the square, one plus the rank, square, something like that. I basically used that as a, to penalize the one to have these impossible patterns more, because my initial system wasn't penalizing them enough.

So there was that. And then the favorite one was doing, so as you probably know, some people like to use the same opener over and over again. Like a DU is a very common opener, right? Some people always use a DU. It's not that great of an opener, but people love it. Some people use a DU because they like all the vowels. Some people use Crane, which was a three blue, one brown post about Crane, right? I use Plane. Plane is my opener, so that's not far from Crane, I feel like. I used Woman, which I feel like was just because it made me feel powerful, and also it was pretty solid, like it had a good mix of vowels. The New York Times published it, and now I have a whole other side project where I try to figure out people's openers, so we can talk about that some other time. but the Community Times now publishes this data so like every Wordle they tell you there's actually a hidden JSON they make a little plot that shows you what people guessed on the first guess but there's a little hidden JSON structure where you can just download that data so I had now data now on like every guess people made I just picked like a random game from like I don't know last June or something but it tells you so you see a geo, you see crane you see all the top

all the most popular openers and I'm like well let's assume that that is relatively static and it's not changing and let's look at the distribution of, let's look at, is this word consistent with what people like as their openers? Does that make any sense? Like, if the answer is buddy, right, then there should be a certain distribution of the patterns based on these openers for the first guess. And similarly, if it's answers, Patty should be a slightly different distribution. So I do this, and this is showing how I don't really know anything about statistics. I use this Colmar-Grox-Crimmage test from SciPy, which I don't frankly know that much about. But basically, it's trying to basically look at these distributions and tell you if they are, you probably know more about this test than I do. But, like, do these two distributions match each other, essentially, right? So I use that test on the openers, just the openers, as another potential, you know, rank. And I rank it. Like, so what is the best? What is the most? What is it says it matches the most? You know, one. What matches the second? Two. So whatever number comes out of that, I just put a dot rank on it. And I got to rank from, like, one to ten of, like, all these candidates. Like, which one has this opener distribution is consistent with what we think the openers are.

Can we spend one second just because I want to narrow it out on the statistics? Absolutely. Absolutely. I would love to know more about this stuff. Well, so I think, Sarah, you can also correct me there. I think a column of graphs from your website. So I believe it's, like, basically you just plot the empirical distribution. So, like, you take the actual data and you plot, like, what the empirical distribution would be for both of these, right? And then I'm pretty sure the KIA statistic is just the maximum distance between them. Is that right? So, like, you, like, find, so you find, like, where. It's the maximum absolute distance to the. Is that going to hit, like, a histogram or something? So a histogram would be, like, the, like, PDF, like, the probability distribution. I sometimes think of it as like each of your individual values along the x-axis, if it's like a not continuous random variable. There's some amount of probability concentrated at each of those values, but you can't compare that to tell distributions. So instead you compare as you move from left to right in the plot and probability is accumulating. What's the probability not that it's at a particular value, but that it's less than or equal to a particular value? And then it builds this like very distinctive non-decreasing function.

and then you can compare that essentially to how you think that would look under a hypothesized distribution. Or under a different one. Or under a different, like, two. Yeah. Yeah, because you have yours as, like, two empirical distributions. One is, like, if you picked this word, this is what the shape would look like. Like, if you picked this as your first word. Right. Or if you picked, like, what you actually observed. And so then it's just the maximum. Like, so these are two curves that, like, might intersect or not intersect in all different kinds of ways. And the KS statistic is just saying, like, if we look across this whole range of X values, where's the spot where these two curves are the most different? And that's going to be the statistic. So, like, if they're fully overlapping, it would be, like, a really small value because they're, you know, the whole range, they're really close. And if there's, like, a region where they're really, really different, then it's going to be really different. So it's like a, I don't know, I feel like there's other numbers that people use instead that sort of can be other ways to summarize how different two curves are.

But this is like a nice, simple use. Anyways, I think this is so fun. I love that that was what you chose as your. So, yeah, I didn't bring out all kinds. I didn't bring out all kinds of tools. But again, now I'm sure I made a little dash app that shows off like I went back and saw old ones. And now I go every now and then I run it again and solve kind of new ones and sync up the database. so like you can see that like I have some words where like the initial method just didn't work right like and these are the solutions I don't have like the word write like W-R-I-T-E like I couldn't I didn't solve it right with the old system with the original system smoke Frank Bride all these words so these were kind of my these were my kind of like yeah so I'm like I need to bring some other stuff in right so what I end up doing and I click on write because this is the worst one and you can see the score which is terrible right I tell this will link to this. This is a web app that everyone can see. The answer was right, but the best scoring answer from my old metric was karma. When I iterated over the patterns and all this math, the frequencies,

and subtracting penalty terms, karma is what that said the answer would be. And it was just wrong. And it was really wrong. It wasn't like a little wrong. It was the clear winner with my old metric, and it was clearly also not the correct answer. And I only had 5 or 18 posts. So this is where I went in and kind of made this. And I think actually probably, if I did this again, there might be some bad, I don't know. There might be some bad patterns and some bad, there might be better filtering than I could have done. Because this was when I first started running this code, like probably a year ago. But anyhow, what I'm showing now on screen is a little table that it shows like all these new things that I came up with, right? We got the fraction found. We got the case statistic. We got the score from the initial system that I wrote. We have the impossible pattern count. So I take all of these together and I kind of come up with this very hacky formula that kind of adds them. Like it's like I summed all these ranks and then I add in like the impossible pattern count plus one squared or something like that. And when you do all that and you sum it all up and you rank by that new sum, that seems to work pretty consistently.

Like so far I'm back to 100%, right? This is cool. So since I came up with this system to get these done, I haven't had another failure, I don't think. with the possible exception of like, maybe there was like a German wordle that got in or something and someone was posting wordle.de or something, and that broke it. So I'm assuming I can filter out like clearly obvious, like, you know, foreign language wordles. Like, I think I'm back to 100%. How long will I say 100%? I don't know. But combining all those metrics together, the opener distributions, the possible patterns, the initial thing I wrote like two years ago, like the fraction of pattern sound, all that together, which doesn't always work. I mean, you can see here it's a fraction sound is actually not predictive at all. Karma is winning again there. So, yeah, so it's working. It's very hacky. In fact, I didn't make fun of this. It seems like a hacky post-hoccalistic. It definitely is, right? Because 100% is something I can't always.

This is so cool. And I, okay, first of all, this is great. And people do this all the time. I mean, actually, Sarah works on this project where she, like, combines scores in the EHR, and you put out the weight as one for all the different values. And, like, this is, like, a really common – I mean, I think people do this where you combine multiple different pieces of information, and you just choose to equally weight all of them or to give them – you know, it sounds like for some you gave them more weight based on just sort of, like – And, like, one idea you could do to extend it would be if you, like, if you put what the truth was and you just fit, like, a linear model that took all of these as inputs across the training data, you could see if a weight of one would be, like, it gives a beta coefficient of one for every single one of these. But maybe it would give you a different weighting scheme that would be kind of optimal based on the previous data. And then it would. That's a good idea. I did try, like, you know, again, data scientist attitude. I did try, like, a classifier. I got like a bug for one of the big heavy tool, like an XT2 classifier, and I fed it all of these metrics and then fed it the truth or not and let it try to fit it.

And it worked okay, but it was still a misfire now and then. I didn't really – I didn't play with it for that long. I kind of just tried it once with some default settings. It kind of – I trained it on like these 100 worlds and I printed it on the next 200, and it didn't – it sailed on like one or two of them. Just combining these metrics, like the raw metric, not sub-ranks, but just the raw metric. Yeah. And so once that didn't work, I'm like, I just kind of gave up on it. I mean, there probably is a smarter way to do this. I also, just talking to you all, realizing that I'm – we know the answer to the solution probably isn't a plural word because they never do that, right? It's never votes, right? So I could probably exclude those and make – well, that's not true. This actually does do that. This assumes you can guess votes, but it doesn't assume that votes could be one of the answers because that is another trick that I do. I do know like what is the list at least I think it the right list the list of what the Wordle answer should be because that was published a long time ago when the original version of the game Yeah So I do usually constrain it to only search does like 2 words 2 words Sometimes it's not in there, though, and then I have to expand to the big 12,000-word list,

and it still does okay on those two. When it finishes all the iterating, it actually only uses all these crazy statistics If it is, you know, there's an impossible pattern in the original answer, like this one, Karma has 12 impossible patterns, right? So if that is true, it will do all this crazy news to you, math. Or if it's a really small margin of victory, like over the runner-up. Yeah, then I will check it. That's also so smart to, like, I mean, I think this is fascinating, too, because this is, like, my Biosat training is, like, I'm indoctrinated. that you start with X, you boost, I'm indoctrinated, that like never, I would always start with logistic regression. For a question like this, we're going to do logistic regression, we're just going to get some nice beta coefficients out of it. That's like my default, which I think would give you kind of like what you're describing, except if there it would just weight them, like price something maybe different than one. Yeah, you know, I probably should try logistic regression. Maybe I did. I can't remember. I definitely, I have a little aside footnote about a classifier in my blog post,

but maybe I never tried logistic regression. I should have. I'm going to go back and try. Now I'm getting inspired from other ideas. But here's another one. I switched my app to video and this one, this video system just works fine, right? Like the initial system runs like it's a very strong signal. I don't need to do any of the case statistics on the opener and you know that stuff. It's just a very clear win for this thing just by kind of summing these word frequencies on what can make the patterns and it's a tracking penalty term as well. It just pops right out. So most of the time things just pop right out, like tutor over the follow up it's a very strong signal and all that other fancy stuff I need to do isn't necessary but some of the times it is and so I kind of hack together all these things to solve it so I kind of opted, the most recent one in here is let's see, I got a little I last ran this on Friday I think I ran it because it was going to be on the show so still 100% we'll see when it breaks again so cool but it's bound to happen

it's just a question of when do you still play like the old fashioned way just for fun? Sure sure I mean it's a point of when you play with an algorithm oh so that's the other thing I was going to say Wardle's kind of this little play sandbox for like this kind of stuff because a lot of people wrote Wardle Solvers like that was a real like to actually play the game like you know but so I wrote one of those like way back when like three years ago like you know you find a good guess and then you figure out like what next guess will reduce your there was another three brown blue one brown about this you kind of think of as information theory thing you're basically trying to find the word that will reduce the potential words the average words left the most right so people have written better ones than I did like mine only has one depth most people will like recurse all the way to the end and like figure out like you know is this the shortest path to finding the answer so that was a whole genre of like word or software but no I just play it all the way I mean I think I got inspired from the bots with my opener I think I was using Soleil for a while, which is not a word anyone really knows.

But it's a great opener if you're a bot playing Wordle. Somebody, I play the number one. And I still have fun. I don't do it. I'm kind of like Lizzie. I play it kind of once a week. I was really into Connections there for a while. I was playing Connections like every day. But over the last week, I've kind of keep reading it. I lost my streak because I forgot to play it, and then I lost my mind. The will to keep that. Yes, I know. This happened with me. I got very into Spelling Bee. And actually, it corresponded with me listening to all those. I mean, I still listen to the Lonely Island podcast, but, like, Andy Samberg is very into Spelling Bee, and every single week reports that he gets, he queen bees, like, all the time. It's very impressive to me. But I was like, if Andy Samberg can do it, I can do it, because I was not very good at the Spelling Bee. And it is definitely, like, all these games are, like, once you play them, you learn, like, you just naturally build these types of, you know, mental skills. Right, because you, like, see that certain words are never going to be in there. Other words are always going to be in there. Like, you kind of have a set of words that you're going to try every time. Yeah. I just told them to be once, and molal was not in there.

M-O-L-A-L was in the chemistry term. I was very mad. I'm not in a chemist, but I was very mad because I remember that word from, like, high school chemistry. And I typed it M-O-L-A-L. It rejected. I'm like, what? You're like, excuse me. I have maybe a question way back from the beginning. So I pulled the train set off Kaggle because I was curious. And, Lucy, I don't know if you've seen it. I've never seen a dataset before where, like, actually the patterns are encoded as these colored boxes. Even when I read it into R. Yeah, it's a Unicode. Yeah, it's a Unicode. That was pretty wild to me. I didn't really trust that, so I mapped them to 2, 1, and 0. So when I stored in my SQLite data, when I stored in SQLite, or, oh, actually, you can see, you guys still see my screen. So this is the thing I built, right? This is the dictionary. So it's like any, this is a potential solution, and then this is the scores of every potential pattern, right? Like, how likely is this pattern to happen, right? So I may have put a speech on this somewhere before we can put it in the blog post. But, like, so, like, obviously, a lot of words can make all zero, all black squares, right?

But, like, so this is the data that is used when it's actually computing that initial score. But, yeah, I saw that, too, like, that the Unicode characters were with the data set. I was very comfortable doing that. Also, actually, I think if you play in dark mode in the old days, like, it would be different colors. Right. So I needed to, yeah, so I needed to map. So there's like two potential colors I think for, I think black could be gray if you play in dark mode or something like that. So I have to map both of those to one or to zero rather to make sure that I need a consistent, you know, pattern. Also, I couldn't have done this without the code I wrote for the world solver because I need to be able to generate the patterns. Like I need to have basically to play the game programmatically, right, so that if I guess this word and the answer is this word, what will the pattern be? I need to be able to compute that on the fly, right? so um so i leaned on stuff i'd already done because i basically already implemented a game in python so that i could play so that the bot could play the game play itself right could play the game itself also it's just excited to have these data because as you were talking my i teach

a survival analysis like time to event modeling class and they get to pick their own data set and it has to be censored so it has to be cut off in some way um and so i was realizing i sent it to my students because I think there is a way that you could approach this from a it doesn't have the visual element of it but there is a uh a question here of like how many guesses until people solve the puzzle right and I was trying to think because the Kaggle one at least is like kind of bare bones and so I require them to have covariates and so I was like well what would be kind of an interesting covariate and I think to your point about the like uh the how common the word is like you could have this kind of underlying piece of like how common or uncommon is the true word because I would imagine there's an element of difficulty captured in that if it's just like a word I never think of or I think you could do it with like a time varying how many puzzles have somebody played before so not a question more of a comment but thank you for bringing this into my awareness now I really hope one of them

uses it or I'm going to have to do it because I'm curious now. Yeah I was happy to see that the data set is still up I mean for a while it was like I think he had written some kind of Kaggle-based, you know, there was, I don't know, Kaggle can, like, run code, or, like, you can spin it to a container. So we had it, like, getting new data and solving the next hurdle for a while. I think that all those processes, all those automatic processes broke down a while ago, but I'm glad that the initial data set is still out there. Because it is convenient. Yeah, I just hit Blue Sky API directly, and then I built my own little, I had my own little small, you know, the light database, so I keep all of them, but it's, like, it's just a few hundred. I think I tell it to grab 800, and sometimes it gets that. Sometimes it doesn't get as many. Let's see. I forget how many I tell it to go grab. So it'll grab, like, if there were more than 800, it would just sample, like, and then otherwise. I think it's the first ones, yeah. Yeah, yeah. I should probably tell it to get. I mean, the more is better, so I should probably just tell. I think I'm doing 900. I'm telling it max plus 900. So I think that's how many I get.

Let's see. Let's see if I can figure out what's the most reasonable. The problem is I sort this by the solution, not by the world number, so you don't accidentally spoil yourself. 700, let's say I'm solving some of them with 700, 876. So that's something I tend to – again, I do filter, because sometimes it's like a German Wordle. There's Wordle.at, which I don't know what that is, but it's not the hard time. So that is bad data that will mess up the solver if I use it. So I have to aggressively filter out things. Sometimes people will put multiple Wordles in on the same day. They'll put like two Wordles back to back. I'm like, that's not going to work because I'll just confuse everything. So I had to be aggressive about kind of data filtering when I switched to Blue Sky because any kind of errant solve would kind of mess me up. I was much more sensitive to that in the small numbers. But, yeah, the other thing I did, and then we want to do quick hits with some other things I did because we did the World Software. I really wanted to know what the word openers were because, you know, Neurotrans publishes it now, but for a long time we didn't really know. We knew people. We heard that people used to do. There was like a survey.

I found like a gov, what is that thing called? There's some online poll people, poll people about what else. Yeah, like YouGov or something. It was YouGov. And YouGov had polled on openers, and I'm like, that's interesting. But I wanted to know if I could get that from these patterns. I wanted to know if you could figure out the opener, the popularity openers from the shared scores. And it's a similar approach, right? But that involved, and I tried to reproduce it like last week because I did it like two years ago, and I tried to like, well, can I do this again? and reset it. Essentially, I was doing a ridge regression on, basically, I had every word, because multiple words could make the same pattern. There's a really wide data set where every feature, every column in the regression was a one or zero for this word being there or not, because that word makes this pattern. Then I regressed on the whole thing, and I found the coefficients with the biggest, sorry, the words with the biggest coefficients. Then I started by that. That actually worked pretty well. I mean, a DU was the first one.

I have a link to the blog post. It's actually before I had my blog, so that's why I wanted to try and fix it so I could re-render it and core it on my blog. And I can't because it's like I messed it up. I didn't save any of the media data files. Like, the data's all a mess. But I got a DU. I got crane. Like, the top three matched the real top three, which is very exciting. Yeah, that's cool. That was very similar to anything. I wonder, too, if that's changing over time at all. You said that New York Times, they publish it. Yeah, every week. The little Mortal Bot that you can click on after you play will show you, like, guesses by round, including the first round, so you can see, like, what percentage of players on New York Times guessed what were. Even in my data set when I was doing it, I think I used that same Kaggle set. I remember I built my own. Crane actually went up in popularity after that three blue, one brown video, because he said that was the best opener next season, but he said it was. And so actually I could see in the data that I analyzed, and I put this in my old non-blog post, my old like on GitHub somewhere.

At least, I don't know, who knows if I was listening, but it looked to me like I could see a jump in popularity. Yes. You could do it. So the episode that we have that's like going to come out, I think just prior to yours is going to be, we had Ashley Mullen come on and talked about. She looked at an analysis that was first, like, whether time to the first kiss in, like, sitcoms and whether that, like, changes the ratings, like IMDB ratings. And so she used, like, a change point analysis or, you know, you could look at, like, a regression discontinuity or something. I feel like we could do, like, some kind of causal analysis on, like, when that video posted and see, like, you know, whether there's a difference in slope or crane versus not. I definitely saw it. I'll drop you. And that, unfortunately, is not in the beautiful Cordo website that I now have. It's, like, buried in, like, an old GitHub repository. But I will – it's like a GitHub. It's like a – I don't know what it is, but I'll send it to you. That would be awesome. Yeah. So the way the New York Times went – like, is it – could I access historic?

Like, is there an API that lets you look? Or is it, like, I would have to just, like, each day have a little scraper that would pull what the most common? Are the openers? Yeah. I think the API is such that you could, like if you kind of inspected this, I did a positive data science lab on this. If you inspect the web browser, you can probably find the JSON, and it's probably some relatively simple URL with a query, but I haven't actually checked on that one. I know that you can get the solution. That's how my world bot checks its answer because there's a very simple API that tells you what today's world's answer is. Solution was each week, yeah. So that's how I'm able to like check when I do this little, you know, pattern solving thing. Yeah. Did I get it right or not? Well, I can hit this API endpoint and like find out. My guess is the Mortal Kombat people have a similar one, but I'll look it up and tell you. I love doing that kind of thing. I'm always trying to find little hidden. Great. This is so cool.

And then, yeah, we talked, we were talking on that. Well, I think you posted me on Blue Sky. I do all these little data science projects. I have a blog post coming out probably today or tomorrow. We're in like late October. Because Google Cloud put this ad up about the moon, the full moon, causing all these percent increases in various stats. Yes. Which I immediately thought was ridiculous. So I just didn't, they're kind of true, but they didn't tell you what the error bar is. But it's like plus 30%, plus or minus 70% or whatever. So I recomputed some of their stats, and then I looked back all 125 years, like 1900 to kind of debunk this full moon myth that they put out on the internet. Love this. Yeah. I think when we first were kind of corresponding on what you would talk about, because you have so many little data deep dives, and I was just like totally, I love all of them. And it was hard to pick which one. I was like the word. This one was like, actually, even after we scheduled this, this was one that came out. But I just like love, I think this is just like the kind of motivation to you see something

and you're like, that doesn't pass the sniff test. But then you take it, like, one step further and then, like, investigate. You know, we have the tools now to be able to actually, like, let's see ourselves. Like, is it true that – is that actually showing up anywhere in the day that the moon is related? Oh, it does look like it's, like, kind of correlated, but, like, only in this one year if you pick this exact metric, if I understood correctly, right? Like, it was something, like, they were trying to say that being a full moon made it more likely that it was, like – I remember it was a year. There were three physics of eight that they claimed. One was there were more seven-plus run blowouts. Yes. Very specifically chosen. In baseball. In baseball, like 2025, there were more seven-plus run blowouts during a full moon. They said there were more 450 homers That rate doubled during a full moon presumably also also 2025 and then they said there were more multi late inning which it didn define comebacks under full moon and uh two of the three of them i could sort of see in the data but with just giant air bars because it's very small small number statistics uh and it really depended on where

you throw the threshold right like like five plus run comeback five plus run blowouts nothing seven plus runs oh look it's just there's this signal there's a little bit of thing Yeah. Yeah. So, yeah. So in addition to looking at the 2025 numbers, I went back to 1900 and kind of computed it over a much longer baseline to kind of debunk the whole moon or the whole full moon myth. Now, what was the, like, I have not actually seen this ad. What was the purpose? Were they trying to say, like, Google Cloud gives you the ability to show all of these, like, to get a whole bunch of key records? That's a good question. I think it might have been an ad for Gemini, which doesn't really sell Gemini. It was like Google plus Gemini can help you unlock your data or something. I need to read the whole script and say it. But they basically were like, we asked Google Cloud with Gemini if the full moon caused anything. And I think they might have actually done that. And they might have actually accessed an LLM. Like, here's some data. Like, did you find this moon correlating thing? And it just kind of, you know, to answer the prompt. I don't really know if that's what they did, but it sure seems like that's what they did. Because, like, these numbers ignore error bars.

And one of them I couldn't even reproduce. I couldn't even reproduce the whole month. It didn't make any sense. Yeah. Well, in the other two, it's like, yes, I guess true. If you have the access to all the compute on the Internet, then, yeah, you will find some spurious findings. Like, that does seem like confirmed. Like, we can find. But, like, to what ends? It's very interesting as an advertising strategy to be like, clearly it was not a data scientist that put together this ad. Because, like, the premise seems to be that, like, something that doesn't – because it doesn't really pass the SIFT test to begin with. So it's like you can find crazy results if you use our tool. We'll let you p-hack to like, you know. It really felt like the definition of p-hacking, but not even good p-hacking, because at least p-hacking usually you do it until you find something that looks significant, right? Like even the things they found that had really big air bars, like they wouldn't pass that. They wouldn't even be significant. That's true. It would just be like directionally in an interesting, yeah. Fascinating. That was a fun one.

That was a fun one. Like, you know, the storm or anything kind of, you know, astrology related or anything like that kind of triggers me. But it gets to raise my antenna. And so a chance to kind of merge some astronomy stuff with some baseball stuff was fun. So I did that. I banged it out over the weekend. I posted on the thread, which you saw, and then the full blog post is going out probably later today. Yeah. Well, we'll make sure we can put that in the blog as well to link to it so people can see it. I love that. That's awesome. Do you know, okay, so there were two other analyses. Well, there's one I'm going to ask about that. I don't know if you've looked at it. The other was one that you mentioned that I feel like is one that's like wise-tilly. So have you ever looked into like moon things and births? I feel like every time I'm pregnant, people are always like, oh, it's a full moon. There's going to be more babies. That would actually be really interesting because that actually is doable. I don't think that is true either. Like the study that I linked in the blog post that I kind of alluded to, I might have alluded to on Buscay is hospital visits and like someone did like

an in-depth dive of hospitals in like Florida and showed that there was no correlation with like the moon. Virs is really interesting but that's actually solvable. It just gave me another idea because so one data set that I've used a lot is the National Vital NVSS like the National Vital Statistics something or other. It basically has birth data. It's based on birth certificates like every birth in the United States, right? And up until like 1990 it actually went down to the birth date. At some point, they started anonymizing it down to a month or whatever. But actually, there's like a two-decade period where it has birth dates. And so you could go back and easily look at birth rates as a function of the moon and see if you see anything. But there are real patterns there. Latitude actually determines when the peak month is. I did a post about this because that was my plot nine content. I made a plot where you showed percentage of births in May as a function of latitude or whatever.

Yeah. And it actually does vary. It is fascinating. I believe that. For the United States, the most popular month is August, I think, for all the U.S., at least in the time frame that I once MLSed. But then there's a lot of variation by latitude counting states. So there's another blog post I wrote, which is about births, like the one about how to do with signs and vaccination rates. The sign distribution, like if you're, so month, it's a lot like month, right? There's 12 of them, so it's very similar to month. But whatever, you shift it around a little bit and you get Leo versus Pisces. That distribution, like what percentage of people are Leo or Pisces or whatever, really varies by counting, right? It's just like, there's a big distribution of that. And you really, there is no like one national distribution of like birth month or birth sign or whatever. It just varies a ton by geography. So when Salt Lake County tried to use a very dubious national distribution to correct their data for which signs were getting vaccinated, it just didn't work. They divided by a weird denominator. They made a completely fake spurious correlation.

And when I undid it, I was able to show that it looks most likely it's just that everyone had the same vaccination rate and they were just finding which signs were more common or not common in their county. That's so interesting. They thought they were continuing vaccination rates. What they were really looking for was what percentage of Salt Lake County is LEO. LEO, yeah. Yeah, yeah. Oh, that's what I, that also, I love that. Like a bad denominator type study is like, that's just like classic. That's so good. I mean, it's interesting because I think that that's one that you could, I mean, I could convince myself that there was some relationship between, because a lot of times that like vaccinations happen at your like annual appointment. And so I could create a narrative in my mind that, like, children born at, like, December or January is a very busy time of year. So maybe parents are not getting their kids in for their vaccination. You know, like, I could create some kind of, like, story behind it. So I love that. This was specifically, I think, COVID vaccinations, like, right after the vaccine came out. Oh, interesting. So I dropped a link to that one. That's one of my favorite ones. Because that really chopped my heart when it came out.

And I didn't really have any social media presence at the time. So I was, like, I had, like, an anonymous Twitter account. and I was shouting at people, like, this is what happened. I figured it out, but no one knew who I was or cared. It was just this anonymous Twitter account. So years later, when I finally had a little bit more credibility, I finally wrote it all out and said, look, this is four years ago, but I figured this out. This is what they did, and this is why it didn't work. So that's one of my favorite posts that I made in the last few years was looking at that one. That's amazing. The other one I wanted to ask you about briefly, and then I know we're like overtime, so I don't want to take too much overtime, But you had one on third babies being – Yeah, I'm still – That one is – that is like one of these pervasive – I feel like I hear this all the time because it's made it into the actual like medical literature, like these studies that are – they just – This is the one where they – this is the one where they did this study where they claimed that some moms were more likely to have all boys or all girls. Yeah, that was so bad. I can't believe it got published. I mean, it was published in a real journal. And it's like a denominator – it's actually a denominator's problem again where you're like –

I think you kind of highlighted nicely in – well, anyways, you can tell me very briefly about that one. But I think, like, that is interesting because what you're actually – like, what you want is the probability of, like, any – you know, for anybody who's going to – like, you want to divide by that. But sometimes if there's, like – we have selection. You know, once you've had two babies, if you decide to have a third, there's, like, a selection. Yeah. So this is a very famous paper that – and I thought about talking about this one on the podcast as well. paper got a ton of press where it basically said that having a baby is not a coin toss, that some moms are predisposed to having all boys or all girls and they did, they had this pretty cool data set where it had like, you know, it had these what they call SID chips, right, you know, boy-girl-boy, boy-girl-boy, boy-girl-boy-boy-boy. And obviously, the more ends you had, the bigger the family, the fewer samples there was, right, but they had this big nice data set. And they claimed that through some analyses that like, yeah, it's a beta binomial distribution, which means that some moms are 50.9%, but some are 60%, and some are 40% likely to have a boy or whatever.

And when I looked at it, I just couldn't, at first I thought it was an air bar problem, but then I looked at it more carefully, and what's really happening is that, like you said, people make a decision to have a third child or to have a fourth child, right? Yeah. And that decision is not a coin flip. They have to make an intentional choice. And people who have two boys are more likely to try for a third kid to hope, presumably, to have a girl, right? And people with two girls are more likely to try for a third kid to presumably have a boy. And that is where the binomial deviations came from. It came before the third kid, right? Like the problems with the first two kids, right? Like if it was MM or FF, you're more likely to have a third one. If you had a split, you were more likely to stop. And it seemed very obvious to me. I did a bunch of simulations. I went crazy with this. I worked on that post and edited it and updated it for like three weeks. I mentioned I wrote a letter to the editor. Before I even got to the end, I wrote a letter to the editor. So did some stats folks. And three letters that were published, all of which made the same point. Like, you have to think about when people are going to stop, and that is not random. And if you just model, hey, maybe you're more likely to stop if you have one of each or don't have all the same,

that will explain the data, and it explains the data perfectly. If you just assume that the chance of having an M's kid is higher if you're all the same, right, then that explains all the data. and I was kind of shocked it got published, to be honest with you. I love it, though, because it's like people think of this as a quote-unquote paradox. It's like very similar to the Monty Hall problem, which is another one that's like not actually a paradox. It's just like there's extra information in the system that people don't always think is information. And like this is like there's extra information in the system. The place that's actually skewing is that we've got more of these doubles in the data set. So the first two are what are causing the doubles. It's not the third that's, like, causing the skew. It's, like, so there's more doubles to begin with, which then makes it look like there's more triples. But there's not actually more triples if you just condition on the – yeah. I love this, though, because it's, like, very easy probability. It's easy – I mean, not, like, it is – I understand why people get confused by it.

But it's, like, it uses basic probability principles to show. So it's, like, a perfect example. Well, that was the first thing I did. I was grouped by the first two and then computed probably the third kid, and it was lower. It wasn't higher. it was lower and I'm like well what's going on here because their point was correct there were too many M&Ms or too many all boys but it wasn't because of the third kid it was because of the first two kids and it seemed very obvious as soon as I started looking at it which is why I was kind of shocked that it that it didn't that the whole thing got published I corresponded there was a big study of like 6 million Swedish birds or something like that or some Nordic country that said there's no genetic predisposition to white girl And so I corresponded with that author to say, what do you think of this? And he agreed with me. He thought it was crazy. He encouraged me to write in a letter to the editor. So I eventually did, and someone went in. Of course, the original article got hundreds of stories, and the letters to the editor got bumpkins, right? Like there's nothing. There's no retraction. There's no update. There's no new page. I don't know. Maybe the other real academics will write a real paper about it.

But there's no 2,400 headlines. Actually, you know what? It's just a coin toss. It's fine. If you want to go for a third kid, it's still going tough. Yeah, I know. This is so fascinating that, like, I talk about this with my students on, like, statistical communication front that, like, we really do. I mean, obviously, it's so good to have people who will, like, take the time to correct the record. I think that's really important. But, like, even more important, we need to train people to just, like, not make the mistake to begin with because that first one, there's just, like, it will get all the press. And it's really hard to get the, what is it? Kind of the bag. Yes, exactly. I get it, but back in the bottle or whatever the thing is. Do you need back in the bottle? Yeah. Do you need back in the bottle? Cat. Cat back in the bag. Cat back in the bag. Yeah. Yeah. Like, once it's out, I remember the one that I usually use as an example is that during COVID, there was this headline that there was a study up in New York where they were like 85 or 80, I think it was 83% of COVID patients in the ICU are dying. And it's like, that sounds really bad. That sounds like a really scary statistic. And it's because they basically, they used the wrong denominator.

They like most of the people were just it was only looking over like a four week period. It was really early in the pandemic. Most people were just still in the hospital. So they didn't know the outcome. So they divided like the number of people who like died. And then the denominator was like died plus discharged. But majority of people were just in the hospital still. So like the actual number was like anywhere between like 24 percent and like 97 percent or something. But it was probably closer to 24 percent as we've like seen since then. And this was it was corrected almost immediately. Like, a lot of statisticians wrote in and were like, that is not correct. I think it was published in JAMA, so it's, like, a real, you know, real medical journal. A bunch of people wrote in. It's corrected within, like, four weeks, which is, like, fast for academia, but not a single headline. You know, if you look at the, like, alt metrics, that first one is, like, off the charts. And then the other one is, like, maybe, like, three little, you know, people posts on Blue Sky or whatever. I do get one, like, reporter from Europe who reached out to me, because I think he read my letter to the editor, or maybe even my blog, I'm not sure.

And it's a kind of they were going to write a story about the baby birth thing and how some moms are more likely to have boys. And then they saw my poster, maybe my letter, and decided not to. And then I think he got a quote from me that I guess he translated into French or German or something and put in whatever little small periodical they had. So we stopped one story. You did it! That's good! That was good! We stopped one story. Yeah. But at least that one had a mechanism for a ways to respond. There is this e-letter, the science advances has at the e-letter thing. And it took them a long, frankly, a surprisingly long to get the letters published. But they did eventually publish our letters. Yeah. But, of course, yeah, the press would have gone, right? So that's frustrating. Yeah. It's like that old, do you read PhD comics? Is that still a thing? Yes. There's that one about the science news cycle or whatever. I always share that around my folks. And this was a good example of that. So, yeah. But I don't know. Yeah. No. Anyway, well, it was really nice chatting with you. It is so fun. It's my favorite. Well, thank you. No, this is a great podcast. I really, I really, I really enjoyed listening to it.

I love these kind of side projects. They really just, I find them really fascinating. I want to hear about other people's, and so this is perfect, because I feel like there's not that many of us that, like, will, like, dive into something and explore it just kind of on the side, and so I love to find out when people do that. So it's really fun to share some of mine, but also to hear what other people are doing. I totally agree. And, Margaret, like, this is, like, an example, because I feel like I've been able to meet you through this, And you're one of these exact people. I told Sarah when we started this, I'm like, mostly I just want to find our people. We've got to collect our people. Because it's like, the internet makes it so much easier to find people. Thank you for sharing this with us. You go, Glen Coco. We're regression to the mean girls. We're mean as an average, but actually very nice. Tune in next time.

番組の概要欄(原文)

<p>Follow <em>Regression to the Mean Girls</em> on [<a href="https://podcasts.apple.com/us/podcast/regression-to-the-mean-girls/id6807111816">⁠⁠⁠⁠⁠⁠⁠⁠⁠⁠Apple Podcasts⁠⁠⁠⁠⁠⁠⁠⁠⁠⁠</a>], [<a href="https://open.spotify.com/show/6L5PaIieWX4uNz06tCPcKp">⁠⁠⁠⁠⁠⁠⁠⁠⁠⁠Spotify⁠⁠⁠⁠⁠⁠⁠⁠⁠⁠</a>], or wherever you love to listen!</p><p><br></p><p><a href="https://marcoshuerta.com/">Marcos Huerta⁠</a> join <a href="https://www.sarahlotspeich.com/">⁠⁠⁠⁠⁠⁠⁠⁠⁠⁠⁠⁠⁠⁠Sarah Lotspeich⁠⁠⁠⁠⁠⁠⁠⁠⁠⁠⁠⁠⁠⁠</a> and <a href="https://www.lucymcgowan.com/">⁠⁠⁠⁠⁠⁠⁠⁠⁠⁠⁠⁠⁠⁠Lucy D&#39;Agostino McGowan⁠⁠⁠⁠⁠⁠⁠⁠⁠⁠⁠⁠⁠⁠⁠</a> with a data-driven side quest into predicting Wordle words.</p><p><br></p><p>Check out the details here: <a href="https://regressiontothemeangirls.com/">⁠⁠⁠⁠⁠⁠⁠⁠⁠⁠⁠⁠⁠⁠regressiontothemeangirls.com⁠⁠⁠⁠⁠⁠⁠⁠⁠⁠⁠⁠</a></p><p>Follow along on instagram: </p><p><a href="https://www.instagram.com/regressiontothemeangirls">⁠⁠⁠⁠⁠⁠⁠⁠⁠⁠⁠⁠@regressiontothemeangirls⁠⁠</a></p>

出典・この記事について

番組
Casual Inference(Lucy D'Agostino McGowan and Ellie Murray)
元の回
Regression to the Mean Girls | Wordle Solver with Marcos Huerta
配信日
要約作成日
公式サイト
casualinfer.libsyn.com/website

この要約・解説記事は、元の音声を文字起こしした内容をもとに AI(Claude)が日本語で作成したものです。 固有名詞や数値に誤りを含む場合があるため、正確な内容は元の音声でご確認ください。制作方法について

X でシェア

関連エピソード