What is the expected value of cosine of a multivariate Gaussian?

5.9k Views Asked by At

Suppose $X \sim \mathcal{N}\left(\mu, \Sigma\right)$. How do I evaluate $\operatorname{E}\left[\cos \left(t^{T}X \right) \right] $ and $\operatorname{E}\left[\sin \left(t^{T}X\right) \right] $? Does this have to do with the characteristic function $\operatorname{E}\left[e^{it^{T}X} \right] =\exp \left\{i\mu^{T}t -\frac{1}{2}t^{T}\Sigma t\right\}$?

1

There are 1 best solutions below

0
On

I will post an answer to my own question. Throughout the answer, the Euler's formula is extensively used: $$ e^{ix} = \cos x + i \sin x $$ Plugging in $x = t^{T}X$, $$ \begin{align*} e^{it^{T}X} &= \cos \left(t^{T}X\right) + i \sin \left(t^{T}X\right) \\ \mathbb{E}\left[e^{it^{T}X} \right] &= \mathbb{E} \left[\cos \left(t^{T}X\right) \right] + i \mathbb{E}\left[\sin \left(t^{T}X\right) \right] \\ &= \exp\left\{i\mu^{T}t-\frac{1}{2}t^{T}\Sigma t \right\} \left(\text{characteristic function} \right)\\ &= \exp\left\{i\mu^{T}t \right\}\exp\left\{-\frac{1}{2}t^{T}\Sigma t \right\}\\ &= \left(\cos \left(\mu^{T}t\right) + i\sin\left(\mu^{T}t\right) \right)\exp \left\{-\frac{1}{2}t^{T}\Sigma t \right\} \end{align*} $$ Therefore, the comparing the real parts and imaginary parts, $$ \begin{align*}\mathbb{E}\left[\cos \left(t^{T}X\right) \right] &= \cos \left(\mu^{T}t\right)\exp \left\{-\frac{1}{2}t^{T}\Sigma t \right\}\\ \mathbb{E}\left[\sin \left(t^{T}X\right) \right] &= \sin \left(\mu^{T}t\right)\exp\left\{ -\frac{1}{2}t^{T}\Sigma t\right\}. \end{align*} $$