Git Product home page Git Product logo

stat-139-final-project's Introduction

#Final project for Statistics 139, Summer 2015

This code is part of a submission for a group final project for Statistics S-139: Introduction to Statistical Modeling, offered during Summer 2015 at the Harvard Summer School. The goal of this project was to predict the outcome of a game with goal difference as the response variable (as this is a course in linear regression, not logistic regression) and intuitively selected predictor variables.

I split the results from the 2011/2012 season of the English Premier league into training and test data sets, with the first half of the season representing the training data set and the second half of the season representing the test data set. I then built two models using stepwise regression in the forward and backward directions.

I began by creating an intercept-only model and a full model without interaction terms, and used these as the starting points for these stepwise regressions. I chose to exclude the interaction terms in order to avoid over-fitting and the introduction of multicollinearity issues into the model. This was because some of the variables were highly correlated (for example, offensive strength and chances created). I then proceeded to select one model based on AIC value, since the R-squared values for both models were approximately equal.

The results of the prediction are then shown with the observed values on a graph to show the differences between the predicted and observed goal difference.

Next step: The next step would be to select the predictor variables with a more reliable and robust method, perhaps by including all of them in the initial full model, or using another method such as k-fold cross-validation. As I continue to take courses on multiple regression and machine learning, I should be able to improve on this model.

Visit http://rpubs.com/RNyameke/premleaguepred for an html report

stat-139-final-project's People

Contributors

rnyameke avatar

Watchers

 avatar

Forkers

hillash

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.