Saved searches

Use saved searches to filter your results more quickly

Cancel Create saved search Sign up Reseting focus

You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session. You switched accounts on another tab or window. Reload to refresh your session.

Solutions to "An Introduction to Statistical Learning with Applications in R second edition"

License

Notifications You must be signed in to change notification settings

danhalligan/ISLRv2-solutions

This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Go to file

Folders and files

Last commit message Last commit date

Latest commit

History

View all files

Repository files navigation

An Introduction to Statistical Learning with Applications in R second edition solutions

ISLR v2 cover

This repository provides my solutions for all exercises in the book "An Introduction to Statistical Learning with Applications in R", second edition, by Gareth James, Daniela Witten, Trevor Hastie and Robert Tibshirani. If you use these solutions or find them useful, please star this repository!

About these solutions

The solutions are written in bookdown format using (my) ISLRv2 solutions template. For anyone reading this book, I believe there is great value in deriving the solutions yourself, and the template above can be forked to provide a great starting point as I've created template Rmarkdown files for each chapter and transcribed all questions as quotes within the chapter files leaving space for you to write your solutions either as text, or by writing R code chunks. For more details, refer to the template repository. I've tried my best to provide solutions to each problem in this book, and I believe my answers should be (at least for the most part) correct. The solutions are relatively concise but hopefully comprehensive enough to address the purpose of each question. If, when reading these solutions, you notice any inconsistencies, mistakes or have any other questions, please feel free to raise an issue or provide suggestions and I'll happily take a look and try to incorporate.

Compiled solutions

Building the solutions

You will need to install tensorflow and keras. The dependencies are provided in the DESCRIPTION file and you can install them by running:

devtools::install()

Rebuild the book with compiled solutions by running:

bookdown::render_book('index.Rmd', 'bookdown::gitbook') 

About

Solutions to "An Introduction to Statistical Learning with Applications in R second edition"