GithubHelp home page GithubHelp logo

dsnair / islr Goto Github PK

View Code? Open in Web Editor NEW
10.0 3.0 23.0 5.89 MB

Labs from An Introduction to Statistical Learning

License: MIT License

Jupyter Notebook 100.00%
statistical-learning islr python jupyter-notebook

islr's Introduction

README

Project Summary

Do the labs from 'An Introduction to Statistical Learning' book, in Python. (The labs are done in R in the book.) The book is available for free download on the author's website along with slides, video tutorials, and some datasets.

Data

The labs require the datasets listed below. These datasets are available on the CRAN GitHub repo.

  • Auto: Gas mileage, horsepower, and other information for cars.
  • Boston: Housing values and other information about Boston suburbs.
  • Caravan: Information about individuals offered caravan insurance.
  • Carseats: Information about car seat sales in 400 stores.
  • College: Demographic characteristics, tuition, and more for USA colleges.
  • Default: Customer default records for a credit card company.
  • Hitters: Records and salaries for baseball players.
  • Khan: Gene expression measurements for four cancer types.
  • NCI60: Gene expression measurements for 64 cancer cell lines.
  • OJ: Sales information for Citrus Hill and Minute Maid orange juice.
  • Portfolio: Past values of financial assets, for use in portfolio allocation.
  • Smarket: Daily percentage returns for S&P 500 over a 5-year period.
  • USArrests: Crime statistics per 100,000 residents in 50 states of USA.
  • Wage: Income survey data for males in central Atlantic region of USA.
  • Weekly: 1,089 weekly stock market returns for 21 years.

Requirements

$ pip install -r requirements.txt

Work Summary

3 Regression:

  • Simple Linear Regression:
    • Coefficient of Determination
    • Residual Plot
  • Multiple Linear Regression:
    • Non-linearity
    • Heteroscedasticity
    • Leverage Statistic
    • Studentized Residuals
    • Correlation Heatmap
    • Variance Inflation Factor (VIF)

4 Classification:

  • Logistic Regression:
    • Confusion Matrix
    • Sensitivity
    • Precision
    • F1 score
  • K-Nearest Neighbors (KNN)
    * Linear Discriminant Analysis
    * Quadratic Discriminant Analysis

5 Resampling Methods:
* Validation Set
* Leave-One-Out Cross-Validation
* k-fold Cross-Validation
* Bootstrap

6 Linear Model Selection and Regularization:
7 Moving Beyond Linearity:

8 Tree-Based Methods:

  • Decision trees
    * Bagging
    * Random Forests
    * Boosting

9 Support Vector Machines:

10 Unsupervised Learning:

  • Principal Component Analysis (PCA)
  • K-Means Clustering
  • Hierarchical Clustering
    * Gaussian Mixture Models (GMM) Clustering
    * Spectral Clustering
    * Mean-Shift Clustering
    * DBSCAN

islr's People

Contributors

dsnair avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.