Skip to content

πŸ“˜ Python solutions to ISLR (2nd Edition) exercises & labs πŸ“Š Covers regression, classification, resampling & trees πŸ§‘β€πŸ’» Jupyter notebooks with datasets, code & visualizations 🎯 Great for learning statistical learning methods hands-on

License

Notifications You must be signed in to change notification settings

mdzaheerjk/An-Introduction-to-Statistical-Learning-Python

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

8 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

πŸ“š An Introduction to Statistical Learning β€” Python Solutions

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.


ISLP Cover

πŸ“– About the Book

"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.


πŸ—ΊοΈ Repository Structure

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

πŸš€ Getting Started

  1. Clone the repository

    git clone https://github.com/mdzaheerjk/An-Introduction-to-Statistical-Learning-Python.git
    cd An-Introduction-to-Statistical-Learning-Python
  2. 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.
  3. Explore Lab Notebooks

    • Find labs in the Notebooks/ directory (e.g., Lab_X.ipynb).
    • Open with Jupyter Notebook or JupyterLab.
  4. Datasets & Figures

    • Datasets are in data/ (formats: CSV, Excel, etc.).
    • Visualizations and images are in figures/.

πŸ’‘ Usage Notes

  • 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.

⚠️ Disclaimer

Solutions are provided for learning and reference only.
Use them to deepen your understanding of statistical learning concepts.


πŸ‘€ Author


πŸ“„ License

MIT License. See LICENSE for details.


Emoji Key:
πŸ“ = Folderβ€ƒβ€ƒπŸ“˜ = Docsβ€ƒβ€ƒπŸ“œ = Licenseβ€ƒβ€ƒπŸ“ˆ = Data/Analysis

About

πŸ“˜ Python solutions to ISLR (2nd Edition) exercises & labs πŸ“Š Covers regression, classification, resampling & trees πŸ§‘β€πŸ’» Jupyter notebooks with datasets, code & visualizations 🎯 Great for learning statistical learning methods hands-on

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published