Question: 1) Generate a sample using Bernoulli distribution 2) Define a function to calculate the negative maximum likelihood estimate for parameter p. 3) Apply either the

1) Generate a sample using Bernoulli distribution

2) Define a function to calculate the negative maximum likelihood estimate for parameter p.

3) Apply either the nlm or mle function to find the estimate for the parameter of the distribution.

4) Repeat steps 1-4 for a sample of different size and for different initial parameter of p (you can create new chuck for this question)

Compare the results to the MLE for p derived analytically.

Step by Step Solution

3.54 Rating (151 Votes )

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock

Code 2 Code 2 Generate distribution ... View full answer

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 Accounting Questions!