I'm wondering how to set up the calculation for a double integral to solve for the value of c for the problem below.
Consider the joint probability density function $f_{XY} (x, y) = c(x+y)$ over the range $0 < x < 3$ and $x < y < x + 2$.
I know how to do this for a joint discrete distribution, e.g.
Consider the joint probability mass function $f_{XY} (x, y) = c(x + y)$ over the nine points with $x = 1, 2, 3$ and $y = 1, 2, 3$.
For this, I'd create two variables so that a function $f_{XY}$ would return all possible values of $x + y$:
x = c(rep(1,3), rep(2,3), rep(3,3))
y = rep(c(1:3),3)
f_XY = x+y
f_XY
c = 1/sum(f_XY)
I'm not sure how to create the variables for x and y when they're continuous, so I'd really appreciate any help!