(1) Use ‘sample’ function to generate a vector of 100 random
numbers that follows a multinomial distribution with probability
(0.1, 0.15, 0.3, 0.45).
(2) Without using the ‘sample’ function, generate a vector of
100 random numbers that follows a multinomial distribution with
probability (0.1, 0.15, 0.3, 0.45).
(3) Calculate the probability for 2.5 < X < 9 in a Poisson
distribution with the mean 6. (using R)





