probability of mass function

Exercise # 2: Plot the probability mass function (PMF) and the cumulative distribution function (CDF) of 3 random variables each following (1) binomial distribution [p, n], (2) a geometric distribution [p], and (3) Poisson distribution [𝜆]. You have to consider two sets of parameters per distribution which can be chosen arbitrarily. The following steps can be followed: Step 1: Establish two sets of parameters of the distribution: for Geometric and Poisson distributions take two values of p (p1 and p2) and take two values of [𝜆], (𝜆1 and 𝜆2) respectively. For the binomial you should take two values of p and two values of n, first keep p fixed and change n, in the second keep n fixed and change p. Step 2: Generate the random variables (at least 10 values) [column 1] Step 3: Calculate the PMF [column 2] and CDF [column 3] Step 4: Plot the PMF and CDF in different graphics (It is recommended to combine the graphics while changing the parameters). Comment on how the parameters values affect the distribution.

1 个评论

Please read this guide about getting help with homework, and edit your question accordingly.

回答(0 个)

此问题已关闭。

产品

关闭:

2023-5-1

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by