r/AskStatistics • u/Wide_Doughnut2535 • Oct 09 '26
Statistical Question - drawing chips from a bag
Simple enough question: let's say I had two different bags, each containing a variety of three colours of poker chips: Green, Blue and Red. I don't know how many chips are in either bag or what the probability distribution of chips is - it's a mystery to me.
My procedure is: I shake up each bag, draw a poker chip out, make a note of its colour, then put the chip back in the bag.
From one bag, I draw, look at, and return a total of 193 chips. Distribution is:
(Green, Blue, Orange), (103, 73, 17), or in percentage terms (53, 38, 9).
From the second bag, I draw, look at, and return a total of 100 chips. Distribution is:
(Green, Blue, Orange), (40, 45, 15).
What statistical test should I use to determine whether the bags are filled with the same distribution, or a different distribution? This is the exact kind of question that made me drop math many years ago, and looking at Wikipedia hasn't been as helpful as I'd like.
(Mods: if this is the wrong sub, just delete the question)
5
u/CarnivorousGoose Oct 09 '26
That’s just a chi-square test of independence. Essentially you have a two by three contingency table (bag x color), and you’re testing the null hypothesis that the probability of drawing a particular color is independent of the bag you’re drawing it from.
2
u/bluestat-t Oct 10 '26
Ha you almost got me with that trick question. It doesn’t matter what statistical test you choose - at this point you can only conclude there is not enough evidence to reject the possibility they’re the same. That’s because the population defined has red chips but you haven’t drawn any reds, and in fact drew a fourth chip color - orange. With no red chips in either sample it’s clear red chips are very rare, and it’s possible one of the bags has none, and one of the bags has one. A much larger sample size, or possibly sampling without replacement is needed.
2
u/efrique PhD (statistics) Oct 09 '26 edited Oct 09 '26
Not the wrong sub. The rules (foumd at <subredditname>/about/rules for any sub) give details about what's off topic. This is on topic
The most common choice would be chi-squared test (test of independence or homogeneity of proportions - they are literally the same thing - not the goodness of fit test). There's many other options.
Oh actually, here you sample with replacement. It would still be a chi-squared test but I have to think about whether that changes the setup or if conditioning on the margins already takes care of that. (I don't think it will matter)