Suppose X and U are independent random variables with
P(X = k) =$\frac 1 {N+1}$, k= 0, 1, 2, . . . ,N,
and U having a uniform distribution on [0, 1]. Let Y = X + U.
a) For y ∈ R, find P(Y ≤ y).
b) Find the correlation coefficient between X and Y .
I got P(Y≤y)= $\frac y {N+1}$
So pmf of Y will be f(y)= $\frac 1 {N+1}$, y=1,2,...,N+1.
What should I take f(x,y) as?
Cov(X,Y) = E(XY)-E(X)E(Y).
E(XY) = $\sum$$\sum$$\frac {xy} {(N+1)^2}$ f(x,y), x=0,1,...,N;y=1,2,...,N+1