Тёмный

The Coupon Collector's Problem 

vcubingx
Подписаться 87 тыс.
Просмотров 26 тыс.
50% 1

Get 2 months of skillshare premium here! skl.sh/vcubingx
Join my discord server! / discord
The coupon collector's problem goes as follows: let's say you want to collect N coupons through draws that have an equal probability of getting any of the N coupons. What's the expected value of the number of draws to get all N coupons?
Follow Me!
vcubingx.com
github.com/vivek3141
/ vcubingx
/ vcubingx

Опубликовано:

 

3 июл 2024

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 52   
@vcubingx
@vcubingx 4 года назад
Join my discord server! discord.gg/Kj8QUZU Small typo: 7:02 should be 1/p_{n-3}. Credit to viewer Kyro for pointing this out!
@PapaFlammy69
@PapaFlammy69 4 года назад
Great video Vivek! :)
@vcubingx
@vcubingx 4 года назад
Thanks papa
@steventhijs6921
@steventhijs6921 4 года назад
Bruh Papa Flammy in da hood?😳what he gonna integrate doe??😎😎🤔
@mapletreemon4834
@mapletreemon4834 4 года назад
@@steventhijs6921 I don't like this comment
@2false637
@2false637 4 года назад
It’s all coming together
@KillianDefaoite
@KillianDefaoite 4 года назад
I know I'm being nitpicky here, but words can often get very confusing when dealing with probability, so it's correct to say the expected value of a random variable, not an event. Great video Vivek!
@vcubingx
@vcubingx 4 года назад
Thank you! I'll try to run my script by a few more people to catch these errors for next time :p
@NovaWarrior77
@NovaWarrior77 4 года назад
Nice. Glad I discovered this channel. You've inspired me and given me confidence that I too can master "manim".
@patrickbrown7438
@patrickbrown7438 2 месяца назад
Great video, thanks. I think there's an error in the bar graph at the end, though. It appears to just show multiples of 4: 0, 4, 8, 12, 16, 20... The real series starts out with 0, 1, 3, 5.5... then approaches the multiples of 4 for a while.
@nabilanwari2537
@nabilanwari2537 2 года назад
First , thanks for this instructive video. Just in the span of time 6:17 of the video, it has been mentionned that the having a new coupon is bernoulli, whereas it is geometric, with probabil(5-i/5)
@gauravagrawal6485
@gauravagrawal6485 2 года назад
awesome explanation brother, thanks : )
@prometheus7387
@prometheus7387 4 года назад
Well made video! I was frankly surprised how card picking leads us to harmonic numbers (not that I collect cards or anything lol)
@vcubingx
@vcubingx 4 года назад
i was surprised too!
@mariusy6944
@mariusy6944 Месяц назад
Great video! What do you do when the probability of drawing each card is unequal?
@NinjaNuggets21
@NinjaNuggets21 3 года назад
Great and very informative video! 👍
@vcubingx
@vcubingx 3 года назад
Glad you enjoyed it!
@hNeg
@hNeg 2 года назад
what if the probabilities are not equal?
@giovannifilippi
@giovannifilippi 4 года назад
Really nice video! There’s a small typo at 7:02 on the p_{n-3}
@vcubingx
@vcubingx 4 года назад
Thanks! Sorry about the typo, forgot to change it when I copied the previous equation :p
@sahilpandit9483
@sahilpandit9483 4 года назад
Great video! I was wondering, how could this be extended to account for multiple cards per draw (eg. drawing 3 cards, at random, with N total cards)? Would it still be reliant on Expected Values?
@vcubingx
@vcubingx 4 года назад
That's a fantastic question. I haven't taken a look at the derivation, but there's a few general formulas for the case you're talking about on wikipedia here (at the bottom of the page): en.wikipedia.org/wiki/Coupon_collector%27s_problem
@michel.martins
@michel.martins Год назад
Could you please explain to me what was done in 7:18? how do you get from one to another. Thanks
@andrewadoranti1423
@andrewadoranti1423 2 года назад
When you did the card drawing animation, you should replace the cards you have drawn. If you have drawn 1 of the 5 cards, the probability to get a card you don't already have will always be 1 since it will be impossible to duplicate.
@Nellak2011
@Nellak2011 4 года назад
Love your content!
@vcubingx
@vcubingx 4 года назад
Glad you enjoy it!
@AeRUBIKCubing
@AeRUBIKCubing 4 года назад
Oh god, I need to learn the manim library
@eliyasne9695
@eliyasne9695 4 года назад
Very elegant!
@vcubingx
@vcubingx 4 года назад
Thank you! 😊
@aarush130
@aarush130 3 года назад
i had one doubt can someone please tell me how we can denote E of n as E of n-1 +1/Pn-1 at 6:41
@bhartendu_kumar
@bhartendu_kumar 3 года назад
E is expected no. Of trails till all n coupons seen. We simpliy add all Xi for E. Xi is no. Of coupons to see after we have seen i the coupon and till we see (i+1), so adding all Xi for E makes sense
@shantanunene4389
@shantanunene4389 2 года назад
A slightly different way to solve: Again we want a recurrence between E_N and E_{N-1}. After we draw the first card, we are hunting for the remaining N-1 cards. This can be normally done in E_{N-1}, but we have a chance of a "garbage card", i.e., the same card that was drawn at the start, reappearing. This card will appear roughly 1/N of the times afterwards, so the expected value jumps to N/(N-1) E_(N-1). Thus we get the recurrence E_N=1+N/(N-1) E_(N-1), and we can solve it to get E_N=N H_N. Of course this is not very rigorous, so the argument can be made better by considering the expected value E(N,M) of drawing N "good" cards from a possibility of N+M total cards, where M of them are "garbage" cards. We can find a recurrence between E(N,M) and E(N-1,M+1), and use the fact that E(0,K)=0 to get E(N,M)=(N+M)H_N.
@1XxDoubleshotxX1
@1XxDoubleshotxX1 2 года назад
YAAAAS GIRLLL!
@112BALAGE112
@112BALAGE112 4 года назад
What is the distribution of this random variable? Is there a closed form expression for the probability mass function?
@vcubingx
@vcubingx 4 года назад
Uniform distribution
@112BALAGE112
@112BALAGE112 4 года назад
@@vcubingx Sorry. I meant X_n as the number of packs necessary to collect at least one of each card, parameterized by n, which is the number of distinct cards.
@vcubingx
@vcubingx 4 года назад
Ah, good question - it's a geometric distribution!
@bhartendu_kumar
@bhartendu_kumar 3 года назад
Closed expectation would be : ln n + thetha(n). PMF is already closed wrt n
@willbutplural
@willbutplural Год назад
CS 70 flashbacks
@vcubingx
@vcubingx Год назад
yuh
@alejrandom6592
@alejrandom6592 Год назад
2:06 put some parenthesis (p1=0.5) my eyes hurt from seeing 0.5=5
@girishgarg2816
@girishgarg2816 4 года назад
Love you
@diegolopez3568
@diegolopez3568 4 года назад
Incredible
@knights_limit
@knights_limit 4 года назад
Hi Vivek and math community, my original intuition was that the first new card be drawn in n/n ways, the second new card drawn in (n-1)/n ways... the last new card can be drawn is 1/n ways. This seems to be how the solution is, but i thought that we would multiply these probabilities, not add, since we want to have the probability of this whole event, which requires the first new card and the second and so on. What’s wrong with this logic?
@francisdavecabanting4453
@francisdavecabanting4453 4 года назад
we are not finding for the probability but for the expected number of trials until we get all cards. To add, the reason we do not find the usual "multiplying by its weight" is that each card is equally likely to be picked.
@richardmerckling592
@richardmerckling592 3 года назад
Multiplying these probabilities as you're suggesting would provide you the probability of correctly picking a new card for each n cards. EG. for N = 5, 5/5 * 4/5 * 3/5 * 2/5 * 1/5 = .0384 probability of correctly choosing a new card at each turn.
@bhartendu_kumar
@bhartendu_kumar 3 года назад
The thing wrong with this, is YOU HAVE NOT UNDERSTOOD YOUR RANDOM VARIABLE or defined here. Once you DEFINE RANDOM VARIABLE and then get to derive EXPECTATION, you will automatically do SUM!
@hamiltonianpathondodecahed5236
@hamiltonianpathondodecahed5236 4 года назад
NoiCe
@RyanYoon21
@RyanYoon21 4 года назад
sponsored POG
@grahamfinlayson-fife73
@grahamfinlayson-fife73 4 года назад
First!
@gobyg-major2057
@gobyg-major2057 4 года назад
This sounds like the cereal box problem: mste.illinois.edu/reese/cereal/
@vcubingx
@vcubingx 4 года назад
They're the same problem! Just a different name
Далее
The Coupon Collector Problem
7:15
Просмотров 48 тыс.
The Painter's Paradox
8:01
Просмотров 30 тыс.
The Coupon Collector's Problem (with Geoff Marshall)
16:23
Calculus of Variations ft. Flammable Maths
21:10
Просмотров 136 тыс.
What happens *inside* a neural network?
14:16
Просмотров 36 тыс.
Domino Tiling and Graph Theory
19:02
Просмотров 12 тыс.
The secret π in the Mandelbrot Set
12:21
Просмотров 26 тыс.
The Birthday Paradox
8:03
Просмотров 13 млн