The Math of Being a Greedy Pig - Numberphile

2024 ж. 15 Мам.
748 512 Рет қаралды

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

Пікірлер
  • 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): kzhead.info/sun/rahyXbpxgJaYqJ8/bejne.html More Ben Sparks on Numberphile: bit.ly/Sparks_Playlist

    @numberphile@numberphile3 жыл бұрын
    • you should check out "Cosmic Wimpout"

      @Zoxesyr@Zoxesyr3 жыл бұрын
    • 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@lucromel3 жыл бұрын
    • @@JmanNo42 That's not at all what I was testing.

      @lucromel@lucromel3 жыл бұрын
    • @@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.

      @lucromel@lucromel3 жыл бұрын
    • 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

      @EdbertWeisly@EdbertWeisly3 жыл бұрын
  • I like how the most trivial game of dice ever yields a whole 33-minutes video about maths and probabilities

    @parzh@parzh3 жыл бұрын
    • This seems rather trivial, I mostly watched because he was hyping the complexity up, but it turned out to be 20 all along

      @ekkehard8@ekkehard83 жыл бұрын
    • 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

      @brandoncalvert8379@brandoncalvert83793 жыл бұрын
    • @@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?

      @roderik1990@roderik19903 жыл бұрын
    • The simple problems are often the most expressive ones to solve.

      @Narokkurai@Narokkurai3 жыл бұрын
    • @@Narokkurai Like what is time?

      @adminadmin8992@adminadmin89923 жыл бұрын
  • 0:40 thank you for clarifying that these are not real pigs

    @genericexcuse4014@genericexcuse40143 жыл бұрын
    • the chance of them being real is incredibly low, but the implications if they are, far outweigh the effort of mentioning it pointlessly.

      @omikronweapon@omikronweapon3 жыл бұрын
    • @@omikronweapon comment gold

      @tisajokt7676@tisajokt76763 жыл бұрын
    • @@omikronweapon "inceredibly low, but never zero." *VSauce theme intensifies*

      @heh2393@heh23933 жыл бұрын
    • @@omikronweapon amazing observation ! What would this concept be called in philosophy or perhaps in another field of study ?

      @jasonrubik@jasonrubik3 жыл бұрын
    • @@jasonrubik in math it reminds me of weighted means and expected value

      @hybmnzz2658@hybmnzz26583 жыл бұрын
  • Lawyers in lockdown: I'm a person, I'm not a cat Mathmaticians in lockdown: these are plastic pigs, they aren't real pigs

    @veggiet2009@veggiet20093 жыл бұрын
    • Is the lawyer part of this a reference to legal Eagle?

      @cneer17@cneer173 жыл бұрын
    • @@cneer17 it was a great meme clip beefore legaleagle did the meme review of it.

      @LeoStaley@LeoStaley3 жыл бұрын
    • @@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.

      @veggiet2009@veggiet20093 жыл бұрын
    • Police officers in lockdown..

      @oleksijm@oleksijm3 жыл бұрын
    • Was going to say this. You beat me to it

      @murphygreen8484@murphygreen84843 жыл бұрын
  • This was a really engaging episode. Ben Sparks is a solid teacher!

    @Nonsequitorian@Nonsequitorian3 жыл бұрын
    • At least photogenic, if nothing else. But, I do agree it helps that he knows what he is talking about.

      @Robert_McGarry_Poems@Robert_McGarry_Poems3 жыл бұрын
    • @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?

      @FLPhotoCatcher@FLPhotoCatcher3 жыл бұрын
    • 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

      @Epoch11@Epoch113 жыл бұрын
    • Well said

      @johnmaton1401@johnmaton14013 жыл бұрын
    • @@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

      @ishoottheyscore8970@ishoottheyscore89703 жыл бұрын
  • 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...

    @alexpotts6520@alexpotts65203 жыл бұрын
    • somehow, I DIDNT expect that reveal. Yet it's very obvious.

      @omikronweapon@omikronweapon3 жыл бұрын
    • at least he never lost a single point

      @isamiwind438@isamiwind4382 жыл бұрын
    • 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.

      @chriswebster24@chriswebster242 жыл бұрын
    • @@chriswebster24 That sounds like a miserable childhood.

      @General12th@General12th2 жыл бұрын
    • @@chriswebster24 who asked

      @declanlong4676@declanlong46762 жыл бұрын
  • I love that Matt Parker is Numberphile's patron saint of writing code.

    @gordonwiley2006@gordonwiley20063 жыл бұрын
    • Parker Square? Nah! Parker Array? Yea!

      @krissp8712@krissp87123 жыл бұрын
    • @@krissp8712 how about vector squared equal to tensor?

      @Adhjie@Adhjie3 жыл бұрын
    • @@Adhjie Ah, but is it a mathematician Vector or a C Vector?

      @sponge1234ify@sponge1234ify3 жыл бұрын
    • ??

      @Triantalex@Triantalex5 ай бұрын
    • He loves to dust off his Python

      @metalmiketh@metalmiketh4 ай бұрын
  • 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

    @marcuswillbrandt5901@marcuswillbrandt59013 жыл бұрын
    • I will not lie: If the video was just them playing the game for half an hour I definitely wouldn't watch it.

      @jakistam1000@jakistam10003 жыл бұрын
    • I will not lie: If the video was just them playing the game for half an hour I would watch half of it.

      @Webfra14@Webfra143 жыл бұрын
    • @Johan Hansén I'd have a 50% chance if watching it all or not at all

      @mihailmilev9909@mihailmilev99093 жыл бұрын
    • @@mihailmilev9909 I would roll a D6, and watch it that many times, unless I roll a 1, in which case I would uninstall KZhead.

      @sldl@sldl3 жыл бұрын
    • @Johan Hansén I'd watch it on the toilet.

      @iAmCalypso33@iAmCalypso333 жыл бұрын
  • I love how the mathmatician took a second to calculate 8+6. Makes me feel better about myself

    @TheSuperGuitarGuy@TheSuperGuitarGuy3 жыл бұрын
    • As a mathematician, I can tell you this - the more mathematics you know, the worse you get at basic math.

      @Superbajt@Superbajt3 жыл бұрын
    • I can't tell you how many times while doing Calculus II homework I had to stop and think about how to add fractions.

      @kindoflame@kindoflame3 жыл бұрын
    • Needs a Love emote

      @ShawnRoggow@ShawnRoggow3 жыл бұрын
    • @@Superbajt What did pi say to I? Pi Said Get Real then I Replied And Said Be Rational

      @israhm8621@israhm86213 жыл бұрын
    • @@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.

      @merijnbras8901@merijnbras89012 жыл бұрын
  • "I dusted off my inner Matt Parker" Nah if you had been channeling Matt you would have done it in a spreadsheet

    @returnexitsuccess@returnexitsuccess3 жыл бұрын
    • Every time I read the word spreadsheet I read it in Matt's voice

      @jansalomon5749@jansalomon57493 жыл бұрын
    • Matt has leveled up from spreadsheets. He now codes in Python.

      @nHans@nHans3 жыл бұрын
    • And he should have made a mistake or have it only partly resolved.

      @Superbajt@Superbajt3 жыл бұрын
  • 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.

    @jays2001@jays20013 жыл бұрын
    • 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.

      @vonriel1822@vonriel18223 жыл бұрын
    • @@vonriel1822 the average of 2 through 6, that is

      @kourii@kourii3 жыл бұрын
    • Both are just banking on the first roll, in other words.

      @YOM2_UB@YOM2_UB3 жыл бұрын
    • 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

      @fartpimpson3843@fartpimpson38432 жыл бұрын
    • It took me embarrassingly long to figure this out...

      @klijntje88@klijntje882 жыл бұрын
  • 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.

    @robertwilbrand3441@robertwilbrand34413 жыл бұрын
    • Yup, Gambler's fallacy.

      @HeythemMD@HeythemMD3 жыл бұрын
  • "Leaning jowler" is a phrase that's etched into my memory from childhood. Loved this game!

    @Sinnistral@Sinnistral3 жыл бұрын
    • Along with Makin' Bacon

      @dielaughing73@dielaughing732 жыл бұрын
  • 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

    @antonmiserez934@antonmiserez9343 жыл бұрын
  • 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.

    @RossSavill@RossSavill3 жыл бұрын
    • 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.

      @reaganharder1480@reaganharder14803 жыл бұрын
  • I love how Ben Sparks always uses GeoGebra, even when it's not practical 😂

    @lenskihe@lenskihe3 жыл бұрын
    • GeoGebra is never not practical my friend

      @Sagar33002@Sagar330023 жыл бұрын
    • It was pretty. Also I had no clue it could do more than circles and lines :O

      @nahblue@nahblue2 жыл бұрын
    • His refusal to learn python is admirable

      @yonatanbeer3475@yonatanbeer34752 жыл бұрын
  • The most surprising thing is that the full 3-D graph exactly matches the interior of the Sydney Opera House.

    @Rubrickety@Rubrickety3 жыл бұрын
  • 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

    @wyboo2019@wyboo2019 Жыл бұрын
  • Chances of rolling 4 ones in 10 rolls: 5.4% Brady's odds: *40%* *This is why I hated probability*

    @TheAlps36@TheAlps363 жыл бұрын
    • In Pratchett was something along lines that if you try something with chances one i thousands it will work half of times.

      @Filipnalepa@Filipnalepa3 жыл бұрын
    • @@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

      @Slye_Fox@Slye_Fox3 жыл бұрын
    • @@Slye_Fox Thanks, that's what I was thinking about.

      @Filipnalepa@Filipnalepa3 жыл бұрын
    • 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...

      @angellauzara4535@angellauzara45352 жыл бұрын
  • 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!

    @caleblatreille8224@caleblatreille82243 жыл бұрын
    • 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!

      @MrDeepbluec@MrDeepbluec3 жыл бұрын
    • @@MrDeepbluec how

      @TPK_MAKG@TPK_MAKG Жыл бұрын
    • @@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.

      @danielernsberger3771@danielernsberger37719 ай бұрын
  • 22:43 are the two bars at the front level because you cant score one, meaning that aiming for 1 = aiming for 2 ?

    @AlfaEcho@AlfaEcho3 жыл бұрын
    • Exactly!

      @JonathanMandrake@JonathanMandrake3 жыл бұрын
    • Yep. 👍

      @landsgevaer@landsgevaer3 жыл бұрын
    • 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.

      @rmsgrey@rmsgrey3 жыл бұрын
    • 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.

      @cuaroz5808@cuaroz58083 жыл бұрын
    • Indeed, isomorphically.

      @BiscuitZombies@BiscuitZombies2 жыл бұрын
  • 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...

    @AlanKey86@AlanKey863 жыл бұрын
    • They would have to be plastic... they can't be the glass ones lol

      @ThomasBomb45@ThomasBomb453 жыл бұрын
    • Or "Toss the Toruses" with tiny plastic coffee cups.

      @gcewing@gcewing3 жыл бұрын
  • 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)

    @qj0n@qj0n3 жыл бұрын
  • 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.

    @toast99bubbles@toast99bubbles3 жыл бұрын
  • 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.

    @PaulPower4@PaulPower43 жыл бұрын
  • 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

    @Gunbudder@Gunbudder3 жыл бұрын
    • 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.

      @donaldhobson8873@donaldhobson88733 жыл бұрын
    • @@donaldhobson8873 seems his card ALWAYS made a payout (just not always a large one)

      @howard5992@howard5992 Жыл бұрын
    • In that case, the expected value of that card is 1000, so...@@donaldhobson8873

      @phoquenahol7245@phoquenahol72457 ай бұрын
    • @@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.

      @donaldhobson8873@donaldhobson88737 ай бұрын
    • ​@@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.)

      @keiyakins@keiyakins5 ай бұрын
  • 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

    @toastapprentice@toastapprentice3 жыл бұрын
  • 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

    @Jammawtf@Jammawtf3 жыл бұрын
    • 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.

      @Alnakar@Alnakar3 жыл бұрын
    • 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"

      @ekim613@ekim6133 жыл бұрын
    • Can you still call it instinct, when you underpin it by a calculation?

      @taiyibureau9963@taiyibureau99633 жыл бұрын
    • @@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

      @ekim613@ekim6133 жыл бұрын
    • If you do that without much thought you may call it instinct I guess ;)

      @taiyibureau9963@taiyibureau99633 жыл бұрын
  • I love that every numberphile video has a rubik's cube close by!

    @michaelcrosby7715@michaelcrosby77153 жыл бұрын
  • I haven’t watched a numberphile in some time and I’m really glad I did. Nice balance or math and practical explanations.

    @notme123123@notme1231233 жыл бұрын
  • I think you can solve the hard problem of adding up to 20 using a Markov chain.

    @kevinplayer2625@kevinplayer26253 жыл бұрын
  • 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!

    @walterkipferl6729@walterkipferl67293 жыл бұрын
  • 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.

    @r75shell@r75shell3 жыл бұрын
    • i came to the same result. but i have no idea what markov chains are. just added all possible outcomes multiplied by their probability.

      @jennasmith7766@jennasmith77662 жыл бұрын
    • @@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.

      @r75shell@r75shell2 жыл бұрын
  • This is one of the best numberphile videos ever! Really interesting topic!

    @NunoSalvaterra@NunoSalvaterra3 жыл бұрын
  • Great video, I think it's my favorite numberphile vid so far!

    @VFD4u@VFD4u3 жыл бұрын
  • 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

    @user-cg4ep1hg3g@user-cg4ep1hg3g3 жыл бұрын
  • 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.

    @Filipnalepa@Filipnalepa3 жыл бұрын
  • 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.

    @DavidHarrisonRand@DavidHarrisonRand3 жыл бұрын
    • u should see the astragali (dice) used for the original version thats been around since roman times

      @user-yr5nv2gv7m@user-yr5nv2gv7m3 жыл бұрын
  • this has to be my favourite video on the numberphile channel

    @leumgui@leumgui3 жыл бұрын
  • 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.

    @DanielHarveyDyer@DanielHarveyDyer3 жыл бұрын
  • This one is so simple but is one of the best videos I've ever seen. Great job.

    @RickyTeachey@RickyTeachey Жыл бұрын
  • 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

    @trummler4100@trummler41003 жыл бұрын
  • Wow, those final 3D visualizations are incredible

    @Perplaxus@Perplaxus3 жыл бұрын
  • I got influenced into buying the audio book - thanks for sharing! Can't wait to hear it!

    @Subbestionix@Subbestionix6 ай бұрын
  • Wonderful video, especially at the end with new surprise after new surprise. Great build-up.

    @EMPP81@EMPP812 жыл бұрын
  • "A regular D6" someone was playing some very particular tabletop games!

    @qxtr5853@qxtr58533 жыл бұрын
    • Yes, as opposed to those irregular d6s.

      @rosiefay7283@rosiefay72833 жыл бұрын
    • @@rosiefay7283 Skew D6s are available for what it's worth. Easily found online.

      @johngamble5270@johngamble52703 жыл бұрын
  • First time since university that I come across value iteration. Finally that reinforcement learning class pays off ;)

    @Tranbarsjuice@Tranbarsjuice3 жыл бұрын
    • I was excited to see that too!

      @emuccino@emuccino3 жыл бұрын
  • This was a really really incredible video. Outstanding work

    @croctologist@croctologist2 жыл бұрын
  • One of the better Numberphile videos. And that's quite an achivement. Well done chaps!

    @limbridk@limbridk3 жыл бұрын
  • I'm too young for this...

    @TomRocksMaths@TomRocksMaths3 жыл бұрын
    • 😂

      @ebrahimsonday5941@ebrahimsonday59413 жыл бұрын
  • Well statistically speaking.... *You’ll survive 50% longer if no one wants bacon.*

    @thememeestfilmbuff@thememeestfilmbuff3 жыл бұрын
    • I want bacon.

      @lucifersatan4611@lucifersatan46113 жыл бұрын
  • This is one of the best videos you've ever done mate

    @dantrizz@dantrizz3 жыл бұрын
  • I thoroughly enjoyed this episode! As well as the game links in the description.

    @PushyPawn@PushyPawn3 жыл бұрын
  • 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

    @cogmonocle2140@cogmonocle21403 жыл бұрын
    • 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

      @JMcMillen@JMcMillen3 жыл бұрын
    • Just play "Can't stop" then. It's a 4d6 version. Very entertaining.

      @remivannier9931@remivannier99313 жыл бұрын
    • @@remivannier9931 You could also buy the game Zombie Dice where your odds are based on which dice you draw.

      @JMcMillen@JMcMillen3 жыл бұрын
    • Check out the game Farkle. It's this with 5 dice and poker style scoring.

      @KevinHorecka@KevinHorecka3 жыл бұрын
  • I've watched endless hours of grand illusion videos, and this one i remember seeing in one of those

    @jeemonjose@jeemonjose3 жыл бұрын
  • 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 😊

    @georgesneill6801@georgesneill6801 Жыл бұрын
  • I love this game and have collected several versions. Played it since I was a kid - funny directions. Amazing to see it online here.

    @joeo6378@joeo63783 жыл бұрын
  • Ben Sparks is too cool. You can really feel the math energy he radiates :)

    @BedrockBlocker@BedrockBlocker2 жыл бұрын
  • Pass the cats would be boring because cats always land on their feet.

    @willempye73@willempye733 жыл бұрын
  • Love this longer-form video. Some Numberphile videos should be long to understand the concept fully!

    @surajvkothari@surajvkothari3 жыл бұрын
  • Piggin' FASCINATING! Excellent video. Thank you for introducing me to a new game!

    @jonathananonymouse7685@jonathananonymouse76853 жыл бұрын
  • 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

    @marklonergan3898@marklonergan38983 жыл бұрын
  • btw we need that score-card on a tshirt

    @hamiltonianpathondodecahed5236@hamiltonianpathondodecahed52363 жыл бұрын
  • Content like this reminds me why I love math so much. Bravo

    @grahamwilson8843@grahamwilson8843 Жыл бұрын
  • This was so pleasing! Great explanation

    @HugoZupan@HugoZupan Жыл бұрын
  • You can really see Brady's competitive side coming out here!

    @JesseFeld@JesseFeld3 жыл бұрын
  • I bought the "pass the pug" version of this and it rules because there are pugs

    @Dirsmuutio@Dirsmuutio3 жыл бұрын
  • Awesome! I thought most comments would be about Brady's astoundingly bad luck but the math was so interesting!

    @johnchessant3012@johnchessant30123 жыл бұрын
  • 29:24 - "I love that all that psychology which we have an intuitive feel, we have the math to back it up." Such a perfect summation of the findings.

    @TampaCEO@TampaCEO2 жыл бұрын
  • 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.

    @hindigente@hindigente3 жыл бұрын
  • Interesting for the simple game my intuition told me that 2 or 3 was the best number of rolls. 5 was surprising

    @ziquaftynny9285@ziquaftynny92853 жыл бұрын
  • I just taught my statistics class about expected value and I’m so excited to show them this video

    @applesauce90210@applesauce902103 жыл бұрын
  • 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

    @nalidhardstyle8551@nalidhardstyle85512 жыл бұрын
  • 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".

    @gz6616@gz66163 жыл бұрын
  • 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

    @nivolord@nivolord3 жыл бұрын
    • Thank you nice work. This was the factor I was missing from the video.

      @YouLoveBeef@YouLoveBeef3 жыл бұрын
    • 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.

      @rogeraldrich2533@rogeraldrich25333 жыл бұрын
  • This episode was amazing!

    @travispetit2410@travispetit24103 жыл бұрын
  • 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

    @socalacura1338@socalacura13383 жыл бұрын
  • 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.

    @jeffsweeney312@jeffsweeney3123 жыл бұрын
    • 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.

      @sgttomas@sgttomas3 жыл бұрын
  • If Russell crow was a sweet friendly guy.

    @bigpump2620@bigpump2620 Жыл бұрын
  • Awesome video on a very simple topic. Thank you so much

    @srelma@srelma3 жыл бұрын
  • 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

    @Kirmo13@Kirmo138 ай бұрын
  • 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?

    @canadianguy1578@canadianguy15783 жыл бұрын
  • 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.

    @Wolforce@Wolforce3 жыл бұрын
  • Fascinating - well done!

    @tedelaney2009@tedelaney20093 жыл бұрын
  • This guy is great. Wonderful and interesting series. Thanks.

    @alphabeets@alphabeets2 жыл бұрын
  • What if in the case of throwing “1” the current score was not lost, but added to the total score of your opponent….

    @kitrit8445@kitrit8445 Жыл бұрын
    • I think for the version where you're ignoring the current score of both players, you can treat that mathematically as subtracting it from your score, or losing points. In that case I believe the optimum score to aim for is 10, ignoring the stuff about getting to 100 points and whatnot.

      @marcusmelander8055@marcusmelander8055 Жыл бұрын
  • I feel sorry for Ben’s inner Matt Parker; he must be very uncomfortable hunched over in there.

    @Rubrickety@Rubrickety3 жыл бұрын
  • 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.

    @avery31415@avery314157 ай бұрын
  • This is really amazing and well explained! Starting from such an apparently silly game. Thanks!

    @matteobecchi1210@matteobecchi12103 жыл бұрын
  • i love this i need a 3d model of this graph!!

    @keithwallace5277@keithwallace52773 жыл бұрын
    • you found any? Cant find it anywhere

      @thehemperor3967@thehemperor39672 жыл бұрын
  • As a competitive person I'm vicariously titled through Brady's rolls. Cmon one more roll you can't quit with zero points!

    @alexanderrowe1042@alexanderrowe10423 жыл бұрын
  • I loved this video. Great job!

    @nate-wilkins@nate-wilkins Жыл бұрын
  • 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.

    @chair547@chair547 Жыл бұрын
  • 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 :)

    @Tweakimp@Tweakimp3 жыл бұрын
    • 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%)

      @crazy4hitman755@crazy4hitman7553 жыл бұрын
    • 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. 😂

      @gehrehmee@gehrehmee2 жыл бұрын
    • @@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

      @stigcc@stigcc5 ай бұрын
  • This episode is not kosher

    @ninenine5804@ninenine58043 жыл бұрын
  • Computing the expectation of the score based strategies isn't as hard as stated in the video: let p_n be the probability of at some point seeing a score of n in the game (with no stopping). Then p_0 = 1, p_k = 0, k

    @austinconner2479@austinconner24793 жыл бұрын
  • Really captivating. Very well presented.

    @brandonmtrujillo@brandonmtrujillo2 жыл бұрын
  • OOOOH. Swine Farkle!!! I'm sold

    @yondie491@yondie4913 жыл бұрын
    • Swine Farkle sounds like a top-rated crossword solution

      @intrepidmixedmedia7939@intrepidmixedmedia79393 жыл бұрын
  • Coded this on Python last autumn on an introductory course for coding :P

    @FizzyToni@FizzyToni3 жыл бұрын
  • 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.

    @badlydrawnturtle8484@badlydrawnturtle84843 жыл бұрын
KZhead