联系方式

  • QQ:99515681
  • 邮箱:99515681@qq.com
  • 工作时间:8:00-21:00
  • 微信:codinghelp

您当前位置:首页 >> Python编程Python编程

日期:2019-08-13 10:41

37357 Spring 2019 Page 1 of 5

37357 Advanced Statistical Modelling

Lab Week 4

Distribution Theory and MLE

Name: Student Number:

Part 1: Poisson Distribution

Let Y1, …, Yn be independent random variables that follow the Poisson distribution

(1) Write down the likelihood function,

(2) Write down the log-likelihood function.

37357 Spring 2019 Page 2 of 5

(3) Calculate 

(4) Find the maximum likelihood estimator of.

Part 2: Unbiased Estimators

Let Yi = μ + εi, i=1,…,n with independent and identically distributed errors εi such that E[εi] = 0 and

Var[εi] = σ2

.

(5) Find the least squares estimator of μ. 

Part 3: Binomial Distribution

Let Y be a random variable that follows the Binomial distribution

(7) Write down the likelihood function,

37357 Spring 2019 Page 4 of 5

(8) Write down the log-likelihood function,

(10) Find the maximum likelihood estimator of.

Open the Excel sheet “MLE Bin Dist.xlsx” on UTSOnline. This sheet calculates based on n = 30

Bernoulli trials both algebraically (the MLE found in Q10) and numerically (by finding the maximum

likelihood from a list of possibilities). You can re-run the trails by pressing F9.

(11) Leave the “true p” at 0.3 and re-run the trails 10 times. Each time you re-run the trials, write

down . Do to algebraic and numeric estimates of p agree with one another in each re-run?

37357 Spring 2019 Page 5 of 5

(12) Calculate the mean and standard deviation of the 10 estimates of p in the previous question.

What do you think will happen to the mean and standard deviation when n is larger?

(13) Increase n from 30 to 60 by creating 30 more trials in Row 7. You can do this by copying the

contents of row 6 from column E to AH. Check that the calculation of n in the top left corner has

changed. Repeat question 11 with the increased sample size.

(14) Increase n from 60 to 90 by creating 30 more trials in Row 8. Repeat question 11 with the

increased sample size.

(15) Calculate the mean and standard deviation of the estimates of p in each of Q13 and Q14.

Comment on the effect of increasing n.

More fun things to play with: change the value of “true p”.


版权所有:编程辅导网 2021 All Rights Reserved 联系方式:QQ:99515681 微信:codinghelp 电子信箱:99515681@qq.com
免责声明:本站部分内容从网络整理而来,只供参考!如有版权问题可联系本站删除。 站长地图

python代写
微信客服:codinghelp