Exercise Model selection and Shrinkage

BERN02

Author

Ullrika Sahlin

Format

Work individually or in pairs. If you work in a pair, each person hands in individually, but write at the beginning of the file who you have been working with.

Time needed

4 hours

Grades

Pass or Fail

Programming language

You can use the language you prefer, but I recommend using R or Python.

Create a report using Jupyter Notebook or Quarto.

Model selection competition

You will be given a data set, with a test data set. Your task is to build a predictive model. We the evaluate the models predictability using the test data set.

Submit lab report on Canvas

  1. Write your code so that it is clearly documented, and readable for someone other than yourself. We recommend integrating sections of code (R or Python) with sections of text using Markdown language. For example:
  • Python in Jupyter Notebook on Google Colab (or installed on your own computer)

  • R in Quarto on posit.cloud (or with R and RStudio installed on your computer)

  1. Write your name and date in the heading of the report and, if applicable, the name of your collaborator.

  2. Upload the report as the jypiter notebook, quarto or rmd file. This is to allow me to rerun the code on my computer.

  3. Upload the report in the assignment Exercise: Model selection and shrinkage on Canvas.