Expectation of X squared plus Y from joint PMF chart

Suppose the joint PMF of and is given by this chart:

0.20.2
0.350.1
0.050.1

Define . Find the expectation .

Solution

First compute the values of for each pair in the chart:

03
14
25

Now take the sum, weighted by probabilities:

Expectation of Y two ways and Expectation of XY from joint density

Suppose and are random variables with the following joint density:

(a) Compute using two methods.

(b) Compute .

Solution

(a)

(1) Method One: via marginal PDF :

Then expectation:

(2) Method Two: directly, via two-variable formula:

(b) Directly, via two-variable formula: