At even time instants, a robot moves either \(+\delta\) centimeters (cms) or \(-\delta\) cms in the x-direction if the outcome of a coin flip is a head or a tail, respectively. At odd time instants, a robot moves either \(+\delta\) cms or \(-\delta\) cms in the y-direction if the outcome of a coin flip is a head or a tail, respectively. Assuming that the robot begins at the origin, let \(X\) and \(Y\) be the x- and y-coordinates, respectively, of the location of the robot after \(2n\) time instants. We assume that the outcome of each coin flip is independent of the others; the probability of getting a head in each flip is denoted as \(q\). Find the joint probability mass function (PMF) of \(X\) and \(Y\), \(p_{X,Y}(x,y)\).
Note: The first time that the robot moves is along the y-direction.
Hints: First, find the marginal PMF of \(X\), \(p_X((-n+2k)\delta)=P(X=(-n+2k)\delta)\) where \(k\) is an integer. (Think about what the range of \(k\) is.) Similarly, find the marginal PMF of \(Y\), \(p_Y((-n+2m)\delta)=P(Y=(-n+2m)\delta)\) where \(m\) is an integer. (Also think about what the range of \(m\) is.)