The Math of Being a Greedy Pig - Numberphile

แชร์
ฝัง
  • เผยแพร่เมื่อ 6 มิ.ย. 2024
  • Featuring Ben Sparks.
    Check out www.kiwico.com/Numberphile and get 50% off your first month of any subscription.
    More links & stuff in full description below ↓↓↓
    Extra footage from the making of this video (including Brady trying to roll 50 points and his game against the online Pig Player): • Pigs (extra) - Numberp...
    Ben Sparks: www.bensparks.co.uk
    More Ben Sparks on Numberphile: bit.ly/Sparks_Playlist
    Optimal Play of the Dice Game Pig: cupola.gettysburg.edu/csfac/4/
    Online Pig Player: cs.gettysburg.edu/projects/pig...
    Ben's Geogebra Pig Strategy simulator: www.geogebra.org/m/ccpnhstm
    Pass the Pigs game (Amazon affiliate link): amzn.to/2QvCAqM
    Numberphile is supported by the Mathematical Sciences Research Institute (MSRI): bit.ly/MSRINumberphile
    We are also supported by Science Sandbox, a Simons Foundation initiative dedicated to engaging everyone with the process of science. www.simonsfoundation.org/outr...
    And support from Math For America - www.mathforamerica.org/
    NUMBERPHILE
    Website: www.numberphile.com/
    Numberphile on Facebook: / numberphile
    Numberphile tweets: / numberphile
    Subscribe: bit.ly/Numberphile_Sub
    Videos by Brady Haran
    Patreon: / numberphile
    Numberphile T-Shirts and Merch: teespring.com/stores/numberphile
    Brady's videos subreddit: / bradyharan
    Brady's latest videos across all channels: www.bradyharanblog.com/
    Sign up for (occasional) emails: eepurl.com/YdjL9
  • วิทยาศาสตร์และเทคโนโลยี

ความคิดเห็น • 1K

  • @numberphile
    @numberphile  3 ปีที่แล้ว +114

    Check out www.kiwico.com/Numberphile and get 50% off your first month of any subscription. (Sponsor)
    Extra footage from the making of this video (including Brady trying to roll 50 points and his game against the online Pig Player): th-cam.com/video/zD9-V9Idbug/w-d-xo.html
    More Ben Sparks on Numberphile: bit.ly/Sparks_Playlist

    • @Zoxesyr
      @Zoxesyr 3 ปีที่แล้ว +5

      you should check out "Cosmic Wimpout"

    • @lucromel
      @lucromel 3 ปีที่แล้ว +3

      So I tried simulating this from a different perspective and the results seem odd, does anyone feel like confirming? I ran a simulation to test what was the most common total you'd get before you rolled a one. As if a player was never banking and just seeing what total they got up to before losing. The most common value I got was 6, which seems low to me, particularly when compared to the data in the video.

    • @lucromel
      @lucromel 3 ปีที่แล้ว

      @@JmanNo42 That's not at all what I was testing.

    • @lucromel
      @lucromel 3 ปีที่แล้ว +2

      @@JmanNo42 While scrolling down looking for you code, I found a different comment that explained what was causing me confusion. The most common result is 6 as I thought, but the average result is much higher.

    • @EdbertWeisly
      @EdbertWeisly 3 ปีที่แล้ว

      Make a Ball having a radius of 3 cm, make a circle on its surface with a radius of 1 cm
      How many circles fit in before the two circles intersect one another

  • @parzh
    @parzh 3 ปีที่แล้ว +940

    I like how the most trivial game of dice ever yields a whole 33-minutes video about maths and probabilities

    • @ekkehard8
      @ekkehard8 3 ปีที่แล้ว +6

      This seems rather trivial, I mostly watched because he was hyping the complexity up, but it turned out to be 20 all along

    • @brandoncalvert8379
      @brandoncalvert8379 3 ปีที่แล้ว +8

      right. it doesn't take a ton more complexity before you have a game like chess which has been studied for centuries and is still unsolved lol

    • @roderik1990
      @roderik1990 3 ปีที่แล้ว +61

      @@ekkehard8 Except it isn't 20 all along... Didn't you see the bit where the optimal target number changes up or down depending on how far behind you are and what your total is?

    • @Narokkurai
      @Narokkurai 3 ปีที่แล้ว +3

      The simple problems are often the most expressive ones to solve.

    • @adminadmin8992
      @adminadmin8992 3 ปีที่แล้ว

      @@Narokkurai Like what is time?

  • @Nonsequitorian
    @Nonsequitorian 3 ปีที่แล้ว +1362

    This was a really engaging episode. Ben Sparks is a solid teacher!

    • @Robert_McGarry_Poems
      @Robert_McGarry_Poems 3 ปีที่แล้ว +17

      At least photogenic, if nothing else. But, I do agree it helps that he knows what he is talking about.

    • @FLPhotoCatcher
      @FLPhotoCatcher 3 ปีที่แล้ว +3

      @Peter Müller That made me laugh.
      What makes me upset is Kiwico imposed an age limit of 104! This old man is 106 years old! Kiwico, what are ye doing concerning your age limit?

    • @Epoch11
      @Epoch11 3 ปีที่แล้ว +6

      If I had been taught mathematics by someone like this rather than buy a football coach with minimal knowledge of mathematical concepts I might actually enjoy math rather than loathe it. a mathematics teacher should be engaging, animated, and able to keep a student's interest. Usually those kinds of teachers are involved in other subjects like literature or art which creates the wrong impression of what studying mathematics can actually be.a

    • @johnmaton1401
      @johnmaton1401 3 ปีที่แล้ว

      Well said

    • @ishoottheyscore8970
      @ishoottheyscore8970 3 ปีที่แล้ว +4

      @@Epoch11 Maths teaching is at the lower end of what a mathematician can earn, it's not the same way for other disciplines. It's also harder to make things like quadratic equations or logarithms engaging or relevant whereas an English teacher can talk about literary devices like foreshadowing or dramatic irony and show TV shows that use it. Maths just has lots of awkward little obstacles in the teaching of it, even more than things like physics which are heavily underpinned by maths. I don't disagree with your point, and I think it's something that maths teachers need to consider, I'm just trying to highlight some of the advantages that other subjects have

  • @genericexcuse4014
    @genericexcuse4014 3 ปีที่แล้ว +548

    0:40 thank you for clarifying that these are not real pigs

    • @omikronweapon
      @omikronweapon 3 ปีที่แล้ว +126

      the chance of them being real is incredibly low, but the implications if they are, far outweigh the effort of mentioning it pointlessly.

    • @tisajokt7676
      @tisajokt7676 3 ปีที่แล้ว +12

      @@omikronweapon comment gold

    • @heh2393
      @heh2393 3 ปีที่แล้ว +29

      @@omikronweapon "inceredibly low, but never zero."
      *VSauce theme intensifies*

    • @jasonrubik
      @jasonrubik 3 ปีที่แล้ว +1

      @@omikronweapon amazing observation ! What would this concept be called in philosophy or perhaps in another field of study ?

    • @hybmnzz2658
      @hybmnzz2658 3 ปีที่แล้ว +1

      @@jasonrubik in math it reminds me of weighted means and expected value

  • @veggiet2009
    @veggiet2009 3 ปีที่แล้ว +1592

    Lawyers in lockdown: I'm a person, I'm not a cat
    Mathmaticians in lockdown: these are plastic pigs, they aren't real pigs

    • @cneer17
      @cneer17 3 ปีที่แล้ว +22

      Is the lawyer part of this a reference to legal Eagle?

    • @LeoStaley
      @LeoStaley 3 ปีที่แล้ว +55

      @@cneer17 it was a great meme clip beefore legaleagle did the meme review of it.

    • @veggiet2009
      @veggiet2009 3 ปีที่แล้ว +24

      @@cneer17 no, though he did talk about it. A lawyer accidentally activated a cat filter, the court posted the clip separately as a cautionary tale.

    • @oleksijm
      @oleksijm 3 ปีที่แล้ว +7

      Police officers in lockdown..

    • @murphygreen8484
      @murphygreen8484 3 ปีที่แล้ว +2

      Was going to say this. You beat me to it

  • @alexpotts6520
    @alexpotts6520 3 ปีที่แล้ว +325

    I remember playing this game as a child and for some reason, my younger brother had what he thought was an invincible strategy called "captain cautious" where he would always bank his points and pass to the next player after one throw, even if that throw had only yielded him one point. Sometimes, to emphasise the point, he would declare, "I'm captain cautious".
    I don't think he ever won a game...

    • @omikronweapon
      @omikronweapon 3 ปีที่แล้ว +43

      somehow, I DIDNT expect that reveal. Yet it's very obvious.

    • @isamiwind438
      @isamiwind438 2 ปีที่แล้ว +29

      at least he never lost a single point

    • @chriswebster24
      @chriswebster24 2 ปีที่แล้ว +10

      I don’t remember playing this game as a child. Where I grew up, games were for adults. Children’s had too much work to do to be playing silly games.

    • @General12th
      @General12th 2 ปีที่แล้ว +68

      @@chriswebster24 That sounds like a miserable childhood.

    • @declanlong4676
      @declanlong4676 2 ปีที่แล้ว +19

      @@chriswebster24 who asked

  • @marcuswillbrandt5901
    @marcuswillbrandt5901 3 ปีที่แล้ว +889

    I will not lie: If the video was just them playing the game for half an hour I would still have watched it
    Also I love how Brady played extremely conservative and still lost hard

    • @jakistam1000
      @jakistam1000 3 ปีที่แล้ว +43

      I will not lie: If the video was just them playing the game for half an hour I definitely wouldn't watch it.

    • @Webfra14
      @Webfra14 3 ปีที่แล้ว +49

      I will not lie: If the video was just them playing the game for half an hour I would watch half of it.

    • @mihailmilev9909
      @mihailmilev9909 3 ปีที่แล้ว +14

      @Johan Hansén I'd have a 50% chance if watching it all or not at all

    • @seanofpeace
      @seanofpeace 3 ปีที่แล้ว +28

      @@mihailmilev9909 I would roll a D6, and watch it that many times, unless I roll a 1, in which case I would uninstall TH-cam.

    • @iAmCalypso33
      @iAmCalypso33 3 ปีที่แล้ว +6

      @Johan Hansén I'd watch it on the toilet.

  • @TheSuperGuitarGuy
    @TheSuperGuitarGuy 3 ปีที่แล้ว +401

    I love how the mathmatician took a second to calculate 8+6. Makes me feel better about myself

    • @Superbajt
      @Superbajt 3 ปีที่แล้ว +149

      As a mathematician, I can tell you this - the more mathematics you know, the worse you get at basic math.

    • @kindoflame
      @kindoflame 3 ปีที่แล้ว +61

      I can't tell you how many times while doing Calculus II homework I had to stop and think about how to add fractions.

    • @ShawnRoggow
      @ShawnRoggow 3 ปีที่แล้ว +2

      Needs a Love emote

    • @israhm8621
      @israhm8621 3 ปีที่แล้ว +17

      @@Superbajt What did pi say to I? Pi Said Get Real then I Replied And Said Be Rational

    • @merijnbras8901
      @merijnbras8901 3 ปีที่แล้ว +2

      @@israhm8621 could you consider I to be rational though? I would not say you can possibly write it as a ratio of two whole numbers, unless you say i itself is a whole number.

  • @gordonwiley2006
    @gordonwiley2006 3 ปีที่แล้ว +607

    I love that Matt Parker is Numberphile's patron saint of writing code.

    • @krissp8712
      @krissp8712 3 ปีที่แล้ว +59

      Parker Square? Nah!
      Parker Array? Yea!

    • @Adhjie
      @Adhjie 3 ปีที่แล้ว +2

      @@krissp8712 how about vector squared equal to tensor?

    • @sponge1234ify
      @sponge1234ify 3 ปีที่แล้ว +3

      @@Adhjie Ah, but is it a mathematician Vector or a C Vector?

    • @Triantalex
      @Triantalex 5 หลายเดือนก่อน

      ??

    • @metalmiketh
      @metalmiketh 5 หลายเดือนก่อน

      He loves to dust off his Python

  • @robertwilbrand3441
    @robertwilbrand3441 3 ปีที่แล้ว +151

    I think in terms of player psychology, many people would fail to realize that it only matters what number you're on, not how you got there. For example, if you got to 10 by rolling 2 five times, I think many people would bank it, because they feel they're "due for a 1", but they would keep going if they got to the same result with fewer rolls.

    • @HeythemMD
      @HeythemMD 3 ปีที่แล้ว +41

      Yup, Gambler's fallacy.

    • @ironpro7217
      @ironpro7217 9 วันที่ผ่านมา +2

      If I rolled a 10 in 1 roll of a d6 I wouldn't want to push my luck

  • @jays2001
    @jays2001 3 ปีที่แล้ว +375

    Those first two columns are the same because you can't aim for a score of 1. If you hit 1 you loose and get 0. Therefore aiming for 1 is essentially the same as aiming for 2.

    • @vonriel1822
      @vonriel1822 3 ปีที่แล้ว +60

      Also, there are only two results for any strategy that aims for a 1 or a 2: Either they roll a 1, or they score points. Thus, the only score it is possible to make for either aiming for 1 or 2 points is the average of any single roll, which the average of 2 through 5 multiplied by the 5/6 probability of rolling any of those values.
      As covered in the video, it comes out to about 3.3, and that's why both 1 and 2 not just share a value, but also why that is the specific value they share.

    • @kourii
      @kourii 3 ปีที่แล้ว +3

      @@vonriel1822 the average of 2 through 6, that is

    • @YOM2_UB
      @YOM2_UB 3 ปีที่แล้ว +16

      Both are just banking on the first roll, in other words.

    • @fartpimpson3843
      @fartpimpson3843 2 ปีที่แล้ว +1

      I was going to comment what y'all did because I paused the video and thought about it and now I have nothing to contribute

    • @klijntje88
      @klijntje88 2 ปีที่แล้ว +3

      It took me embarrassingly long to figure this out...

  • @wyboo2019
    @wyboo2019 ปีที่แล้ว +9

    Ben Sparks: I'm not gonna reveal too much, you can just go read the paper; it's a nice bit of digging
    Brady: crops and highlights the optimal strategy

  • @returnexitsuccess
    @returnexitsuccess 3 ปีที่แล้ว +268

    "I dusted off my inner Matt Parker"
    Nah if you had been channeling Matt you would have done it in a spreadsheet

    • @jansalomon5749
      @jansalomon5749 3 ปีที่แล้ว +23

      Every time I read the word spreadsheet I read it in Matt's voice

    • @nHans
      @nHans 3 ปีที่แล้ว +11

      Matt has leveled up from spreadsheets. He now codes in Python.

    • @Superbajt
      @Superbajt 3 ปีที่แล้ว +11

      And he should have made a mistake or have it only partly resolved.

  • @caleblatreille8224
    @caleblatreille8224 3 ปีที่แล้ว +57

    I used to work in schools and would play this with 5-year-olds to teach them the importance of knowing when you're ahead and calculating odds, but never thought I'd see someone calculate the ACTUAL odds!! mind is absolutely blown, my fave Numberphile video in a long while!

    • @MrDeepbluec
      @MrDeepbluec 3 ปีที่แล้ว +9

      I had a further maths class that liked playing it until the day one lad was loosing 99-0 on his birthday and got to 100 in one turn to win. After that, no game was as exciting!

    • @TPK_MAKG
      @TPK_MAKG 2 ปีที่แล้ว

      @@MrDeepbluec how

    • @danielernsberger3771
      @danielernsberger3771 10 หลายเดือนก่อน

      @@MrDeepbluec Using the roll estimate for such a comeback, the chance of making such a comeback on a given turn in that situation would be (5/6)^25, or about 1.048%. Given the 1/6 possibility of your opponent just rolling 1 straight off and never seeing that last point, the full chance of this comeback should be about 7/6 of that figure, or 1.223%.
      Neither of these are quite exact values. Breaking down the entire score tree, according to the video, is computationally too strenuous for us to figure exactly right now all the way out at 100 points.

  • @Sinnistral
    @Sinnistral 3 ปีที่แล้ว +32

    "Leaning jowler" is a phrase that's etched into my memory from childhood. Loved this game!

    • @dielaughing73
      @dielaughing73 2 ปีที่แล้ว +1

      Along with Makin' Bacon

  • @RossSavill
    @RossSavill 3 ปีที่แล้ว +73

    Haven't seen Pass The Pigs since I played with my grandad like 25 years ago! Super nostalgia. Still remember I threw two leaning gowlers and we studied them for like 5 minutes cos we couldnt believe it.

    • @reaganharder1480
      @reaganharder1480 3 ปีที่แล้ว +12

      I have the game because my grandpa was cleaning and giving away his old things, and I had fond memories of playing that game at their hous as a child, so I claimed it.

  • @antonmiserez934
    @antonmiserez934 3 ปีที่แล้ว +54

    Don’t mind me, I’m just putting a marker at 5:02 for future me so that I can always jump to the best bit

  • @lenskihe
    @lenskihe 3 ปีที่แล้ว +89

    I love how Ben Sparks always uses GeoGebra, even when it's not practical 😂

    • @Sagar33002
      @Sagar33002 3 ปีที่แล้ว +20

      GeoGebra is never not practical my friend

    • @nahblue
      @nahblue 2 ปีที่แล้ว +6

      It was pretty. Also I had no clue it could do more than circles and lines :O

    • @yonatanbeer3475
      @yonatanbeer3475 2 ปีที่แล้ว +11

      His refusal to learn python is admirable

  • @Rubrickety
    @Rubrickety 3 ปีที่แล้ว +52

    The most surprising thing is that the full 3-D graph exactly matches the interior of the Sydney Opera House.

  • @AlfaEcho
    @AlfaEcho 3 ปีที่แล้ว +148

    22:43 are the two bars at the front level because you cant score one, meaning that aiming for 1 = aiming for 2 ?

    • @JonathanMandrake
      @JonathanMandrake 3 ปีที่แล้ว +17

      Exactly!

    • @landsgevaer
      @landsgevaer 3 ปีที่แล้ว +3

      Yep. 👍

    • @rmsgrey
      @rmsgrey 3 ปีที่แล้ว +23

      The way I would phrase it is that if you get at least 1, you also get at least 2, but it's the exact same point.

    • @cuaroz5808
      @cuaroz5808 3 ปีที่แล้ว +10

      Or rather they are both the same stragegy of never rolling more than once per turn. Because if they get 2 or higher, they will always bank as they reached or exceeded their goal, if they get 1 their turn ends. So there is no difference between aiming for 1 and aiming for 2.

    • @BiscuitZombies
      @BiscuitZombies 2 ปีที่แล้ว

      Indeed, isomorphically.

  • @bigpump2620
    @bigpump2620 ปีที่แล้ว +5

    If Russell crow was a sweet friendly guy.

  • @avery31415
    @avery31415 8 หลายเดือนก่อน +3

    I played the original game with the die in primary school a couple of times in maths. We'd play it with the whole class, everyone would stand up at the start and then the teacher would roll the die and we'd write down numbers until we decided to sit down. We'd then keep our score. If the teacher rolled a 1 everyone standing up would be out and everyone else would add up their scores and whoever had the highest would win. It was a lot of fun.

  • @toast99bubbles
    @toast99bubbles 3 ปีที่แล้ว +19

    Aiming for 20 is similar to aiming for 5 rolls, when assuming an average roll of 4, so the roll and score strategies do give a similar result.
    As for why 1 and 2 are equal, it's because you can't end a game on 1 point, you need at least 2 points to end a game (because 1 sets you to 0). So if you will bank after at least 1 point, you'll be banking at the same time that you would when banking when you have at least 2 points, which would be every turn that isn't 1.

  • @qj0n
    @qj0n 3 ปีที่แล้ว +24

    Actually, using dynamic programming, you can calculate the average result, when you aim on 20 pretty quickly. A lot of cases collapse (like 2+3 = 3+2), so running calculations on 'aim to 20' strategy would be about 6*20 operations (there are 20 different states, you can be until you get 20 and 6 ways you can go)

  • @AlanKey86
    @AlanKey86 3 ปีที่แล้ว +48

    My family used to have the cow version of this (Tip the Cows)
    Maybe Numberphie could produce a "Bowl the Bottles" version with Klein Bottles...

    • @ThomasBomb45
      @ThomasBomb45 3 ปีที่แล้ว +1

      They would have to be plastic... they can't be the glass ones lol

    • @gcewing
      @gcewing 3 ปีที่แล้ว +8

      Or "Toss the Toruses" with tiny plastic coffee cups.

  • @PaulPower4
    @PaulPower4 3 ปีที่แล้ว +12

    This is a game I've played and analysed in my job at a science centre! I did the score strat expected value calc a slightly different way, in that I phrased it as "you have a 1 in 6 chance of rolling -n", but got that same optimal score of 20 out. Fascinating to see the extended thinking around the psychology of competitive play, though.

  • @TheAlps36
    @TheAlps36 3 ปีที่แล้ว +111

    Chances of rolling 4 ones in 10 rolls: 5.4%
    Brady's odds: *40%*
    *This is why I hated probability*

    • @Filipnalepa
      @Filipnalepa 3 ปีที่แล้ว +5

      In Pratchett was something along lines that if you try something with chances one i thousands it will work half of times.

    • @Slye_Fox
      @Slye_Fox 3 ปีที่แล้ว +22

      @@Filipnalepa
      “Scientists have calculated that the chances of something so patently absurd actually existing are millions to one.
      But magicians have calculated that million-to-one chances crop up nine times out of ten.” - Terry Pratchett, Mort

    • @Filipnalepa
      @Filipnalepa 3 ปีที่แล้ว +6

      @@Slye_Fox Thanks, that's what I was thinking about.

    • @angellauzara4535
      @angellauzara4535 2 ปีที่แล้ว +3

      and statistics, do not forget to hate statistics too. I do, ever since a friend of mine got drowned in a river that had an average depth of 2 feet...

  • @toastapprentice
    @toastapprentice 3 ปีที่แล้ว +3

    a 30 minute video featuring Ben is the perfect thing to cap off my day :) I think i've seen every single one of Ben's videos multiple times, so this'll make a fine addition to the collection

  • @walterkipferl6729
    @walterkipferl6729 3 ปีที่แล้ว +27

    I just love the videos with Ben. He seems like a super great guy, and has my kind of humor and work ethics and curiosity and he even seems like a genuine Numberphile fan!

  • @notme123123
    @notme123123 3 ปีที่แล้ว +14

    I haven’t watched a numberphile in some time and I’m really glad I did. Nice balance or math and practical explanations.

  • @michaelcrosby7715
    @michaelcrosby7715 3 ปีที่แล้ว +11

    I love that every numberphile video has a rubik's cube close by!

  • @Gunbudder
    @Gunbudder 3 ปีที่แล้ว +24

    In World of Warcraft there is an item call that you can craft called Card of Omens. You can flip the card over and get a random amount of gold from 0.1 gold to 5000 gold. I did a similar expected value calculation on the expected value of any given card, and it came out to around 2.5 gold per card. This meant that it was always worth it to buy the card for less than that from another player. It was counter intuitive though because it seems like the card should be worth less if you don't flip thousands of them at a time. I probably still have a giant spreadsheet of me recording several thousand flips to manually calculate the expected value because there was no way to find the chances of getting different amounts of gold

    • @donaldhobson8873
      @donaldhobson8873 3 ปีที่แล้ว +3

      Expected value in points isn't use in the game. Suppose a game where both players usually end with around 500 points. Now add an item that has a one in a million chance of giving you a billion points. This item is basically useless at helping you win. I wouldn't pay 1 point for it.

    • @howard5992
      @howard5992 ปีที่แล้ว

      @@donaldhobson8873 seems his card ALWAYS made a payout (just not always a large one)

    • @phoquenahol7245
      @phoquenahol7245 8 หลายเดือนก่อน

      In that case, the expected value of that card is 1000, so...@@donaldhobson8873

    • @donaldhobson8873
      @donaldhobson8873 8 หลายเดือนก่อน

      @@phoquenahol7245 The usefulness of a card in a game is not equal to it's "expected value" in points.
      (assuming your goal is to maximize the chance of winning the game) A billion points isn't worth significantly more than a thousand points if 1000 points is already enough to ensure victory.

    • @keiyakins
      @keiyakins 6 หลายเดือนก่อน

      ​@@donaldhobson8873 in the game in question, World of Warcraft, money isn't directly usable to win. It helps, and it also allows you to get things that you can show off to other players, but more gold is better pretty much until you have enough that the game breaks (and that's its own bragging rights... social dynamics make analysis more complicated usually but here it's the opposite.)

  • @user-cg4ep1hg3g
    @user-cg4ep1hg3g 3 ปีที่แล้ว +2

    Thank you for this video. Probability theory in games is a very interesting topic for me, and I was very glad to see this one come up

  • @VFD4u
    @VFD4u 3 ปีที่แล้ว +4

    Great video, I think it's my favorite numberphile vid so far!

  • @NunoSalvaterra
    @NunoSalvaterra 3 ปีที่แล้ว +4

    This is one of the best numberphile videos ever! Really interesting topic!

  • @DanielHarveyDyer
    @DanielHarveyDyer 3 ปีที่แล้ว +1

    I really enjoyed the journey in the episode from simple to complex analyses of the same problem. Its a great structure for feeling like you've learned something.

  • @croctologist
    @croctologist 2 ปีที่แล้ว

    This was a really really incredible video. Outstanding work

  • @TomRocksMaths
    @TomRocksMaths 3 ปีที่แล้ว +14

    I'm too young for this...

  • @leumgui
    @leumgui 3 ปีที่แล้ว +4

    this has to be my favourite video on the numberphile channel

  • @RickyTeachey
    @RickyTeachey ปีที่แล้ว +1

    This one is so simple but is one of the best videos I've ever seen. Great job.

  • @EMPP81
    @EMPP81 2 ปีที่แล้ว

    Wonderful video, especially at the end with new surprise after new surprise. Great build-up.

  • @Jammawtf
    @Jammawtf 3 ปีที่แล้ว +29

    My intuition is that the cost of a roll is 1/6 of what you have accumulated, and the value of a roll is 5/6 * 4.. So you roll until you reach 20

    • @Alnakar
      @Alnakar 3 ปีที่แล้ว +2

      Another way of looking at it:
      If you're on 20 six times, and get evenly distributed results, one of those times you'll roll a 1 and lose 20 points. The other 5 times, you'll get 2+3+4+5+6 points, for a total of 20.
      Rolling when you're on 20 you'd expect to net 0 points.

    • @ekim613
      @ekim613 3 ปีที่แล้ว +1

      whoa, we commented really similarly. guess we have similar instincts!
      "instinct tells me that banking on 20 is ideally safe for the 5/6 chance of rolling 4 on average"

    • @taiyibureau9963
      @taiyibureau9963 3 ปีที่แล้ว +3

      Can you still call it instinct, when you underpin it by a calculation?

    • @ekim613
      @ekim613 3 ปีที่แล้ว

      @@taiyibureau9963 until now i thought instinct and intuition were similar, but now i see how different they can be. however, my idea was that a quick calculation is based off instinct without much thought

    • @taiyibureau9963
      @taiyibureau9963 3 ปีที่แล้ว +1

      If you do that without much thought you may call it instinct I guess ;)

  • @DavidHarrisonRand
    @DavidHarrisonRand 3 ปีที่แล้ว +17

    Did they change the "Makin' Bacon" graphic?
    I had this game as a kid in the 80s and I remember the graphic being a little more illustrative of porcine reproduction.

    • @user-yr5nv2gv7m
      @user-yr5nv2gv7m 3 ปีที่แล้ว

      u should see the astragali (dice) used for the original version thats been around since roman times

  • @PushyPawn
    @PushyPawn 3 ปีที่แล้ว

    I thoroughly enjoyed this episode!
    As well as the game links in the description.

  • @joeo6378
    @joeo6378 3 ปีที่แล้ว +2

    I love this game and have collected several versions. Played it since I was a kid - funny directions. Amazing to see it online here.

  • @kevinplayer2625
    @kevinplayer2625 3 ปีที่แล้ว +16

    I think you can solve the hard problem of adding up to 20 using a Markov chain.

  • @Subbestionix
    @Subbestionix 7 หลายเดือนก่อน

    I got influenced into buying the audio book - thanks for sharing! Can't wait to hear it!

  • @dantrizz
    @dantrizz 3 ปีที่แล้ว +1

    This is one of the best videos you've ever done mate

  • @qxtr5853
    @qxtr5853 3 ปีที่แล้ว +26

    "A regular D6" someone was playing some very particular tabletop games!

    • @rosiefay7283
      @rosiefay7283 3 ปีที่แล้ว +3

      Yes, as opposed to those irregular d6s.

    • @johngamble5270
      @johngamble5270 3 ปีที่แล้ว +7

      @@rosiefay7283 Skew D6s are available for what it's worth. Easily found online.

  • @r75shell
    @r75shell 3 ปีที่แล้ว +4

    You can find exact expectation value using Markov chain methods. It yields system of linear equations over expectation values. For target 20 this leads to answer 492303203/60466176. Funny fact, for target score 21 answer is the same. You can notice that each equation depends only on next unknown, so it can be solved by derivations backwards, which doesn't require any fancy algorithms for solving general linear equations.

    • @jennasmith7766
      @jennasmith7766 2 ปีที่แล้ว

      i came to the same result. but i have no idea what markov chains are. just added all possible outcomes multiplied by their probability.

    • @r75shell
      @r75shell 2 ปีที่แล้ว

      @@jennasmith7766 Congratulations. Then you had to add 18365 cases in total, with their corresponding probabilities which doesn't depend on score but on number of turns. On the other hand, Markov chain method gives you answer within approximately 20*5 = 100 multiplications and summations.

  • @limbridk
    @limbridk 3 ปีที่แล้ว

    One of the better Numberphile videos. And that's quite an achivement. Well done chaps!

  • @georgesneill6801
    @georgesneill6801 ปีที่แล้ว

    Is this just another way of showing how evolution works and that our intuition is linked to perceiving probability well? When you talked through the 3D graph and mentioned the « human » strategy explaining it, it really jumped at me!
    A very pleasant 30min! Thanks guys 😊

  • @tzisorey
    @tzisorey 3 ปีที่แล้ว +3

    My strategy was always "Keep rolling until I hit a 6" - that way there's two "outs" - rolling a 1, or rolling a 6. One gets you bank, one gets you bust. But I haven't played it since I was, like, 12.

    • @BrooksMoses
      @BrooksMoses ชั่วโมงที่ผ่านมา

      Interesting! It seems like an appealing idea, but I think it runs into the same argument that proves the "roll N rolls" strategy isn't optimal. If you've rolled and gotten to a total of some number, why would the expected value of rolling again depend on whether you rolled a 6 or a non-6 to get to that total? And if the expected value doesn't depend on that, why should the strategy depend on it?
      The thing that makes this particularly interesting is that there are games where the ideal strategy is not to make some fixed decision, but to make a random weighted choice between two decisions -- and, since the "did I get here by rolling a 6?" question is effectively a way of making a random weighted choice, maybe this is a game where a random weighted choice is better? I expect there is an obvious game-theory reason why a fixed choice is better, but I don't immediately know what it is, so ... maybe?

  • @trummler4100
    @trummler4100 3 ปีที่แล้ว +8

    22:26 Well, those two bars at the beginning end to be the same because it *is* the same if you either aim for 1 or for 2 because you can't score a 1 but a _minimum_ of a 2

  • @HugoZupan
    @HugoZupan ปีที่แล้ว

    This was so pleasing! Great explanation

  • @grahamwilson8843
    @grahamwilson8843 ปีที่แล้ว

    Content like this reminds me why I love math so much. Bravo

  • @cogmonocle2140
    @cogmonocle2140 3 ปีที่แล้ว +8

    This game actually has me really inspired; if you have a reasonable collection of dice, there's so many interesting variations you can try -possibly a version where you roll 2d6, maybe you have the option of rolling 2d6 *or* 1d12, with whatever number of possible loss conditions

    • @JMcMillen
      @JMcMillen 3 ปีที่แล้ว +2

      You could even divorce the loss condition from the die roll itself by making the loss condition a score of a certain multiple of something. For example, using 1d6 the loss condition could be your current turns total being a multiple of 6. It's still a 1:6 chance of failing out but it's not tied to any specific roll. Or, if rolling 2d6 you lose if you roll doubles. Still a 1:6 chance of failure

    • @remivannier9931
      @remivannier9931 3 ปีที่แล้ว +2

      Just play "Can't stop" then. It's a 4d6 version. Very entertaining.

    • @JMcMillen
      @JMcMillen 3 ปีที่แล้ว +1

      @@remivannier9931 You could also buy the game Zombie Dice where your odds are based on which dice you draw.

    • @KevinHorecka
      @KevinHorecka 3 ปีที่แล้ว

      Check out the game Farkle. It's this with 5 dice and poker style scoring.

    • @BrooksMoses
      @BrooksMoses ชั่วโมงที่ผ่านมา

      Another option would be to roll N d6s and you choose N but you only get one roll per turn, and you score 0 if any of them are 1, otherwise you score the total. This makes the game a bit simpler, because "roll N times" is the only possible strategy, although you can still choose N based on the current scores.

  • @Perplaxus
    @Perplaxus 3 ปีที่แล้ว +4

    Wow, those final 3D visualizations are incredible

  • @surajvkothari
    @surajvkothari 3 ปีที่แล้ว +2

    Love this longer-form video. Some Numberphile videos should be long to understand the concept fully!

  • @thebudderwrench
    @thebudderwrench 2 ปีที่แล้ว

    As for the partitioning problem mentioned, you may be able to utilize some varient of the sticks and stones combinatorics method that resolves the problem into a series of binomial coefficients.

  • @Tranbarsjuice
    @Tranbarsjuice 3 ปีที่แล้ว +8

    First time since university that I come across value iteration. Finally that reinforcement learning class pays off ;)

    • @emuccino
      @emuccino 3 ปีที่แล้ว

      I was excited to see that too!

  • @jeemonjose
    @jeemonjose 3 ปีที่แล้ว +4

    I've watched endless hours of grand illusion videos, and this one i remember seeing in one of those

  • @applesauce90210
    @applesauce90210 3 ปีที่แล้ว +1

    I just taught my statistics class about expected value and I’m so excited to show them this video

  • @jonathananonymouse7685
    @jonathananonymouse7685 3 ปีที่แล้ว

    Piggin' FASCINATING! Excellent video. Thank you for introducing me to a new game!

  • @hindigente
    @hindigente 3 ปีที่แล้ว +14

    Interesting episode. I wonder if that 3D chart would become less jagged if we were to increase both the number of die sides and the total score. Or if its jaggedness is not an artefact of the discrete nature of the data, but something intrinsic to this type of problem.

  • @Dirsmuutio
    @Dirsmuutio 3 ปีที่แล้ว +8

    I bought the "pass the pug" version of this and it rules because there are pugs

  • @srelma
    @srelma 3 ปีที่แล้ว

    Awesome video on a very simple topic. Thank you so much

  • @alphabeets
    @alphabeets 2 ปีที่แล้ว +1

    This guy is great. Wonderful and interesting series. Thanks.

  • @willempye73
    @willempye73 3 ปีที่แล้ว +8

    Pass the cats would be boring because cats always land on their feet.

  • @canadianguy1578
    @canadianguy1578 3 ปีที่แล้ว +4

    Great video on a great game! But what if you change the rules of the game so that the losing condition is rolling the same number twice in a row, instead of rolling a 1? It would guarantee a score greater than 0 at one roll, but would the optimal strategy change otherwise?

  • @johnchessant3012
    @johnchessant3012 3 ปีที่แล้ว +1

    Awesome! I thought most comments would be about Brady's astoundingly bad luck but the math was so interesting!

  • @travispetit2410
    @travispetit2410 3 ปีที่แล้ว +1

    This episode was amazing!

  • @marklonergan3898
    @marklonergan3898 3 ปีที่แล้ว +4

    You mentioned the value wouldn't be intuitive, but 20 was exactly what i was thinking based on the risk:reward ratio. When you are on 20 points, you have a 5/6 chance to get an average of 4 points and a 1/6 chance to get -20 points which balance to 0 making it the swing-number. You said n

  • @thememeestfilmbuff
    @thememeestfilmbuff 3 ปีที่แล้ว +20

    Well statistically speaking....
    *You’ll survive 50% longer if no one wants bacon.*

  • @nate-wilkins
    @nate-wilkins ปีที่แล้ว

    I loved this video. Great job!

  • @brandonmtrujillo
    @brandonmtrujillo 2 ปีที่แล้ว

    Really captivating. Very well presented.

  • @BedrockBlocker
    @BedrockBlocker 2 ปีที่แล้ว +3

    Ben Sparks is too cool. You can really feel the math energy he radiates :)

  • @hamiltonianpathondodecahed5236
    @hamiltonianpathondodecahed5236 3 ปีที่แล้ว +12

    btw we need that score-card on a tshirt

  • @tedelaney2009
    @tedelaney2009 3 ปีที่แล้ว

    Fascinating - well done!

  • @chair547
    @chair547 ปีที่แล้ว +1

    One thing (this comes from Farkle) that can make any game like this interesting is if you allow all the players one "catch up" round to beat the winners. This creates extra tension and decision making for two reasons. If the threshold is 100 and you're at 101, in the normal game you win. In the "catch up" variation you're incentivised to keep going to augment your lead. Also if you bank at say 115 points, then the other player now gets one intense turn of trying to catch up with you at all costs.

  • @keithwallace5277
    @keithwallace5277 3 ปีที่แล้ว +6

    i love this
    i need a 3d model of this graph!!

    • @thehemperor3967
      @thehemperor3967 2 ปีที่แล้ว

      you found any? Cant find it anywhere

  • @Wolforce
    @Wolforce 3 ปีที่แล้ว +4

    Omg i have this game =O for a long time too. Its in french and i never knew anyone who knew it or had it.

  • @louisroy4911
    @louisroy4911 2 ปีที่แล้ว

    Incredibly interesting. Thank you!

  • @przemekmajewski1
    @przemekmajewski1 3 ปีที่แล้ว

    Excellent video!

  • @JesseFeld
    @JesseFeld 3 ปีที่แล้ว +24

    You can really see Brady's competitive side coming out here!

  • @nivolord
    @nivolord 3 ปีที่แล้ว +6

    If the goal is to get to 100 points on your own as quickly as possible, wouldn't it be better to aim for 19 instead? If you aim for 20, you'll get a bit on top most of the times. Aiming for 19 will probably still give you at least 20 on average if you don't bust, but it will be safer than 20. I'll write a quick code to test it.
    Edit: Here are the coding results.
    - Going for 20 each throw (or 100-current_score, whatever is lower), I got 12.626922 turns on average over a million games.
    - Going for 19 each throw (or 100-current_score) is 12.634359 turns, which is a little worse. Apparently, too many games don't have enough points after banking 5 games.
    - My third try was to go for 19, but after four banks, always go for 100-current_score to go for the home stretch (for instance, if you only got 4*19 = 75, you'd go for the full 25). This gives us 12.557203 on average. A slight improvement.
    -There might be some more interesting tactics. Like, once you got one 19, bank it, but then go for 20s up to that point. This gives: 12.568827

    • @YouLoveBeef
      @YouLoveBeef 3 ปีที่แล้ว +2

      Thank you nice work. This was the factor I was missing from the video.

    • @rogeraldrich2533
      @rogeraldrich2533 3 ปีที่แล้ว +1

      I was pondering similar strategies, like you said the goal isn't the highest average it is the first past 100. Does it make sense to go for 25? That's the first number where you are guaranteed to make it in four successful rolls. If you stop at 20 you can only succeed in four rolls by getting a six after landing on nineteen four times in a row. What's the lowest number between 20 and 25 gives you a better than average chance of making it in four successful rolls?
      It seems the game is weighted toward the stop at 20 strategy since that is the first number guaranteeing a five roll victory and also has the highest average return but what if we played to 125? Does shooting for something a little higher make a difference then?
      I also wondered about the advantage of going first, you could stop at something as low as 14 and still be likely to win shooting for 20's after that. How many points should we spot player two to make it fair? My instinct says five-ish but I can't prove it.
      Lastly, what if you have more players? How do you account for the extra competition? If you have an infinite number of players the only way to win would be to go for broke because somebody would inevitably do it before your second turn. Three players is a subtler problem then I can intuit.
      This has been the best Numberphile for me in ages, I had plenty of new questions after the ones in the video were solved. I was preoccupied for my whole dog walk after watching this.

  • @socalacura1338
    @socalacura1338 3 ปีที่แล้ว +2

    Oh my gosh I never considered actually trying to calculate the probabilities of this game I've had for over a decade! Really brings back childhood memories

  • @adityakhanna113
    @adityakhanna113 3 ปีที่แล้ว

    Just to point out,
    SageMath has an inbuilt Partitions(n) function which returns the list of partitions of a natural number n.
    One can iterate over this list and for each instance check the max and least value. Put them in a list and find the length of that list.
    For anyone who might wanna try to do it quicker

  • @ziquaftynny9285
    @ziquaftynny9285 3 ปีที่แล้ว +3

    Interesting for the simple game my intuition told me that 2 or 3 was the best number of rolls. 5 was surprising

  • @gz6616
    @gz6616 3 ปีที่แล้ว +3

    I was about to suggest that we should set up a competition where people submit their programs, then at the end of the video there comes the "winner".

  • @nalidhardstyle8551
    @nalidhardstyle8551 2 ปีที่แล้ว +2

    The strategy I came up with at the start if the video (for playing against another player) is take any chance you get (aka them rolling a 1) to get to 20 more than them. At that point, they will have to make more and more risky moves to catch up to you, so will get more 1s. When that happens roll a twice. You'll slightly increase your lead, by about 6, meaning they will have to risk more, and it cycles

  • @KeurslagerKurt
    @KeurslagerKurt 2 ปีที่แล้ว

    Fantastic video!!

  • @jeffsweeney312
    @jeffsweeney312 3 ปีที่แล้ว +5

    If I choose the optimized strategy it doesn't mean I will win most of the time. If my opponent also chooses that strategy then I will win on average half the time. The game could be replaced by a single coin toss. So, don't bet the farm on one game.

    • @sgttomas
      @sgttomas 3 ปีที่แล้ว

      The small number of hands actually changes the strategy. I would opt for 10 because the slope of the expectation curve diminishes exponentially while the increases linearly. In a small number of hands you might never see 20 pan out but 10 would produce results closer to the expected value more often.

  • @Tweakimp
    @Tweakimp 3 ปีที่แล้ว +13

    Couldnt you also compare strategies by calculating the probability of winning with optimal play vs someone who always stops at 20 or after 3 rolls? That would be interesting :)

    • @crazy4hitman755
      @crazy4hitman755 3 ปีที่แล้ว +10

      I programmed it for 10 million rolls and the guy who stops at 20 won 89708 times (~65%), while the guy who stop after 3 rolls won 48071 times (~35%)

    • @gehrehmee
      @gehrehmee 2 ปีที่แล้ว +2

      In university I took an artificial intelligence course, and one of the projects was to write a robot to play in a rock paper scissors competition.
      You can play randomly of course, but if you assume that some of the other players are playing with a non-random strategy then the best strategy is to come up with a non-random strategy that counters theirs.
      Suffice to say this gets a lot more complicated a lot faster. 😂

    • @stigcc
      @stigcc 6 หลายเดือนก่อน

      @@crazy4hitman755Maybe one could have a strategy competition. All contestants submitted a function that took three arguments (the two scores and the turn sum) and returned HOLD or GO

  • @matteobecchi1210
    @matteobecchi1210 3 ปีที่แล้ว

    This is really amazing and well explained! Starting from such an apparently silly game. Thanks!

  • @Filipnalepa
    @Filipnalepa 3 ปีที่แล้ว

    I'm so glad to see you picking subject of this game on the workbench. Some time ago I had a discussion with my dad about strategy in very similar game. One side argued that point based strategy is only reasonable approach, other claimed that with fair dices roll number approach should be more reliable. We didn't come to a definitive conclusion, but somehow one of strategies granted victory more often.

    • @BrooksMoses
      @BrooksMoses ชั่วโมงที่ผ่านมา

      The argument I would go with is: Suppose you have a "roll N rolls" strategy, and consider two possible situations. In one situation, you have rolled N rolls and gotten to a given total M. In the other situation you have gotten to that same total but in only N-1 rolls. How could the expected result of making another roll possibly be different in the two cases? And, if it's not, how can making different decisions based on the number of prior rolls possibly be the ideal strategy?
      To put the second rhetorical question a bit more precisely: Suppose we now consider two modified versions of the "roll N rolls" strategy. One is "roll N rolls, except if we get to exactly M, in which case we always roll at least one more time." The other is "roll N rolls, except if we get to exactly M, in which case we always stop." If the expected result of making another roll does not depend on the number of prior rolls, then either making another roll is always the better decision, or it's always a worse decision. (Or it's always an exactly neutral decision, in which case we go back and pick a different M.) Thus, one of these strategies will be exactly equivalent to the "roll N rolls" situation except in a specific case where it will make a better decision. And thus the "roll N rolls" strategy cannot be ideal.

  • @yondie491
    @yondie491 3 ปีที่แล้ว +4

    OOOOH. Swine Farkle!!! I'm sold

  • @alexanderrowe1042
    @alexanderrowe1042 3 ปีที่แล้ว +7

    As a competitive person I'm vicariously titled through Brady's rolls. Cmon one more roll you can't quit with zero points!

  • @badlydrawnturtle8484
    @badlydrawnturtle8484 3 ปีที่แล้ว

    When he first mentioned that calculating the expectation for score strategies was hard, I tried my hand at it. Instead of bothering with the "how many ways to roll up to n" issue, my first thought was to estimate with the single-roll expectation. One roll has an expected score of 4, so a score of n is obtained, on average, by n/4 rolls. The probability of actually reaching that number of rolls without hitting a 1 is (5/6)^(n/4). The expectation is therefore n*(5/6)^(n/4), which gives us a curve with a peak at just short of 22, at an approximate score of 8.1, which is remarkably close to the result shown later on. For a score of 40 it gives an expectation of between 6.4 and 6.5, while for 10 it gives a result of just over 6.3.

  • @Kirmo13
    @Kirmo13 8 หลายเดือนก่อน +1

    What fascinates me is that I probably will never ever play this game for a cumulative time of 30 minutes, yet I just watched this entire video and crave to know more about the paper