A four-sided fair die is rolled twice. Let X be the number comes
up at the first roll and Y be a random variable taking a value of 1
if the numbers on the first and second rolls are the same,
otherwise it takes a value of 0.
a) Find the joint probability distribution of X and Y .
b) Calculate cov(X, Y ).
c) Determine whether X and Y are independent or not.