Let X denote the number of heads that occur when 4 coins are tossed at random.assume that the coins are independent and fair, X has a Binomial(4,1/2) distribution.a) Assuming X Binomial(4,1/2), compute p_i := P(X = i) for i = 0,1,2,3,4.b) One hundred repetitions of this experiment resulted in 0,1,2,3,4 heads being observed 7, 18, 40, 31, 4 times respectively.Use a Chi-square test to determine if these results support the assumptions, i.e., test ifX Binomial(4, 1/2) is an appropriate model for the data.