Probability theory can be sometimes confusing and counter-intuitive at first glance. The following example will illustrate this.1
Problem.
You are given an urn containing $100$ balls; $n$ of them are red, and $100−n$ are green, where $n$ is chosen uniformly at random in ${0,1,\dots,100}$. You take a random ball out of the urn—it’s red—and discard it. Is the next ball you pick:
(A) More likely to be green;
(B) Equally likely to be green or red;
(C) More likely to be red.
If you want to solve this on your own, I recommend to stop reading here and
come back later.
Naively we can find “good” arguments for all answers:
(A) The probability of drawing a red ball in the first turn is basically $\cfrac{1}{2}$ as $n$ is uniformly distributed. If we then remove a red ball from the urn, the probability should shift in favor of the green balls.
(B) The probability of drawing a red ball in the first turn is $\cfrac{n}{100}$. Then in the second turn the probability of drawing a red ball is $\cfrac{n-1}{99}$ and the probability of drawing a green is $\cfrac{100-n}{99}$. Since we can rule out the case $n = 0$ (as then no red ball could have been drawn), on average both probabilities are the same.
(C) On the other hand, one might say it is more likely that the second ball will be again red—because the first red ball that was drawn indicates that it is likely that there are more red balls in the urn. Hence, removing one red ball will most likely not shift the probability in favor of the green balls.
FIRST ATTEMPTS
All naive reasonings seem to have a valid point. So how do we find out the correct answer? First of all, put your intuition aside and start modeling.
- There is a random variable $n$ for the number of red balls;
- There is a random variable $X_1$ for the result of the first drawing;
- There is a random variable $X_2$ for the result of the second drawing.
The random variables $X_1$ and $X_2$ return $1$ if the ball is red and $0$ if the ball is green. If we naively regard every step of the event (assuming that the past events have already terminated) then we have the following probabilities:

The problem that we have is that the probability of $X_2 = 1$ is again a random variable. Hence, in order to find how likely it is we can look at its expected value

So on average the probability of drawing a second red ball is strictly less than $\cfrac{1}{2}$, therefore it is more likely to draw a green ball.
So we found an answer that backs up our first naive argument and could stop. However, in our calculation we already used that the case $k = 0$ (or $n = 0$) does not appear (the sum started with $k = 1$) so maybe this distorts the probability. So since we know $n = 0$ is impossible in our experiment (a red ball was drawn in the first turn), we have to take this also into account for the counter probability. We are again a bit sloppy with our notation and say $\cfrac{100 - n}{99} = 0$ for $n = 0$ (I don’t want to introduce an extra variable for this case distinction)

This shows that the probabilities are actually the same.
So we have seen that taking into account past knowledge changes the result. However, maybe we were really selective with what past knowledge we were regarding and what we were ignoring. Hence, it is better to model the entire experiment properly to avoid bias.
PROPER MODELING - CONDITIONAL PROBABILITY
Maybe you are familiar with the Monty Hall problem. The correct model has similar facets that might be overlooked at first glance, namely conditional probability. In order to see this effect we will properly model the entire experiment. We have already said that there are three random variables involved: nn, $X_1$ and $X_2$, but we have never specified their probability spaces and only naively said something about their probability measures. Hence, we will specify our probability spaces

where $\mathbb{1}$ denotes the indicator function. Again I was a bit imprecise here with the definition of the random variables, but we will fix this in a moment. Also instead of giving one probability measure for each of $\Omega_1$ and $\Omega_2$ we introduced families of measures. This is necessary to take dependence on previous events into account. The previous list represents the individual parts of the experiments. In order to regard the entire experiment as a whole we look at the product space and its “product measure”:

This representation of $\mathbb{P}$ is nice and compact, but not so nice to immediately decypher it. Essentially there are four cases:

Finally, our random variables are actually

Now that we rigorously set the model we can actually calculate probabilities, e.g., the probability of $X_1 = 1$, which we claimed early should be $\cfrac{1}{2}$:

Therefore, as expected, we have $\mathbb{P}(X_1 = 1) = \cfrac{1}{2}$. In particular we are interested in the conditional probability:

Finally,

The probability of drawing again a red ball is $\cfrac{2}{3}$.
This shows how far off the previous approaches were. It is actually “very” likely to draw the same color again. This might seem counter-intuitive at first glance, but it is essentially the same “paradox” as the Monty Hall problem.
- The problem is from a last years post on X (formerly Twitter) by Daniel Litt.