The Problems with Secret Santa - Numberphile

Sdílet
Vložit
  • čas přidán 21. 11. 2016
  • Dr Hannah Fry discusses Secret Santa, anonymity and derangements. And a better way to do it.
    More links & stuff in full description below ↓↓↓
    More Hannah on Numberphile: bit.ly/hannah_vids
    Hannah's co-written Xmas book: amzn.to/2g8mIn6
    Hannah's love/math book: bit.ly/frylovebook
    Numberphile poster: store.dftba.com/products/numb...
    Graham's Number T-Shirt: store.dftba.com/collections/n...
    Other Numberphile T-Shirts: teespring.com/stores/numberphile
    Hannah on Objectivity: • Blackballed (feat. Han...
    Support us on Patreon: / numberphile
    NUMBERPHILE
    Website: www.numberphile.com/
    Numberphile on Facebook: / numberphile
    Numberphile tweets: / numberphile
    Subscribe: bit.ly/Numberphile_Sub
    Numberphile is supported by the Mathematical Sciences Research Institute (MSRI): bit.ly/MSRINumberphile
    Videos by Brady Haran
    Brady's videos subreddit: / bradyharan
    Brady's latest videos across all channels: www.bradyharanblog.com/
    Sign up for (occasional) emails: eepurl.com/YdjL9
    Numberphile T-Shirts: teespring.com/stores/numberphile
    Other merchandise: store.dftba.com/collections/n...
  • Věda a technologie

Komentáře • 2,8K

  • @mep5500
    @mep5500 Před 5 lety +6854

    The real problem with secret santa is that nobody actually keeps it a secret

    • @KucheKlizma
      @KucheKlizma Před 4 lety +270

      The worst one I've have the misfortune of partaking in in school we didn't even know who we're buying presents for. Needless to say the result was a lot of crying girls and a lot of boys who got a lot of awkwardly girlish presents.
      I think we just ended up solving it with some simple barter after the crying ceased.

    • @thunderbolt_blitz
      @thunderbolt_blitz Před 4 lety +60

      I always keep it secret, until we all get our gifts bc we all do a group giving

    • @skyjoe55
      @skyjoe55 Před 4 lety +13

      I lie about who i have

    • @rkah6187
      @rkah6187 Před 4 lety +81

      @@KucheKlizma Yeah, we had that, too. Our teacher then sort of just dumped all the presents on the table and everyone picked one by one. It wasn't fair at all, especially because somebody bought gift cards, others bought a pair of crisps from the cafeteria.

    • @sarahfitzgerald801
      @sarahfitzgerald801 Před 4 lety +10

      Or, what happened to me is everyone else was told who their secret santa was after getting their presents from them except for me, still don't know who had me

  • @shantanukulkarni007
    @shantanukulkarni007 Před 7 lety +3574

    If you pull your own name, keep it and dont tell anyone. That way you buy yourself the best present, the thing you always wanted and you dont even have to waste your money on some random person. Best case scenario.

    • @shantanukulkarni007
      @shantanukulkarni007 Před 7 lety +360

      And if you have to show other people what you got. Just buy the costliest gift like a car. So everybody can be jealous that you are so popular that people in office will even buy car to please you

    • @shantanukulkarni007
      @shantanukulkarni007 Před 7 lety +190

      Damn I am turning into Sheldon :(

    • @RalphDratman
      @RalphDratman Před 7 lety +55

      No, you are not. I think your idea is exactly right! Why, anyway, would that person be unhappy?

    • @onam3000
      @onam3000 Před 7 lety +32

      that would defeat the purpose

    • @MegaKaitouKID1412
      @MegaKaitouKID1412 Před 7 lety +128

      If it's a Secret Santa in the office or something, with people you don't know well and maybe even don't particularly like, yes it defeats the purpose of getting people you don't like gifts that they don't want, but that purpose is essentially empty consumerism. Pulling yourself and keeping yourself means you can spend that money on something that will actually be used.
      That said, gift exchanges that are anonymous are usually done all at once. So you have to be sure to keep anyone from seeing the fact that the gift you're adding to the pile is the same one you're taking out of the pile.

  • @vapurrreon
    @vapurrreon Před 4 lety +1749

    We had “assigned” secret santas that our boss (not playing secret Santa) pulled for everyone, to avoid this. Beforehand, we were given sheets to fill out about what we like/bad gift ideas. Worked pretty well!

    • @no1bro120202
      @no1bro120202 Před 4 lety +41

      We actually did a very similar thing to this, and it also turned out very well!

    • @k0pstl939
      @k0pstl939 Před 2 lety +38

      That's what I started thinking is have an impartial person

    • @bizziegrace
      @bizziegrace Před 2 lety +20

      we did the little sheets too and it was a game changer to make sure you get something somewhat like what you want

    • @Triantalex
      @Triantalex Před 7 měsíci

      ??.

  • @skyjoe55
    @skyjoe55 Před 4 lety +3096

    For when my friend group did this a week or two ago, i spent 3 hours making an app so that it was completely fair
    I was very close to making it give everyone my name

    • @marykint7022
      @marykint7022 Před 4 lety +49

      Can you you put it on the App Store?

    • @skyjoe55
      @skyjoe55 Před 4 lety +97

      @@marykint7022 its only very rough unfriendly processing code

    • @marykint7022
      @marykint7022 Před 4 lety +10

      Oh ok never mind :)

    • @Jacqueline-rl8pu
      @Jacqueline-rl8pu Před 4 lety +12

      Sue Sylvester is that you?

    • @Melanie-yep
      @Melanie-yep Před 4 lety +51

      There’s a website for this my friend group has used for a couple years: Sneaky Santa

  • @Mobin92
    @Mobin92 Před 7 lety +2802

    The trick is to don't say anything if you pick your own name. That way you get to buy something for yourself. .____.

    • @FrostRose
      @FrostRose Před 7 lety +194

      You'd be doing everyone a favor by soaking up what would otherwise have been a failure, that would've wasted everyone's time. So really, it's a very altruistic thing to do... Especially if you're rubbish at giving presents.

    • @jensraab2902
      @jensraab2902 Před 7 lety +104

      +Simon N. Simonsen "So really, it's a very altruistic thing to do." - I don't think so. Consider all your colleagues looking at your very nice present (which you bought yourself for yourself) thinking "why did I get a crappy present?!?" and getting envious! :-p

    • @WiigWiig
      @WiigWiig Před 6 lety +217

      Everyone buys their own present, thinking they got one over on the system, not realizing that not a single gift was exchanged by anybody.

    • @lyricbot8513
      @lyricbot8513 Před 5 lety +25

      But the other person who picked their own name will speak up

    • @stewartbugler6157
      @stewartbugler6157 Před 5 lety +3

      Ted Jones exactly why i looked at the replies

  • @CrystalClearMaths
    @CrystalClearMaths Před 2 lety +286

    I used to work in an office with just one colleague. Every Christmas, the two of us would have a Secret Santa! It worked really well.

  • @ZenoDovahkiin
    @ZenoDovahkiin Před 4 lety +247

    I love how on this channel, they had to specify *substandard* calculator to make the gift unappealing.

    • @joycelinlgbtq
      @joycelinlgbtq Před 4 lety +16

      Matt Parker has a BAMBOO caclculator made from BAMBOO that he'd like to introduce you to. Oh, and did i mention its BAMBOO?

    • @TRRailfan
      @TRRailfan Před 3 lety +7

      A superstandard calculator would be very appealing

  • @kidkecleon
    @kidkecleon Před 5 lety +1681

    3 people never works, if A picks B, then obviously A is getting a gift from c.

    • @Unc3
      @Unc3 Před 5 lety +45

      unless someone picks himself

    • @morganbegg3535
      @morganbegg3535 Před 5 lety +28

      But what if B picks A?

    • @9nikolai
      @9nikolai Před 5 lety +214

      @@morganbegg3535 Then C picks themselves and they start over again.

    • @EclipsedLuna-cx3ff
      @EclipsedLuna-cx3ff Před 5 lety +48

      @@mathygamba Let's say that A is giving a gift to B. C cannot give a gift to B because A is already doing that. C obviously cannot give a gift to him/herself so C can only give a gift to A. B can then only give a gift to C.

    • @calendars4
      @calendars4 Před 5 lety +8

      Why didn’t I think of this

  • @Xeverous
    @Xeverous Před 7 lety +2054

    Unpacks present... *another klein bottle*

  • @trolleymouse
    @trolleymouse Před 7 lety +1389

    > another klein bottle
    GEE I WONDER WHO BOUGHT THAT

    • @eddotron1224
      @eddotron1224 Před 7 lety +108

      TrolleyMouse oh thanks Cliff, again....

    • @blanchild
      @blanchild Před 7 lety +12

      ahahahah

    • @gmandurj40
      @gmandurj40 Před 7 lety +102

      I hope to one day be as passionate about anything as Cliff is about Klein Bottles.

    • @BlobVanDam
      @BlobVanDam Před 7 lety +63

      I would love to get a Klein bottle from Cliff as a secret Santa gift. In fact, that's now my life goal.

    • @Supermario0727
      @Supermario0727 Před 7 lety +4

      TrolleyMouse xDDD

  • @JohnChencoughcough
    @JohnChencoughcough Před 7 lety +268

    A nice thing about Dr. Fry's method is that it makes sure that the entire group has a single complete circle of gift giving. With a sufficiently large group, I tend to find that Secret Santa results in isolated groups of gift givers.

    • @JonathanLidbeck
      @JonathanLidbeck Před rokem +4

      Exactly, and that weakens the claim that the system is entirely secret--once you learn the identity of your recipient anyway. You have also learned that you are not their recipient.

  • @noahdoss1967
    @noahdoss1967 Před 2 lety +467

    Secret Santa appears to work differently in Britain. In the US, you don’t know who is going to buy you a present, but when you give/get the present it’s revealed

    • @angusmcnay5449
      @angusmcnay5449 Před 2 lety +31

      You and I must live in a different US

    • @stellasdoesstuff
      @stellasdoesstuff Před 2 lety +51

      I've done it both ways in the US. I even had a secret santa where it went over a few weeks, and each week was a gift, and we got revealed on the last gift

    • @abigaillemonade1497
      @abigaillemonade1497 Před 2 lety +7

      I did that and I'm in the uk

    • @toffinabof1353
      @toffinabof1353 Před 2 lety +22

      For me it's always been, pick names, don't tell anyone who has who, give presents, awkwardly laugh at the reveal of the person who got you after you open. I'm in the UK

    • @LMI101
      @LMI101 Před 2 lety

      That is white elephant

  • @Sharkon36
    @Sharkon36 Před 7 lety +639

    Let's be honest, a Hannah Fry video is the best Christmas present

  • @macronencer
    @macronencer Před 7 lety +341

    I actually ran a Secret Santa in an office once, and I came up with a solution involving an elaborate Excel spreadsheet and the random() formula function, plus a bit of careful printing involving keeping two as-yet-unseen sheets of paper stapled together while cutting and folding tickets. The tickets in this case actually had names on them, and were folded so that the gift recipient was not visible. It was a lot of work, but fun to design. Most people in the office thought I was bonkers, but I did manage to run a fair event by going to all that effort. Of course, there's the other problem - how to get your wrapped gift to the designated distribution point without anyone knowing that one was bought by you (e.g. by looking at the wrapping). That's actually a very hard problem to solve in an open plan office :-|

    • @numberphile
      @numberphile  Před 7 lety +50

      +macronencer that's cool

    • @macronencer
      @macronencer Před 7 lety +21

      Thanks! I like Hannah's solution though: it's certainly simpler than mine :)

    • @bengski68
      @bengski68 Před 7 lety +3

      So in the excel sheet when playing around with random() and such, how did you ensure a derangement? That is, how did you ensure that no one was assigned to themselves?

    • @Shadowstray
      @Shadowstray Před 7 lety +5

      I was just writing a macro for this earlier today... Not an elegant solution, but it basically has two columns. Givers in one, receivers in the other. At each step the macro goes down the second column and picks a random person from the first. And then I've got checks to make sure the giver doesn't match the receiver, and an extra loop to make sure nobody gets picked as receiver more than once.
      The trick though, is having a friend in another department, who can run the macro, mail each giver the name of their partner anonymously, and keep the resulting list for potential tracking purposes. Just in case someone fails to deliver a gift or delivers something seriously inappropriate.

    • @natfailsyoutube8163
      @natfailsyoutube8163 Před 7 lety +2

      +Shadowstray Off the top of my head, why not sort the people randomly then have the person they buy for be the person below them (or the person at the top for the bottom-most name, of course you can still do this part in a 2nd column with a simple formula). While it's not as random as it could be as it won't make small subsets of the total list buying presents for each other, my intuition is that that is not necessarily desireable; and besides this would be quick to implement and probably easier to confirm that it is working relatively bug free ;)
      EDIT: damn it; it's the algorithm suggested in the video... I just got to that part. Oddly it doesn't mention the lack of randomness of the method, that's a bit disappointing for a Numberphile video.

  • @Dezey.a
    @Dezey.a Před 4 lety +494

    When I did a secret santa with my friends we used an app that chose for us and it emailed us a list of what the person likes within the budget

    • @lilianat8413
      @lilianat8413 Před 4 lety +11

      Dezeya what app?

    • @aki-lucky8345
      @aki-lucky8345 Před 4 lety +1

      Wow

    • @yodasoja2011
      @yodasoja2011 Před 4 lety +6

      And if the app maker was smart, they'd use this algorithm to ensure a constant run time, especially for large groups. With the number of retries possible, a group of 20 people could take an hour to run (if it was unlucky enough to need redraws multiple times)

    • @xander.deanna
      @xander.deanna Před 4 lety +39

      Michael Arnold if the app was smart it wouldn’t need redraws because it wouldn’t let you pick yourself.

    • @yodasoja2011
      @yodasoja2011 Před 4 lety +3

      @@xander.deanna yeah...by using the algorithm described in this video. If it used the first algorithm described in this video, it could get to the last person's turn to draw and have no options because only their name is left, thus forcing a redraw.

  • @mucuslime
    @mucuslime Před 4 lety +346

    I remember doing a gift exchange where you bought a present, then everyone was handed a random present. Then, a story was read, and with a certain keyword, the gifts would move left or right with one keyword for each direction. Once the story was over, everyone opened the present they had. It’s not really a secret santa, but how random is it? Would it not just depend entirely on the amount of keywords?

    • @elliottlikesplants
      @elliottlikesplants Před 4 lety +32

      Mucus this sounds similar to a white elephant gift exchange

    • @GenericSupervillain3
      @GenericSupervillain3 Před 4 lety +50

      It's not really random at all, it's actually predetermined, assuming the story was already written and not being made up on the spot by the exchangers.

    • @cassio_lemos
      @cassio_lemos Před 2 lety +15

      Actually it is random since the distribution of the gifts was random. The story just doesn't affect the randomness, it only realigns the order of the gifts and the order of the receivers, but the randomness is the same.

    • @planetearth8044
      @planetearth8044 Před 2 lety

      I read this as each person got the present that they gave out, wouldn't that be a funny coincidence?

  • @ieyke
    @ieyke Před 7 lety +674

    This is exactly the type of mostly pointless math that I'd sit around pondering.

    • @user-cu1so2wf2g
      @user-cu1so2wf2g Před 5 lety +12

      I got this as an exam question

    • @JonathanSharman
      @JonathanSharman Před 5 lety +12

      @Ben Chermside Are you forgetting the shuffle?

    • @jubileeYAVEL
      @jubileeYAVEL Před 4 lety

      I know right!

    • @user-jn4sw3iw4h
      @user-jn4sw3iw4h Před 4 lety +11

      ​@@JonathanSharman Actually Ben is correct on this one (i was looking through the comments to see if anyone had beaten me to that remark)
      The process as explained:
      - shuffle the numbers (you are/ you are buying for are the same on each card)
      - cut the cards in half and shift 'you are buying for' 1 position to the left or right (the fact that this guarantees on-one is buying for themselves, is actually the stated goal of doing it this way).
      - pick up a bundle. (end up exactly in the situation Ben described, if you see who picks up which bundle)
      You get a gift from 1 neighbour and give to the other (same direction for all involved), the only thing that actually got shuffled is which number is assigned to each person (the extra variable introduced to make the rest work)
      With an extra step, you can get this to work though.
      If after shuffling and shifting 1, you staple the new sets back together (keeping the 'no-one picks themselves' fix intact), then shuffle again.

    • @vladimirlenin5637
      @vladimirlenin5637 Před 3 lety

      Mostly important maths is the best kind of maths because if you are right you feel important and if your wrong it doesn't matter

  •  Před 7 lety +52

    Isn't anonymity violated in any case with three people anyways? Everyone knows that the person that bought their present is the one they didn't buy the present for.

    • @jasonc8672
      @jasonc8672 Před 7 lety

      If I am A and I picked B name, A still could have been picked by B or C. My pick has no bearing on that, right?

    •  Před 7 lety +4

      Jason C You are A, you picked B. B could pick A or C, but if they pick A, C will have to pick C, which will force redoing everything. Therefore, any successful run of picks will result in A picks B, B picks C, C picks A (for some values of A, B, C).

  • @daddymuggle
    @daddymuggle Před 4 lety +406

    The 3 person game is worse than stated:
    If A chooses A, fail.
    If A chooses B, then B must choose C and C choose A, else fail. => A knows full outcome.
    If A chooses C, then B must choose A, C choose B, else fail.
    Those are the only two valid selections, hence all players know who their Santa is.

    • @anastasiaklyuch2746
      @anastasiaklyuch2746 Před 4 lety +8

      Also if A choses C and B picks B, then B has to pick a second card but will now know that card B will be taken by C!

    • @jps76
      @jps76 Před 4 lety +7

      The game fails Everytime on the premise that it takes only one person to know who their secret santa for the game to fail.
      But the premise that all players will know who their secret Santa all the time...let's test that.
      A picks B. B knows he can only get A or C validly. Assume on the first try that B doesn't get himself. If B gets A, then the game will ultimately be a wash when C picks C. At this point, A knows the B can only get C.
      What does C know? Assuming the perfect condition where no one picks themselves, C know that A got B or C. C knows that B got A or C.
      My question is, in this perfect yet possible situation, is there a case where C will not know if he's getting a gift from A or B? My guess is that this is possible, but someone prove me wrong because I can't think no more.

    • @anastasiaklyuch2746
      @anastasiaklyuch2746 Před 4 lety +16

      @@jps76 Actually, since there is only two valid permutations with 3 players, then regardless of your turn, you will know who your SS is.
      Once a game with no self-pulling has been played, (lets call them L M and N for the random order of pulling,) M will have either L or N card in his hand, and if he has L, then L has to have N (else N picked himself) and N have M, so M knows his SS.
      3-man Secret Santa is impossible.

    • @daddymuggle
      @daddymuggle Před 4 lety +13

      @@jps76 in the three person game, there are only two valid outcomes. That's not a premise, it's a conclusion.
      Now, your question is whether a player can be unaware of who their secret santa is. The answer is yes, they can if they don't understand the game. That's certainly a possibility.
      Here are the two valid outcomes:
      1. A -> B -> C -> A
      2. A -> C -> B -> A
      Another way of understanding this is: you can't give to yourself. Therefore you can't give to your own secret santa. (For otherwise, the third person would have to give to them self).
      It follows that your secret santa is whoever you aren't giving to.

    • @anastasiaklyuch2746
      @anastasiaklyuch2746 Před 4 lety

      @@Not_an_alligator well DUH

  • @pastaisyummy1110
    @pastaisyummy1110 Před 4 lety +308

    Me: *should be productive*
    CZcams: here's a video of a Mathmatican explaining how to make the most fair secret santa using math

  • @otakuribo
    @otakuribo Před 7 lety +289

    "Derangement" has got to be my favorite mathematical term ever ever.

    • @KirbyTheKirb
      @KirbyTheKirb Před 7 lety +5

      Elliot Grey I agree. It is a great term.

    • @Mic_Glow
      @Mic_Glow Před 4 lety +4

      Sounds like a parody animated series title.

    • @deadmeat1471
      @deadmeat1471 Před 4 lety +4

      Theres lots of degeneracy in physics too

    • @Platina_
      @Platina_ Před 4 lety +2

      Not to burst your bubble, but it's actually 'de-arrangement' XD

  • @puffball2059
    @puffball2059 Před 4 lety +687

    I’m insulted. You said a crappy present but there was a wrapped klein bottle.

    • @adrigax
      @adrigax Před 4 lety +76

      Maybe it's a crappy klein bottle, with only 3 dimensions.

    • @sohamsengupta6470
      @sohamsengupta6470 Před 4 lety +10

      Cliff Stoll makes sales ,I get a cool blown glass bottle, we all win!

    • @charliedobbie8916
      @charliedobbie8916 Před 3 lety +18

      I reckon it'd be quite fiddly to wrap a Klein bottle...

    • @RoaldvdM
      @RoaldvdM Před 3 lety +5

      @@charliedobbie8916 not with klein paper! just getting that out of the shop may be tricky.

    • @_No_Time_
      @_No_Time_ Před 2 lety

      The guy who offered the bottle already drinked it humu humu
      PS: you drink a Klein bottle by doing triple lutz

  • @Donteatacowman
    @Donteatacowman Před 4 lety +143

    The companies I've been with that did Secret Santa, including this year, had you fill out a list of tenish categories of likes and dislikes (brands, things in the price range you'd like, themes and interests for gifts). It was also secret until the gift exchange where you reveal who you got when you give them their gift.
    I'm still hype for this video but I'm 45 seconds in and none of the top comments seem to mention this even though I thought it was common practice. An eternally-secret gift for a rando in your office seems like a recipe for failure and I'm not sure math will help

    • @NathanTAK
      @NathanTAK Před 2 lety +4

      That's not really a Secret Santa then, is it?
      More of a Surprise Santa.

    • @mcd08
      @mcd08 Před 2 lety +9

      @@NathanTAK I always thought the secret was who was the gift giver, not the present itself lol 😆 in my workplace we did something similar too. We just wrote down 2-3 options we wanted and kept it at about 50 bucks. If someone put 2 things that, when added, gave to around 50 bucks people would buy the two things. It was awesome tbh

    • @lestranged
      @lestranged Před 2 lety +7

      yes every time I have done it, you find out at the end who gave you a present. I used to organize one for a group of online friends ( who lives all over the world) and you had to know who gave you a gift because of the return address on the package.

    • @korncobb8808
      @korncobb8808 Před 2 lety

      Ive done that before!

    • @Leto_0
      @Leto_0 Před 2 lety +2

      Why would you not want to know who got you the gift? The only reason for that would be prank gifts

  • @chameleonfoot
    @chameleonfoot Před 2 lety +13

    5:30 Another problem here is that B can pretty easily suss out who is their secret santa, since they saw their own name and put it back, pulled out A, and then the only name left is B for C.

    • @MorB173
      @MorB173 Před 2 lety +1

      With 3 people everyone knows everyone‘s secret santa anyway. So it’s pointless to do it really since it’s never „secret“.

    • @gunghoun
      @gunghoun Před 2 lety

      @@MorB173 Yes, that's a problem with a 3 person group. But the general idea remains the same no matter how large the group is. If the second last person pulls their own name and puts it back in to pick someone else, they will immediately always know who has drawn their name: the last person. If anyone ever pulls their own name, that reveals information to the whole group by narrowing down the possible gift givers for that person. In such a case it is definitely someone who picks after they do.

  • @Lulink013
    @Lulink013 Před 7 lety +207

    but if someone picks C first, then the second person picks their own name (B), sure they will pick a new paper (A) and will know that the first person took the C paper.
    That person now knows every single person's paper.

    • @TheScientificCookie
      @TheScientificCookie Před 7 lety +56

      Yup. In fact everybody will definitely know who picked what in a 3 person system. But that is through inference and not directly. Just something we overlook to simplify the problem with the given 2 rules at the start of the video.

    • @filipsperl
      @filipsperl Před 7 lety

      beat me to it :)

    • @gr1nder07
      @gr1nder07 Před 7 lety +20

      There's only 3 people, so by inference everyone will know by the end. Person 2 always knows what card must be left based on what card they have. Persons 1 and 3 figure it out based on what persons 2 and 3 do

    • @Patrick_Bard
      @Patrick_Bard Před 7 lety +2

      Thank you sir, came here to say that.

    • @lyricbot8513
      @lyricbot8513 Před 7 lety

      Lulink ikr

  • @Gamesaucer
    @Gamesaucer Před 7 lety +131

    I think you missed a step. If things go as you described, then you know for sure that the person who drew a pair of half cards before you is buying for you, and the person after if the one you're buying for (Or the other way around depending on which way you shifted the cards).
    To remedy this, you need to basically tape the cards back together after shifting them, and shuffle them again, so that the order they're picked in doesn't matter anymore, because no one knows what order the cards are in.

    • @cbernier3
      @cbernier3 Před 7 lety +4

      People pick the cards randomly, you don't just hand them out in order.

    • @Gamesaucer
      @Gamesaucer Před 7 lety +22

      cbernier3 But even then you can know by tracking the cards that people pick and then picking the cards before or after them. There's no way to prevent that unless you shuffle them again.

    • @dadorse
      @dadorse Před 7 lety +8

      Gamesaucer It's true, if the point of all this process is to make completely anonymous any pick, then this is definitely a flaw. It could work in some way, but in my opinion it's not rigorous.

    • @Gamesaucer
      @Gamesaucer Před 7 lety +24

      Seth Bembeneck So this is how the proposed solution works. Say you shuffle the cards, and they end up in the order "1 6 3 7 4 5 2".
      Now they're cut into halves, and we end up with "1:1, 6:6, 3:3, 7:7, 4:4, 5:5, 2:2". How we shift them, and we end up with "1:6, 6:3, 3:7, 7:4, 4:5, 5:2, 2:1".
      You can easily see here that for whatever pair you pick, that you will be involved with the people picking the cards left and right of yours, so it's not anonymous.

    • @Gamesaucer
      @Gamesaucer Před 7 lety +2

      Ola Kaldestad smh, learn to read before you post.

  • @kylerichardson514
    @kylerichardson514 Před 4 lety +32

    On your improved secret Santa you are missing a step to make it actually work. You need to make it anonymous the order that the cards are picked up in. Otherwise, by just paying attention to who came before or after them, depending on the shift, they know who is giving to them. You need to then tape the new cards together and shuffle them again before drawing.

    • @nipuniperera9918
      @nipuniperera9918 Před 4 lety

      That's why the cards are shuffled before being cut in two. If you're particularly paranoid, you could tape the two halves together (facing each other) and get people to pull it out of a hat.

    • @TheMrVengeance
      @TheMrVengeance Před 2 lety +8

      @@nipuniperera9918 - Shuffling before the cut does nothing. Once you cut the card, the top says "You are 5" and the bottom says "You buy for 5". Now you shift the top row over 1 to the right to get the derangement like in the video.
      That means whoever picks left of you buys for you. And whoever picks right of you is who you buy for.
      And that means everyone knows who everyone is buying for, as long as they pay attention.
      You need to shuffle AFTER the cut and derangement. And the only way to do that (without making a mess) is by fixing the deranged pieces together again.

    • @piegolorodolfi4556
      @piegolorodolfi4556 Před 2 lety +1

      Yep, i noticed the Same flaw in their sistem.

  • @cameronball3998
    @cameronball3998 Před 4 lety +137

    My friends and I did this a few weeks ago... there were five of us. It was a nightmare, it took us probably 20 times, not exaggerating, for someone to not get themselves. I repeatedly insisted that we should just have a computer decide for us, but they insisted we needed to do it the “traditional” way. It borderline made me mad lol

    • @kamekomiyamora
      @kamekomiyamora Před 2 lety +6

      Oh wow :O I did this with my band, 5 people as well. First try, and no one got themselves. When the day came to give the gifts, it ended up being a circle. It wasn't my idea but I told em its supposed to be a secret, but people forgot to put names on their gifts, so we just handed it to each other 😂

    • @rohar8964
      @rohar8964 Před 2 lety

      SAME- and we have twins in our group and they didn’t want to get each other so it was so much harder

    • @NathanTAK
      @NathanTAK Před 2 lety +2

      The third time they refuse the computer is when you withdraw your name from the pool

    • @strom51
      @strom51 Před 2 lety

      There's a website for secret santa

    • @BritneyHIAM
      @BritneyHIAM Před 2 lety +3

      @@rohar8964 ugh twins are always so annoying

  • @Paris-gy5eg
    @Paris-gy5eg Před 7 lety +1290

    Did you just call a Klein Bottle as a trashy present?!

    • @MrRishik123
      @MrRishik123 Před 7 lety +124

      I sense a war brewing. The klein bottle man v Hannah fry. This war would run for decades as both have loyal fans. #TeamKlein

    • @besserwisser4055
      @besserwisser4055 Před 7 lety +10

      Its not a true klein bottle

    • @jacksainthill8974
      @jacksainthill8974 Před 7 lety +130

      It's only trashy on the _inside_.

    • @Paris-gy5eg
      @Paris-gy5eg Před 7 lety +18

      Jack Sainthill what inside?

    • @jacksainthill8974
      @jacksainthill8974 Před 7 lety +4

      Peravit Raviruchiphun
      Tell you later.
      Don't go away.

  • @paytonrichards6450
    @paytonrichards6450 Před 7 lety +156

    with the 3 person hat thing
    if a picks b
    and b picks c
    then b can deduce that a picked b because b knows that a cant have a or c

    • @Rpodnee
      @Rpodnee Před 7 lety +6

      That's true. I think you would need more people in your secret santa pool to make deductions impossible. I wonder what the minimum number of people is then?

    • @denniswieger172
      @denniswieger172 Před 7 lety +5

      if a pics c
      and b picks b - he has to put it back and get c
      so b knows that the only card left has b on it...

    • @toprak3479
      @toprak3479 Před 7 lety +3

      I thought the same but it's kind of pointless, because nobody ever does secret santa with less than 7-10 people.

    • @nathanl5856
      @nathanl5856 Před 7 lety +8

      +Rpodnee There is no minimum number that will guarantee that deductions are impossible under the "draw from a hat" system.
      They touched on this briefly in the video. Regardless of how many people you started with, if the 2nd to last person draws their own name they will know for sure that the last person is going to buy for them, since they will put back their name and draw the other one.

    • @Rpodnee
      @Rpodnee Před 7 lety +1

      +Nathan L if they drew their own name they would restart the entire drawing process for everyone. I'm sure there is a minimum number that would make deductions impossible.

  • @qed456
    @qed456 Před 2 lety +14

    Love the cheerful energy of Prof Hannah to the extent that I only hear laugh , secret santa , laugh, Hannah's nice voice and no maths . That's fine with me !

  • @kymmie4lyfe
    @kymmie4lyfe Před 4 lety +13

    this isn't the point of the video, but I LOVE Secret Santa at my work! :) We fill in information sheets (favorite candies, hobbies, favorite restaurant, snacks, shirt sizes, colors, etc) -- and everyone winds up with things they like. Plus we do Secret Santa for a whole week, wherein we have a gift limit amount and most of us give something small every day of the week. It's really fun and it works out super well! Plus it's fun to reveal yourself at the end of it (which is how we play).

  • @TriggerMeKaNiK
    @TriggerMeKaNiK Před 7 lety +16

    Hannah is love, Hannah is life.

  • @LoLeanderx
    @LoLeanderx Před 7 lety +96

    -Have you ever done this?
    -Nope.
    I died. 😂

  • @chedddargoblin
    @chedddargoblin Před 2 lety +7

    My only criticism of the last method is that it’s impossible to have subgroups. My secret Santa can’t have me. For some people that’s desirable but I like the idea of having two people by random chance get each other, or even a three person group. Further, you obtain a little more information in this method, because you know your recipient can’t give you a gift, and if you obtain any more information due to carelessness or one/two people telling you (for instance to ask what gift they should get person C), you can deduce even more information about the exchanges

  • @gritz1701
    @gritz1701 Před 4 lety +60

    I pulled my own name about 3 years ago, That year i got a present that i really wanted.

    • @klicerfn248
      @klicerfn248 Před 4 lety

      That means someone else got their own name too unless there was a odd number of people

    • @user-hq5fn6yv2v
      @user-hq5fn6yv2v Před 4 lety +7

      @@klicerfn248 that is not true. Suppose there are 4 players, and the first one gives a present to themself, the second one gives to the 3rd one, the 3rd one gives to the 4th one, and the 4th one gives to the 2nd one.

    • @klicerfn248
      @klicerfn248 Před 4 lety

      @@user-hq5fn6yv2v even number of people then?

    • @user-hq5fn6yv2v
      @user-hq5fn6yv2v Před 4 lety +1

      @@klicerfn248 with three people it's possible that you give a present to yourself, and the other two people give presents to each other.

  • @EGarrett01
    @EGarrett01 Před 7 lety +22

    I just clicked on it because Hannah was in it.

  • @emperorpalpatine7454
    @emperorpalpatine7454 Před 7 lety +95

    Brady, surely a Klein bottle is a great present! A Parker Square would have been a better example ;)

    • @bentoth9555
      @bentoth9555 Před 7 lety +103

      A Parker Square would be almost the perfect gift. Almost.

  • @chiragvyas2763
    @chiragvyas2763 Před 7 lety +22

    Hannah's laughter is positively infectious!

  • @DarinMcGrew
    @DarinMcGrew Před 5 lety +7

    Hmm... The times I've participated in a Secret Santa exchange, part of the game was the reveal at the final party. People had fun trying to guess who their Secret Santa was, and then they got to see whether they were correct at the end. It didn't remain anonymous beyond the final party.

  • @CrashRaindog
    @CrashRaindog Před 7 lety +76

    I really like it when Hannah talks maths to me

  • @ImperiousViking
    @ImperiousViking Před 7 lety +24

    not only that, but the first picker would know who everyone is buying for.
    If A picks B, then he knows B would have to pick C, otherwise C would pick C and there has to be a redo.
    If A picks C then B has to pick A and C has to pick B otherwise there is a redo.

    • @Momohhhhhh
      @Momohhhhhh Před 7 lety +14

      Indeed, a three-person secret santa wouldn't be too smart in real life. Luckily, it still serves as a lesson in probabilities.

  • @samrichardson630
    @samrichardson630 Před 7 lety +3

    The optimal solution should be: shuffle, cut, shift, staple, reshuffle. Otherwise you could choose to give or get a gift from someone just by picking the cards adjacent to the ones you saw them take. This still has the drawback that you know two people won't get each other. Shifting by a random interval would also work.

  • @maximebeauchemin2100
    @maximebeauchemin2100 Před 4 lety +10

    I love this video, but there's another issue with the third branch that I would argue would result in a fail.
    If B picks B out of the hat and shuffles it back in, they now know that A picked C, and that C will have to pick B since B will keep drawing until they don't pick their own name.
    This scenario (where B knows everyone's secret Santa) would happen 25% of the time in this scenario. On top of that, if C sees that B put their name back in, they can also deduce all of the same information because they'd then know that A picked C

  • @ChrisBeard
    @ChrisBeard Před 7 lety +64

    QR subliminal adverts work well! I've just bought a book and I don't know why!

    • @numberphile
      @numberphile  Před 7 lety +58

      +Chris Beard I don't think it's subliminal, just hidden. Unless your brain reads QR codes.

    • @thatweirdguyoverther
      @thatweirdguyoverther Před 7 lety +9

      Numberphile doesn't your brain read QR?

    • @faokie
      @faokie Před 7 lety +3

      Stop trying to snow crash me

  • @tomo8910vids
    @tomo8910vids Před 7 lety +73

    Next on BuzzFeed: £5 Secret Santa Vs. £100 Secret Santa

  • @erinlisaaulfinger9594
    @erinlisaaulfinger9594 Před 4 lety +55

    When I organized a Secret Santa for a group of people, we engineered it so that we (the execs) knew who nearly everyone else was getting something for. Two of us made the lists, so we also wouldn't be able to cheat and figure out who was getting us presents.
    It worked out pretty well. I'd say the majority of the gifts were earnest and well-thought-out. Of course, this was not an office situation, but a board of directors made up of people who were often friends, classmates, and who had been planning/hosting events together for at least one semester, if not much more.

  • @caitepriestley881
    @caitepriestley881 Před 4 lety +51

    worst gift: I once received three sticks of charcoal for secret santa

    • @tallgoofyb
      @tallgoofyb Před 4 lety +1

      caitepriestley what country? Your charcoal comes in sticks??

    • @imsmolandangery4274
      @imsmolandangery4274 Před 4 lety +14

      Like for drawing?

    • @lovelylinds
      @lovelylinds Před 4 lety

      Well, maybe they want you to make them a nice charcoal drawing. 😂

  • @TheMarkoSeke
    @TheMarkoSeke Před 7 lety +335

    To get rid off the problem of everyone getting a crappy gift, just make everyone submit their Amazon wish list for their Santa to be able to look at. That way it removes the stress from the buyer of buying something bad, and the receiver gets something they wanted :)

    • @erinpac
      @erinpac Před 7 lety +25

      Just keep a short public list even if your secret santa group doesn't want to do that. Then if your person wants to sneak a peek (or any relatives that barely know you), they have the chance to.

    • @Coeurlarme
      @Coeurlarme Před 5 lety +30

      @@erinpac Or write a list of things you like and don't like. I find Secret Santas to be funnier when there is a part of guessing what someone might like and being surprised by what your santa have chosen for you, rather than just it being a question of paying for an item in a list.

    • @Chris_Cross
      @Chris_Cross Před 4 lety +3

      What if you don't have an Amazon wish list?

    • @MsJerrySparkle
      @MsJerrySparkle Před 4 lety +9

      @Crow they might have not had time or money for it, or didn't find it. you can't really demand very specific things

    • @GenericSupervillain3
      @GenericSupervillain3 Před 4 lety +5

      Take all the stress away, everyone just buys themselves something and say it's from Secret Santa. Guaranteed success, everyone gets something they want.

  • @Sekti42
    @Sekti42 Před 7 lety +40

    The proposed procedure gives a uniformly random cyclic permutation, but not a uniformly random derangement. This is unelegant, since then everyone knows one person, that they are definitely not receiving a present from (namely the person they buy a present for).
    Also: The example with three people is misleading, since everyone involved will learn which of the two derangements is chosen, just by considering who they have to buy a present for.

    • @Thundawich
      @Thundawich Před 7 lety +1

      Well the first time I heard the cards solution to this sort of problem was with matt parker talking about their hitman game which needed a cyclic permutation to work

    • @TylerDavis0
      @TylerDavis0 Před 6 lety +1

      Correct, this method will never select some of the possible derangements. You would need to be able to split participants up into a random number of cycles of varying sizes in order to do that, but I'm not sure of a physical way of accomplishing that. It's simple with code.

  • @joshualao
    @joshualao Před 6 lety +4

    Last year, I spent an entire day figuring this one out but I wasn't smart enough to actually solve it. Ended up not going thru the secret Santa. When I saw this video I knew I'll finally get the answer. I'm glad the Internet exists. ☺️

  • @sanman2754
    @sanman2754 Před 6 lety +1

    I did this process this year. And I created a survey where you put a wishlist for your number rather than writing your name on the list. It has worked out rather nicely.

  • @tiberiu_nicolae
    @tiberiu_nicolae Před 7 lety +28

    I was looking away and that 2:46 siren set me in apocalypse mode.

    • @extropian314
      @extropian314 Před 7 lety +1

      And it's just like the HG Wells _Time Machine_ sirne when the Morlocks are coming out.

    • @chrisneto
      @chrisneto Před 7 lety

      reminds me of silent hill 1, spooky

    • @milanradovic97
      @milanradovic97 Před 7 lety +2

      extropian314 It's called an "air danger alarm" and it usually signals bombing. In some countries these alarms are tested every 5-10years, heard it once without knowing it was a test, almost crapped my pants

    • @Lightning-Shock
      @Lightning-Shock Před 7 lety +1

      air raid siren*

  • @reissecupfilms
    @reissecupfilms Před 7 lety +248

    HOW DARE YOU CALL A KLEIN BOTTLE CRAPPY

    • @pmcpartlan
      @pmcpartlan Před 7 lety +33

      For the record it was "another klein bottle" assuming you have loads.

    • @snowfloofcathug
      @snowfloofcathug Před 7 lety +6

      Pete McPartlan no matter how many they will always stay awesome

    • @atracor
      @atracor Před 7 lety +26

      Pete McPartlan you mean a storage room full of klein bottles which you can only reach with a robot? If you have less, you don't have enough!

    • @StraightOuttaJarhois
      @StraightOuttaJarhois Před 7 lety +26

      If you already have a klein bottle you don't need another, because the one you have already contains it.

  • @erobed21
    @erobed21 Před 2 lety +1

    I built a macro in a spreadsheet that essentially did the second option - randomises the assignments, if nobody has themselves then call it complete, if someone does have themselves, re-randomise until you have a working random selection.
    To beef it up even more, the spreadsheet works then on using the person's logon ID to tell them who they are assigned to - so you can only see who your assignment is and not "pretend" to be other people to find out everyone else's assignment (and therefore find out who got you).

  • @MegaTinni
    @MegaTinni Před 4 lety +18

    Or just arrange it through a website that does it flawlessy. You can even put in extra considerations like people of the same household cannot get eachother's names.

  • @petersmythe6462
    @petersmythe6462 Před 7 lety +72

    One issue:
    You can only get mono-cyclic derangements.
    So for example:
    123456789
    Shuffle.
    318742965
    Cut and step.
    531874296
    So the graph is circular. This means several things. One of which is that there is an anonymity violation.
    If I'm number 1, I know that I am giving to number 3.
    Consequently, I know that number 3 is NOT giving to me!
    This is particularly noticeable for groups of 4:
    1234
    3241
    1324
    So again, I draw number 1. I know that I am giving to number 4. I also know that either 2 or 3 is giving to me. Further still, If I ask number 4 who they're giving to, it doesn't JUST give me the seemingly-irrelevant information of who they're giving to (number 2), but also the entire cycle.
    Because if 4 said they were giving to 2, then I'd know that 2 was giving to 3, not me, and therefore that 3 was giving to me, not themselves. Further still, if 4 doesn't know I'm giving to them, then I'm the sole proprietor of the information. 4 just gave me data they didn't have themselves.
    And of course, it isn't just 4 who can give me info they don't have.
    If 2 tells me they're giving to 3, then I know 3 is giving to me and 4 is giving to 2.
    If 3 tells me they're giving to me, then I know that 4 is giving to 2 and 2 is giving to 3.
    That means:
    In a cyclic group of 4, any two people sharing information is enough for the most well-informed person to know EVERYTHING, even about people not being discussed.

    • @MackJCM
      @MackJCM Před 7 lety

      Equal probability of derangements was not one of the assumptions. This meets all of the assumptions, and is therefore perfect.

    • @kynigosthewolf4573
      @kynigosthewolf4573 Před 7 lety +26

      Yeah but the idea is not to share any information.

    • @samuelsilman6522
      @samuelsilman6522 Před 7 lety +6

      Peter Smythe I loved your comment!!! It blew my mind when you said that a person could give you data that he himself doesn't know.

    • @user-go5yw3gf6o
      @user-go5yw3gf6o Před 7 lety +14

      You are only getting mono-cyclic derangements because you are placing all the tiles in a single line. Take a 12 card system for example. You could line them in 3 rows of 4. This will allow either horizontal derangement, vertical derangement or both. For added complexity you could also flip a coin. Heads steps once while tails steps twice. An appropriately sided dice could be used for larger groups.
      Anonymity violation only occurs if people are talking to other's about who is buying for who. In your 4 person example yes 1 piece of information from someone else can unravel the whole thing. However the more people that are added the more pieces of information you actually need. This in turn diminishes the issue.
      The issue is irrelevant as long as everyone plays by the rules and doesn't discuss with anyone who they are buying for which I understand can be somewhat unrealistic to expect.

    • @Supermario0727
      @Supermario0727 Před 7 lety

      Peter Smythe "If".

  • @Nikolaj11
    @Nikolaj11 Před 7 lety +388

    Half the office fills one hat. The other half fill another. The two groups swap hats to pull from.

    • @Nikolaj11
      @Nikolaj11 Před 7 lety +15

      Green Vein "Half the office" meaning all the people in one office split in two at random, obiously, why would they be two distinct groups based on this one-time split?

    • @Nikolaj11
      @Nikolaj11 Před 7 lety +1

      ***** What are you talking about?

    • @Nikolaj11
      @Nikolaj11 Před 7 lety +1

      ***** No it isn't, what in my reply specifically is problematic.

    • @Nikolaj11
      @Nikolaj11 Před 7 lety +2

      ***** What does that matter if they are thought up randomly?

    • @Lego6979
      @Lego6979 Před 7 lety +61

      Because one of the rules laid out in the beginning is that "everybody has an equal chance of being picked up by anybody else". You have no chance to be picked by half of the office.

  • @ceruchi2084
    @ceruchi2084 Před 5 lety +1

    I LOVED the solution here. Brilliant job, Dr. Fry. This is just the kind of twist that made me subscribe to Numberphile in the first place.

  • @G2097
    @G2097 Před 7 lety +95

    9:59 I want to know who works in an office with a colleague named 'Klapaucius', because sadly I do not.

    • @TheLuizSouza
      @TheLuizSouza Před 6 lety +6

      That's a Sims 1 reference (I think you got that, but just in case...)

    • @donaldmcgillavry
      @donaldmcgillavry Před 6 lety +5

      It's from Stanisłav Lem, both Klapaucius and Trurl )
      en.wikipedia.org/wiki/The_Cyberiad

    • @rolandeauten8798
      @rolandeauten8798 Před 6 lety

      I want to work (somewhere, anywhere) with Hannah Fry 😍

    • @sharpfang
      @sharpfang Před 4 lety

      Trurl, obviously!

  • @toushei
    @toushei Před 7 lety +131

    This is just like a solution to James Grimes's assassin problem!

    • @bengski68
      @bengski68 Před 7 lety +3

      Right, and this is precisely the solution that he presented

    • @chinareds54
      @chinareds54 Před 7 lety +53

      The thing that Hannah didn't cover (which I guess isn't relevant) is that this solution also prevents there from being multiple separate loops (which is the main thing James was going for in the assassins game). This is actually a weakness for a Secret Santa solution, because it weakens the anonymity by 1. The one person you know for SURE cannot be buying your present is the person you are buying the present for. For complete anonymity, that should also be a possibility.

    • @bengski68
      @bengski68 Před 7 lety +1

      chinareds54 Right. It turns out that for largeish n (n≥5 is enough for this to be a decent approximation), the one-loop-derrangements (n-1)! out of the possible approximately (n!/e) derrangements, which is to say e/n out of the total possibilities.
      Interestingly, the fact that big-loop arrangements account for the plurality of all arrangements is exploited in the solution to the 100 prisoners problem: en.wikipedia.org/wiki/100_prisoners_problem

    • @DHREAVER
      @DHREAVER Před 7 lety +1

      +chinareds54 which means this doesn't work at all for groups of 3 and is pretty sketchy for 4.

  • @HunterBelkiran
    @HunterBelkiran Před 7 lety +1

    I could happily listen to Hanna explain just about anything, I think.

  • @boingooingo3317
    @boingooingo3317 Před 2 lety +2

    I've been in 3 secret santas, one was over in Brazil with extended family. It was quite complicated, I think there was a pile of gifts on a table and people would take turns. You had two options: to either take a mystery gift from the table or 'steal' a gift that someone already had. In the case that someone had their gift taken, I think they'd either take from someone else or take a mystery gift.
    I know that a certain relative was allergic to chocolate but kept getting the chocolate-based gifta from the mystery presents, I forgot whether they had to keep it or choose a different present instead. But it was pretty fun!

  • @kaizoebara
    @kaizoebara Před 7 lety +342

    Worst secret santa present I ever saw was a raw (!) pork chop wrapped in a pro-wrestling magazine.
    P.S. It was an anonymous secret santa where people bought presents for a set amount of money and left them at a big table.

    • @Quicksilver_Cookie
      @Quicksilver_Cookie Před 5 lety +39

      I'd argue it was one of the best presents. Usually you get something drab and useless. At least it was a funny one :D

    • @meloniejen8400
      @meloniejen8400 Před 4 lety

      Rip

    • @oskarwinters1873
      @oskarwinters1873 Před 4 lety +22

      hopefully wasn't for a vegan/vegetarian, otherwise that's so seriously cold office bullying.

    • @ClownOwO
      @ClownOwO Před 4 lety +19

      MrCorvusC one time i saw someone receive a framed image of the gift giver, holding the frame

    • @caracaes
      @caracaes Před 4 lety +4

      Apart from it being wrapped in a freaking magazine, that's a great present...

  • @non-inertialobserver946
    @non-inertialobserver946 Před 7 lety +69

    Did Numberphile just call the klein bottle crappy?! >:(

    • @CommonChicken
      @CommonChicken Před 7 lety +1

      Pisoi Gaming I just left a very similar comment. I'd be happy if someone got me a Klein Bottle

    • @entropyzero5588
      @entropyzero5588 Před 7 lety +10

      The emphasis was probably on the _another_ part - I'd be happy about _a_ Klein Bottle, sure - four? Not so much ;)

  • @TomDufall
    @TomDufall Před 6 lety +88

    Mathematician: Let's come up with a complex arrangement such that we get an ideal derangement with minimal risk of conflicts.
    Me as computer scientist: while(not valid): createNewDraw() - unless you're doing insanely large draws it's only taking a fraction of a second each time.

    • @ziad-explains
      @ziad-explains Před 4 lety +4

      I do that for literally any mathematical application.

    • @rigille
      @rigille Před 4 lety

      If createNewDraw is a random permutation the expected number of iterations is ≈ e² - e ≈ 4.7 for large numbers of people. It's not that bad even for large draws :)

    • @tom4794
      @tom4794 Před 4 lety

      @therainman777 He said "for large numbers of people" and "approximately", so while n is in the exact formula, the function converges (becomes closer to the approximation) as n increases, and it does so quickly enough that the exact value of n is irrelevant (it only matters that it's "large").

    • @tom4794
      @tom4794 Před 4 lety +2

      @TomDufall The flaw of this algorithm, repeating the draw on failure, is described at 6:23: it doesn't result in a uniform distribution; some outcomes are much more likely than others.

    • @dananskidolf
      @dananskidolf Před 4 lety

      I wrote something like that for picking coordinates that obey a set of constraints. It ended up taking longer on average to create each coordinate than to run the main code on that coordinate. Don't optimise prematurely, but don't design code to be slow in the first place - make algorithms that give the correct answer rather than ones that guess, check and retry.

  • @asuperfrog
    @asuperfrog Před 4 lety +2

    This proposed system falls apart if you can see people as they draw, because the person who picks the one on either side of you will be either the one you buy for or the one buying for you.

    • @JaydenNavarro
      @JaydenNavarro Před 4 lety

      Isn't it worse than that? Even if you don't see them as they draw, as soon as they reveal their number on the whiteboard you'll know what "their number" is and can use the shift amount to easily determine who they're buying a gift for.

  • @rusinsr
    @rusinsr Před 7 lety +36

    But if you shift all tops 1 unit to the left, then you know you'll be buying a gift to the person on your left / next person to pick up a card!

    • @Ketchupplant
      @Ketchupplant Před 7 lety +4

      Yea and you know that the person who picked the card that was right of yours will be buying you something.

    • @kujmous
      @kujmous Před 7 lety +12

      rusins I think the idea is that the cards are reattached after the derangement and once again randomized. However there is a need to to have a derangement more complex than a shift/offset, because such a derangement would guarantee that no two participants could get each other.

    • @Ketchupplant
      @Ketchupplant Před 7 lety +1

      I see. App it is.

    • @TeamRomeroJacobs
      @TeamRomeroJacobs Před 7 lety +3

      thought the same. remember the cards have been shuffled

    • @Lattamonsteri
      @Lattamonsteri Před 7 lety +10

      rusins the order was also shuffled in the beginning so the one card to the left isn't necessarily one integer bigger :)

  • @Dixavd
    @Dixavd Před 7 lety +41

    Wow at 9:54 ! Does Brady force Animator Pete to always make Brady number 1 haha

    • @pmcpartlan
      @pmcpartlan Před 7 lety +179

      Yes, it's in my contract

    • @zh84
      @zh84 Před 7 lety +5

      Pete McPartlan I also spotted the Cyberiad reference in the list of names...

  • @MGJerry69
    @MGJerry69 Před 2 lety +1

    Hannah's answer to the last question is literally an example of "Do as I say, not as I do" moment XD

  • @elfstarlight
    @elfstarlight Před 4 lety +3

    pirate secret santa is clearly the best choice. my last workplace did it and it was actually a riot. (and is a great way to create natural team bonding)

  • @alexmcgaw
    @alexmcgaw Před 7 lety +24

    Great video -- this was also covered by James Grime with Matt Parker on his channel singingbanana, except it was to organise a game of Assassin (which is much more fun than secret santa) :P

    • @DanDart
      @DanDart Před 7 lety +17

      Didn't understand instructions: assassinated my colleagues

    • @SenorTallon
      @SenorTallon Před 7 lety +1

      Ah, I was about to say that! Gather the "real fans"! :p

    • @kantodream9714
      @kantodream9714 Před 7 lety

      So I'm not the first one to have noticed that :(

    • @cloudycloudi631
      @cloudycloudi631 Před 7 lety

      Alex McGaw I knew I had heard the same solution to a problem earlier. Couldn't quite remember where

    • @Guglhupfscout24
      @Guglhupfscout24 Před 7 lety +1

      Guess who is not getting invited to Hannah's christmas party ;)

  • @CookieDotJar
    @CookieDotJar Před 7 lety +35

    This solution has a minor issue in that you know that whoever you are buying for is definitely not buying for you.

    • @CookieDotJar
      @CookieDotJar Před 7 lety +4

      That would solve the issue if there's an even number of participants, but with an odd number the problem still occurs.

    • @hindigente
      @hindigente Před 7 lety

      You're absolutely right, although in some cases one single cycle is desirable.

    • @DavidVaughan00
      @DavidVaughan00 Před 7 lety +2

      Same problem as Enigma?

    • @youtubeforme7735
      @youtubeforme7735 Před 7 lety +3

      And hte bigger issue that you know who is buying for you. It's the person to your left.

    • @CookieDotJar
      @CookieDotJar Před 7 lety +4

      It's not, the card shuffling sorts that issue.

  • @SheWolfiie
    @SheWolfiie Před 7 lety +1

    for some reason I always love how ordered probability trees are they're great 👌❤️

  • @NeoAnthony
    @NeoAnthony Před 5 lety +1

    That is why my group of friends and I do Secret Santa with an app I made. It is impossible to get your own name, and you can add a wishlist of what you would like. We also suggest a budget and an average is drawn from the options. But part of the fun of our Secret Santa is the surprise during the gift exchange of who is your secret Santa.

  • @francescodantonio7312
    @francescodantonio7312 Před 7 lety +49

    If I'm A and I pick C from the hat I know that person B must have A, otherwise C would have himself (which he would point out), not making it anonymous.

    • @anonnymous6677
      @anonnymous6677 Před 7 lety +1

      also, if a picks c, and b picks himself, he has to put it back and take a, so he also knows who has who

    • @brianmoehring2834
      @brianmoehring2834 Před 7 lety

      Mc Karl: To some extent, it works in every scenario in which you know who you're giving the gift (though you just have partial information instead of complete information). You would need to use something like the card scheme to solve this.

    • @Snakke40
      @Snakke40 Před 7 lety +1

      Yeah you always have that problem with three persons that everyone knows who buys for who. Because if we assume there are no cheaters who stay with their own name, the one who buys you presents is the one you didn't draw!

    • @Shadowmere29
      @Shadowmere29 Před 7 lety

      You could just make a random derangement. Then for each person, use a random number generator to assign them to each position. Then, assuming that the random number generator has a perfectly uniform distribution, everyone would have exactly the same chance for any possibility.

    • @culwin
      @culwin Před 7 lety

      No matter how many total people, the 2nd to last person can never pick themselves because everyone will know who the last person has (even if nobody is looking the 2nd to last person will know).

  • @Porglit
    @Porglit Před 7 lety +179

    0:45 Hey now, Hello Internet Vinyl is NOT junk...

    • @PixelBytesPixelArtist
      @PixelBytesPixelArtist Před 7 lety +4

      project rèvolution!

    • @Porglit
      @Porglit Před 7 lety +3

      Riley Russell It was included in the examples of "junk" gifts

    • @rileyrussell2366
      @rileyrussell2366 Před 7 lety +1

      Porglit I know, I don't know why I pinged you lol

    • @user-ph2nu9ky4e
      @user-ph2nu9ky4e Před 7 lety +2

      Porglit I was about to say the same thing, untill I realised I have nothing to play it on...

    • @Porglit
      @Porglit Před 7 lety

      Асен Доцински I don't either, but if it's HI then it can't be junk

  • @grayaj23
    @grayaj23 Před 2 lety +1

    Seeing the A is twice is likely to pic one vs the other makes me wonder if/how this is related to the Monty Hall problem.
    Oh! And a bonus, seeing Trurl and Klapaucius on your list of sample names makes me all kinds of happy.

  • @habus_
    @habus_ Před 6 lety +27

    9:33
    5 have to buy a present for 9, he knows that the last number on the table, have to buy a present for him, and the second one for 4

    • @evantyler8647
      @evantyler8647 Před 4 lety +3

      Have everyone choose their sets in secret, and move the cards together after

    • @rkah6187
      @rkah6187 Před 4 lety +3

      Then don't tell them how you arranged the cards. They don't need to hear the method behind it, just pick one

    • @evantyler8647
      @evantyler8647 Před 4 lety +1

      @@rkah6187 that works to

    • @majorjohnson8001
      @majorjohnson8001 Před 4 lety +10

      I think what was not presented well was that after shifting the top halves over, people are picking the new pairs at random. Its not "everyone picks a card, cuts it in half, and passes the top to the right." Its "shuffle, cut, shift, tape back together, pick at random." Or if you want to make it obvious, after shifting the top half to the right (or left) some amount, everyone tapes the card in front of them together and tosses it into the hat. *Then* everyone draws a card out of the hat.

  • @SmileyMPV
    @SmileyMPV Před 7 lety +29

    You still have the problem that everyone knows that the one they got, didnt get them.
    For example, if I get to buy a present for Alice, I already know Alice must be buying a present for someone else.

    • @andrewphilos
      @andrewphilos Před 7 lety

      SmileyMPV I bet you could create a variant that had that system. For example, if there are an even number of people, just split the set into two and flip the cards between them.

    • @SmileyMPV
      @SmileyMPV Před 7 lety

      Andrew Weber
      That's even worse, now you actually know that the person you got must have you.
      Or in the case that you meant making two big cycles instead of one instead of making pairs, that wouldn't solve the problem.
      Really, the only 100% fair methods I have ever seen are either to use an online website, or to keep trying and every time anyone gets themself, redo everything.

    • @andrewphilos
      @andrewphilos Před 7 lety +1

      SmileyMPV I think part of it is that we're actually trying to avoid small loops like that. If you have four people and A gets B, B gets C, and C gets A, then D is out in the cold. If you don't guarantee one loop like in the video, the possibility of someone getting left out is always there. Preventing the possibility of getting the same person who got you (a 2-person loop) I feel is a small price to pay. The only other option is what I offered: intentionally making smaller loops.

    • @markkeilys
      @markkeilys Před 7 lety

      Then you know who is buying for who by looking at the list..
      Unless you have a third party doing things which ruins the point of having a go to system for this.

    • @dliciouscrabmeat6355
      @dliciouscrabmeat6355 Před 7 lety

      SmileyMPV this is true, but if enough people are playing, this is not a problem at all assuming everyone keeps their mouths shut about who they are buying for.

  • @ald5267
    @ald5267 Před 7 lety +41

    I would be very suspicious if someone in my office bought me a "Hello Internet vinyl edition" for the Secret Santa... Very. Ha!

  • @sarsoar
    @sarsoar Před 5 lety +1

    So a similar idea, just using a computer for the randomization, is to create that random requence and then print them out, you are 1 buying for 6, you are 2 buying for 4, you are 3 buying for 7, and so on. You can guarantee a derangement, and still put these cards in a hat to get the traditional "feel" of secret santa, but still guarantee the derangement. You still have to do the posted list that everyone writes their name in though.

  • @SoloLegends
    @SoloLegends Před 3 lety +2

    I was the setup guy for my family secret Santa this yeah, this is more or less what I came up with, though I did it in python. Worked SUPER well!

  • @rickseiden1
    @rickseiden1 Před 7 lety +13

    The CAB arrangement doesn't preserve anonymity. If B puts back their name, then pick again, they know who will be buying for them, and who they are buying for, and therefore who is buying for everyone. If A picks C, and B picks B, it must be treated as a fail.

    • @YasirTufekci
      @YasirTufekci Před 7 lety +2

      Exactly the same as I thought! :)

    • @AnthonyCurley
      @AnthonyCurley Před 7 lety

      Why is preserving anonymity important? It allows people to give crappy gifts and get away with it.
      I've always done secret santa where you actually give the gift in person, not anonymously, and it's always worked out with decent gifts.

    • @RockGodFuck
      @RockGodFuck Před 7 lety +5

      +Anthony Curley because the video is literally about that?

    • @rmsgrey
      @rmsgrey Před 7 lety +5

      If you only have 3 people, you can't have anonymity anyway - if I'm A and buying for C, I immediately know that B is buying for me (and vice versa) because the other possibility involved B buying for himself.
      You are correct that the penultimate person picking their own name out is a problem for larger groups, assuming they know who the last person to pick is.

    • @KarstenOkk
      @KarstenOkk Před 7 lety

      +Anthony Curley Right, it's generally more about sharing the gifts equally and not getting tons of gifts for loads of people than it is about anonymity. I believe Hannah even said it somewhere like that.

  • @vitaplex1
    @vitaplex1 Před 7 lety +73

    finally a new video :D

  • @yingo4098
    @yingo4098 Před 3 lety +6

    Hannah: and puts it in a bowl
    _shows hat_
    you've lost me

  • @labangrankvist2993
    @labangrankvist2993 Před 2 lety +2

    The funniest problem to me about the ABC example is there are also outcomes where it's simple to figure out who's buying what regardless of probability. If you're just three people playing and you're player C and end up with B's name you know for a fact that player A must be buying your gift since they can't have ended up with their own name.

  • @ect4093
    @ect4093 Před 7 lety +12

    One problem with the optimal solution: It is impossible for the person you picked to pick you, which makes it a bit less secret :D (if i understand your explanation properly).

    • @Aexerus
      @Aexerus Před 7 lety +2

      Erik Takke not if there are only 2 people doing it

    • @ect4093
      @ect4093 Před 7 lety +3

      But playing with 2 people defeats the purpose, you know anyway who picked you :D. You are right though!

    • @reasonnottheneed
      @reasonnottheneed Před 7 lety

      Erik Takke you could roll some dice to decide how many cards to shift by. The only problem, though, is that if one person finds out that they are buying for the same person who's buying for them, then everyone knows that they are buying for the same person who's buying for them. it's still anonymous conditioned on everyone following the rules, though.

    • @Leonardo6298
      @Leonardo6298 Před 7 lety

      For even numbers, if the shift is half the number of people, then you instantly know that you picked the person buying for you. Instead of shifting the cards, you could come up with a derangement of them and then shifting the top halves to match it. This way, you can pick the person who picked you without that being true of everyone. Although you would have to have a third party do the derangement or else you could easily see the number of buying pairs.

  • @patrickwienhoft7987
    @patrickwienhoft7987 Před 7 lety +17

    6:30 that's wrong
    If B recycles, everyone knows C picked B as it is the only name left. That makes the right branch fail 50% of the time, too. So everyone is equally likely to pick each name at the end.

    • @KarstenOkk
      @KarstenOkk Před 7 lety +1

      Not everyone. In this case, A and B would know. In fact, I believe that with only three people, A will always know the exact arrangement. The point is not to do Secret Santa with three people. You probably know each other well enough to get two presents for everyone.

    • @patrickwienhoft7987
      @patrickwienhoft7987 Před 7 lety +2

      KarstenOkk No, everyone will. C drew B himself. B recycled his own card, so he knows C drew it and A knows B put back card B too, because that's the only one he would've put back.
      But actually you're right. There are only two ways of permuting 3 elements without fixpoint - shifting everything to the left and shifting everything to the right. So from your own card you could always tell...
      So you should always play with at least 4 persons.

    • @KarstenOkk
      @KarstenOkk Před 7 lety

      Patrick Wienhöft Ah, you're suggesting people know if someone recycled. In that case, yes. But without that knowledge, A still knows everything.

    • @erinpac
      @erinpac Před 7 lety +2

      No; you always know. The options are A=B, B=C, C=A and A=C, B=A, C=B. So, you know one of those 3 regardless of whether you are A, B or C, even if nobody recycles. You know who you are buying for. Therefore, you know which of those two sets it is, and you know all the assignments.

  • @chedddargoblin
    @chedddargoblin Před 2 lety +1

    I do Secret Santa with my 3 friends and we have to keep it a secret because even if you tell someone who isn’t your recipient they can most likely deduct who’s giving them a gift.
    PS we use elfster that handles it pretty well

  • @yitzhakkornbluth2554
    @yitzhakkornbluth2554 Před 7 lety +1

    The method described at the end of the video will not give anonymity: While the resulting permutation is guaranteed to be a derangement, it is also guaranteed to consist of a single cycle. So, for example, you can be sure that whoever you're giving to is not giving to you (since your card was to their right, so theirs cannot have been to your right), violating anonymity (though it doesn't violate randomness in the same way as the classic method).

    • @howard5992
      @howard5992 Před rokem +1

      sounds like a feature and not a bug

  • @Bandit-23th
    @Bandit-23th Před 7 lety +9

    less the 5 mins. Perfect seeing how long I last. in math class

  • @alfredshitcock260
    @alfredshitcock260 Před 7 lety +28

    The way Hannah talks makes me tingle

  • @manafro2714
    @manafro2714 Před 2 lety

    Very clever solution! Thanks!

  • @barodrinksbeer7484
    @barodrinksbeer7484 Před 2 lety +1

    I started playing with 2 hats a year ago, so you switch between the groups, so its impossible to pick your name. The ref also mixes up the hats so no one can place their names in a specific order, the ref gets the last secret Santa left, from the opposite hat they placed in.

  • @1jaloty
    @1jaloty Před 7 lety +23

    doesnt this system as presented have an issue? if you shuffle the cards before the slicing and then move the "you are number" cards over by one you know whoever picks the card pair before yours on the table is your secret santa. (assuming you are all standing around the table selecting). You wont know what number they are but that information is not relevant. To fix you should retape the half cards back together and the shuffle again. That way you maintain the derangement while hiding the extra information gained by knowing relative locations of cards.

    • @threesixtydegreeorbits2047
      @threesixtydegreeorbits2047 Před 7 lety +1

      Tyler Jackson my thoughts.🐳

    • @minecraftninja1622
      @minecraftninja1622 Před 7 lety +1

      Random deal them.

    • @k-leb4671
      @k-leb4671 Před 7 lety +2

      Well, wouldn't it be fine if people wen to grab a card in isolation, with no one being able to see what card they grabbed (or even whether they went to grab anything in the first place).

    • @freddiesimmons1394
      @freddiesimmons1394 Před 7 lety +1

      A random deal ends with the same problem as the original problem

    • @entropyzero5588
      @entropyzero5588 Před 7 lety +2

      +Freddie Simmons No, it doesn't - the original problem is eliminated by the fact that you can't pick yourself.

  • @Pumbear
    @Pumbear Před 7 lety +3

    I remember this system from "the assassin problem"-video from singingbanana

  • @Raven_Black_252
    @Raven_Black_252 Před 2 lety +1

    The problem with it is that it doesn't remain anonymous all the time. No one knows who is buying for who, yes, but when it is time to give the presents we go to the person and give it ourselves so they know who actually bought them and I hate this.

  • @clarahowson2911
    @clarahowson2911 Před 5 lety

    Hi, I didn’t realise but my godmother got a signed version of your book for my birthday, and I had no idea that you were here on CZcams (by the way it is really cool and I absolutely love it)!

  • @hugoiwata
    @hugoiwata Před 7 lety +23

    You are number six.
    I'M NOT A NUMBER I'M A FREE MAN!