Assignment 3: model checking, evaluation, and comparison

Students
Name Id
Ploni Almoni 123489589
John Smith 923352302

Summary

In this assignment we apply checking, evaluation, and comparison techniques to our models.. The assignment is based on the class material:

  1. Model checking
  2. Model evaluation
  3. Regression models

The assignment consists of two problems. Solve the problems in either Jupyter or Pluto notebook.

Problem 1: warp breaks

Julia provides to R datasets via package RDatasets. We will use the warpbreaks dataset for this problem. You can load the dataset into data frame df as follows:

Infer the probability distribution of warp breaks for each of two wool types. Compare the results under separate and hierarchical models. Conduct two studies:

  1. Ignore warp tension and compare wool types based on all experiments.
  2. Account for warp tension in both the hierarchical model and the separate model.

Check, evaluate, and compare the models.

Problem 2. Reedfrog survival

In class, we explored the data set for reedfrog survival experiment. We developed a simple hierarchical model based on the number of aquarium only, as well as a cross-classified model taking predation into account.

  1. Implement a linear regression model for the problem. Use population size, aquarium size, and predation as the explanatory variables, and the number of surviving reedfrogs as predicted variable.
  2. Check, compare, and evaluate the 3 models:
    • hierarchical model from lecture 5, based on aquarium only.
    • cross-classified hierarchical model from lecture 6, based on aquarium and predation.
    • regression model you have developed.

NB: Use cross-validation for evaluation.