This is a continuation of: Variance of X vs Variance of a binary function of X
In that thread, I posted a partial answer, which was accepted. However my answer has a gap. I'm now asking for help to fix the gap.
Let $X$ be a (not necessarily continuous) random variable in $[0, 1]$, with this additional property: Suppose there exists $m \in (0, 1)$ s.t. $P(X < m) = P(X > m)$. Define random variable $Y$ by "pushing" the probability "mass" on each side of $m$ to the limit values:
If $X < m$ then $Y = 0$.
If $X > m$ then $Y = 1$.
If $X = m$ then $Y = m$.
Question: Is $Var(X) \le Var(Y)$? (If true, this would complete my proof in the old thread.)
Thoughts: I'm conjecturing that $Var(X) \le Var(Y)$ should be true, based on some "moment of inertia" considerations. By construction, the 2nd moment about $m$ has increased, i.e. $E[(Y-m)^2] \ge E[(X-m)^2]$. If $m = E[X] = E[Y]$ then the conjecture follows at once. The problem is that $m, E[X], E[Y]$ can be 3 different values, and I am unable to track/bound them enough to prove the conjecture.
Incidentally, there are 2 cases to this problem. I would like an answer that covers both cases:
(1) $\forall x \in [0, 1]: P(X=x) = 0$. In this case, $m$ always exists and is the median, and $P(X=m)=0, P(X<m) = P(X>m) = 1/2$.
(2) $\exists x \in [0,1]: P(X=x) > 0$. In this case, $m$ might not exist (e.g. $X = \{0, 0.5, 1\}$ with probabilities $\{0.2, 0.4, 0.4\}$ respectively). This question presupposes that $m$ exists, in which case $P(X=m) = p$ might be positive or zero. (The $p>0$ subcase is what I need to complete my old proof.)