Given a vector $\mu = \{\mu_x \mu_y \mu_z\} $ and an equivalent covariance matrix $\Sigma$, I used the following in Mathematica to compute the conditional expectation $\mathbf{E}(Y|Y+Z)$.

 y \[Conditioned] y + z == y0 + z0 , {x, y, z} \[Distributed] 
  MultinormalDistribution[mu, sigma]]

Which produced the correct result.

As I try something a bit more tricky like $\mathbf{E}(Y|(Y+Z)^2)$ with the following:

 y \[Conditioned] (y + z)^2 == (y0 + z0)^2 , {x, y, z} \[Distributed] 
  MultinormalDistribution[mu, sigma]]

Mathematica does not output a result.

I imagine Mathematica is capable of this computation so I must be inputting something in incorrectly. Is this possible to compute in Mathematica knowing Mean and Covariance Matrix?

  • 1
    $\begingroup$ Welcome to Mathematica.SE! I hope you will become a regular contributor. To get started, 1) take the introductory tour now, 2) when you see good questions and answers, vote them up by clicking the gray triangles, because the credibility of the system is based on the reputation gained by users sharing their knowledge, 3) remember to accept the answer, if any, that solves your problem, by clicking the checkmark sign, and 4) give help too, by answering questions in your areas of expertise. $\endgroup$
    – bbgodfrey
    Sep 30 '21 at 1:00

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.