A bag contains 4 balls, among which k balls are red and the rest are green. Assume that k has a prior distribution, which is Binomial(4; 0:2). A ball is drawn from the bag. Determine the posterior distribution of k if (a) the ball is red and (b) the ball is green.