I am currently stuck on the below question(s). I've made some progress on part a, although I'm not sure if my reasoning is correct. It involved substituting the provided equation for C into the probability and then substituting M for m and moving stuff around to get 1/6. Again, I'm not sure if this is correct and any help is appreciated as I have no idea how to do the second part of the problem. Thank you
We are given two independent random variables, M and K, both taking values in {0, 1, 2, 3, 4, 5}. Further, assume that you know that the marginal distribution of K is uniform, i.e., $$P(K = i) = 1/6$$ for all i in {0,1,2...5} You do not know the marginal distribution of M. Finally, we define a new random variable C as $$C=M+K\: mod \:6$$
a) For every $$m,c \in {0,1,...5}$$ such that $$P(M=m) > 0$$ what is the probability $$P(C=c | M=m)$$ b) Show that M and C are (mutually) independent.
We use the notation $[K+M]_6$ to denote $K+M \text{ mod }6$ and compute for $c\in \{0,1,2,3,4,5\}$: \begin{align*} \mathbb{P}(C=c \: | M = m) &= \mathbb{P}([K+M]_6 = c \: | \: M=m) \\ &=\mathbb{P}([K+m]_6=c \: | \: M=m) \\ &=\mathbb{P}([K+m]_6 =c) \quad \quad \quad\quad\text{(by independence)} \\ &=\mathbb{P}(K = [c-m]_6) = \frac16 \end{align*} From here we can compute \begin{align*} \mathbb{P}(C=c) &= \sum_{m=0}^5 \mathbb{P}(C=c \: | \: M=m)\mathbb{P}(M=m) \\ &=\frac{1}{6}\sum_{m=0}^5 \mathbb{P}(M=m) \\ &= \frac{1}{6} \end{align*} And from the fact $\mathbb{P}(C=c \: | \: M=m) = \mathbb{P}(C=c)$ we can conclude independence of $C$ and $M$.