Let $X$ be a random variable with moment up to order $4$. Prove / disprove that $E\big((X−a)^4\big)$ is minimized when $a=E(X)$.
I've already proved that $E((X−a)^2)$ is minimized as such, but I'm lost with the 4 power. I've tried things from differentiating to opening up the parenthesis and trying to work from there but nothing worked.
plus I couldn't come up with any counter-example.
any help is appreciated! thanks
Expanding $\mathbb{E}\left[(X-a)^4\right]$ yields $$f(a):=\mathbb{E}\left[(X-a)^4\right]=\mathbb{E}[X^4]-4\,\mathbb{E}[X^3]\,a+6\,\mathbb{E}[X^2]\,a^2-4\,\mathbb{E}[X]\,a^3+a^4\,.$$ Thus, $$f'(a)=-4\,\mathbb{E}[X^3]+12\,\mathbb{E}[X^2]\,a-12\,\mathbb{E}[X]\,a^2+4\,a^3\,.$$ Therefore, if $a=\mathbb{E}[X]$ minimizes $f$, then $f'\big(\mathbb{E}[X]\big)=0$, and so $$-\mathbb{E}[X^3]+3\,\mathbb{E}[X^2]\,\mathbb{E}[X]-2\,\big(\mathbb{E}[X]\big)^3=0\,.\tag{*}$$ Hence, if (*) does not hold, then you have found a counterexample, say, a random variable $X$ with $\mathbb{E}[X]=0$ but $\mathbb{E}[X^3]\neq 0$.