联系方式

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

您当前位置:首页 >> 数据库数据库

日期:2022-08-16 08:18

MAST30027: Modern Applied Statistics
Assignment 1, 2022.
Due: 11:59pm Sunday August 14th
This assignment is worth 12% of your total mark.
To get full marks, show your working including 1) R commands and outputs you use, 2)
mathematics derivation, and 3) rigorous explanation why you reach conclusions or answers.
If you just provide final answers, you will get zero mark.
The assignment you hand in must be typed (except for math formulas), and be submitted
using LMS as a single PDF document only (no other formats allowed). For math formulas,
you can take a picture of them. Your answers must be clearly numbered and in the same
order as the assignment questions.
The LMS will not accept late submissions. It is your responsibility to ensure that your
assignments are submitted correctly and on time, and problems with online submissions are
not a valid excuse for submitting a late or incorrect version of an assignment.
We will mark a selected set of problems. We will select problems worth ≥ 50% of the full
marks listed (≥ 17 out of 34 for this assignment). For example, if we select 1-(b), (c), (e), 2-
(a), and 3-(b) for marking, they will contribute 35(= 720×100), 15(= 320×100), 10(= 220×100),
15(= 320 × 100), 25(= 520 × 100) to the full marks of 100 for the assignment 1.
If you need an extension, please contact the tutor coordinator before the due date with
appropriate justification and supporting documents. Late assignments will only be accepted
if you have obtained an extension from the tutor coordinator before the due date. Under
no circumstances an assignment will be marked if solutions for it have been released. Please
DO NOT email the lecturer for extension request.
Also, please read the “Assessments” section in “Subject Overview” page of the LMS.
1. Fit a binomial regression model to the O-rings data from the Challenger disaster, using a
complementary log-log link. You must use R (but without using the glm function); I want
you to work from first principles.
(a) (3 marks) Compute MLEs (maximum likelihood estimates) of the parameters in the
model.
(b) (7 marks) Compute 95% CIs for the estimates of the parameters. You should show how
you derived the fisher information.
(c) (3 marks) Perform a likelihood ratio test for the significance of the temperature coeffi-
cient.
(d) (3 marks) Compute an estimate of the probability of damage when the temperature
equals 31 Fahrenheit (your estimate should come with a 95% CI, as all good estimates
do).
(e) (2 marks) Make a plot comparing the fitted complementary log-log model to the fitted
logit model. To obtain the fitted logit model, you are allowed to use the glm function.
1
2. The data frame ‘pima subset’ contains a subset of the pima data set. For details of the pima
data set, please see the practical problem 2 for the week 2. You can obtain ‘pima subset’
using the commands:
> library(faraway)
> missing <- with(pima, missing <- glucose==0 | diastolic==0 | triceps==0 | bmi == 0)
> pima_subset = pima[!missing, c(6,9)]
> str(pima_subset)
’data.frame’: 532 obs. of 2 variables:
$ bmi : num 33.6 26.6 28.1 43.1 31 30.5 30.1 25.8 45.8 43.3 ...
$ test: int 1 0 0 1 1 1 1 1 1 0 ...
Using the ‘pima subset’ data set, we will fit a binomial regression with a logit link with test
as a response and bmi as a predictor to see the relationship between the odds of a patient
showing signs of diabetes and his/her bmi. The odds o and probability p are related by
o =
p
1? p p =
o
1 + o
.
(a) (3 marks) Please estimate the amount of increase in the log(odds) when the bmi in-
creases by 5.
(b) (3 marks) Compute a 95% CI for the estimate.
You are allowed to use the glm function.
3. The inverse Gaussian distribution has p.d.f.
f(x;μ, λ) =
(
λ
2pix3
)1/2
exp
(?λ(x? μ)2
2μ2x
)
for x > 0, where μ > 0 and λ > 0.
(a) (5 marks) Show that the inverse Gaussian distribution is an exponential family.
(b) (5 marks) Obtain the canonical link and the variance function.
[hint: you could consider θ = ?1/μ2.]
2

相关文章

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