Covariance $X$ and $e^{X}$

1.8k Views Asked by At

How can I prove that covariance of random variable $X$ and $e^{X}$ is non-negative regardless distribution of $X$. I assume it is true.

2

There are 2 best solutions below

6
On BEST ANSWER

$$\begin{align} \operatorname{Cov}(X,e^X)&=E[Xe^X]-E[X]E[e^X]\\ &=E[Xe^X-\mu e^X]\\ &=E[(X-\mu)e^X] \\&=E[(X-\mu)(e^X-e^{\mu})] \end{align} $$

The last step comes from $E[(X-\mu) c] = 0$ for any constant $c$.

Because $e^x$ is non-decreasing (this is all we need), $(x-\mu)(e^x-e^{\mu})\geq0$ $\forall x$

Hence $\operatorname{Cov}(X,e^X) \ge 0$

0
On

Suppose that $X$ and $Y$ are two independent and identically distributed random variables. Since $e^x$ is an increasing function, $X-Y$ and $e^{X}-e^Y$ are co-sign. So the following holds: $$ \mathbb E[(X-Y)(e^X-e^Y)]\geq 0. $$ Using the assumption that $X$ and $Y$ are identically distributed, we have $\mathbb E(e^X)=\mathbb E(e^Y)$ and $\mathbb E(X)=\mathbb E(Y)$. Hence: $$ \mathbb E[(X-Y)(e^X-e^Y)]=2\mathbb E(Xe^X)-2\mathbb E(X)\mathbb E(e^X)\geq 0. $$ The last one is two times the covariance of $X$ and $e^X$.


The statement can be generalized for any increasing function $f$. The reverse holds for any decreasing function.