Statistical learning on NBA shot data
Posted on Sun 11 October 2015 in blog • Tagged with python, NBA, api, machine learning, regression, logistic regression, regularization
In the last post, I pulled some NBA shot data for Andrew Wiggins and put that into a dataframe. Here, we will apply some supervised learning techniques from sklearn
to build predictive models and then use visualizations to better understand the data.
Some topics we'll explore are prediction error, regularization, and the tradeoff between prediction accuracy and model interpretability.
Continue reading
Scraping NBA shot data using python
Posted on Sat 10 October 2015 in blog • Tagged with python, NBA, api
My goal is to learn how to scrape data using python and do some quick data analysis.
This is my first time scraping from the web. I found this documentation extremely helpful. Here, I'm pulling in the shot log for Andrew Wiggins, the NBA Rookie of the Year for the 2014-2015 season.
Continue reading
Using python to get an intuition for multiple regression
Posted on Fri 02 October 2015 in blog • Tagged with python, data science, regression, stats
I want to get some intuition about regression models using multiple independent variables. More precisely, I am unsure if the relevant predictors would be better uncovered by multiple regression, or by pairwise analysis of all predictors against the response variable. So I'd like to use a dataset where I know the precise contribution of each predictor to the response variable.
Continue reading