Expected value of the sign of a normal random variable

3.4k Views Asked by At

Let $x\in\Bbb{R}$ be a normal random variable with mean $\bar{x}$ and variance $\sigma_x^2$. I'm curious about a new variable that is defined as the sign of $s$, say $s=\operatorname{sgn}(x)\in\{\pm1\}$. What is the expected value of this variable? Based on the answers below, $$ \Bbb{E}[s] = (-1)\cdot P(x<0) + 1\cdot P(x>0) = -P\left(\frac{x-\bar{x}}{\sigma_x}<-\frac{\bar{x}}{\sigma_x}\right) + P\left(\frac{x-\bar{x}}{\sigma_x}>-\frac{\bar{x}}{\sigma_x}\right) \implies \Bbb{E}[s] = -P\left(z < -\frac{\bar{x}}{\sigma_x}\right) + P\left(z > -\frac{\bar{x}}{\sigma_x}\right), $$ where $z\sim\mathcal{N}(0,1)$ is the standard normal variable. Thus, $$ \Bbb{E}[s] = -\Phi\left(-\frac{\bar{x}}{\sigma_x}\right) + 1 - \Phi\left(-\frac{\bar{x}}{\sigma_x}\right) = 1 - 2\Phi\left(-\frac{\bar{x}}{\sigma_x}\right), $$ where $\Phi$ is the cumulative distribution function of the standard normal variable. Thus, $$ \Bbb{E}[s] = \operatorname{erf} \left( \frac{\bar{x}}{\sqrt{2}\sigma_x} \right). $$

2

There are 2 best solutions below

1
On BEST ANSWER

$$\mathsf {E(sgn}(X))=1\cdot\mathsf P(X>0)+(-1)\cdot\mathsf P(X<0)$$

0
On

Check your last equation… it's wrong… ofc the symmetry of the density depends on $\overline{s}$ and additionally if we assume $\overline{s} = 0$ we would get $$\int_{-\infty}^{0}(-1)f(s)\mathrm{d}s = - \int_{0} ^\infty f(s)\mathrm{d}s$$