logo Hurry, Grab up to 30% discount on the entire course
Order Now logo

Ask This Question To Be Solved By Our ExpertsGet A+ Grade Solution Guaranteed

expert
Jarrod AlongeHistory
(5/5)

947 Answers

Hire Me
expert
Anmol AroraGeneral article writing
(5/5)

523 Answers

Hire Me
expert
Manall ChiiguerNursing
(5/5)

958 Answers

Hire Me
expert
Riley FarroComputer science
(/5)

723 Answers

Hire Me
Biostatistics
(5/5)

We have a population of animals some of which have a disease. The data is in the file “Disease

INSTRUCTIONS TO CANDIDATES
ANSWER ALL QUESTIONS

Bayesian Statistics

For this exercise, you need to submit a single text file or Word document that encompasses the answers to all of the questions below, with the section number (a) to (e) as a header for each part. Where JAGS code is asked for, you do NOT need to specify the R code needed to run it.

You have been approached by a biologist who wants to analyse a dataset. He has collected information on the exact proportion (variable name: Proportion) of insects in ten different fields (variable name: Field) that are exhibiting a phenotype indicative of a genetic mutation he is interested in. He has also recorded the number of insects counted in each field (variable name: Total), and previous exposure of that field to a known carcinogen in fertiliser (variable name: Exposure – coded as YES or NO). He wants you to run an MCMC model to describe his data.

(a) Conceptually, what distribution does the experiment follow? What link function would you choose for this model?(1 mark)

(b) What data would you need to pass to JAGS to run this model, and how would you calculate this data from the information that you have been given?(1 mark)

We have a population of animals some of which have a disease. The data is in the file “Disease.R”. Our prior for prevalence of this disease is Beta(1,1), and have no useful individual animal level predictors. We test all 500 animals using a perfect test (i.e. sensitivity and specificity are 100%), and we get 19 positive results.

(c) Write a JAGS model and then calculate the posterior distribution of belief for the prevalence using MCMC.(4 marks)

(d) There are two ways of programming this in JAGS – one uses a loop and the other doesn't, and they have a slightly different format for the observed data (hint: the Bernoulli distribution is a special case of the Binomial). Try both.(4 marks)

(e) Is there any difference between the results? There is one difference … try increasing the number of iterations to see if that makes it more obvious. (1 mark)

(5/5)
Attachments:

Related Questions

. The fundamental operations of create, read, update, and delete (CRUD) in either Python or Java

CS 340 Milestone One Guidelines and Rubric  Overview: For this assignment, you will implement the fundamental operations of create, read, update,

. Develop a program to emulate a purchase transaction at a retail store. This  program will have two classes, a LineItem class and a Transaction class

Retail Transaction Programming Project  Project Requirements:  Develop a program to emulate a purchase transaction at a retail store. This

. The following program contains five errors. Identify the errors and fix them

7COM1028   Secure Systems Programming   Referral Coursework: Secure

. Accepts the following from a user: Item Name Item Quantity Item Price Allows the user to create a file to store the sales receipt contents

Create a GUI program that:Accepts the following from a user:Item NameItem QuantityItem PriceAllows the user to create a file to store the sales receip

. The final project will encompass developing a web service using a software stack and implementing an industry-standard interface. Regardless of whether you choose to pursue application development goals as a pure developer or as a software engineer

CS 340 Final Project Guidelines and Rubric  Overview The final project will encompass developing a web service using a software stack and impleme