This repository contains Python solutions to the exercises and labs from the book
"Introduction to Statistical Learning, Second Edition"
by Gareth James, Daniela Witten, Trevor Hastie, and Robert Tibshirani.
"Introduction to Statistical Learning" introduces key statistical learning methods and their practical applications.
Topics include:
- π Linear Regression
- π’ Classification Methods
- π Resampling Methods
- π³ Tree-Based Methods
- ...and more!
Both theory and hands-on examples are presented to help readers master statistical learning.
An-Introduction-to-Statistical-Learning-Python/
β
βββ Exercises/ π Exercise solutions, organized by chapter ("Chapter X")
βββ Notebooks/ π Lab notebooks ("Lab_X.ipynb")
βββ data/ π Datasets for exercises and labs
βββ figures/ π Images & visualizations from notebooks
βββ LICENSE π MIT License
βββ README.md π Project documentation
-
Clone the repository
git clone https://github.com/mdzaheerjk/An-Introduction-to-Statistical-Learning-Python.git cd An-Introduction-to-Statistical-Learning-Python
-
Explore Exercise Solutions
- Go to the
Exercises/
folder. - Each chapter has its own directory (
Chapter X/
). - Open Jupyter Notebooks (e.g.,
Exercise_X_Y.ipynb
) for solutions.
- Go to the
-
Explore Lab Notebooks
- Find labs in the
Notebooks/
directory (e.g.,Lab_X.ipynb
). - Open with Jupyter Notebook or JupyterLab.
- Find labs in the
-
Datasets & Figures
- Datasets are in
data/
(formats: CSV, Excel, etc.). - Visualizations and images are in
figures/
.
- Datasets are in
- Feel free to experiment and modify solutions.
- Datasets may need to be downloaded or placed in the appropriate directories.
- All solutions are intended for educational purposes and as a reference.
Solutions are provided for learning and reference only.
Use them to deepen your understanding of statistical learning concepts.
MIT License. See LICENSE for details.
Emoji Key:
π = Folderββπ = Docsββπ = Licenseββπ = Data/Analysis