Question: Write an R function that calculates the previous probability distribution. The function should take as input an integer n and return a matrix with 2
Write an R function that calculates the previous probability distribution. The function should take as input an integer n and return a matrix with 2 columns: one column containing the possible values y = 0,...,n and the other containing the associated probabilities p(y).
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
