# Thread:

1. ## Covariance of functions of a random variable

Let X be a random variable in the range (0,1), i.e. P(X)=0 for X<=0 or X>=1. Is there a way to prove that Cov(X,X/(1-X)) > 0 ? Is it true for any pdf f(X) whose support is in (0,1)?

2. ## Re: Covariance of functions of a random variable

Wow, this took me a surprisingly long time to show. Yes, it is true, provided that you allow the inequality to be attained (if X is a point mass you get a covariance of 0).

Let $f(x) = \frac x {1 - x}$. Let $\mu = \mbox{E}[X]$ and $\tau = \mbox{E}[f(X)]$. First, note that $f(x)$ is convex, and hence by Jensen's Inequality we have $\tau \ge f(\mu)$.

Next, note that it suffices to show $\mbox{Cov}[1 - X, f(X)] \le 0$. By definition this is the statement that

$\displaystyle \mbox{E}[(1 - X)f(X)] - \mbox{E}[1 - X]\mbox{E}[f(X)] = \mu - (1 - \mu)\tau \le 0$

and solving for $\tau$ this is the statement $f(\mu) \le \tau$, which is always true by Jensen's Inequality.
{"extraction_info": {"found_math": true, "script_math_tex": 0, "script_math_asciimath": 0, "math_annotations": 0, "math_alttext": 0, "mathml": 0, "mathjax_tag": 0, "mathjax_inline_tex": 0, "mathjax_display_tex": 0, "mathjax_asciimath": 0, "img_math": 0, "codecogs_latex": 9, "wp_latex": 0, "mimetex.cgi": 0, "/images/math/codecogs": 0, "mathtex.cgi": 0}, "config": {"markdown_headings": true, "markdown_code": true, "boilerplate_config": {"ratio_threshold": 0.18, "absolute_threshold": 10, "end_threshold": 15, "enable": true}, "remove_buttons": true, "remove_image_figures": true, "remove_link_clusters": true, "table_config": {"min_rows": 2, "min_cols": 3, "format": "github"}, "remove_chinese": true, "remove_edit_buttons": true, "extract_latex": true}, "english_confidence": 0.9277716279029846, "perplexity_flag": "head"}