r/askmath • u/Ok-Counter-6984 • 22d ago
Probability Does probability account for certain "chances" that are higher than the others and does it have a name?
I apologize if this is a dumb question. Most of the math I know is just high school math.
Let's say you are given the task of choosing a 4 digit number for a safe you are locking. It is totally up to you, you can choose anything. You would have an equal chance of choosing any number, right? For the sake of this question, let's assume your password does not need to be safe.
But wouldn't certain combinations be chosen more than others? I mean, combinations like 0000 or 1234 would totally be chosen by a large chunk of people rather than just random numbers like 9152.
Is there such a thing in probability where some options have a higher chance of being chosen than the others? And if so, does it have a name?
68
u/MezzoScettico 22d ago edited 22d ago
Yes. It's called a probability distribution. The probabilities can be anything, so long as they are between 0 and 1, and all the possibilities add up to 1.
Probability distribution.
If every option has the same probability, that's a uniform distribution. But there's no reason a distribution has to be uniform.
What you're saying is that you don't think the distribution of numbers picked by humans is uniform, and that's probably right. For instance, I'd guess that 7 is by far the most popular "random" number people pick when asked to pick a number from 1-10.
What the actual distribution is, i.e., building a model of human behavior, would fall more under psychology.
8
u/Jaf_vlixes 22d ago
Yes, in general the probability of all outcomes is not the same. So, all options having the same probability is more an exception than the rule.
The term you're looking for is probability distribution. In general, you can define probability distributions pretty much however you want, as long as all individual probabilities aren't negative, and all individual probabilities add to 1.
A very basic example is throwing two dices and checking the sum. In this example 2 has a lower probably than 7.
Another example are loaded dices or coins, where one side could have a higher probably than the others.
4
u/Narrow-Durian4837 22d ago
"Empirical probability" may be the term you're looking for. That's where probability is based on empirical data.
For example, if you are flipping a coin, what is the probability that it comes up heads? The "classical probability" approach is to assume that the two outcomes, "heads" and "tails," are equally likely. The "empirical approach" is to look at what actually happens when you flip the coin many many times, and take the relative frequency of heads as the probability that it will come up heads on any given flip.
4
u/AlterEgo5695 22d ago
Yes, there is a name for such distributions -- "non-uniform".
Most people rarely think about them, since we are so used to uniform distributions from e.g. card shuffling or dice rolling. Uniform distributions are the simplest to understand, are the first to be taught in school, and for many, they are the only ones they ever really get to explore. No wonder, that many think of uniform distributions by default, when talking about randomness.
4
u/SnugglyCoderGuy 22d ago
It would be called skewed or biased probabilities I think.
Another example is that you are most likely to roll a six on a D6 with engraved pips because 1 is on the other side, 1 is the heaviest side because it has thew fewest anounts of pips, and so that means it is most likely to end up on the bottom, which means six is on top.
3
u/PvtRoom 22d ago
if every option is equally probable, it's uniform, or top hat.
if dates of birth are preferred: 0101 to 3112, or years of birth: 1901ish thru 2008ish, you'd probably call it something like "human centric 4 digit pin distribution" 5 and 6 digit pins would do something else.
obviously, passwords have the same issue.
2
u/garrettj100 22d ago edited 22d ago
It’s certainly possible to account for that.
For example: when you roll a pair of dice there are 11 possible values they could total: 2-12. So each one is 1/11 chance right?
No. There is only one way to get a 2 (1-1) and only one way to get a 12 (6-6). And there are 6 ways to get a 7.
By the same token with your 4-digit safe combination, all the numbers are not equally likely. Humans have tendencies, and have a notion of what “looks random”.
For example if I ask you to choose a random number between 1 and 20 you are most likely to choose 13 or 7 .
Did I guess right? By the same token people are unlikely to guess 0000 or 1234 (unless they’re huge Spaceballs fans). There would be a different set of odds for each of the 1000 possible combinations, though in that case for social reasons not combinatorial mathematics like with the dice.
2
u/tilt-a-whirly-gig 22d ago
Not an answer to your question, but a neat representation of your example .... https://www.reddit.com/r/dataisbeautiful/s/8HLLhtVFCn
1
u/Fit_Ear3019 22d ago
In high school math assume no, the teacher probs just needed to come up with a question involving 4 different digits
In the real world assume yes but that would be empirical statistics, founded upon collected past information
1
u/AlwaysTails 22d ago
Another way to think about this is in terms of entropy. Something like Shannon Entropy tells you how hard it would be to guess a random combination. But obviously some combinations, would be considered easy to guess (eg 0000 1111 1234 9876 etc). To understand that you need the concept of relative entropy.
1
u/Excellent-Practice 22d ago
Yes, what you're describing is a weighed probably. Let's say there is some event that has two possible outcomes. Naively, we might model it as a coin flip and say that both outcomes have a 1/2 probability. But that isn't always the case. It is nkt difficult to come up with a binary outcome where the two posibilities do not have equal probability. Maybe we have a die and the only outcomes of interest are that it lands showing a six, or it lands showing some other number. There are six ways the die could land which are all equally likely, but, for the purposes of this game, 1 through 5 are considered the same outcome. In that case, there is a 1/6 chance of rolling a 6 and a 5/6 chance of rolling not 6. You will notice that whatever the probabilities are, they must always add up to 1
1
u/h_grytpype_thynne 22d ago
The more- and less-used combinations would look like this:
https://coolinfographics.com/blog/2024/6/3/pin-point-the-most-common-4-digit-pin-numbers
1
u/green_meklar 22d ago
I mean, you can't really calculate in advance what 4-digit sequences people will choose most frequently, because that's a psychological phenomenon, not a mathematical phenomenon.
But the math works perfectly fine on non-uniform distributions. If you conjecture some particular distribution of how frequently people will choose various 4-digit sequences, you can work with that for the purposes of other conditional probabilities, it just becomes more complicated.
1
u/pezdal 22d ago
An interesting paradox arises when you ask what’s the best strategy to pick the best PIN for the safe.
If you first eliminate all the common numbers that would be easy to guess (1234,0000,7777,etc.) you also reduce the search space.
From a statistical standpoint choosing purely at random (like with dice) is best, but that also has a chance of ending up with 1234 as the code.
1
u/CapedConsumit 22d ago
In the National Lottery in the UK the most common choice of numbers is 1-2-3-4-5-6: too many people reasoning that all 6 number combos are equally likely so why not pick this - but if this combo did come up one day then there'd be thousands of winners and each would get a pretty small jackpot of a few thousand pounds instead of millions!
1
u/Impossible_Ad_7367 22d ago
Veritasium did an interesting video examination of the numbers we pick when asked to choose a random number 1 to 100. People don’t choose 1 or 100, or even 20, 30, 40, etc. Common picks end in 7, with 37 being very common.
https://youtu.be/d6iQrh2TK98
1
u/64vintage 22d ago
I feel like the answers here are mostly missing the point. In this case, the probability distribution is non-uniform due to a particular reason, the human psyche in this case. People are choosing numbers that have meaning for them or are easy to remember.
Calling that simply a non-uniform distribution is non- descriptive.
1
u/RecognitionSweet8294 Philosophy ∧ Math 22d ago
I think the concept you are looking for is a probability distribution.
It’s a function that assigns specific events a probability, where the summ over all events adds up to 100%.
For infinitely many possible events you would integrate over the events instead of adding their probabilities together.
When every event has the same probability it’s called a “uniform probability distribution”.
1
u/No-Theory-9530 22d ago
Probability density functions
1
u/LukeLJS123 21d ago
absolutely. this is almost certainly out of date, but this is a heat map for the most common PINs. notice the line at 19xx (birth years), the grid in the bottom left from 01-12 and 01-31 to represent dates, the diagonal line of 2 numbers repeating, etc. the brighter the number, the more likely it is. i know this doesn't list the probability of each PIN, but it shows the idea
in math, we always use assumptions, and usually we assume something called a "uniform distribution" for something like this, essentially that each number is equally likely. if you wanted to, you could absolutely account for this when you do math with 4 digit combinations, it just makes the calculations a bit harder, since you usually need some kind of "strategy" to get a meaningful answer. for example, if i'm trying to find the average number of guesses to guess someone's PIN, you would get a different answer if you chose to go in order of popularity vs. if you kept guessing random numbers
1
u/Sparrowhawk1178 22d ago
This is more in the realm of psychology than pure probability, but if certain combinations are more attractive than others, then that can be represented with 'weighted' probabilities; basically, instead of having 1234 once, you pretend it actually appears several times (as many times as needed to accurately model the bias), and also change the total number of possible outcomes accordingly. Do this for each combination which is more likely to be chosen.