This is an example from a book that I dn't really understand.
X=1 | X=2
Y=3 | 0.3 | 0.1
Y=6 | 0.1 | 0.5
$$E(XY)=\sum_{all\;y}\sum_{all\;x}xyp_{x,y}(x,y)=8.1$$ I can't grasp how this dubble sum works. I thought it was something lke this: First I take the sum off all y $3*(0.3+0.1)+6*(0.1+0.5)=4.8$ and then I take the sum of all x $1*(0.3+0.1)+2*(0.1+0.5)=1.6$ then i take $x*y = 7.68$.
Clearly I was wrong. And honestly I don't even know what $p_{x,y}(x,y)$ means.