Skip to content



Welcome 😀

This site contains self-attempted solutions to exercises in the great textbook The Elements of Statistical Learning by Prof. Trevor Hastie, Prof. Robert Tibshirani and Prof. Jerome Friedman.

May I ask you for a Github ⭐ if you find this repo helpful?


  • Start browsing here.

  • To quickly navigate to a particular solution, please search exercise number in 🔍 in the top.


The version of the textbook this site is using is Second Edition (corrected 12th printing Jan 2017) and book PDF can be downloaded here.

Programming Language

For programming exercises, relevant Python scripts have been provided.

Similar Resources


Due to my limited ability, my solutions are not complete and may contain errors. Please feel free to create new Issues for discussion.

Thank you in advance 😀