1. Homepage
  2. Programming
  3. [2022] Stat 231 Statistics - Summer - Assignment2 Maximum likelihood estimation

[2022] Stat 231 Statistics - Summer - Assignment2 Maximum likelihood estimation

Engage in a Conversation
U of WaterlooStat 231StatisticsAssignment

Assignment 2 CourseNana.COM

For Stat 231 - Summer 2022 - U of Waterloo CourseNana.COM

Due on Thursday June 9th at 11:59pm EDT. CourseNana.COM

You will submit answers/results from R in the Crowdmark pdf submission. The final results should be typed within the written responses and images inserted. Your assignment submission must be typed and submitted as a pdf. There are no exceptions. Any submitted answer which is not typed will not be marked and given a mark of zero. Further, all written answers must be in full sentences. CourseNana.COM

Written answers which are not in full sentences will receive a deduction of 50% of the marks in that question part. Additionally, all plots should have titles and axes labelled appropriately to receive full marks. The feedback you receive will be focused on your R output and interpretations, not the detailed code itself. Thus, no R code should be included in your pdf solution file. CourseNana.COM

Q1 Maximum likelihood estimation CourseNana.COM

(14 marks total)
This question pertains to the mobile games data set variable
rare_gems. CourseNana.COM

For parts a, b, and c, specify the estimator as a function of the observations y and parameter θ, and give the estimated values for θ1 , θ2 , θ3 from the data calculated from R. CourseNana.COM

a) (2 marks) Apply a Poisson(θ1) distribution to rare_gems. Find the MLE θ1. CourseNana.COM

b) (2 marks) Apply a Binomial(n=12, θ2) distribution to rare_gems. Find the MLE θ2. CourseNana.COM

c) (2 marks) Apply a Binomial(n=24, θ3) distribution to rare_gems. Find the MLE θ3. CourseNana.COM

For parts d, e, and f, show your work instead of just giving the R output. That is, write out the log-likelihood function in terms of θ and observations y. Make sure to include the constants because we are comparing between different distributions. CourseNana.COM


d) (2 marks) Find the log-likelihood of the
rare_gems data given the Poisson(θ1) distribution. CourseNana.COM

e) (2 marks) Find the log-likelihood of the rare_gems data given the Binomial(n = 12, θ2) distribution. CourseNana.COM

f) (2 marks) Find the log-likelihood of the rare_gems data given the Binomial(n = 24, θ3) distribution. CourseNana.COM

g) (2 marks) Which of these three distribution families best fits the data? How do you know? CourseNana.COM

Q2 Goodness of Fit CourseNana.COM

(11 marks total) This question pertains to the mobile games data set variable pregame_skill. For the MLEs, you can use the estimators for the Normal/Gaussian distribution that you already know. CourseNana.COM

a)  (2 marks) Make a Q-Q plot of the variate pregame_skill against the normal distribution. From this, does it seem reasonable to assume that pregame_skill is approximately normally distributed? CourseNana.COM

b)  (1 mark) Assuming pregame_skill has a Gaussian distribution, find μˆ the MLE of the parameter μ. CourseNana.COM

c)  (1 mark) Assuming pregame_skill has a Gaussian distribution, find σˆ the MLE of the parameter σ. CourseNana.COM

d) (2 marks) Use your answer from part c, and the var function to calculate the bias in the MLE of σ . (Hint: The bias is calculated as E[S2] σ2) CourseNana.COM

e) (3 marks - 1 for observed, 2 for expected) The variate skill_grade is an ordinal version of the variate pregame_skill with the following cutoffs. Use the table function, the qnorm function, and the invariance property to fill in the observed and expected counts. CourseNana.COM

pregame_skill      skill_grade             observed counts             expected counts CourseNana.COM

(-inf, 70)                 F CourseNana.COM

[70, 85)                  E CourseNana.COM

[85, 100)               D CourseNana.COM

[100, 115)            C CourseNana.COM

[115, 130)            B CourseNana.COM

[130, +inf)            A CourseNana.COM

f) (2 marks) Informally, do these observed and expected counts suggest that the normal distribution is a reasonable model for pregame skill? Why or why not? CourseNana.COM

Q3 PPDAC Case Study CourseNana.COM

(12 marks total, 1 mark per part) CourseNana.COM

Goobookazon wants to see which of two website setups results in a higher proportion of users clicking on ads. Whenever a user visits their homepage, they are randomly given one of two different setups. (This sort of experimentation happens all the time in a method called A/B testing.) After 30 days, each setup has had exactly 1 million views, and the number of ad clicks from each setup has been counted. CourseNana.COM

Apply the PPDAC framework as in recorded Lecture 04-3 to fill in the following definitions for this specific study. CourseNana.COM

PROBLEM: CourseNana.COM


a) Objectives:
b) Units:
c) Target Population/Process:
d) Response variate:
e) Explanatory variates (List at least 2): CourseNana.COM

f) Attribute: CourseNana.COM

PLAN: CourseNana.COM

g) Study population/process: h) Study error: CourseNana.COM

i) Sampling protocol: CourseNana.COM

j) Sampling error: k) Sampling size: CourseNana.COM

l) Measurement error: CourseNana.COM

  CourseNana.COM

Get in Touch with Our Experts

WeChat (微信) WeChat (微信)
Whatsapp WhatsApp
U of Waterloo代写,Stat 231代写,Statistics代写,Assignment代写,U of Waterloo代编,Stat 231代编,Statistics代编,Assignment代编,U of Waterloo代考,Stat 231代考,Statistics代考,Assignment代考,U of Waterloohelp,Stat 231help,Statisticshelp,Assignmenthelp,U of Waterloo作业代写,Stat 231作业代写,Statistics作业代写,Assignment作业代写,U of Waterloo编程代写,Stat 231编程代写,Statistics编程代写,Assignment编程代写,U of Waterlooprogramming help,Stat 231programming help,Statisticsprogramming help,Assignmentprogramming help,U of Waterlooassignment help,Stat 231assignment help,Statisticsassignment help,Assignmentassignment help,U of Waterloosolution,Stat 231solution,Statisticssolution,Assignmentsolution,