Home Page > > Details

MATH3871/MATH5970

Bayesian Inference and Computation

Introduction

This is the second assignment for course MATH3871/5960.

The assignment consists in two parts: a quiz and a programming part. The deadline for both

is the 6th of November 2019 at 6PM (Sydney time). The deadline is strict.

For this assignment, it is possible to work in groups of maximum 4 people. However, it is not

compulsory: groups may be formed by 1, 2, 3 or 4 people.

Each student should complete the quiz individually, while the programming part must be

submitted once for each group. The members of the group should be clearly stated at the

beginning of the code. Every results should be properly commented. Only .py or .R (or .rmd)

files will be accepted. The programming part should run without errors to be evaluated.

The quiz worths 6 points, while the programming part worths 14 points.

The weight for this assignment on the final mark is 20%.

These instructions are strict.

Assignement 2

The annual number of serious accidents in the mines of Great Britain were recorded every year

from 1851 to 1962. We want to build a statistical model to evaluate if during those 112 years

there has been a change in the rate of occurrence of events, which could perhaps be due to

legislative changes to protect security.

Let (Y1, . . . , Ym−1, Ym, Ym+1, . . . , Yn) be the number of annual incidents, with

Yi ∼ P oi(λ) i = 1, 2, . . . , m

Yj ∼ P oi(φ) j = m + 1, . . . , n

The unknown parameters of the model are (φ, λ, m), while n is known and equal to 112.

Since the observations are supposed to follow a Poisson distribution, it is reasonable to consider

Gamma priors for (φ, λ):

λ ∼ Gamma(α, β)φ ∼ Gamma(a, b)

On the other side, the parameter m can have a uniform distribution:

m ∼ Unif(0, n − 1)The data are the following:

y=c(4,5,4,1,0,4,3,4,0,6,

3,3,4,0,2,6,3,3,5,4,5,3,1,4,4,1,5,5,3,4,2,5,2,2,3,4,2,1,3,2,

1,1,1,1,1,3,0,0,1,0,1,1,0,0,3,1,0,3,2,2,0,1,1,1,0,1,0,1,0,0,

0,2,1,0,0,0,1,1,0,2,2,3,1,1,2,1,1,1,1,2,4,2,0,0,0,1,4,0,0,0,

1,0,0,0,0,0,1,0,0,1,0,0)

Write an MCMC algorithm to perform a Bayesian analysis for this model. It could be useful

to procede with the following steps

• write the likelihood function;

• write the full posterior distribution;

• code a Gibbs sampler with N = 10000 simulations and with a burnin of 1000 values;

• plot the simulates marginal chain for each parameter and comment;

• analyse the convergence of the chains with at least two tools;

Contact Us(Ghostwriter Service)

- QQ：99515681
- WeChat：codinghelp2
- Email：99515681@qq.com
- Work Time：8:00-23:00

- Ghostwriter Math223 Assignment,R Cours... 2020-05-28
- Ghostwriter Kxo151 Assignment,Help Wit... 2020-05-28
- Math 160 Assignmenthelp With ,Data Cou... 2020-05-28
- Help With Csci 3120 Assignment,Program... 2020-05-28
- St2020 Course Assignmenthelp With ,Sta... 2020-05-28
- Com1005 Assignmentghostwriter ,Ai Tech... 2020-05-28
- Ghostwriter Sit216 Assignment,Python P... 2020-05-28
- Ghostwriter Artificial Course Assignme... 2020-05-27
- Comp Sci 3306 Assignmentghostwriter ,P... 2020-05-27
- Data Assignmentghostwriter ,Help With ... 2020-05-27
- Csci 3120 Assignmenthelp With ,C++ Pro... 2020-05-26
- Ghostwriter Algorithms Assignment,Data... 2020-05-26
- Data Science Assignmentghostwriter ,C+... 2020-05-26
- Data Course Assignmentghostwriter ,C++... 2020-05-26
- Ghostwriter R Assignment,Help With Dat... 2020-05-25
- Cosc473 Assignmenthelp With ,Systems A... 2020-05-25
- Data Assignmenthelp With ,R Programmin... 2020-05-25
- Comp 250 Assignment 3 2020-05-24
- Macm 316 – Computing Assignment 7 2020-05-24
- Sta457 Assignment 2020-05-24

Contact Us - Email：99515681@qq.com WeChat：codinghelp2

© 2014 www.asgnhelp.com

Programming Assignment Help！