Suppose there is a box with $N$ balls. Each ball is coloured either red or blue. In each time period, one ball is chosen at random from the box and with probability $\frac{1}{2}$ replaced with the other colour; or the ball is returned to the box. Let $X_{n}$ denote the number of red balls after $n$ picks.
A) Determine the transition probabilities: $$p_{ij}, \forall{i,j}=0,1,....,N$$
Any help would be much appreciated thank you.
Hints:
If you have $x$ red balls after $n$ picks, what is the probability that your $(n+1)$th pick is red?
or blue?
What happens to the number of red balls in each of these cases?
If you have $x$ red balls after $n$ picks, what are the possible numbers of red balls after $n+1$ picks?
What are the probabilities that you transition to each of these possibilities?