The Problems with Secret Santa - Numberphile

  Рет қаралды 1,892,255

Numberphile

Numberphile

Күн бұрын

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.co...
Graham's Number T-Shirt: store.dftba.co...
Other Numberphile T-Shirts: teespring.com/...
Hannah on Objectivity: • Blackballed (feat. Han...
Support us on Patreon: / numberphile
NUMBERPHILE
Website: www.numberphile...
Numberphile on Facebook: / numberphile
Numberphile tweets: / numberphile
Subscribe: bit.ly/Numberph...
Numberphile is supported by the Mathematical Sciences Research Institute (MSRI): bit.ly/MSRINumb...
Videos by Brady Haran
Brady's videos subreddit: / bradyharan
Brady's latest videos across all channels: www.bradyharanb...
Sign up for (occasional) emails: eepurl.com/YdjL9
Numberphile T-Shirts: teespring.com/...
Other merchandise: store.dftba.co...

Пікірлер: 2 900
@vapurrreon
@vapurrreon 4 жыл бұрын
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 4 жыл бұрын
We actually did a very similar thing to this, and it also turned out very well!
@k0pstl939
@k0pstl939 3 жыл бұрын
That's what I started thinking is have an impartial person
@bizziegrace
@bizziegrace 2 жыл бұрын
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 Жыл бұрын
??.
@065Tim
@065Tim Ай бұрын
We did this is elementary school.
@shantanukulkarni007
@shantanukulkarni007 8 жыл бұрын
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 8 жыл бұрын
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 8 жыл бұрын
Damn I am turning into Sheldon :(
@RalphDratman
@RalphDratman 8 жыл бұрын
No, you are not. I think your idea is exactly right! Why, anyway, would that person be unhappy?
@onam3000
@onam3000 8 жыл бұрын
that would defeat the purpose
@MegaKaitouKID1412
@MegaKaitouKID1412 8 жыл бұрын
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.
@mep5500
@mep5500 6 жыл бұрын
The real problem with secret santa is that nobody actually keeps it a secret
@KucheKlizma
@KucheKlizma 5 жыл бұрын
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 5 жыл бұрын
I always keep it secret, until we all get our gifts bc we all do a group giving
@skyjoe55
@skyjoe55 5 жыл бұрын
I lie about who i have
@rkah6187
@rkah6187 5 жыл бұрын
@@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 4 жыл бұрын
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
@skyjoe55
@skyjoe55 5 жыл бұрын
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 5 жыл бұрын
Can you you put it on the App Store?
@skyjoe55
@skyjoe55 5 жыл бұрын
@@marykint7022 its only very rough unfriendly processing code
@marykint7022
@marykint7022 5 жыл бұрын
Oh ok never mind :)
@Jacqueline-rl8pu
@Jacqueline-rl8pu 5 жыл бұрын
Sue Sylvester is that you?
@Melanie-yep
@Melanie-yep 5 жыл бұрын
There’s a website for this my friend group has used for a couple years: Sneaky Santa
@CrystalClearMaths
@CrystalClearMaths 3 жыл бұрын
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.
@v0id_d3m0n
@v0id_d3m0n 2 ай бұрын
haha that's fun
@Mobin92
@Mobin92 8 жыл бұрын
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 8 жыл бұрын
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 8 жыл бұрын
+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 7 жыл бұрын
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 6 жыл бұрын
But the other person who picked their own name will speak up
@stewartbugler
@stewartbugler 5 жыл бұрын
Ted Jones exactly why i looked at the replies
@ZenoDovahkiin
@ZenoDovahkiin 4 жыл бұрын
I love how on this channel, they had to specify *substandard* calculator to make the gift unappealing.
@joycelinlgbtq
@joycelinlgbtq 4 жыл бұрын
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 3 жыл бұрын
A superstandard calculator would be very appealing
@him050
@him050 2 ай бұрын
Certainly not an FX99!
@Xeverous
@Xeverous 8 жыл бұрын
Unpacks present... *another klein bottle*
@polixstar8249
@polixstar8249 8 жыл бұрын
just like i wanted
@ConfuzzledTomato
@ConfuzzledTomato 7 жыл бұрын
May be ppl think u stink
@1224chrisng
@1224chrisng 6 жыл бұрын
*thanks Cliff*
@1TW1-m5i
@1TW1-m5i 6 жыл бұрын
Klien bottle guy has an easy job of picking
@tamarpeer261
@tamarpeer261 6 жыл бұрын
I really wanna like your comment. But I can't.
@noahdoss1967
@noahdoss1967 2 жыл бұрын
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 2 жыл бұрын
You and I must live in a different US
@stellasdoesstuff
@stellasdoesstuff 2 жыл бұрын
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 2 жыл бұрын
I did that and I'm in the uk
@toffinabof1353
@toffinabof1353 2 жыл бұрын
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 2 жыл бұрын
That is white elephant
@JohnChencoughcough
@JohnChencoughcough 7 жыл бұрын
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 Жыл бұрын
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.
@Sharkon36
@Sharkon36 8 жыл бұрын
Let's be honest, a Hannah Fry video is the best Christmas present
@lucasbernard5304
@lucasbernard5304 8 жыл бұрын
exactly what I was thinking
@FireAngelOfLondon
@FireAngelOfLondon 7 жыл бұрын
Sharkon36+ UnM, no. A video? A date would be a lot better...
@hitlife29
@hitlife29 7 жыл бұрын
definitely
@kidkecleon
@kidkecleon 6 жыл бұрын
3 people never works, if A picks B, then obviously A is getting a gift from c.
@Unc3
@Unc3 6 жыл бұрын
unless someone picks himself
@morganbegg3535
@morganbegg3535 5 жыл бұрын
But what if B picks A?
@9nikola
@9nikola 5 жыл бұрын
@@morganbegg3535 Then C picks themselves and they start over again.
@EclipsedLuna-cx3ff
@EclipsedLuna-cx3ff 5 жыл бұрын
@@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 5 жыл бұрын
Why didn’t I think of this
@trolleymouse
@trolleymouse 8 жыл бұрын
> another klein bottle GEE I WONDER WHO BOUGHT THAT
@eddotron1224
@eddotron1224 8 жыл бұрын
TrolleyMouse oh thanks Cliff, again....
@blanchild
@blanchild 8 жыл бұрын
ahahahah
@gmandurj40
@gmandurj40 8 жыл бұрын
I hope to one day be as passionate about anything as Cliff is about Klein Bottles.
@BlobVanDam
@BlobVanDam 8 жыл бұрын
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 7 жыл бұрын
TrolleyMouse xDDD
@Dezey.a
@Dezey.a 5 жыл бұрын
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 5 жыл бұрын
Dezeya what app?
@aki-lucky8345
@aki-lucky8345 4 жыл бұрын
Wow
@yodasoja2011
@yodasoja2011 4 жыл бұрын
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 4 жыл бұрын
Michael Arnold if the app was smart it wouldn’t need redraws because it wouldn’t let you pick yourself.
@yodasoja2011
@yodasoja2011 4 жыл бұрын
@@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 4 жыл бұрын
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?
@i.cantdrinkmilk
@i.cantdrinkmilk 4 жыл бұрын
Mucus this sounds similar to a white elephant gift exchange
@GenericSupervillain3
@GenericSupervillain3 4 жыл бұрын
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 2 жыл бұрын
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 2 жыл бұрын
I read this as each person got the present that they gave out, wouldn't that be a funny coincidence?
@otakuribo
@otakuribo 8 жыл бұрын
"Derangement" has got to be my favorite mathematical term ever ever.
@KirbyTheKirb
@KirbyTheKirb 8 жыл бұрын
Elliot Grey I agree. It is a great term.
@Mic_Glow
@Mic_Glow 5 жыл бұрын
Sounds like a parody animated series title.
@deadmeat1471
@deadmeat1471 4 жыл бұрын
Theres lots of degeneracy in physics too
@Platina_
@Platina_ 4 жыл бұрын
Not to burst your bubble, but it's actually 'de-arrangement' XD
@macronencer
@macronencer 8 жыл бұрын
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 8 жыл бұрын
+macronencer that's cool
@macronencer
@macronencer 8 жыл бұрын
Thanks! I like Hannah's solution though: it's certainly simpler than mine :)
@bengski68
@bengski68 8 жыл бұрын
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 8 жыл бұрын
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 8 жыл бұрын
+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.
@Donteatacowman
@Donteatacowman 4 жыл бұрын
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 2 жыл бұрын
That's not really a Secret Santa then, is it? More of a Surprise Santa.
@mcd08
@mcd08 2 жыл бұрын
@@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 2 жыл бұрын
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 2 жыл бұрын
Ive done that before!
@Leto_0
@Leto_0 2 жыл бұрын
Why would you not want to know who got you the gift? The only reason for that would be prank gifts
@qed456
@qed456 3 жыл бұрын
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 !
@Paris-gy5eg
@Paris-gy5eg 8 жыл бұрын
Did you just call a Klein Bottle as a trashy present?!
@MrRishik123
@MrRishik123 8 жыл бұрын
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 8 жыл бұрын
Its not a true klein bottle
@jacksainthill8974
@jacksainthill8974 8 жыл бұрын
It's only trashy on the _inside_.
@Paris-gy5eg
@Paris-gy5eg 8 жыл бұрын
Jack Sainthill what inside?
@jacksainthill8974
@jacksainthill8974 8 жыл бұрын
Peravit Raviruchiphun Tell you later. Don't go away.
@ieyke
@ieyke 8 жыл бұрын
This is exactly the type of mostly pointless math that I'd sit around pondering.
@ЛйлиТеоьДворянство
@ЛйлиТеоьДворянство 6 жыл бұрын
I got this as an exam question
@JonathanSharman
@JonathanSharman 5 жыл бұрын
@Ben Chermside Are you forgetting the shuffle?
@jubileeYAVEL
@jubileeYAVEL 5 жыл бұрын
I know right!
@user-jn4sw3iw4h
@user-jn4sw3iw4h 4 жыл бұрын
​@@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 4 жыл бұрын
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
@emperorpalpatine7454
@emperorpalpatine7454 8 жыл бұрын
Brady, surely a Klein bottle is a great present! A Parker Square would have been a better example ;)
@bentoth9555
@bentoth9555 8 жыл бұрын
A Parker Square would be almost the perfect gift. Almost.
@puffball2059
@puffball2059 5 жыл бұрын
I’m insulted. You said a crappy present but there was a wrapped klein bottle.
@adrigax
@adrigax 5 жыл бұрын
Maybe it's a crappy klein bottle, with only 3 dimensions.
@sohamsengupta6470
@sohamsengupta6470 4 жыл бұрын
Cliff Stoll makes sales ,I get a cool blown glass bottle, we all win!
@charliedobbie8916
@charliedobbie8916 3 жыл бұрын
I reckon it'd be quite fiddly to wrap a Klein bottle...
@RoaldvdM
@RoaldvdM 3 жыл бұрын
@@charliedobbie8916 not with klein paper! just getting that out of the shop may be tricky.
@_No_Time_
@_No_Time_ 3 жыл бұрын
The guy who offered the bottle already drinked it humu humu PS: you drink a Klein bottle by doing triple lutz
@chameleonfoot
@chameleonfoot 2 жыл бұрын
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 2 жыл бұрын
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 2 жыл бұрын
@@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.
8 жыл бұрын
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 8 жыл бұрын
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?
8 жыл бұрын
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).
@TheMarkoSeke
@TheMarkoSeke 8 жыл бұрын
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 8 жыл бұрын
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 6 жыл бұрын
@@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 5 жыл бұрын
What if you don't have an Amazon wish list?
@MsJerrySparkle
@MsJerrySparkle 4 жыл бұрын
@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 4 жыл бұрын
Take all the stress away, everyone just buys themselves something and say it's from Secret Santa. Guaranteed success, everyone gets something they want.
@CrashRaindog
@CrashRaindog 8 жыл бұрын
I really like it when Hannah talks maths to me
@CharliMorganMusic
@CharliMorganMusic 7 жыл бұрын
Crash Raindog me too
@cameronball3998
@cameronball3998 4 жыл бұрын
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 2 жыл бұрын
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 2 жыл бұрын
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 2 жыл бұрын
The third time they refuse the computer is when you withdraw your name from the pool
@strom51
@strom51 2 жыл бұрын
There's a website for secret santa
@BritneyHIAM
@BritneyHIAM 2 жыл бұрын
@@rohar8964 ugh twins are always so annoying
@chiragvyas2763
@chiragvyas2763 7 жыл бұрын
Hannah's laughter is positively infectious!
@Gamesaucer
@Gamesaucer 8 жыл бұрын
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 8 жыл бұрын
People pick the cards randomly, you don't just hand them out in order.
@Gamesaucer
@Gamesaucer 8 жыл бұрын
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 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 8 жыл бұрын
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 8 жыл бұрын
Ola Kaldestad smh, learn to read before you post.
@Sekti42
@Sekti42 8 жыл бұрын
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 8 жыл бұрын
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 7 жыл бұрын
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.
@petersmythe6462
@petersmythe6462 8 жыл бұрын
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 8 жыл бұрын
Equal probability of derangements was not one of the assumptions. This meets all of the assumptions, and is therefore perfect.
@kynigosthewolf4573
@kynigosthewolf4573 8 жыл бұрын
Yeah but the idea is not to share any information.
@samuelsilman6522
@samuelsilman6522 8 жыл бұрын
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 8 жыл бұрын
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 7 жыл бұрын
Peter Smythe "If".
@kymmie4lyfe
@kymmie4lyfe 4 жыл бұрын
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).
@chedddargoblin
@chedddargoblin 2 жыл бұрын
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
@EGarrett01
@EGarrett01 8 жыл бұрын
I just clicked on it because Hannah was in it.
@TriggerMeKaNiK
@TriggerMeKaNiK 8 жыл бұрын
Hannah is love, Hannah is life.
@ChrisBeard
@ChrisBeard 8 жыл бұрын
QR subliminal adverts work well! I've just bought a book and I don't know why!
@numberphile
@numberphile 8 жыл бұрын
+Chris Beard I don't think it's subliminal, just hidden. Unless your brain reads QR codes.
@thatweirdguyoverther
@thatweirdguyoverther 8 жыл бұрын
Numberphile doesn't your brain read QR?
@faokie
@faokie 8 жыл бұрын
Stop trying to snow crash me
@samrichardson630
@samrichardson630 8 жыл бұрын
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.
@erinlisaaulfinger9594
@erinlisaaulfinger9594 5 жыл бұрын
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.
@ImperiousViking
@ImperiousViking 8 жыл бұрын
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 8 жыл бұрын
Indeed, a three-person secret santa wouldn't be too smart in real life. Luckily, it still serves as a lesson in probabilities.
@paytonrichards6450
@paytonrichards6450 8 жыл бұрын
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 8 жыл бұрын
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 8 жыл бұрын
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 8 жыл бұрын
I thought the same but it's kind of pointless, because nobody ever does secret santa with less than 7-10 people.
@nathanl5856
@nathanl5856 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 8 жыл бұрын
+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.
@G2097
@G2097 8 жыл бұрын
9:59 I want to know who works in an office with a colleague named 'Klapaucius', because sadly I do not.
@TheLuizSouza
@TheLuizSouza 7 жыл бұрын
That's a Sims 1 reference (I think you got that, but just in case...)
@donaldmcgillavry
@donaldmcgillavry 7 жыл бұрын
It's from Stanisłav Lem, both Klapaucius and Trurl ) en.wikipedia.org/wiki/The_Cyberiad
@rolandeauten8798
@rolandeauten8798 6 жыл бұрын
I want to work (somewhere, anywhere) with Hannah Fry 😍
@sharpfang
@sharpfang 5 жыл бұрын
Trurl, obviously!
@kylerichardson514
@kylerichardson514 4 жыл бұрын
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 4 жыл бұрын
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 2 жыл бұрын
@@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 2 жыл бұрын
Yep, i noticed the Same flaw in their sistem.
@maximebeauchemin2100
@maximebeauchemin2100 4 жыл бұрын
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
@Lulink013
@Lulink013 8 жыл бұрын
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 8 жыл бұрын
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 8 жыл бұрын
beat me to it :)
@gr1nder07
@gr1nder07 8 жыл бұрын
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 8 жыл бұрын
Thank you sir, came here to say that.
@lyricbot8513
@lyricbot8513 8 жыл бұрын
Lulink ikr
@daddymuggle
@daddymuggle 5 жыл бұрын
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 5 жыл бұрын
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 5 жыл бұрын
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 5 жыл бұрын
@@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 5 жыл бұрын
@@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 4 жыл бұрын
@@Not_an_alligator well DUH
@noredine
@noredine 8 жыл бұрын
Is that a Klein Bottle at 0:26 , the one with the "hole"
@noredine
@noredine 8 жыл бұрын
it was a klein bottle , i guess i should have watched more
@mihard7788
@mihard7788 8 жыл бұрын
delet this
@UMosNyu
@UMosNyu 8 жыл бұрын
That joke flew right over my head...
@noredine
@noredine 8 жыл бұрын
You're not my general , Green
@noredine
@noredine 8 жыл бұрын
UMos just search for "numberphile klein"
@tomo8910vids
@tomo8910vids 8 жыл бұрын
Next on BuzzFeed: £5 Secret Santa Vs. £100 Secret Santa
@madatreatz
@madatreatz 8 жыл бұрын
*$, $$ or $$$
@ionlymadethistoleavecoment1723
@ionlymadethistoleavecoment1723 7 жыл бұрын
Tom Lambert I just had the thought: $5 secret Santa vs 10,000 degree knife.
@gritz1701
@gritz1701 4 жыл бұрын
I pulled my own name about 3 years ago, That year i got a present that i really wanted.
@klicerfn248
@klicerfn248 4 жыл бұрын
That means someone else got their own name too unless there was a odd number of people
@ПавлоСурженко
@ПавлоСурженко 4 жыл бұрын
@@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 4 жыл бұрын
@@ПавлоСурженко even number of people then?
@ПавлоСурженко
@ПавлоСурженко 4 жыл бұрын
@@klicerfn248 with three people it's possible that you give a present to yourself, and the other two people give presents to each other.
@joshualao
@joshualao 7 жыл бұрын
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. ☺️
@tiberiu_nicolae
@tiberiu_nicolae 8 жыл бұрын
I was looking away and that 2:46 siren set me in apocalypse mode.
@extropian314
@extropian314 8 жыл бұрын
And it's just like the HG Wells _Time Machine_ sirne when the Morlocks are coming out.
@chrisneto
@chrisneto 8 жыл бұрын
reminds me of silent hill 1, spooky
@milanradovic97
@milanradovic97 8 жыл бұрын
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 8 жыл бұрын
air raid siren*
@kaizoebara
@kaizoebara 8 жыл бұрын
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 6 жыл бұрын
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 5 жыл бұрын
Rip
@ClownOwO
@ClownOwO 4 жыл бұрын
MrCorvusC one time i saw someone receive a framed image of the gift giver, holding the frame
@caracaes
@caracaes 4 жыл бұрын
Apart from it being wrapped in a freaking magazine, that's a great present...
@FukUNerd
@FukUNerd 4 жыл бұрын
@Oskar winters We get it, you're vegan
@pastaisyummy1110
@pastaisyummy1110 4 жыл бұрын
Me: *should be productive* KZbin: here's a video of a Mathmatican explaining how to make the most fair secret santa using math
@hugoclarke3284
@hugoclarke3284 3 жыл бұрын
@Roger Loquitur Equal probability
@DarinMcGrew
@DarinMcGrew 6 жыл бұрын
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.
@HunterBelkiran
@HunterBelkiran 7 жыл бұрын
I could happily listen to Hanna explain just about anything, I think.
@Porglit
@Porglit 8 жыл бұрын
0:45 Hey now, Hello Internet Vinyl is NOT junk...
@PixelBytesPixelArtist
@PixelBytesPixelArtist 8 жыл бұрын
project rèvolution!
@Porglit
@Porglit 8 жыл бұрын
Riley Russell It was included in the examples of "junk" gifts
@rileyrussell2366
@rileyrussell2366 8 жыл бұрын
Porglit I know, I don't know why I pinged you lol
@АсенДоцински
@АсенДоцински 8 жыл бұрын
Porglit I was about to say the same thing, untill I realised I have nothing to play it on...
@Porglit
@Porglit 8 жыл бұрын
Асен Доцински I don't either, but if it's HI then it can't be junk
@non-inertialobserver946
@non-inertialobserver946 8 жыл бұрын
Did Numberphile just call the klein bottle crappy?! >:(
@CommonChicken
@CommonChicken 8 жыл бұрын
Pisoi Gaming I just left a very similar comment. I'd be happy if someone got me a Klein Bottle
@entropyzero5588
@entropyzero5588 8 жыл бұрын
The emphasis was probably on the _another_ part - I'd be happy about _a_ Klein Bottle, sure - four? Not so much ;)
@Dixavd
@Dixavd 8 жыл бұрын
Wow at 9:54 ! Does Brady force Animator Pete to always make Brady number 1 haha
@pmcpartlan
@pmcpartlan 8 жыл бұрын
Yes, it's in my contract
@zh84
@zh84 8 жыл бұрын
Pete McPartlan I also spotted the Cyberiad reference in the list of names...
@sanman2754
@sanman2754 7 жыл бұрын
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.
@DocFunkenstein
@DocFunkenstein 4 жыл бұрын
Easy solution is to use two hats/bowls. Half of the group puts their name in hat A and picks from hat B, the other half puts their name in hat B and picks from hat A. Only issue there is an odd number of participants, which is easy to remedy by just picking the janitor or a temp or something.
@Nikolaj11
@Nikolaj11 8 жыл бұрын
Half the office fills one hat. The other half fill another. The two groups swap hats to pull from.
@Nikolaj11
@Nikolaj11 8 жыл бұрын
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 8 жыл бұрын
***** What are you talking about?
@Nikolaj11
@Nikolaj11 8 жыл бұрын
***** No it isn't, what in my reply specifically is problematic.
@Nikolaj11
@Nikolaj11 8 жыл бұрын
***** What does that matter if they are thought up randomly?
@Xqvvzts
@Xqvvzts 8 жыл бұрын
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.
@toushei
@toushei 8 жыл бұрын
This is just like a solution to James Grimes's assassin problem!
@bengski68
@bengski68 8 жыл бұрын
Right, and this is precisely the solution that he presented
@chinareds54
@chinareds54 8 жыл бұрын
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 8 жыл бұрын
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 7 жыл бұрын
+chinareds54 which means this doesn't work at all for groups of 3 and is pretty sketchy for 4.
@LoLeanderx
@LoLeanderx 8 жыл бұрын
-Have you ever done this? -Nope. I died. 😂
@erobed21
@erobed21 2 жыл бұрын
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).
@habus_
@habus_ 7 жыл бұрын
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 5 жыл бұрын
Have everyone choose their sets in secret, and move the cards together after
@rkah6187
@rkah6187 5 жыл бұрын
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 5 жыл бұрын
@@rkah6187 that works to
@majorjohnson8001
@majorjohnson8001 5 жыл бұрын
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.
@francescodantonio7312
@francescodantonio7312 8 жыл бұрын
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 8 жыл бұрын
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 8 жыл бұрын
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 8 жыл бұрын
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 8 жыл бұрын
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 8 жыл бұрын
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).
@ratatataraxia
@ratatataraxia 8 жыл бұрын
Love Hannah!
@wiertara1337
@wiertara1337 8 жыл бұрын
Yeah, it's a cool movie
@geraldmerkowitz4360
@geraldmerkowitz4360 8 жыл бұрын
There is 69 like on your comment I don't want to ruin it, it fits qiute well
@Canzandridas
@Canzandridas 8 жыл бұрын
In less than an hour, 150 likes lol
@iskrem596
@iskrem596 8 жыл бұрын
Archibald Belanus 314 now.
@CookieDotJar
@CookieDotJar 8 жыл бұрын
This solution has a minor issue in that you know that whoever you are buying for is definitely not buying for you.
@CookieDotJar
@CookieDotJar 8 жыл бұрын
That would solve the issue if there's an even number of participants, but with an odd number the problem still occurs.
@hindigente
@hindigente 8 жыл бұрын
You're absolutely right, although in some cases one single cycle is desirable.
@DavidVaughan00
@DavidVaughan00 8 жыл бұрын
Same problem as Enigma?
@youtubeforme7735
@youtubeforme7735 8 жыл бұрын
And hte bigger issue that you know who is buying for you. It's the person to your left.
@CookieDotJar
@CookieDotJar 8 жыл бұрын
It's not, the card shuffling sorts that issue.
@grayaj23
@grayaj23 3 жыл бұрын
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.
@TomDufall
@TomDufall 6 жыл бұрын
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 5 жыл бұрын
I do that for literally any mathematical application.
@rigille
@rigille 4 жыл бұрын
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 4 жыл бұрын
@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 4 жыл бұрын
@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 4 жыл бұрын
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.
@patrickwienhoft7987
@patrickwienhoft7987 8 жыл бұрын
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 8 жыл бұрын
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 8 жыл бұрын
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 8 жыл бұрын
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 8 жыл бұрын
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.
@ect4093
@ect4093 8 жыл бұрын
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 8 жыл бұрын
Erik Takke not if there are only 2 people doing it
@ect4093
@ect4093 8 жыл бұрын
But playing with 2 people defeats the purpose, you know anyway who picked you :D. You are right though!
@reasonnottheneed
@reasonnottheneed 8 жыл бұрын
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 8 жыл бұрын
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.
@reissecupfilms
@reissecupfilms 8 жыл бұрын
HOW DARE YOU CALL A KLEIN BOTTLE CRAPPY
@pmcpartlan
@pmcpartlan 8 жыл бұрын
For the record it was "another klein bottle" assuming you have loads.
@snowfloofcathug
@snowfloofcathug 8 жыл бұрын
Pete McPartlan no matter how many they will always stay awesome
@atracor
@atracor 8 жыл бұрын
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!
@23Scadu
@23Scadu 8 жыл бұрын
If you already have a klein bottle you don't need another, because the one you have already contains it.
@ceruchi2084
@ceruchi2084 6 жыл бұрын
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.
@boingooingo3317
@boingooingo3317 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!
@cringeproof100
@cringeproof100 2 жыл бұрын
That's called White Elephant!
@natewatson6962
@natewatson6962 2 жыл бұрын
You gotta stop putting chocolate in the pile
@alfredshitcock260
@alfredshitcock260 8 жыл бұрын
The way Hannah talks makes me tingle
@vape9546
@vape9546 5 жыл бұрын
Yeah it's sexy
@tobiasgertz7800
@tobiasgertz7800 4 жыл бұрын
I think I'm team Hannah and not team Holly anymore
@alexmcgaw
@alexmcgaw 8 жыл бұрын
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 8 жыл бұрын
Didn't understand instructions: assassinated my colleagues
@SenorTallon
@SenorTallon 8 жыл бұрын
Ah, I was about to say that! Gather the "real fans"! :p
@kantodream9714
@kantodream9714 8 жыл бұрын
So I'm not the first one to have noticed that :(
@cloudycloudi631
@cloudycloudi631 8 жыл бұрын
Alex McGaw I knew I had heard the same solution to a problem earlier. Couldn't quite remember where
@Guglhupfscout24
@Guglhupfscout24 8 жыл бұрын
Guess who is not getting invited to Hannah's christmas party ;)
@ald5267
@ald5267 8 жыл бұрын
I would be very suspicious if someone in my office bought me a "Hello Internet vinyl edition" for the Secret Santa... Very. Ha!
@angelicnoah
@angelicnoah 8 жыл бұрын
Al D
@rachel957
@rachel957 3 жыл бұрын
I know I'm like 4 years late, but whatever. This year me and my friends did it and it was SO stressful! .Firstly, when we first picked out the names, it went so well and no one got themselves. But then two people in the group told each other who they had and we had to re-pick. . And it went so badly! Everyone kept getting themselves and it took ages for everyone to get someone they could buy for! . It was ok after that, but a few days before we exchanged gifts, everyone suddenly started telling each other who they had or giving really obvious clues. Only me and one other person had no idea who we had, which was annoying! Tip for secret Santa's- Keep your mouth SHUT about who you have because it isn't very fun if it's just a Santa!
@elfstarlight
@elfstarlight 4 жыл бұрын
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)
@rusinsr
@rusinsr 8 жыл бұрын
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 8 жыл бұрын
Yea and you know that the person who picked the card that was right of yours will be buying you something.
@kujmous
@kujmous 8 жыл бұрын
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 8 жыл бұрын
I see. App it is.
@TeamRomeroJacobs
@TeamRomeroJacobs 8 жыл бұрын
thought the same. remember the cards have been shuffled
@Lattamonsteri
@Lattamonsteri 8 жыл бұрын
rusins the order was also shuffled in the beginning so the one card to the left isn't necessarily one integer bigger :)
@joebykaeby
@joebykaeby 8 жыл бұрын
Flirtiest Numberphile video ever?? XD
@Mewyabby
@Mewyabby 8 жыл бұрын
Smiling while being female = flirting. GRAND.
@concrete_dog
@concrete_dog 8 жыл бұрын
Ohoh not just the smiling :)
@joebykaeby
@joebykaeby 8 жыл бұрын
+Mewyabby There's no need to put words into my mouth I just thought their interaction was cute
@valentinidk6101
@valentinidk6101 8 жыл бұрын
True 😂😂
@JerehmiaBoaz
@JerehmiaBoaz 8 жыл бұрын
You didn't see the Holly Krieger videos? The 63 and -7/4 one especially.
@confucheese
@confucheese 8 жыл бұрын
3 people just doesn't work if you want to maintain anonymity, you can always figure out who picked who.
@Drew_2308
@Drew_2308 7 жыл бұрын
Never enjoyed math so much as when it's coming from Hannah Fry, and I love math.
@minijimi
@minijimi 3 жыл бұрын
I coded this in Visual Basic, Java, Javascript, and python, and use a version each year to run Secret Santa for the family. I code the list of names, duplicate the list, shift one the left, and add the first to the last, then loop through and create a file with the filename of one person, and the content of the other name. I email each file out and there we go. The only reason I do this is because of this video. Thanks Dr Hannah, and Numberphile!
@danielcausebrook6781
@danielcausebrook6781 8 жыл бұрын
*The standard "hat" system has more flaws than they mention.* If you pick your own name and replace it, you know someone after you will end up picking it. If everyone else sees you replace a card, they know this too. This reveals information, (potentially) breaching anonymity. This means that the first person is guaranteed total anonymity, but for each redraw down the line, more information is revealed about each. The second to last person will end up knowing exactly who buys for them if they redraw. *For example:* in a 'game' with 10 people, if the 7th person has to redraw, everyone knows that it is one of the next 3 people that will be buying for the 7th person. Though this doesn't strictly violate anonymity, it's not a great system as it could reveal a lot of information. Specifically, there's a 1 in 3 chance people 8, 9, and 10 have person 7. It's also known that people 1-6 do not have person 7. If this happens multiple times, that's a large loss of anonymity, especially for the last ones to draw.
@feynstein1004
@feynstein1004 8 жыл бұрын
Not necessarily. If you replace your card, the cards can be reshuffled. Thus the next person has no idea which card's yours and anonymity is preserved.
@feynstein1004
@feynstein1004 8 жыл бұрын
***** I get that. Shuffling doesn't fix all problems. But it does fix the first person OP mentioned.
@matthewsirkin9660
@matthewsirkin9660 6 жыл бұрын
No it doesnt. Unless you start over, reshuffling the remaining cards wont stop people from knowing that 1-6 dont have person 7
@matthewsirkin9660
@matthewsirkin9660 6 жыл бұрын
Also the 3 person example straight up doesnt work. If player A pulls C, then he knows exactly who the other people have because B can't pull himself. So by pulling C, he can deduce that B will be buying him a present
@Bandit-23th
@Bandit-23th 8 жыл бұрын
less the 5 mins. Perfect seeing how long I last. in math class
@Josh38414
@Josh38414 8 жыл бұрын
I would argue that the order; C A B is not anonymous, as A knows that B is choosing between B and A (as he has already chosen C), and B can't chose B, so B must have chosen A, thus the anonymity is lost.
@MGJerry69
@MGJerry69 2 жыл бұрын
Hannah's answer to the last question is literally an example of "Do as I say, not as I do" moment XD
@asuperfrog
@asuperfrog 5 жыл бұрын
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 5 жыл бұрын
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.
@beeble2003
@beeble2003 8 жыл бұрын
The video doesn't (unless I missed it) mention that, actually, three-person secret santa has zero secrecy. There are only two possible derangements and they have no agreements (e.g., it's not the case that A buys for B in both of them) so, as soon as a participant knows who they're buying for, they have full information. For example, as soon as A knows that they're buying for B, they know that the derangement is A->B, B->C, C->A, and B and C know this, too. I think this only happens with three participants. As soon as you have four, then A buying for B doesn't determine everything; it just makes certain other outcomes more or less likely.
@angusmcnay5449
@angusmcnay5449 2 жыл бұрын
Yes, they failed to mention it. Yes, only with the three.
@MrCyanGaming
@MrCyanGaming 8 жыл бұрын
The problem with 3 people, is that everyone then knows who is buying for who based on what name they choose.
@exm3266
@exm3266 5 жыл бұрын
Considering that it's KZbin, before I saw the channel name I thought this was a rant about the social ramifications of anonymously exchanging holiday gifts.
@NeoAnthony
@NeoAnthony 6 жыл бұрын
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.
@SoloLegends
@SoloLegends 3 жыл бұрын
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!
@SmileyMPV
@SmileyMPV 8 жыл бұрын
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 8 жыл бұрын
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 8 жыл бұрын
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 8 жыл бұрын
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 8 жыл бұрын
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 8 жыл бұрын
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.
@MegaTinni
@MegaTinni 4 жыл бұрын
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.
@stephaniejoobern1001
@stephaniejoobern1001 4 жыл бұрын
5:23 Also if B picks their own name and puts it back, and B has picked second (out of 3) then now B knows that C has B, and B knows who they themself picked, and by process of elimination B also knows who A has! So in this scenario B knows *all.* lol
@vegaspony
@vegaspony 4 жыл бұрын
everyone would know all either way. a-c forces b-a forces c-b. a-b forces b-c forces c-a. if you're playing with 3 people you know that the person getting you a gift is whoever you didn't draw.
@stephaniejoobern1001
@stephaniejoobern1001 4 жыл бұрын
Rick Shorts That's true!:)
@yitzhakkornbluth2554
@yitzhakkornbluth2554 7 жыл бұрын
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 Жыл бұрын
sounds like a feature and not a bug
@bick5601
@bick5601 5 жыл бұрын
This solution works so that everybody has an equal chance of buying for anybody else, except it doesn't work for anonimity. Of the top card says "you're number 4"and the bottom card says" you're giving to number 4" and you each have to give your topp card to the person sitting on your right, then the person on your right has "you are number 4" as their top card, and so you don't even need to look at the list to know who they are. Then, that means that the person in your elft gave you a "you are number x", and since they gave you their top card, you know that their bottom card is "you are giving to number x". Following that method, everyone at the table would give to the person in their right, and the anonimity would be totally ignored and destroyed. Unless I'm not understanding correctly
Does Hollywood ruin books? - Numberphile
13:03
Numberphile
Рет қаралды 441 М.
Tunnelling through a Mountain - Numberphile
8:06
Numberphile
Рет қаралды 712 М.
They Chose Kindness Over Abuse in Their Team #shorts
00:20
I migliori trucchetti di Fabiosa
Рет қаралды 12 МЛН
HELP!!!
00:46
Natan por Aí
Рет қаралды 75 МЛН
Молодой боец приземлил легенду!
01:02
МИНУС БАЛЛ
Рет қаралды 1,7 МЛН
The Mathematics of Winning Monopoly
18:40
Stand-up Maths
Рет қаралды 3 МЛН
Blackballed (feat. Hannah Fry) - Objectivity 91
8:41
Objectivity
Рет қаралды 249 М.
The mathematics of love | Hannah Fry
17:01
TED
Рет қаралды 1,2 МЛН
The Dollar Game - Numberphile
11:58
Numberphile
Рет қаралды 680 М.
The Change from Roman Numerals - Numberphile
13:01
Numberphile
Рет қаралды 228 М.
A Strange Map Projection (Euler Spiral) - Numberphile
12:55
Numberphile
Рет қаралды 1,3 МЛН
Weber's Law - Numberphile
9:03
Numberphile
Рет қаралды 986 М.
Bayesian Statistics with Hannah Fry
13:48
Stand-up Maths
Рет қаралды 404 М.
Game of Cat and Mouse - Numberphile
18:36
Numberphile
Рет қаралды 1,4 МЛН
How to make railway timetables (with graphs) - Numberphile
8:43
Numberphile
Рет қаралды 727 М.