Solving Wordle using information theory

Поділитися
Вставка
  • Опубліковано 21 лис 2024

КОМЕНТАРІ • 9 тис.

  • @leumasarc4180
    @leumasarc4180 2 роки тому +20852

    Imagine Grant's friend innocently telling him that his Wordle opener was "weary", only for him to publish a 30-minute essay on why that's stupid a week later😅

    • @lilydiring4295
      @lilydiring4295 2 роки тому +638

      making this video is just an excuse to prove his friend is stupid mathematically lol

    • @Acc_Expired
      @Acc_Expired 2 роки тому +1768

      To be fair, the friend did have the best possible explanation for it. They maximized expected joy rather than information.

    • @teeforever1
      @teeforever1 2 роки тому +16

      the Gospel:
      the Gospel isn't solely "Jesus loves you and He can do this, this, and that for you." no, the true Biblical Gospel is that all have sinned and fall short of the glory of a holy and just God, and because of this we all deserve death and eternal damnation in hell.
      our sins have separated us from God and when we were separated from God, we were sold as slaves to sin, under the captivity and care of the devil, whom we love(d).
      in our sinful nature, we're nothing more than wretched, vile sinners in DIRE need of the Savior, but JESUS, the perfect and sinless Lamb of God, came into the world and took the punishment we deserved for our wicked sins and was raised from the dead three days after being buried so that we may have the opportunity of salvation, redemption, adoption, and reconciliation to the Heavenly Father. we ought to repent and believe in the Gospel of our LORD Jesus Christ; we must be born-again. (Mark 8:36,37) (John 3:16), (Acts 17:30), (Romans 6:23), (John 3:5), (Ecclesiastes 12:13), (Mark 1:15).

    • @anasimron
      @anasimron 2 роки тому +179

      @@teeforever1 wat

    • @ralphcrewe374
      @ralphcrewe374 2 роки тому +496

      His friend is probably pretty awesome

  • @lumisussy
    @lumisussy 2 роки тому +36235

    Interesting video, real good stuff. Gonna keep using PENIS but this was really cool and informative!

  • @RazAnime
    @RazAnime 2 роки тому +3471

    creating an algorithm for this and comparing them against each other sounds like it would have made a great programming competition

    • @bigbadwolf4075
      @bigbadwolf4075 2 роки тому +56

      I was thinking the same! In fact I actually was researching for a hash table for all 5 letter words and was going to start my algo.

    • @mitikox
      @mitikox 2 роки тому +26

      well, a bit further from wordle, with the same intent, there's the Hutter prize

    • @sudevsen
      @sudevsen 2 роки тому +9

      Polygon already did it

    • @tiagoaoa
      @tiagoaoa 2 роки тому +8

      the fact that such a competition would be possible tells us that the use of "optimal" in the title is incorrect. :P that being said, that competition would be interesting!

    • @oelarnes
      @oelarnes 2 роки тому +17

      @@tiagoaoa I think for this reason a competition would not be interesting. As far as I can tell the algorithm is optimal for the objective it defines (which is slightly modified from the original puzzle but only for greater generality)

  • @tztztz-vp4ty
    @tztztz-vp4ty 2 роки тому +405

    The amount of preparation work in order to produce a video like this is unbelievable.. truly impressive work.

    • @ParadanMusic-cn7ym
      @ParadanMusic-cn7ym 5 місяців тому +1

      even if i'm there i'm always listening out for these specific locations for a better d'andre type of speaking throughout these special and widly ranged with the ability to be truly free

  • @clickbaitking6770
    @clickbaitking6770 2 роки тому +1809

    I love those sketches you put in when depicting real life situations, like the conversation between Von Neumann and Shannon 12:01!

  • @nipungupta8846
    @nipungupta8846 2 роки тому +1179

    You deserve the world. The amount of effort that went into making those smooth slick animations, the wordle UI to run simulations on, the code that you wrote is IMMEDIATELY apparent. Production quality is off the charts as always, and the video is filled to the brim with information, pun intented. Keep up the good work, you are amazing!

    •  2 роки тому +19

      I came to say this. It is, most likely, the best presentation I have ever witnessed.

    • @robchan2604
      @robchan2604 2 роки тому +6

      Really cool presentation.
      Laughed at the words Crane and Shtik when they came out. Reminds me of a thing I saw a few days ago called joincrane.

    • @sabnarose
      @sabnarose 2 роки тому +2

      He deserves the wordl(e)

  • @lindybeige
    @lindybeige 2 роки тому +1949

    The position of letters is a factor. For example, I prefer TALES over SALET ( SALET is recommended by others who have done computer analysis of this game) because if I do NOT get a green S, then that rules out a huge number of plural four-letter nouns with an S on the end, like BOOMS. Note that I am getting a lot of information out an absence of a match there. Though Y is a fairly rare letter, it turns up at the end of a lot of five-letter words. Letters like L, R and H are important beyond their commonness because they often combine with other consonants as in BLAND, PROSE, and CHAIR.

    • @figgahh5823
      @figgahh5823 2 роки тому +229

      the word is never a plural fyi

    • @lindybeige
      @lindybeige 2 роки тому +130

      @@figgahh5823 Oh really? It accepts guesses of plurals, such as NAILS which is used as an example in this video. Good to know, thanks.

    • @figgahh5823
      @figgahh5823 2 роки тому +30

      Lindybeige no worries! I only found out yesterday too

    • @laurie_guilbeau
      @laurie_guilbeau 2 роки тому +25

      I have also thought about not only the letters of your first word but the placement. I either use 'STERN' or 'RENTS.' Since 'rents' ends in S, it will rule out most plural words. But then I think that plural words don't tend to be the words used in Wordle. So I usually just go with 'stern.'

    • @andrewedgecombe
      @andrewedgecombe 2 роки тому +12

      @@lindybeige Maybe it rejects "nails" if you enter it as the plural of nail, but it accepts it if you enter "nails" as the past tense of the verb "nail"? ;-)

  • @kilianschabort2354
    @kilianschabort2354 Рік тому +193

    A year later and my blind devotion to your original video has paid off. Thank you kindly!

    • @BrandonSmith-mj9nf
      @BrandonSmith-mj9nf Рік тому +10

      All Greens.

    • @YungPetee
      @YungPetee Рік тому +8

      I guessed crane time since I saw this video, I never thought the day would finally come

    • @maxking65
      @maxking65 Рік тому +3

      What do we start with now?

    • @robeik
      @robeik Рік тому +3

      I watched this only a week or so before adopting it and it being correct on the first guess.

  • @AlexDings
    @AlexDings 2 роки тому +573

    4:00 note that the list used in Wordle is the exact list of words allowed in international tournament Scrabble. It's called CSW19.

    • @helenross3037
      @helenross3037 2 роки тому +45

      I believe that the original list had all available scrabble five letter words, but the coder's partner went through and took out all the truly ridiculous and obscure ones

    • @rowanlivengood
      @rowanlivengood 2 роки тому +8

      sounds like a virus

    • @tomribbens4860
      @tomribbens4860 2 роки тому +28

      @@helenross3037 The allowed words list is the full list. The possible answers is the curated by the partner list.

    • @trefwoordpunk2225
      @trefwoordpunk2225 2 роки тому +9

      @@helenross3037 Threw out 10,000 words.... yet kept American spellings of words despite being British. Pfft... snowflakes

    • @tsumikiminiwa4603
      @tsumikiminiwa4603 2 роки тому +2

      @@trefwoordpunk2225 Isn't Scrabble (or at least Scrabble tournaments) US centric? I feel like it's more likely the Scrabble tournament people removed those words

  • @DrTrefor
    @DrTrefor 2 роки тому +860

    Came for the wordle, stayed for the awesome lesson on information theory. Cool!

    • @dariuskianersi4350
      @dariuskianersi4350 2 роки тому +3

      love your videos!

    • @FranFerioli
      @FranFerioli 2 роки тому +2

      Your playlist on discrete math is up next on my list...

    • @edwardsulitzer3738
      @edwardsulitzer3738 2 роки тому +2

      Professor Bazett! You were my professor while I was at UofT and just wanted to say you were hands down one of the best math teachers I've had, I still remember your infectious enthusiasm for the topic

    • @DrTrefor
      @DrTrefor 2 роки тому +2

      @@edwardsulitzer3738 hey cool! Small internet lol

    • @teeforever1
      @teeforever1 2 роки тому +1

      the Gospel:
      the Gospel isn't solely "Jesus loves you and He can do this, this, and that for you." no, the true Biblical Gospel is that all have sinned and fall short of the glory of a holy and just God, and because of this we all deserve death and eternal damnation in hell.
      our sins have separated us from God and when we were separated from God, we were sold as slaves to sin, under the captivity and care of the devil, whom we love(d).
      in our sinful nature, we're nothing more than wretched, vile sinners in DIRE need of the Savior, but JESUS, the perfect and sinless Lamb of God, came into the world and took the punishment we deserved for our wicked sins and was raised from the dead three days after being buried so that we may have the opportunity of salvation, redemption, adoption, and reconciliation to the Heavenly Father. we ought to repent and believe in the Gospel of our LORD Jesus Christ; we must be born-again. (Mark 8:36,37) (John 3:16), (Acts 17:30), (Romans 6:23), (John 3:5), (Ecclesiastes 12:13), (Mark 1:15).

  • @I_am_Itay
    @I_am_Itay 2 роки тому +330

    This video is so good and the fact that you implemented and did affort to basically have any visual / stasttical point of view to any version of solver is just incredible

  • @blackholevortex
    @blackholevortex 2 роки тому +192

    This video is so well done.
    The word play at 18:40, the hidden messages in the game at 25:25... This video gives me "Gödel, Escher, Bach" vibes, and that is something that has never happened to me since I read that book. Awesome.

  • @berryesseen
    @berryesseen 2 роки тому +229

    As an information theorist (a PhD student working on the field), I am amazed by this video. It is so interesting and well-organized. The information i(x) = -log2(p(x)) is also called "surprisal". I like this terminology a lot, because, really, the larger i(x) is, the more you get surprized by the outcome x.

    • @iain_nakada
      @iain_nakada 2 роки тому +2

      I like that.

    • @shreyasunil9204
      @shreyasunil9204 2 роки тому

      why use he log base 2??
      bcs always we cant get half observation in my space of probabilities

  • @Bismuth9
    @Bismuth9 2 роки тому +1863

    18:38 I bet you had a lot of fun writing that bit

    • @eboone
      @eboone 2 роки тому +2

      Hello

    • @NoriMori1992
      @NoriMori1992 2 роки тому +8

      That's two different UA-camrs that I've been watching recently that have commented on this video. (You and AlphaPhoenix.) I love that!

    • @dannyb21892
      @dannyb21892 2 роки тому +14

      I come to the comments to write this and see my boy bismuth beating me to the punch

    • @devonm8578
      @devonm8578 2 роки тому +43

      I spit out my tea at "Where those after first are after, where and those, being just a little bit less common."

    • @NoNTr1v1aL
      @NoNTr1v1aL 2 роки тому +2

      These nuts haha gotem. Someone end me pls.

  • @Paul_MacK
    @Paul_MacK 2 роки тому +1242

    Never have I ever been tricked into enjoying a math class like this. I wish I had you instead of all my college professors

    • @malachiduncan6104
      @malachiduncan6104 2 роки тому +30

      I mean I'm sure he had to go through what you did to get to the fun things he does now.

    • @melody3741
      @melody3741 Рік тому +9

      @@malachiduncan6104 this, also learning anything you don’t wanna learn will ALWAYS be worse than something you are motivated to do.

    • @CloneDaddy
      @CloneDaddy Рік тому

      Hear, Hear.

    • @liechtenstein6775
      @liechtenstein6775 7 місяців тому

      ​@@malachiduncan6104oh i heard the lecture about information theory. And you can teach all of this real boring

  • @gwenturo9550
    @gwenturo9550 Рік тому +27

    I adore your teaching style of gradually building upon simple intuitions until you've reached a rigorous and useful conclusion. It makes so many subjects easier to understand and I hope I get to use it someday

  • @DrZedDrZedDrZed
    @DrZedDrZedDrZed 2 роки тому +248

    The most useful and enlightening definition of entropy I've ever encountered came from neuroscientist Terrence Deacon, who frames it as the dissipation of constraints. Anything at maximum entropy is maximally UN-constrained. Be it energy levels in the statistical distribution of particles in an ideal gas (Boltzmann) or the resolution of uncertainty in the answer of any given question (Shannon). It also helps to frame how entropy doesn't simply rely on the contents of a container (2 black, and 2 red checkers on a 2 x 2 checker board, for example) but the possibility space conferred onto those arrangements by the SIZE of the container (considerably larger if those same checker pieces end up transposed onto a standard 8 x 8 board). Constraints man, they're big time (gravity vs. Inflation being my all time fav example).

    • @aaron552au
      @aaron552au 2 роки тому +5

      The definition that I use (I think I got it from PBS Space Time) is a measure of how much *unknown* information - according to certain defined properties like particle position/velocity, quantum properties, etc. - is present in a given system.
      Deacon's definition is definitely more concise though!

    • @JaxsobThe3rd
      @JaxsobThe3rd 2 роки тому

      @@aaron552au sussy

    • @silentofthewind
      @silentofthewind 2 роки тому +1

      What the heck is happening here 😭

    • @paulkiat
      @paulkiat 2 роки тому

      Compound Pivot. Dead Hands. Finesse Swing. 730, 900, 1030 swings. Makes complete sense @David

    • @teeforever1
      @teeforever1 2 роки тому +1

      the Gospel:
      the Gospel isn't solely "Jesus loves you and He can do this, this, and that for you." no, the true Biblical Gospel is that all have sinned and fall short of the glory of a holy and just God, and because of this we all deserve death and eternal damnation in hell.
      our sins have separated us from God and when we were separated from God, we were sold as slaves to sin, under the captivity and care of the devil, whom we love(d).
      in our sinful nature, we're nothing more than wretched, vile sinners in DIRE need of the Savior, but JESUS, the perfect and sinless Lamb of God, came into the world and took the punishment we deserved for our wicked sins and was raised from the dead three days after being buried so that we may have the opportunity of salvation, redemption, adoption, and reconciliation to the Heavenly Father. we ought to repent and believe in the Gospel of our LORD Jesus Christ; we must be born-again. (Mark 8:36,37) (John 3:16), (Acts 17:30), (Romans 6:23), (John 3:5), (Ecclesiastes 12:13), (Mark 1:15).

  • @leovin00
    @leovin00 2 роки тому +217

    This 30 minute video taught me more about entropy than an entire section on entropy from my machine learning course. Bravo!

    • @seanvinsick
      @seanvinsick 2 роки тому +1

      reducible has some pretty good videos on it, especially the compression video. He uses grant's library, so they look like 3b1b but instead of a focus on math, it's on cs.

    • @suparki123
      @suparki123 2 роки тому +3

      Honestly, machine learning is really not the best context to get an intuitive understanding of entropy.

    • @rahuldewangan1064
      @rahuldewangan1064 2 роки тому +1

      Machine learning in IMHO is a wrong introduction for Information Theory. Shannon's paper "A mathematical theory of Communication" and Hamming's Paper on Error correction and Detection are really worth reading and easily approachable in few sitting.

    • @rishikeshchapekar4481
      @rishikeshchapekar4481 2 роки тому

      Same. I learn more maths, better maths in a few 3b1b videos than I do at school

  • @MrSamwise25
    @MrSamwise25 2 роки тому +222

    I love how you opened with the idea that "4 guesses is par and 3 guesses is birdie", then in your comment at the end (29:26) you note that consistently getting 3 guesses is basically impossible. That's so cool how the math matches our human intuition about the puzzle!

    • @koktszfung
      @koktszfung 2 роки тому +7

      I think it is experience rather than intuition

    • @SpeedOfDarknesss
      @SpeedOfDarknesss 2 роки тому +37

      @@koktszfung Isn't most of intuition simply what you expect based on experience? 😛

    • @randomsoul294
      @randomsoul294 2 роки тому +13

      @@koktszfung Intuition is experience-driven

    • @lambdaman3228
      @lambdaman3228 2 роки тому +3

      @@koktszfung You got schooled in the comments.

    • @TheJunky228
      @TheJunky228 2 роки тому +2

      oh I thought he said 3 was dirty, as in you're using outside info or likely cheating. continuing the golf terms make more sense lol

  • @jonaslarsson5279
    @jonaslarsson5279 Рік тому +82

    I could've never had forgiven my self had I not played Wordle today. Been using crane since this video came about.

    • @jonaslarsson5279
      @jonaslarsson5279 Рік тому +1

      @@lpeabody yeah idk if it's public though?

    • @connorwallace5274
      @connorwallace5274 Рік тому

      ​@jonaslarsson5279 it might be the the source code somewhere

  • @HBMmaster
    @HBMmaster 2 роки тому +9569

    thanks for making this. now people will stop asking me to make this video, lol

    • @RobBot00
      @RobBot00 2 роки тому +211

      Lol, would still appreciate your take! Thanks jan

    • @lillianruan9801
      @lillianruan9801 2 роки тому +271

      People still won’t stop asking you, lets be honest.

    • @shinydino
      @shinydino 2 роки тому +356

      You’re contractually obligated to remake this video in toki pona using seximal notation.

    • @Anonymous-df8it
      @Anonymous-df8it 2 роки тому +44

      Do the same thing but instead of the bit, you have -log base 6 of p(x).

    • @AlienValkyrie
      @AlienValkyrie 2 роки тому +15

      @@Anonymous-df8it You mean -log base 10 of 1/p(x), right?

  • @caspg
    @caspg 2 роки тому +181

    I JUST started a college class on information theory. I'll have to watch this again a couple of times but its so helpful to have a real world example!

    • @EscurKo
      @EscurKo 2 роки тому +2

      real worlde example :D

    • @caspg
      @caspg 2 роки тому

      @@EscurKo haha yes yes, you get it. Its not a book exercise.

  • @fromscratch2654
    @fromscratch2654 2 роки тому +720

    This reminds me of "mastermind" a game of the early 70's. In stead of words you have 4 different colored pins. And for the error/success feedback there is two pins in black and white. It is played by two people where one player is the guesser and the other one checks the guess and gives feedback.

  • @Hydratz
    @Hydratz Рік тому +26

    On Jun 21, 2023 I put down the word CRANE and to my amazement, it was the word of the day! Its the only word I got on my first try

  • @AlphaPhoenixChannel
    @AlphaPhoenixChannel 2 роки тому +4071

    Grant: “this video’s getting kinda long.”
    Me: “what are we at, like 10? 15 minutes? He’s got plenty of time!”
    Me after checking clock: “oh…”

    • @chiragkumar9060
      @chiragkumar9060 2 роки тому +44

      Hi alpha I love your videos huge science fan!

    • @imbw267
      @imbw267 2 роки тому +33

      Pros watch at 2x speed

    • @AlphaPhoenixChannel
      @AlphaPhoenixChannel 2 роки тому +185

      @@imbw267 nah 1x. I want to appreciate it in its entirety

    • @shoam2103
      @shoam2103 2 роки тому +36

      I knew it was a 30 min video when it started. Couldn't believe it was already over.

    • @calebhansen9316
      @calebhansen9316 2 роки тому +3

      ngl I did the same thing with the speed of motion

  • @binaryalgorithm
    @binaryalgorithm 2 роки тому +180

    Such clarity in explaining things, is why I love this channel. Plus, you do a ton of work to make it visually interesting!

    • @teeforever1
      @teeforever1 2 роки тому

      the Gospel:
      the Gospel isn't solely "Jesus loves you and He can do this, this, and that for you." no, the true Biblical Gospel is that all have sinned and fall short of the glory of a holy and just God, and because of this we all deserve death and eternal damnation in hell.
      our sins have separated us from God and when we were separated from God, we were sold as slaves to sin, under the captivity and care of the devil, whom we love(d).
      in our sinful nature, we're nothing more than wretched, vile sinners in DIRE need of the Savior, but JESUS, the perfect and sinless Lamb of God, came into the world and took the punishment we deserved for our wicked sins and was raised from the dead three days after being buried so that we may have the opportunity of salvation, redemption, adoption, and reconciliation to the Heavenly Father. we ought to repent and believe in the Gospel of our LORD Jesus Christ; we must be born-again. (Mark 8:36,37) (John 3:16), (Acts 17:30), (Romans 6:23), (John 3:5), (Ecclesiastes 12:13), (Mark 1:15).

  • @oweneastwood3445
    @oweneastwood3445 2 роки тому +38

    Grant that little bit you did with "these is in the eighth position" etc was absolutely brilliant. Great video as ever, thank you.

  • @EeveeFromAlmia
    @EeveeFromAlmia Рік тому +7

    I never touched it when Wordle was a big deal, but watching you talk about the maths is making me want to try it for the first time. Congrats on that.

  • @grandtheftlemon301
    @grandtheftlemon301 2 роки тому +351

    Tares is a verb! "He tares the scale". It means setting a scale to zero with something on it. That way you can weigh something in a container without weighing the container! You use it a lot in chemistry.

    • @joaomatheus6222
      @joaomatheus6222 2 роки тому +18

      Fun fact: (not Fun at all actually) in portuguese its "tara", but the word for "pervert" is "tarado", where -do is a suffix, meaning "perversion" is "tara" as well

    • @MelodiousThunk
      @MelodiousThunk 2 роки тому +13

      @@joaomatheus6222 How interesting! I looked up the etymology of "tare", to see if it might explain why "tara" has two different meanings in Portuguese. I found that the medieval Latin word "tara" comes from the Arabic word "tarah", meaning "thing deducted or rejected, that which is thrown away", which is derived from "taraha", meaning "to reject". Perhaps perversion became associated with rejection at some point in the history of the Portuguese language.

    • @teeforever1
      @teeforever1 2 роки тому +2

      the Gospel:
      the Gospel isn't solely "Jesus loves you and He can do this, this, and that for you." no, the true Biblical Gospel is that all have sinned and fall short of the glory of a holy and just God, and because of this we all deserve death and eternal damnation in hell.
      our sins have separated us from God and when we were separated from God, we were sold as slaves to sin, under the captivity and care of the devil, whom we love(d).
      in our sinful nature, we're nothing more than wretched, vile sinners in DIRE need of the Savior, but JESUS, the perfect and sinless Lamb of God, came into the world and took the punishment we deserved for our wicked sins and was raised from the dead three days after being buried so that we may have the opportunity of salvation, redemption, adoption, and reconciliation to the Heavenly Father. we ought to repent and believe in the Gospel of our LORD Jesus Christ; we must be born-again. (Mark 8:36,37) (John 3:16), (Acts 17:30), (Romans 6:23), (John 3:5), (Ecclesiastes 12:13), (Mark 1:15).

    • @LucianoRobino
      @LucianoRobino 2 роки тому +6

      @@MelodiousThunk I suspect you are on the money about that. In Spanish we also have the verb "tarar": to set a scale to zero. Also we have a "tarado" (male) and "tarada" (female) but it translates as stupid or idiot. In fact, it's a participle. It's like saying "tared":
      The scale was tared // La balanza fue tarada.
      I wouldn't be surprise if your explanation is also valid for Spanish. Just remember the complex history Spain and Portugal have with each other. Specially during the Al Andalus times.

    • @williamsmith3817
      @williamsmith3817 2 роки тому +6

      I always wondered why the scales I use to brew my coffee had a "T" written on the button that zeroes the scales 😂

  • @zangeh
    @zangeh 2 роки тому +383

    "we shouldn't let machines rule our lives" -the man writing and using a wordle bot
    Love the video!

    • @karakenio
      @karakenio 2 роки тому +1

      HAHAHA I was going to bring that up. Super funny.

    • @corneasp9418
      @corneasp9418 2 роки тому +4

      Funny if you take it the wrong way yeah but the meaning of that saying is to not blindly follow a machine's decision, which is exactly what he's doing by taking into account the bot suggestion but ultimately making his own choice with what info he has available aka the word list and his personal preference.

    • @zangeh
      @zangeh 2 роки тому

      I know what it means, Corne, lol

    • @maanitarora1172
      @maanitarora1172 5 місяців тому

      exactly! he's just iconic!

    • @maanitarora1172
      @maanitarora1172 5 місяців тому

      exactly! he's just iconic!

  • @stephaniecass6567
    @stephaniecass6567 2 роки тому +473

    "Ignoring its recommendation, because we can't let machines rule our lives"
    I love this!!!

  • @Mathefurdullies
    @Mathefurdullies Рік тому +3

    the letters „first naive ideas“ tending to the word „start“ is such a nice detail!
    well done video!

  • @RoanCritter
    @RoanCritter 2 роки тому +79

    18:39-18:58 I love this paragraph! Love this wordplay, brings back VSauce memories!

    • @vez3834
      @vez3834 2 роки тому +3

      I really liked it as well :)

    • @jamiepayton1574
      @jamiepayton1574 2 роки тому +1

      Yea, brillaint stuff

    • @necromac
      @necromac 2 роки тому +5

      That part made me smile. You could tell he was having fun with it :)

    • @nakulgoyal2879
      @nakulgoyal2879 2 роки тому +4

      Grant is a fucking genius lmao

    • @kingkory2
      @kingkory2 2 роки тому +4

      Reminds me a of CGP Grey video personally with the wordplay and semi-rhythmic nature

  • @bored_pyro
    @bored_pyro 2 роки тому +422

    Awesome breakdown as usual. I'm surprised you didn't comment more about the effect of "hard mode" and the reduction in information available when you need to reuse correct information.

    • @rantingrodent416
      @rantingrodent416 2 роки тому +1

      I wonder if looking ahead at the next guess is all you really need for hard mode.

    • @psymar
      @psymar 2 роки тому +12

      @@rantingrodent416 definitely gotta look ahead at more than one guess; it's easy to get stuck with 4 letters solved and 4-5 options for the last letter and if you don't have enough guesses left...

    • @AntonioDoukas
      @AntonioDoukas 2 роки тому +1

      Am I the only one that finds hard mode easier?

    • @Codan3
      @Codan3 2 роки тому +4

      @@AntonioDoukas hardmode is definitely harder, so I assume you are. if you get stuck on a word with 4 greens and one grey, that could have several possibilities for the last one, you're boned

    • @dalmationblack
      @dalmationblack 2 роки тому

      Hard mode is actually a lot easier to write a bot for, in my experience

  • @justincalfo1486
    @justincalfo1486 2 роки тому +545

    Would love to see how you would approach tackling Wordle’s “Hard Mode.” Loved it, thanks so much for making this

    • @jermudgeon
      @jermudgeon 2 роки тому +16

      I’d love to see the changes hard mode creates as well.

    • @kidalan
      @kidalan 2 роки тому +11

      Ditto! What’s the best first word in Hard Mode?
      Great video! (but none of it applies to my game lol)

    • @themaincheese5897
      @themaincheese5897 2 роки тому +2

      @@kidalan lol😐

    • @__a_4444
      @__a_4444 2 роки тому +4

      @@kidalan I go for the naïve frequency analysis-based route. 'orate' is my go-to atm, but it used to be 'opera'.
      That is not to say by any means it is optimal.

    • @kidalan
      @kidalan 2 роки тому +8

      @@__a_4444 I like those openers! I usually open with adieu or ourie. I like to establish which vowels I’m working with, then use that foundation to shoot down consonants. If there was a word with five vowels, I’d use that every time. 😆

  • @vedparekh2170
    @vedparekh2170 Рік тому +5

    Finally after using crane as my opening for a year, I'm so grateful i didnt miss wordle 732!

  • @beckettmw
    @beckettmw 2 роки тому +79

    (18:46) Just brilliant! ‘FIRST is “which” after WHICH THERE's “their” and “there.” “First” itself is not FIRST but ninth, and it makes sense that THESE OTHER words COULD come ABOUT more often. WHERE those AFTER first are “after,” “where,” and “those,” ... BEING just a little bit less common.’

    • @lawislaw2585
      @lawislaw2585 2 роки тому +13

      I also thought that was brilliant. Such awesome word play and creativity for such a small moment

    • @shibno01
      @shibno01 2 роки тому +7

      As soon as I heard it I looked for this comment

    • @lawislaw2585
      @lawislaw2585 2 роки тому +4

      @@shibno01 same lol

    • @widmur
      @widmur 2 роки тому +3

      I thought I was having a neurological event.

    • @charmingpea
      @charmingpea 2 роки тому +1

      WHOSE on FIRST?

  • @bentationfunkiloglio
    @bentationfunkiloglio 2 роки тому +49

    By far, my absolute favorite 3b1b video. No uncertainty! I really like that the discussion didn't get bogged down with decision tree specifics. Instead, focus was on deriving an appropriate metric for the problem at hand.
    Perfect context to discuss entropy, information gain, uncertainty, etc. Nicely done! Giving you a virtual standing ovation.

  • @BorinUltimatum
    @BorinUltimatum 2 роки тому +340

    My friend and I like AUDIO/STERN as a double opening. It covers all traditional vowels without repeat letters and tests S in the first slot which is the most common starting letter for 5 letter words.

    • @nigelong1779
      @nigelong1779 2 роки тому +17

      I use IRATE/SOUND myself

    • @Tabroski
      @Tabroski 2 роки тому +11

      Nice. ADIEU/SHORT is mine. So instead of the N I’m guessing the H. Other than that it’s the same letters.

    • @simoncarter3541
      @simoncarter3541 2 роки тому +3

      @@nigelong1779 I was irate and pound but will definitely switch to sound now

    • @Stereomoo
      @Stereomoo 2 роки тому +1

      I use AUDIO/LYRES, I did a very non-scientific survey of digraphs and found that S (as first letter), L or R (as second letter) have the most distinct ones, so far I'm averaging 4 so I'm maybe doing as well as a simple robot.

    • @WhitestOC
      @WhitestOC 2 роки тому +1

      I did exactly these 2 as well, have not had a single misser and played since start. We stopped using it as it became too easy to play with these 2

  • @Willieg2008
    @Willieg2008 Рік тому +7

    I have religiously been using crane since I saw this video, TODAYS OUR DAY GUYS!!!!!🎉

  • @quai8193
    @quai8193 2 роки тому +733

    I played Wordle for the first time just a few minutes ago and used "Other" as my opener and got a 1/6
    thanks man

    • @dannyhpy_me
      @dannyhpy_me 2 роки тому +20

      The same thing literally happend to me RIGHT NOW, I was shocked lmao!!

    • @charlieoxspring545
      @charlieoxspring545 2 роки тому +2

      ahaha me too

    • @slinky7696
      @slinky7696 2 роки тому +3

      I got 4/6

    • @NovaaZR
      @NovaaZR 2 роки тому

      oh

    • @malleckmelon2086
      @malleckmelon2086 2 роки тому +7

      @@NovaaZR
      he meant tht day the actual word was *OTHER* so he got it right
      on the first try lol

  • @admiralcapn
    @admiralcapn 2 роки тому +412

    Just realised WORDLE now has a "hard mode" where you MUST use existing information in future guesses (i.e. if you get a green first letter and yellow fourth letter, future guesses HAVE to start with that same first letter and mix that other letter around). Curious how this would affect the amount of information obtained at each guess, particularly with an algorithm looking ahead multiple guesses.

    • @sandal_thong8631
      @sandal_thong8631 2 роки тому +38

      I've lost only a couple times; once because I got the last 4 letters, but there were more possibilities for the first letter than I had guesses left. that would be a case to use a word that doesn't include the results from previous guesses.

    • @kgratia4748
      @kgratia4748 Рік тому

      ?. SZwa*=+

    • @22tfortnitevevo
      @22tfortnitevevo Рік тому +6

      he has that at the end of the vid

    • @Kyle-oe2vs
      @Kyle-oe2vs Рік тому +1

      he does a zip on the guesses and patterns, look at the source code:
      if hard_mode:
      for guess, pattern in zip(guesses, patterns):
      choices = get_possible_words(guess, pattern, choices)

    • @_P2M_
      @_P2M_ Рік тому +14

      Oh. That's just how I've been playing normally...

  • @dudedude6892
    @dudedude6892 2 роки тому +268

    I learned about entropy from a graphic novel called Meanwhile. It's a choose your own adventure revolving around a scientist and three inventions, the kill everyone button, a time machine, and a memory transfer machine, highly reccomend, more of a puzzle than a book.
    Great video as always!
    Edit: Author's Name is Jason Shiga.

  • @Ida20
    @Ida20 5 місяців тому

    I can’t imagine the work involved in creating this video. It is so refreshing to see something professionally done.

  • @3blue1brown
    @3blue1brown  2 роки тому +4008

    Edit: For more details on how the "best" opener was chosen, and why there was a slight mistake here such that CRANE actually drops to #6, see the follow-on video ua-cam.com/video/fRed0Xmc2Wg/v-deo.html
    For a human playing Wordle, I'm not sure I'd actually recommend starting with CRANE, or any of the ones best for one of these algorithms, since it requires also knowing what it will do for second guesses. For example, here's the start of the mapping for what it does with that second guess:
    ⬛⬛⬛⬛⬛ -> sloth
    ⬛⬛🟨⬛⬛ -> toils
    ⬛⬛⬛⬛🟨 -> spilt
    ⬛🟨⬛⬛🟨 -> rosit
    ⬛⬛⬛⬛🟩 -> toils
    ⬛🟨⬛⬛⬛ -> shout
    ⬛🟨🟨⬛⬛ -> party
    ⬛⬛⬛🟩⬛ -> gluts
    ⬛⬛⬛🟨🟨 -> lemon
    ⬛⬛⬛🟨⬛ -> pilot
    🟨⬛⬛⬛⬛ -> kutis
    ⬛🟩⬛⬛⬛ -> pilot
    ⬛🟨🟨⬛🟨 -> patly
    ⬛⬛🟩⬛⬛ -> slipt
    ⬛⬛🟨⬛🟩 -> lambs
    ⬛⬛🟨🟨⬛ -> toils
    ⬛⬛🟨⬛🟨 -> tepal
    ⬛⬛🟩⬛🟩 -> glost
    ⬛🟨⬛⬛🟩 -> south

    • @0x19
      @0x19 2 роки тому +58

      :O btw really nice video! The animations were amazing and they made it very fun to watch! Keep it up!

    • @MaxxDW
      @MaxxDW 2 роки тому +35

      I find it very interesting that in all three of these words, 'A' finds itself in the third position. Is that just a thing where most 5 letter words containing an 'A' have it in the third position or is that meant as a guess to provide most information - or bits?

    • @jaekim7514
      @jaekim7514 2 роки тому +48

      will we see a follow-up with hard mode consideration?

    • @jaekim7514
      @jaekim7514 2 роки тому +29

      couple more questions on this super interesting video:
      1. i note that the information you are gaining each time seems more based on letter frequency while not really considering letter placement frequency (as your suggested guesses often include words with letters in incorrect places, albeit with 0 probability of being right). that may be another avenue for info gain - ie, doing some analysis on how often a given letter occurs in a specific location.
      2. strongly defining what is optimal as it may mean different things to different ppl. you seem to have defined it as lowering the expected number of guesses until being correct. however, another might reasonably define optimal as never missing a puzzle which i suspect would change the strategy being used.
      and of course my previous question of looking at the puzzle in hard mode would also affect how the previous two points are considered.
      cheers and thanks for the informative video!

    • @darthrainbows
      @darthrainbows 2 роки тому +19

      Huh, I ran a much more naive calculation of the best first guess (matching every word in the worlde dictonary against every other word, calculating yellow and green clues, and generating a weighted average score with green clues being a bit more valuable than yellow) and I also came up with SOARE as the best first guess.

  • @Cheetahhh
    @Cheetahhh 2 роки тому +756

    You ever watch a video that's so good you actually watch the end screen

    • @AzureSteel
      @AzureSteel 2 роки тому +5

      More like "you ever watch a video that is too long you actually SKIP to the end screen" 😅 Yeah no way am I sticking around for 30 minutes trying to get info on the best start word to use.

    • @dogmouthhorse
      @dogmouthhorse 2 роки тому +39

      @@AzureSteel why would you look to an in-depth mathematics channel for wordle tips?

    • @havocike2400
      @havocike2400 2 роки тому +11

      Wait Cheetahh. Lol. Holy crap. Weird to find a bridge player here lol

    • @AzureSteel
      @AzureSteel 2 роки тому +4

      @@dogmouthhorse Pretty sure this video was recommended to me (and probably to a lot of other people given the views this has relative to his other videos in the past year) through YT's algorithm because of the recent Wordle hype.

    • @ziggy_starz
      @ziggy_starz 2 роки тому +14

      @@AzureSteel The word is in the thumbnail, if you don't like math this was an easy skip lmao

  • @LeonardoDaVinci01
    @LeonardoDaVinci01 2 роки тому +66

    I don’t know why, but this was the most calming video I’ve ever watched… math can be so relaxing sometimes

    • @monkiram
      @monkiram 2 роки тому +2

      His voice is extremely soothing. I'm going to check out his other videos just because of that 😂
      Edit: I discovered this is a math channel. While I enjoyed this video, I'll have to reconsider because math and I have not historically had a great relationship

  • @YungPetee
    @YungPetee Рік тому +8

    This video has finally fulfilled its purpose

  • @sabertag6992
    @sabertag6992 2 роки тому +320

    It's not exclusive to this particular video of his, but there is something strangely refreshing about learning about things I don't understand. Like the prime numbers video of the monster, it's so refreshing to hear someone talk so plainly and expositorily yet still pass way over my head. I love learning how little I actually know, and this channel (among others) refreshes my brain so well. Please accept my sleepy and sincere appreciation.
    TL:DR ~ I like your funny words magic man

    • @JamesHawkeYouTube
      @JamesHawkeYouTube 2 роки тому +1

      don't get too excited - it's just conceptual baloney.

    • @TheDSasterX
      @TheDSasterX 2 роки тому +1

      @@JamesHawkeUA-cam Conceptual? He tested it; it's quite evidential.

  • @Geosquare8128
    @Geosquare8128 2 роки тому +1018

    this was a fun problem to solve :) my friend and I essentially constructed a solver with the same methods but we conceptualized it in a very different way. really cool video!

  • @JimmyJJJohnson
    @JimmyJJJohnson 2 роки тому +94

    Some thoughts on CRANE as first guess...
    I usually guess stare first (an anagram of tares, which your first algorithm likes) but started guessing crate, with the reasoning that a C often comes with an H or K, so finding a C feels like it gives more information even though it's a less likely letter. Essentially, letters that are weighted towards appearing in certain types of words or in certain letter combinations should be more valuable guesses than their simple frequency should predict. C is probably at a sweet spot where it's not too uncommon a letter, and enjoys a big boost from giving you a lot of bonus information if you do find one.
    Further to this, if you have, say, two certain letters that often appear in combination, it makes sense strategically to include one of these letters and not both in an early guess, as the odds of these letters appearing in the word are far from being independent odds, so guessing one gives you information on the probability of the other - bonus information from just one guessed letter. Hence, since CH and CK are very common associations of letters in common English words, guessing a C but not an H or a K in your first word seems to make a lot of sense from an information standpoint, and I'm not surprised that an algorithm found that guessing a word containing a C first was smart, despite C being quite a way down the letter frequency list.

    • @alveolate
      @alveolate 2 роки тому +6

      on that note, i feel like the _position_ of the letter within the 5 could also be valuable. i believe that's why 'tares' is valued over 'stare' because presumably there are more words ending with s, which might be pretty informative.

    • @JimmyJJJohnson
      @JimmyJJJohnson 2 роки тому +1

      @@alveolate yeah, letter positioning must be valuable. I actually initially preferred stare over rates (same logic applies to tares) because I thought the wordle would never be a plural so an S in the last position would be bad! Maybe vowels in positions 2 and 4 are better than in positions 3 and 5?

    • @garyp.7501
      @garyp.7501 2 роки тому

      This ^^^. You can easily see it, if you guess a word with "U" and "U" is not in the word, then "Q" isn't either.
      In code breaking, you'd see a word that ended in "Y" and guess one that ends in "LY" (hard mode) because that's a likely 2 letter combination. I don't have the table of common 2 letter combinations but it's available.

    • @mopanda81
      @mopanda81 2 роки тому

      Yeah if we’re playing to eliminate two letter combinations word final s also informs us in situations of “es” (as in tares. just as word initial c would inform us of possible ch words

  • @tobybartels8426
    @tobybartels8426 Рік тому +7

    I know you came back later and decided that you miscalculated and this wasn't the best opener. But I've been using it anyway, and I can tell you that *today* it's the best opener!

  • @brettlogeais849
    @brettlogeais849 2 роки тому +338

    I would like to see a Hard Mode version of this analysis and how the algorithm reacts to it.

    • @oldcouchcushion1545
      @oldcouchcushion1545 2 роки тому +21

      Yeah I was like damn not even playing hard mode. Gotta step up

    • @Slamdunka963
      @Slamdunka963 2 роки тому +6

      @@oldcouchcushion1545 Not playing hard mode = weaksauce

  • @tim40gabby25
    @tim40gabby25 2 роки тому +322

    Try to work out your friends' first words from their scoring patterns - Metawordle :) The worst starter word? "Eerie" - unless it's correct!. Anyone got a worse one?

    • @ironknuckle143
      @ironknuckle143 2 роки тому +8

      I do this

    • @seastilton7912
      @seastilton7912 2 роки тому +9

      If you know someone starts with the same every time, then you can use their scoring pattern to unlock information yourself. Bit cheaty though

    • @ironknuckle143
      @ironknuckle143 2 роки тому +1

      @@seastilton7912 I do it to pass the time between puzzles but you make an excellent point.

    • @DeuceBooty
      @DeuceBooty 2 роки тому +2

      I do this. It's pretty fun

    • @huellenoperator
      @huellenoperator 2 роки тому +1

      "queue" must be pretty bad.

  • @JordanBeagle
    @JordanBeagle 2 роки тому +963

    20:10 It is interesting and I think people should keep in mind how even in highly mathematic scenarios, human preference is still involved not always, but not never

    • @lekhakaananta5864
      @lekhakaananta5864 2 роки тому +22

      Yeah, and the more nuanced version of this is that human preference is used where a heuristic is more cost-efficient than more computing.
      In this case, Grant used his intuition to feel where the cut-off point is. However by the definitions given in this video, this cut-off point should certainly be able to be found in the game-theoretic sense. A quick naive approach would be to try different iterations of the bot using different cut-off points and over millions of iterations find the optimal point.
      But you see that's exactly why Grant used his intuition as a heuristic instead, because the expected gains from running said millions of iterations is very little compared to what his best guess would do. And as an alternative, if Grant used another method (not brute force simulations) to try to get the exact game-theoretic optimal point, it would be a lot of thinking time used for not much effect.

    • @ssz8946
      @ssz8946 2 роки тому +4

      In WordHoot, a variant of Wordle, where speed matters, I see people consistently beat bots.

    • @jonathanbaxter5821
      @jonathanbaxter5821 2 роки тому +3

      In this case he's using a heuristic to approximate the true word distribution which is zero for words not in the wordle list and 1/N for words that are in the wordle list (where N is the size of the wordle list).
      It's kluge in the sense that he could just use the wordle list for this purpose, but he decided that's off-limits side-information, so he goes ahead and finds a different source of side-information that he can use to approximate the wordle list distribution.
      The real lesson is that if you require human preference, the problem is likely ill-posed :)

    • @christianhinge7196
      @christianhinge7196 2 роки тому +1

      The use of priors (prior beliefs) for making predictions is quite often used in some areas of statistics and machine learning. :)

    • @w花b
      @w花b 2 роки тому

      @@lekhakaananta5864 it's basically a password cracker bot but a bit more chill

  • @jimschott
    @jimschott 2 роки тому +4

    After incorporating Relative Word Frequencies of all words, a next step may be to rank relative letter frequency for each letter position, 1, 2, 3, 4, and 5 (noting that letter-frequencies for five-letter words is different than for all words: "soare" rates higher than "arose"). The letter distributions also change for each step for the 'remaining' possible words.

  • @pallenda
    @pallenda 2 роки тому +250

    This is PERFECT for me! Over the past week I have been fiddling with my own Python wordle "bot". I first made a small text mode version of the game to I could play more, and have slowly worked on my solver. It find skip letters and remove candidates with those letters. It can collect correct letter(bad position) and perfect letters.
    Yesterday I started going into putting some "weight" to the candidates left, nut I have some funky issues. So this video is a PERFECT next step for me to study. :)

    • @AxxLAfriku
      @AxxLAfriku 2 роки тому

      I am being humble when I am telling you that I am the most powerful strongest coolest smartest most famous greatest funniest Y*uTub3r of all time! That's the reason I have multiple girlfriends and I show them off all the time! Bye bye pa

    • @lolajuliet2662
      @lolajuliet2662 2 роки тому +1

      this is so cool i want to try making a wordle bot in python too !!

    • @aluisious
      @aluisious 2 роки тому

      @@lolajuliet2662 I made one this morning because I was bored. I figured out one relatively easy way is using regular expressions to check the possibilities and spit out a list that could fit the information at hand. Then I just pick one.
      Also working on weighting the results.

  • @anderslauridsen601
    @anderslauridsen601 2 роки тому +19

    That wordplay in the sorted list of most common words broke my brain more than any math you've ever presented on this channel.
    Great work, lovely video!

  • @RJTheBikeGuy
    @RJTheBikeGuy 2 роки тому +646

    Cool video! Loved the math! It would be different for hard mode though where you can't ignore the clues you already have.

    • @rkeating
      @rkeating 2 роки тому +20

      Was thinking the same thing! I liked the little teaser at the end, but wish the video went into it more as “hard mode” is my preferred way to play

    • @Jay22222
      @Jay22222 2 роки тому +9

      I’ve never played this but if that’s the restrictions of hard mode, it seems more like dumb mode..
      which I suppose you could also refer to as hard mode

    • @מיכאלרחמילביץ-ד2ק
      @מיכאלרחמילביץ-ד2ק 2 роки тому

      @@Jay22222 true

    • @kaazma
      @kaazma 2 роки тому +5

      @@Jay22222 What do you mean? If your first guess gave you the information that an R and an E are in the word, then your 2nd guess has to have an R and an E in it. That gives you 2 less spots to try new letters. It's significantly harder.

    • @NikitaOnline17
      @NikitaOnline17 2 роки тому

      @@Jay22222 why tho lol

  • @furretwalky
    @furretwalky Рік тому +28

    Today is a momentous occasion - the word IS **CRANE** today! Happy 1-shot day to a lot of people.

  • @KayDeeKeySull
    @KayDeeKeySull 2 роки тому +598

    As a chemist, i've been using "tares" (3rd person singular - saves the mass of an empty/full in a scale to determine the difference after doing something with it) for over a month, so i feel accomplished seeing this haha:)

    • @geofflulham8460
      @geofflulham8460 2 роки тому +7

      TARES are also a corn/seed used in fishing (in the UK)

    • @nickalot6436
      @nickalot6436 2 роки тому +31

      I’m a cashier at a grocery store and I’ve been using “tares” too.

    • @eduardojuarez9862
      @eduardojuarez9862 2 роки тому +25

      Im a random kid and I have been using stare which is kinda the same but tares might be better

    • @isaaclodziak-green6326
      @isaaclodziak-green6326 2 роки тому +12

      I also work in a grocery store, but I use the word “rates”

    • @prockpros
      @prockpros 2 роки тому +5

      soare is a good starting word too

  • @goodgameproductions3039
    @goodgameproductions3039 2 роки тому +259

    Wordle has existed in Dutch as "Lingo" for probably 30 or so years as a public tevelision show, with variable word length too. Near one of its last shows there were two brothers who developed an algorithm to guess these words during the show which they could play out in their head and they won literally every round and after they won they put their full way of thinking on internet.

    • @Moe5Tavern
      @Moe5Tavern 2 роки тому +3

      Could you give a link to that please? Klinkt heel erg interessant!

    • @JonathanCheseaux
      @JonathanCheseaux 2 роки тому +3

      Also been around as a tv show called "MOTUS" in France

    • @DasVERMiT
      @DasVERMiT 2 роки тому +8

      You might be interested to know Lingo actually started in the US in 1987 and has had international versions in at least 15 countries.
      Those two brother remind me of Michael Larson who memorized the pattern of the Press Your Luck board and used it to beat the system.

    • @pokepress
      @pokepress 2 роки тому +8

      Also very similar to the game “Mastermind” that uses colored pegs instead of letters.

    • @alejandromesa2578
      @alejandromesa2578 2 роки тому +1

      Link?

  • @evan
    @evan 2 роки тому +543

    Making a word game about math. I LOVE IT

  • @williamdavis694
    @williamdavis694 Рік тому +14

    After 512 days, crane has finally won first try. Thank you

    • @LifebyBrody
      @LifebyBrody 3 місяці тому

      got a first try on my go to "purge" and then when they wiped my history after inactivity I stopped

  • @antonhagelberg7430
    @antonhagelberg7430 2 роки тому +58

    Absolutely impeccable timing, just went over this concept in a course on Machine Learning, feels great to understand what you're saying!

    • @psd993
      @psd993 2 роки тому +3

      what course and/or what reference have you used specifically for information theory (if you did have separate reference material)

  • @yaseen157
    @yaseen157 2 роки тому +30

    Beautiful watching as always, thanks Grant! I enjoyed the confusing word skit at 18:40 haha

  • @TimeBucks
    @TimeBucks 2 роки тому +147

    Such clarity in explaining things

    • @supreme-lz5yc
      @supreme-lz5yc 2 роки тому +2

      first comment and also feels like botting

    • @teeforever1
      @teeforever1 2 роки тому +2

      the Gospel:
      the Gospel isn't solely "Jesus loves you and He can do this, this, and that for you." no, the true Biblical Gospel is that all have sinned and fall short of the glory of a holy and just God, and because of this we all deserve death and eternal damnation in hell.
      our sins have separated us from God and when we were separated from God, we were sold as slaves to sin, under the captivity and care of the devil, whom we love(d).
      in our sinful nature, we're nothing more than wretched, vile sinners in DIRE need of the Savior, but JESUS, the perfect and sinless Lamb of God, came into the world and took the punishment we deserved for our wicked sins and was raised from the dead three days after being buried so that we may have the opportunity of salvation, redemption, adoption, and reconciliation to the Heavenly Father. we ought to repent and believe in the Gospel of our LORD Jesus Christ; we must be born-again. (Mark 8:36,37) (John 3:16), (Acts 17:30), (Romans 6:23), (John 3:5), (Ecclesiastes 12:13), (Mark 1:15).

    • @rottedpotato645
      @rottedpotato645 2 роки тому

      @@teeforever1 no cares about christianity

  • @bernie9728
    @bernie9728 2 роки тому +6

    It's clear that people develop different methods to solve the puzzle. For me I start with "adieu". My second word is "story". This way I get all the vowels covered and some major consonants. I have found getting a good start goes a long way towards solving the puzzle.

  • @dkursada
    @dkursada 2 роки тому +112

    9:28 I think this is the perfect explanation to the whole concept of Akinator. Yes, it also cheats by just using a user-created database but getting to the answer in less number of questions is the real challenge.

  • @karlosfy
    @karlosfy 2 роки тому +19

    I have studied information theory in top level engineering school and I had never seen this explained as clear as this, not even close. This video makes me wonder about the future of education.

  • @matthewtavani6584
    @matthewtavani6584 2 роки тому +79

    I think this also shows how amazing the human mind is, because even without knowing all this, we can sort of figure out that four is normal, three takes skill, and two is just lucky.

  • @Inkably
    @Inkably Рік тому +3

    Just wanted to thank you for this video I got wordle in 1 yesterday. Guess it’s time to change my word to Salet. ;)

  • @naspleo2252
    @naspleo2252 2 роки тому +9

    This whole video is great but I have to say I liked the cute word play around 19:00 quite a lot.

  • @AshLordCurry
    @AshLordCurry 2 роки тому +12

    Crane Shtik combo is absolutely legendary, just tried it, found the word in 3 tries. Absolutely amazing.

  • @APromisePast
    @APromisePast 2 роки тому +116

    Here's an interesting alternate goal: what if rather than optimizing for fewest guesses, you built a bot that attempted to maximize the amount of times it could guess the answer in 2 guesses, and only after failing to do so would try to minimize its remaining score. Basically a risk-taking bot that's more in it for the bragging rights of the unlikely got-it-in-two situation more than it cares about reliably doing well.

    • @judgeomega
      @judgeomega 2 роки тому +4

      why even bother going beyond 2 guesses? didnt get it in 2, you failed.

    • @adityapalve3752
      @adityapalve3752 2 роки тому

      wouldnt that exponentially increase the complexity of the computation. Is it even solvable within 2 steps ? I think grant mentions something along the same lines.

    • @louisrialland2527
      @louisrialland2527 2 роки тому +3

      @@adityapalve3752 I don't know why you think the computation would be far more complex since you're only looking 1/2 guesses into the future.
      It isn't solvable within 2 steps, but you can try to solve it within 2 steps as much as possible (likely by increasing the weighting of the frequencies of the words; this gives you less information in the long term but increases the chance that you get lucky on the second guess).
      Hopefully this makes sense lol.

    • @Seeker265729
      @Seeker265729 2 роки тому +1

      Especially with the long tails it is definitely possible to trade 'get it in 3 or less more than x% of the time' for the average score

    • @motherlove8366
      @motherlove8366 2 роки тому

      That just means doing the first two guesses in hard mode and the continuing normally. Which in reality just means the set of guessable words on the second guess is smaller.

  • @Not_Iconish
    @Not_Iconish 2 роки тому +5

    Thanks for the great video!
    I think a great addition to this algorithm would be the removal of already used words in previous wordles. This would decrease the overall entropy a little since some pretty common words were already used. Anyways, great video, I always learn so much from you!!

  • @budge956
    @budge956 2 роки тому +79

    I like to start with “Faint”, which is usually followed by “Ouphe”, and they both remove vowels (excluding “Y”), and I usually end up with enough info to finish the word, but if I do not, then I follow up with “Byrls”. Which removes “Y” and four extra, fairly common letters. This strategy will usually get you the letters by the fourth guess. The strategy I used to follow was a “House” “Paint” combo, and after a while I felt like I could get more efficient and swapped to “Faint, Ouphe, Byrls”.

    • @joshklapperich9416
      @joshklapperich9416 2 роки тому +6

      the issue is that you will never get the word in two or three guesses like that, so it maximizes your chances of winning but not your score

    • @treverfox1280
      @treverfox1280 2 роки тому +6

      you can always do:
      GLENT
      BRICK
      JUMPY
      VOZHD
      WAQFS
      this eliminates 25/26 letters and just leaves X

    • @jacquescousteau217
      @jacquescousteau217 2 роки тому

      I'm with you, find the vowels first ...

    • @david203
      @david203 2 роки тому

      @@treverfox1280 Doesn't work if your Wordle requires entering only guesses that are words, like cell phone Wordle from Lion Studios Plus. Also fails for goal words requiring trial and error, like batch/match/patch/watch/hatch/latch/catch, which can't be reliably guessed even if all six lines were used.

    • @david203
      @david203 2 роки тому +1

      'I like to start with “Faint” ' Not optimal, because the consonant F is not a frequent one. Saint would be better, and including E in the first word would be best.

  • @mrevil11
    @mrevil11 2 роки тому +121

    I've always started with Adieu as it eliminates almost all the vowels but this really does make me rethink my process. I haven't missed a word yet but i most often get the word in 5 guesses.

    • @davidelliott9817
      @davidelliott9817 2 роки тому +13

      I do the same but with audio

    • @Tysto
      @Tysto 2 роки тому +19

      Yeah, i think there’s more information in guesses with consonants, since you narrow down the possibilities more. Imagine being free to use AEIOU. You’re nearly guaranteed a hit, but since nearly all words (not “tryst”) use at least one of those letters, but you haven’t actually narrowed the possibilities.

    • @leonardogoes683
      @leonardogoes683 2 роки тому +3

      I Like to use "Aurei" first, "Boxty" second and, for the third word, some with 'S' plus the previous matches. Always get in 4 or 5.

    • @firstname1317
      @firstname1317 2 роки тому

      @@davidelliott9817 SAME!!!

    • @mikec4308
      @mikec4308 2 роки тому +2

      audio is also good. didnt even know adieu was a word lol

  • @ShrtRndKid
    @ShrtRndKid 2 роки тому +36

    Very cool breakdown.
    It's interesting that in so many cases it chooses a word for the second guess that does not contain a confirmed letter from the first guess. This essentially negates your chance of being correct on the second guess in favor of having more information for the third or fourth guesses. It's basically choosing to fail rather than take the chance at gaining less information.

    • @valenz1234
      @valenz1234 2 роки тому +2

      The likelihood of getting it on second is low, may as well find the most information out and try for third.

    • @david203
      @david203 2 роки тому

      After an initial guess, there are cases where subsequent guesses can ignore letter positions, including which letters are already green, and still be excellent guesses. It depends on strategy. In my strategy, I guess all vowels using two words, so I ignore colors and almost always give the two words. In fact, for most Wordles, I automatically enter three words so I can also eliminate the most common consonants. This improves solution speed, too.

  • @nosho409
    @nosho409 Рік тому +20

    Interesting. I happen to have been using TASER as a first try, which is just an anagram of TARES!

    • @davidcrow2104
      @davidcrow2104 Рік тому +7

      Except that the order matters, as the video maker argues convincingly. Still, though, great intuition!

  • @webx135
    @webx135 2 роки тому +66

    This made me discover absurdle. I was extremely aggrivated by it at first until I saw the explanation on their page. Basically all the words I was getting were "kitty" "jiffy" "dizzy". But that's because my first two guesses were always Crane and then Buoys to knock out as many vowels as possible.

    • @TheMightyGiantDad
      @TheMightyGiantDad 2 роки тому +10

      That's what's so interesting about absurdle! Having the same first few guesses can really back it into a corner. I really wonder if it's possible to force any given word out of it. With how restrictive and deterministic it is, it's not obvious that this should be the case

    • @ThePharphis
      @ThePharphis 2 роки тому +2

      @@TheMightyGiantDad I'm pretty sure the about page on the website explains the best case scenario (or at least one of them).
      I also ran into a similar issue of double consonant words with many many options for a single letter... so I started by guessing things like "wooly" right off the bat to reduce the number of options. Better to make those guesses sooner than later.

    • @ShmingsThings
      @ShmingsThings 2 роки тому +1

      @@TheMightyGiantDad QNTM, the author, wrote an algorithm to do just that, and it even works if you can only guess words that can also be actual answers. I think they even got it to work on hard mode? Check the twitter account.

  • @kunaljain5571
    @kunaljain5571 2 роки тому +229

    While playing the game, just like you considered the "common word probability", I consider the "common character probability" as well. I propose scoring the words on the basis of how frequent each letter comes at each of the 5 positions in all the 5-letter words.
    For example, you mentioned the NAILS vs SNAIL choice. SNAIL has an A in the middle (as in ~1200 5 letter words), whereas NAILS has A on the 2nd position (as in ~2100 5 letter words). Clearly, the A in NAILS gives you higher information (getting those greens on the board).

    • @Khaim.m
      @Khaim.m 2 роки тому +49

      That's a good idea, but I'm pretty sure it's already included in the entropy calculations.

    • @lauriealderson2887
      @lauriealderson2887 2 роки тому +10

      Surely SNAIL has more information (more bits) because it narrows the choice down more (1,200 versus 2100).

    • @Danicker
      @Danicker 2 роки тому +45

      Yes, as david said, this is already accounted for in Grant's information-related approach. We know intuitively that a green is better than a yellow but how does Grant's program know that? Because it counts the remaining possibilities. The remaining possibilities after a green clue are much more restricted than after a yellow clue, so that algorithm will naturally rank guesses that give green clues more often as more useful.

    • @kentanggulung
      @kentanggulung 2 роки тому +4

      Yes, i always use AUDIO as starter cause it contains 4 vowels and i thought i gives more information, but apparently its not really effective

    • @donaldasayers
      @donaldasayers 2 роки тому +12

      @@kentanggulung But your method is better for the human brain which does not contain the list of possible words, nor can do the entropy calculations on the fly. I use AROSE, UNITS as my first two words no matter what, it gets rid of a lot of common letters and all the vowels.

  • @chownc
    @chownc 2 роки тому +43

    At 7:20, in answer to your question the. technically there’s “WORRY” but for that game information the R wouldn’t work for position 4. Great video! Thanks

    • @arnabs2009
      @arnabs2009 2 роки тому +4

      I noticed that too, but he was obviously answering (or should i say the program was designed) considering the information of R

  • @PrimeSuperboy
    @PrimeSuperboy 2 місяці тому

    watching these videos feels like watching the math teacher tell that one student to show their work and when they do, the teacher says, "show the work behind your work" so the student has to recreate math from the beginning

  • @uncle-ff7jq
    @uncle-ff7jq 2 роки тому +74

    You're content and enthusiasm has inspired me to pursue my dreams of learning programming and math, I'm highly grateful.

    • @ZopcsakFeri
      @ZopcsakFeri 2 роки тому +24

      He is neither content nor enthusiasm :)

    • @hetsmiecht1029
      @hetsmiecht1029 2 роки тому +2

      @@ZopcsakFeri your funny!

  • @shrugalic
    @shrugalic 2 роки тому +15

    Having had fun programming a Wordle helper for the past few weeks, I love this video! 😍 My best fast strategy is down to 3.55 average guesses, and the one attempting to get close to optimizing for shortest game is very slow, but a little better, below 3.5.

  • @Dylan52meow
    @Dylan52meow 2 роки тому +283

    This video is an absolute masterpiece. Especially loved the bit at 18:39 about the most common words. Hilarious!

    • @owenaspinall2046
      @owenaspinall2046 2 роки тому +11

      The ¨bit¨?

    • @CraftBasti
      @CraftBasti 2 роки тому +1

      @@owenaspinall2046 watch that part again, but don't look at the screen. Can you make out which word he claims is how common? Hardly, because he structured the sentence in a way as to incorporate the words he read into it, making it difficult to distinguish between the words used for the sentence and the words in quotes.

    • @owenaspinall2046
      @owenaspinall2046 2 роки тому +6

      @@CraftBasti I made a bad pun about how this is about information theory, which uses the unit the "bit".

    • @CraftBasti
      @CraftBasti 2 роки тому +2

      @@owenaspinall2046 ahh of course, that was the reason for the quotation marks! Good one ^^

    • @AndrewBackhouse1
      @AndrewBackhouse1 2 роки тому +1

      It was pure genius

  • @KA-lt2tu
    @KA-lt2tu Рік тому +3

    Ever since seeing this video over 1 year ago, I have been EXCLUSIVELY using CRANE as my opener. EVERY. SINGLE. DAY. And finally….. Today was the day, 6/21/2023 The Wordle was CRANE, I have never been so happy to guess the Wordle, and of course I started off with CRANE, and boom! FIRST TRY, IT WAS FINALLY CRANES DAY TO SHINE!!

  • @jickhertz4124
    @jickhertz4124 2 роки тому +64

    Cool! I made a bot that was also based on 'entropy' without knowing its name and definition. It can beat a 5 letter in 5 goes on average (focused on perfect solve rate, rather than quick solves). But I was really glad to know I was on the right lines and find a more optimal method! Fun project all round! Thanks for sharing

  • @piguy314159
    @piguy314159 2 роки тому +61

    This video just happened to come out at the same time I was coming up with my own Wordle-solving algorithm: instead of minimizing the average number of guesses, I used minimax to optimize the worst-case scenario. On each turn, I do the following:
    - Consider all possible words as guesses, including those that are no longer candidates with the information known
    - For each word in the list, assign a score equal to the number candidate words left in the worst-case scenario (i.e. group the remaining candidates into buckets based on the color pattern they would give for the guess being considered, and use the size of the largest bucket as the score)
    - Guess whichever word scores lowest (in case of a tie, favor words that are themselves candidates, and if still tied, choose the one that comes first alphabetically)
    Since I didn't want to see the actual Wordle list, I started by using all 8937 five-letter words in TWL06; with this as the possible word list, I found "serai" to be the best starting guess and got an average of 4.12 guesses, with 17 words that took more than 6 guesses... all of which are either plural nouns or -s verbs ("zills" was the only word that took 8 guesses).
    If I narrow this list down to the 3841 five-letter words that are among the 50000 most common English words (according to hermitdave's list on github), it goes down to 3.86 guesses on average, never takes more than 6 guesses (with 38 words taking exactly 6), and likes "arose" as an opener.
    Using random 2315-word subsets (the same size as the Wordle list) of that smaller list, the average tends to vary between 3.59 and 3.66, with 6 guesses being quite rare.
    So the expected score of my version isn't too far off from "version 2" in the video, but it seems to do better at avoiding the dreaded combo breaker.

    • @teeforever1
      @teeforever1 2 роки тому +1

      the Gospel:
      the Gospel isn't solely "Jesus loves you and He can do this, this, and that for you." no, the true Biblical Gospel is that all have sinned and fall short of the glory of a holy and just God, and because of this we all deserve death and eternal damnation in hell.
      our sins have separated us from God and when we were separated from God, we were sold as slaves to sin, under the captivity and care of the devil, whom we love(d).
      in our sinful nature, we're nothing more than wretched, vile sinners in DIRE need of the Savior, but JESUS, the perfect and sinless Lamb of God, came into the world and took the punishment we deserved for our wicked sins and was raised from the dead three days after being buried so that we may have the opportunity of salvation, redemption, adoption, and reconciliation to the Heavenly Father. we ought to repent and believe in the Gospel of our LORD Jesus Christ; we must be born-again. (Mark 8:36,37) (John 3:16), (Acts 17:30), (Romans 6:23), (John 3:5), (Ecclesiastes 12:13), (Mark 1:15).

    • @SeppelSquirrel
      @SeppelSquirrel 2 роки тому +14

      @@teeforever1 Sorry, "gospel" is 6 letters long.

    • @StaRScreaM-du6fn
      @StaRScreaM-du6fn 2 роки тому

      @@krispykremedonut5135 so why do u care?

    • @StaRScreaM-du6fn
      @StaRScreaM-du6fn 2 роки тому

      @@krispykremedonut5135 he is obviously trolling

    • @blubaylon
      @blubaylon 2 роки тому +2

      @@StaRScreaM-du6fn no he's not, just a religious crackhead

  • @alexander191297
    @alexander191297 2 роки тому +6

    I LOVE THIS!! Made a Wordle solver myself before seeing this video, but the level of maths you’re using here and the knowledge you need to pull it off THIS way is just incredible.
    3B1B, that’s another score there. Thanks for this vid! 🙏

  • @cgillespie78
    @cgillespie78 Рік тому +4

    Well today's word was CRANE. Have to give this the award for best thumbnail ever

  • @jonaslevyalfie7434
    @jonaslevyalfie7434 2 роки тому +47

    As a programmer, I actually been thinking a lot about how I would code a solver for this lately. Great vid as always!

    • @amaansiddiqui2376
      @amaansiddiqui2376 2 роки тому +2

      Same. But just starting seems such a tedious task.

    • @jasonx7803
      @jasonx7803 2 роки тому

      @@amaansiddiqui2376 Step one, just pick randomly from all the answers. Then refine. ;)

  • @tweak3871
    @tweak3871 2 роки тому +39

    Data Scientist here:
    Just wanted to add another perspective on entropy & the way we quantify information, as this topic is often fairly confusing for beginners.
    So 1, where did all this theory & stuff come from? Information theory comes from trying to measure the efficiency of communication of information.
    So the key idea is that, if we want to quantify information, really what we're doing is trying to measure how well one actor is communicating to another actor about an event.
    So the two actors need to come up with some dictionary, or what is often called an "encoding" in order to communicate events to one another.
    The the second key idea, is that It takes more energy to communicate with more symbols ("symbols" could be words, bits, smoke signals, whatever is your base unit of information).
    Therefore, our objective is to assign the least amount of symbols to all the possible events, so we should encode according to how common different events are. More common events, should use less symbols.
    The inverse of a probability has this great name, called "the surprisal", the idea is that the higher the number, the more "surprising" an event is. Like if I were to tell you the sky just instantly changed from blue to magenta, that event would have a wildly high surprisal, because it has a really low probability.
    The reason we put a log on the surprisal is to get "how many symbols do we need in order to communicate this event?", the base of your log determines the number of symbols available to you, most commonly we use base 2 because we're usually thinking of this in bits.
    The entropy of a probability distribution is the average number of bits required to communicate events in said probability distribution.
    Hope someone else found that interesting! None of this stuff made sense to me until I understood that.

    • @aslpuppy1026
      @aslpuppy1026 2 роки тому +2

      That’s so helpful! Thank you so much.

    • @jamesking2439
      @jamesking2439 2 роки тому +1

      Yeah, that explanation was very clear to me. Thanks.

  • @addymant
    @addymant 2 роки тому +39

    I really like the approach you took to this because it's completely different from how I would've gone about it! I would have treated it almost like a game of Mastermind, and gladly accepted the wordlists. Then, I would've found that strategy which minimizes the _average_ number of moves, while still requiring that any potential series of guesses gets the right answer within the six allowed.

    • @additionaddict5524
      @additionaddict5524 2 роки тому

      entropy is like an advanced average.

    • @NesrocksGamingVideos
      @NesrocksGamingVideos 2 роки тому +6

      Yes, one has to wonder what the objective is. If the objective is to maximize wins in 3 or 4 and not care about 6 or losing okay, but if one just wants to not lose the 100% streak then yeah, the unlikely words become all that much scarier.

  • @alexbourlis
    @alexbourlis Рік тому +1

    i am so thankful for the quality of your educational content. It is amazing to learn so much from just one person.

  • @PolylogCS
    @PolylogCS 2 роки тому +174

    A very nice video! A fun fact: Finding an actual "mathematically optimal strategy" is probably pretty hard. Similar problems, like Mastermind, are known to lead to provably hard problems (at least NP-complete, potentially even harder!). This does not mean it cannot be solved, though. For example, Donald Knuth bruteforced optimal mastermind solution in 1976. :) EDIT: Thanks darci peeps and Tim Fischer for clarification: Knuth bruteforced optimal *worst case* solution for Mastermind (with 4 pegs). If you care about the average number of moves, this was solved only later.

    • @darcipeeps
      @darcipeeps 2 роки тому +43

      Donald Knuth’s algorithm used minimax, a greedy algorithm which was not most optimal. It was Kenji Koyama and Tony W. Lai that performed the first an exhaustive depth-first search in 1993. I agree that 3b1b’s strategy is not THE most optimal, but it’s robust to other versions of wordle which is cool.

    • @tim..indeed
      @tim..indeed 2 роки тому +3

      The solution is only for 4 pegs tho, most modern master mind games (each one I ever played) uses 5 pegs!

    • @aigeek
      @aigeek 2 роки тому

      I did an exhaustive search on hard-mode Wordle, but using only the 2315 word dictionary the game uses for its own choices. I optimized for average number of moves. Here are the top five starting words & the average game length they lead to:
      3.51922 trace
      3.52009 slate
      3.52181 least
      3.52700 crate
      3.53391 crane
      Allowing the full 12972 word dictionary would add a lot more searching, though the search could potentially be pruned, depending on what question you were trying to answer.

  • @itsnotme9990
    @itsnotme9990 2 роки тому +76

    I always use “audio” and then “entry”. Those two words cover all of the vowels and some common consonants. Once I know which vowels are in the word I can usually figure it out.

    • @capnryna
      @capnryna 2 роки тому +6

      try adieu!!

    • @WanderTheNomad
      @WanderTheNomad 2 роки тому +5

      I like "adieu" and "story" as my first two guesses. Probably cuz I felt that S was more common than N. But my third guess covers that.

    • @akalichamp7030
      @akalichamp7030 2 роки тому +3

      audio -> flyer is great too since it also gets the Y

    • @lanajones8008
      @lanajones8008 2 роки тому +3

      @@WanderTheNomad that is so smart. I also try to get my vowels out of the way with adieu, then sport to get my “o” and then chewy to get my “y”, but you get the o and y in one shot with story. I will try that next time!!

    • @bonaaq86
      @bonaaq86 Рік тому +1

      @@WanderTheNomad okay I just tried that and I got avoid in the third guess that's awesome

  • @Me-mi2ud
    @Me-mi2ud 2 роки тому +18

    I've been playing Wordle for a month now and was hoping one of my favourite maths channels would upload something about it, very well timed!

  • @PLF...
    @PLF... 10 місяців тому +1

    My favorite starting words are usually TRAINS or TRAMS, getting those basic plural S, the very common TR, and an A