STAT – HOMEWORK, WEEK 2 Solved

$ 20.99
Category:

Description

Please name the file with your name and the course week. The preferred file format is PDF or a plain text script file (.Rmd or .R). Please do NOT turn in a Microsoft Word document—Please just convert it to PDF first.
1. The weights listed below were recorded in the !Kung census, but heights were not recorded for these individuals. Provide predicted heights and 89% compatibility intervals for each of these individuals. That is, fill in the table below, using model-based predictions.
Individual weight expected height 89% interval
1 45
2 40
3 65
4 31
2. Model the relationship between height (cm) and the natural logarithm of weight (log-kg): log(weight). Use the entire Howell1 data frame, all 544 rows, adults and non-adults. Use any model type from Chapter 4 that you think useful: an ordinary linear regression, a polynomial or a spline. I recommend a plain linear regression, though. Plot the posterior predictions against the raw data.
3. Plot the prior predictive distribution for the polynomial regression model in Chapter 4. You can modify the the code that plots the linear regression prior predictive distribution. 20 or 30 parabolas from the prior should suffice to show where the prior probability resides. Can you modify the prior distributions of α, β1, and β2 so that the prior predictions stay within the biologically reasonable outcome space? That is to say: Do not try to fit the data by hand. But do try to keep the curves consistent with what you know about height and weight, before seeing these exact data.
1

Reviews

There are no reviews yet.

Be the first to review “STAT – HOMEWORK, WEEK 2 Solved”

Your email address will not be published. Required fields are marked *