I am trying to obtain the variance of a function of two random variables
$$f(\boldsymbol x):= x_A (e^{k(x_A+x_B)}-1)$$
where $\boldsymbol x = [x_A, x_B]^T$. Additionally, I know that $\operatorname{E}[x_A]=\operatorname{E}[x_B]=0$.
My approach is to obtain:
$$\operatorname{Var}[f] = \operatorname{E}[f^2]-\operatorname{E}[f]^2$$
For the expectation of $f$, I followed this post and used
$$ \operatorname{E}[f(\boldsymbol x)] \approx f(\operatorname{E}[\boldsymbol x]) + \frac{1}{2} \operatorname{E}[(\boldsymbol x-\operatorname{E}[\boldsymbol x])^TH_f(\operatorname{E}[\boldsymbol x]) (\boldsymbol x-\operatorname{E}[\boldsymbol x])] $$
Which for this case should simplify to
$$ \operatorname{E}[f(\boldsymbol x)] \approx \frac{1}{2} \operatorname{E}[(\boldsymbol x)^TH_f(\operatorname{E}[\boldsymbol x]) \boldsymbol x] $$
The hessian matrix for $f(\boldsymbol x)$ evaluated at $\operatorname{E}[\boldsymbol x]=[0,0]^T$ turns to be
$$ H_f(\operatorname{E}[[0,0]^T]) =\left[ \begin{matrix} 2k & k \\ k& 0 \end{matrix}\right] $$
so I get
$$\operatorname{E}[f(\boldsymbol x)] \approx \operatorname{E}\left[[x_A, x_B]\left[ \begin{matrix} 2k & k \\ k& 0 \end{matrix}\right] [x_A, x_B]^T\right]= \operatorname{E}[kx_A^2+kx_Ax_B]$$
For $\operatorname{E}[f^2]$, every term in the hessian (evaluated at $\operatorname{E}[\boldsymbol x]$) is null. Because of this I get $\operatorname{E}[f^2]\approx 0$.
Then, as $(\operatorname{E}[kx_A^2+kx_Ax_B])^2\ge 0$, my estimation of the variance is negative.
My questions are:
- What I am doing wrong?
- How to solve it correctly?
Thank you very much