I have this Joint Probability table: I need to figure out

a) E[X] (given Y=30)

b) E[Y] (given X=5)

I have worked something out, I'm not certain it is correct though.

For a) I did: (1 x .10) + (5 x .05) + (8 x .15) =1.55

and for b) : (14 x .17) + (22 x .15) + (30 x .05) + (40 x .02) + (65 x .01) =7.91

Can anyone tell me if I am moving along the right track?

Thanks!