1
$\begingroup$

How can we find the mean and the variance (not using a software tool) of $Y = \cos(bX)$, when $b$ is a non-zero constant and $X$ has a Gaussian distribution?

$\endgroup$

2 Answers 2

3
$\begingroup$

Slightly generalizing a question in math SE, we have the following equality: $$\int_{-\infty}^{\infty}e^{-x^2}\cos(bx+c) dx = \sqrt{\pi}e^{-b^2/4}\cos (c)$$

Which can be used to solve our query (for the mean): $$\begin{align}E[cos(bX)]&=\frac{1}{\sqrt{2\pi}\sigma}\int_{-\infty}^\infty {e^{-\left(\frac{x-\mu}{\sqrt{2}\sigma}\right)^2}}\cos(bx)dx\\&=\frac{1}{\sqrt{2\pi}\sigma}\int_{-\infty}^\infty {e^{-x^2}\cos(b(\sqrt{2}\sigma x+\mu))}\frac{dx}{\sqrt{2}\sigma}\end{align}$$

The variance can be found via second moment, i.e. $E[{\cos}^2(bX)]$. And, since $\cos^2(bX)=\frac{1+\cos (2bX)}{2}$, we can use the same formula to reach out the variance.

$\endgroup$
4
  • $\begingroup$ I am wondering why $\cos(bx)$ multiply by the probability density function (PDF) of X which is the Gaussian distribution, because the expectation is equal to the sum (or integral) of the product of each element with its corresponding probability. I hope the following is correct: $$\textrm{PDF of } \cos(bX) \neq \textrm{PDF of } X,$$ If I am wrong, please clarify me. $\endgroup$
    – Ganth
    Commented Apr 25, 2019 at 22:06
  • $\begingroup$ For any continuous RV $X$, we have $E[g(X)]=\int g(x)p_X(x)dx$, by the law of unconscious statistician: wikiwand.com/en/Law_of_the_unconscious_statistician . $cos(bX)$ is a function of $X$, i.e. $g(X)=cos(bX)$, and therefore its expectation can be calculated w/o finding its PDF. $\endgroup$
    – gunes
    Commented Apr 25, 2019 at 22:13
  • $\begingroup$ Thanks for the information, how did you solve from line 1 to line 2 and also is there a missing "b" in line 2 (or are you replace it with other terms, how?) $\endgroup$
    – Ganth
    Commented Apr 25, 2019 at 23:09
  • $\begingroup$ @Ganth yes, it seems I forgot $b$, now corrected it. $\endgroup$
    – gunes
    Commented Apr 26, 2019 at 6:57
3
$\begingroup$

Not a proof but a comment:

Knowing that the characteristic function of $X\sim N(\mu,\sigma^2)$ is of the form $E\left[e^{i bX}\right]=e^{i\mu b-\sigma^2 b^2/2}$ for any $b\in\mathbb R$ and that $E\left[e^{i bX}\right]=E\left[\cos bX\right]+iE\left[\sin bX\right]$, I think we can compare real parts of both sides to say that

$$E\left[\cos bX\right]=\mathfrak R \,E\left[e^{ib X}\right]=e^{-\sigma^2 b^2/2}\,\mathfrak R(e^{i\mu b})=e^{-\sigma^2 b^2/2}\cos \mu b$$

$\endgroup$
0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.