Bug introduced in 8.0 or earlier and persisting through 13.2.0
I've noticed this strange behavior and I'm wondering if it's a bug.
I define a Cauchy distribution:
c = CauchyDistribution[0, 1];
If I evaluate Mean[c]
, I get Indeterminate
, as expected.
If I evaluate Expectation[x, x \[Distributed] c]
, I get Expectation[x, x \[Distributed] CauchyDistribution[0, 1]]
. I would have expected Indeterminate
, too, but that's ok.
However, if I evaluate Expectation[x + y, {x \[Distributed] c, y \[Distributed] c}]
, I get 0
.
The sum of two independent Cauchy distributed random variables should be another Cauchy distributed random variable, right? Why is the expectation 0?
f = (1/(Pi (1 + x^2))) (1/(Pi (1 + y^2)));
andIntegrate[(x + y)*f, {x, -Infinity, Infinity}, {y, -Infinity, Infinity}]
returns the appropriate 'does not converge' message. $\endgroup$