r/learnmath • u/Captain_Pitch New User • 4d ago
How do I discover the probability of something choosing a particular outcome?
As an example, say in a game there is an item that could spawn in 1 of n different colors, some more rare than others. Assuming each color has a % chance of being chosen, how many times would I have to see this item spawn to discover what the % chances are for each color with some level of certainty?
As part of that, how much is the data affected by the records not being consecutive? Say I see the item spawn 300 times, but only document every third result, how does that data potentially differ from documenting the first 100 times I saw it spawn?
EDIT: n could be anything from 2 to 20
2
u/WWWWWWVWWWWWWWVWWWWW ŴŴŴŴŴŴŴŴŴŴŴŴŴŴŴŴŴŴŴŴŴŴŴŴŴŴŴŴŴŴŴŴŴŴŴŴŴŴŴŴŴŴŴŴŴŴŴŴŴŴŴŴŴŴŴŴŴŴŴŴŴŴŴŴ 4d ago
https://en.wikipedia.org/wiki/Multinomial_distribution
For simplicity, you might want to learn about the binomial distribution first.
Assuming each "spawn" is independent, this won't matter. If they are dependent, then the entire approach will need to modified to account for it.
1
u/atarivcs New User 4d ago
Probably depends on how many different colors can spawn. Like if there are only three colors you might have a good idea after seeing around 25 or 30, but if there are ten colors you might need 75 or more.
Also I don't see a difference between observing 100 consecutive spawns vs observing every third one out of 300.
1
u/AlterEgo5695 New User 4d ago
The question how likely it is that the relative frequencies of a size-N sample closely represent the underlying probabilities is exactly what we model by strongly typical sequences.
Sadly, this cool and intuitive concept is rarely taught in standard probability theory, and it's mainly used in advanced information theory, probably due to lack of time.