How to explain why the probability of a continuous random variable at a specific value is 0?

A continuous random variable can realise an infinite count of real number values within its support -- as there are an infinitude of points in a line segment.

So we have an infinitude of values whose sum of probabilities must equal one. Thus these probabilities must each be infinitesimal. That is the next best thing to actually being zero. We say they are almost surely equal to zero.

$$\Pr(X=x) = 0 \text{ a.s.}$$

( To have a sensible measure of the magnitude of these infinitesimal quantities, we use the concept of probability density, which yields a probability mass when integrated over an interval. This is, of course, analogous to the concepts of mass and density of materials. )

$$f_X(x) = \frac{\mathrm d}{\mathrm d x}\Pr(X\leq x)$$


For the non-uniform case, I can pick some 0's and others non-zeros and still be theoretically able to get a sum of 1 for all the possible values.

You are describing a random variable whose probability distribution is a mix of discrete (massive) points and continuous intervals. This has step discontinuities in the cumulative distribution function.

$\Pr(X\leq x) = \begin{cases} 0 & x < 0 \\ 0.25 & x=0 \\ 0.25+x/4 & 0< x< 1/2 \\ 0.75 & x=1/2 \\ 0.5+x/4 & 1/2< x< 1 \\ 1 & x\geq 1\end{cases}\\[2ex] \Pr(X=x) = \begin{cases} 0 & x<0 \cup x> 1 \\ 0.25 & x=0 \cup x=1/2 \cup x=1 \\ 0\text{ a.s.} & 0<x<1/2 \cup 1/2<x< 1 \end{cases}$


The situation is easier to formalize when we say that there is no uniform distribution on a countably infinite set $S$. This is because if there were, then $P(X=x)=c>0$ for every $x$, and now

$$P(X \in S)=\sum_{x \in S} c = +\infty.$$

This follows from the property of countable additivity of probability, which is usually treated as an axiom. I think that at least finite additivity of probability should be intuitively obvious, and countable additivity is a straightforward extension.

In the uncountable case, we need one more result, which can be proven from the countable additivity axiom: if $A \subset B$ then $P(A) \leq P(B)$; so now if $S$ is uncountable, and we are to assign a uniform distribution to it, then we can extract a countably infinite subset $C$. Then

$$P(X \in S) \geq P(X \in C) = \sum_{x \in C} c = +\infty$$

as before.