Finding expectation where the density has an indicator function

20 Views Asked by At

Let $f(z_1, z_2) = g(z_1)1(z_2=0)$.

What is the expectation of $E(Z_1^2)$? Is it zero? I think it depends on $g(z_1)$. Am I correct?