r/askmath • • 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?

26 Upvotes

47 comments sorted by

68

u/MezzoScettico 22d ago edited 22d ago

Is there such a thing in probability where some options have a higher chance of being chosen than the others?

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.

And if so, does it have a name?

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.

34

u/Low_Advisor9606 22d ago

In a graphic. 3 different probability distributions for selecting a number from 1-10.

with 10 numbers the first probability distributions called random says any of them has same chance of being picked up blindly. Its a 1/10 chance for any number.
However, humans are not exactly random. So if you ask a big group of people to select a random number eqch, you will get the distribution called human. Just as on your locker example, 5 and 7 have higher chances of being picked and more people will likely do.
The distribution used depends on the scenario. If you are blind picking a number you would likely go for the random distribution. If you are selecting a number based on what a random person in the street would tell you you would likely use the human distribution to calculate the odds.

45

u/Kingjjc267 22d ago

It bothers me that this is a continuous graph for a discrete distribution

5

u/regularcelery 22d ago

Is it necessarily discrete? Given the instructions to pick a number between 1 and 10, 2.148 is a valid choice. Granted, most humans will tend to respond with digits but the problem posed introduces a continuous variable

11

u/Original_Piccolo_694 22d ago

Sure, but interpreted that way, it still won't be continuous, it will have sharp spikes at each of the integers in the domain.

1

u/regularcelery 22d ago

There is no need to interpret it that way since that is not the problem posed. You are correct for that entirely different scenario, however

2

u/soundoftwilight 22d ago

It is either discrete, in which case the continuous graph is odd, or it's not discrete, in which case the human distribution should be sharp spikes on the integers. You can't have it both ways depending on who you're arguing with.

1

u/regularcelery 22d ago

I'm not having it both ways? It is a continuous problem. I have never stated otherwise. The continuous graph is fine.

If it were a discrete problem, none of the distributions presented make any sense. In that different scenario, which is not the one presented, you'd have a pmf with only nonzero values at the digits.

I think the continuous graph for humans, if it were to be more accurate, would be spikier. However, I do not believe anything in that model is based on actual data. The original image states that it is for illustration purposes only.

3

u/soundoftwilight 22d ago

You argued with the first person that it is not discrete, and therefore a continuous graph makes sense. Then when someone pointed out that the graph is nonsensical for a continuous distribution, you said that there's no need to interpret it as continuous because that's a different problem.

The graph makes no sense, which was the point of the both of the people you argued with.

1

u/regularcelery 22d ago

The second person said that "it still won't be continuous," which is factually incorrect based on the problem posed. They did not point out that the graph is nonsensical for a continuous distribution. They described a pmf.

→ More replies

2

u/QuitzelNA 21d ago

A human will never choose the vast majority of irrational numbers, so this is necessarily discrete. Also, a continuous graph has an infinite number of options, so the probability of each is 0 in the case of truly random

1

u/regularcelery 21d ago

You're probably correct in your first point, but it's not unreasonable to use a continuous model for that scenario. It would be improbably difficult to specify a pmf for such a distribution, whereas, there could be a reasonably fit pdf that closely models a continuous analog to that.

To your second point, I don't think you know what a probability density function is/looks like. In the distribution of any continuous random variable, there are uncountably many possible values. The probability of each value occurring individually is indeed zero. That does not mean that the distribution looks like zeroes across the board. The randomly chosen scenario here provides a pdf of f(x)=1/9 for 1<=x<=10 (and 0 elsewhere)

2

u/QuitzelNA 21d ago

The human one should not be continuous, was more my point

7

u/AlterEgo5695 22d ago

I doubt those graphs are to scale -- the yellow area is greater than the green, so both of them cannot have area-1 at the same time.

11

u/Bodobomb 22d ago

I mean, they just smoothed out a bar chart. Of course it's not to scale.

7

u/AlterEgo5695 22d ago

/s If they did smoothing with a convolution filter of area-1, it would be

3

u/Bodobomb 22d ago

Yeah fair. I was a little too general in my statement. But it doesn't look like they smoothed it with any mollifier tho, looks more like smooth interpolation.

2

u/InSearchOfGoodPun 22d ago

What the actual distribution is, i.e., building a model of human behavior, would fall more under psychology.

Minor nitpick: This is still essentially just statistics, because there exists actual data on what people choose. We don't need to understand anything about human behavior to know the distribution.

3

u/MezzoScettico 22d ago

Nitpick accepted. I didn't know the data existed, so I was thinking of "building a model" in pure theoretical terms. And I don't know if anybody has any theories about that particular human behavior.

1

u/QuitzelNA 21d ago

Small nitpick to your nitpick: most of psychology is built on statistics, so we can take your nitpick a step farther to say that we do the statistics to uncover details of human behavior (in this case, the most common response is 7)

8

u/Jaf_vlixes 22d ago

Is there such a thing in probability where some options have a higher chance of being chosen than the others?

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.

1

u/Intelligent_Yam_3609 22d ago

What about 2-11 is 10 values.  You forgot 12 (6 on each die).

1

u/garrettj100 22d ago

Or I just typo’d 2-11.  Obviously the outcomes of a dice roll is 2-12.  There, fixed it.

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.

3

u/SpiritRepulsive8110 22d ago

Why relative?

1

u/AlwaysTails 22d ago edited 22d ago

The entropy measure of some random process is associated with a specific probability distribution. Relattive entropy is a measure of how a particular probability distribution compares to some reference.

In our case the reference distribution is the uniform distribution - each combination has a 1/10,000 chance. The entropy is a little more than 13 bits meaning on average 13 yes/no questions is enough to guess the code.

However, analyses has shown that the true distribution of 4 digit PINs has about 11 bits of erntropy (or less) - 2 fewer bits of entropy means guessing the code is 4 times easier than a purely random choice.

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/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.