Question: #Exercise 1 (12 Points) Setting Binomial distribution has the following PMF: PMF(x) = - (1 - pn-k where k = 0, 1,...,n k!(n-k)! For this

 #Exercise 1 (12 Points) Setting Binomial distribution has the following PMF:

#Exercise 1 (12 Points) Setting Binomial distribution has the following PMF: PMF(x) = - (1 - pn-k where k = 0, 1,...,n k!(n-k)! For this question, let's assume n = 5 and p = 0.5. ##Q1. [6 Points] Visualize this distribution using a bar chart. In [0]: ##Q2. [6 Points] CDF(x) gives the probability of getting a value below or equal to X. Report CDF(1) and CDF(4). (Hint: np.cumsum (PMF) can be used to compute CDF] Generate 1000 random numbers. Report the percentage of random numbers falling below CDF(1). Also, report the percentage of random numbers falling below CDF(4). In [0]: N #Exercise 1 (12 Points) Setting Binomial distribution has the following PMF: PMF(x) = - (1 - pn-k where k = 0, 1,...,n k!(n-k)! For this question, let's assume n = 5 and p = 0.5. ##Q1. [6 Points] Visualize this distribution using a bar chart. In [0]: ##Q2. [6 Points] CDF(x) gives the probability of getting a value below or equal to X. Report CDF(1) and CDF(4). (Hint: np.cumsum (PMF) can be used to compute CDF] Generate 1000 random numbers. Report the percentage of random numbers falling below CDF(1). Also, report the percentage of random numbers falling below CDF(4). In [0]: N

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!