GithubHelp home page GithubHelp logo

jai-agrawal / nba-relevant-stats Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 0.0 700 KB

Investigating the correlation of box stats in the NBA using Pearson Correlation Coefficients.

Python 100.00%
data-analysis nba-stats pearson-correlation-coefficient

nba-relevant-stats's Introduction

Evaluating NBA Box Statistics for Their Relevance to a Game's Outcome

While in the past I may have elected to predict a game's outcome using merely the final or 3rd-quarter score, over the course of this project I decided to investigate the correlation between these statistics.

Data Used

Refer to this repository to access the data used for this project.

Working of the Code

As shown in main.py, the overall flow involves itself with the loading of the data as a pandas DataFrame, and the further plotting of the Pearson correlation matrix using matplotlib and seaborn. The following is the correlation matrix as plotted: relevant_stats_corr_matrix

Evaluation

Among the stats which are highly correlated, is of field-goal percentage and total points (for both home and away, as would be intuitive). Their correlation stands at 0.67. Secondly, we have assists and total points - which have a corr. matrix of 0.59 and 0.57 for home and away respectively. Consequently, assists and field-goal percentage have a correlation of 0.55 and 0.52 for home and away.

nba-relevant-stats's People

Contributors

jai-agrawal avatar

Watchers

 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.