Giter Site home page Giter Site logo

jk1mm / moneyball-app Goto Github PK

View Code? Open in Web Editor NEW
5.0 1.0 6.0 37.19 MB

Realtime MLB Insights using Streamlit

Home Page: https://share.streamlit.io/jk1mm/moneyball-app/main/app.py

License: MIT License

Python 100.00%
mlb moneyball baseball-analytics streamlit python baseball webapp

moneyball-app's Introduction

M⚾NEYBALL

~ Web analytics application that provides the 👌 insights for your MLB team ~

:Language: Python Code style: black


⭐ All-in-one platform for extracting Major League Baseball's team insights. Moneyball provides quick access to baseball-reference data and provides intuitive team rankings based on the following categories:



Usage

Navigating the Tool:

  1. Select a Season and Metric of interest. This will initially generate some data of team statistics relevant to the selected values.
  2. Choose a team in the Select Team dropdown to view the overall and category-based rankings. Details of the category scoring is explained in Categorization Logic.

Categorization Logic

Currently, there are 4 Metric available. Here is a breakdown of the category-based rankings available for each:

1. Batting

Category Description Variables Involved
Hitting Ability to get base hits BA
Power Ability to hit for power HR
On Base Ability to get on base OBP
Base Stealing Ability to steal bases SB CS
Efficiency Ability to maximize run scoring opportunities LOB R HR
OVERALL Runs scored per game R/G

2. Starting Pitching

Category Description Variables Involved
Winning Ability to keep the game at a winning state Wgs Wlst Lsv
Quality Start Ability to have quality starts QS%
Stamina Ability to accumulate large pitch counts 80-99 100-119 ≥120
Efficiency Ability to accumulate innings IP/GS
OVERALL Pitcher outing score GmScA

3. Relief Pitching

Category Description Variables Involved
Saves Number of saves SV
Holds Number of holds Hold
Clean Closes Save rate SV%
Win %** Ability to win as a result of relief Wgr Lgr
Game Pressure Pressure faced by pitchers aLI
OVERALL** Ability to strand runners on base IS%

4. Fielding

Category Description Variables Involved
Defensive Efficiency Balls in play converted into outs DefEff
DRS Relative number of defensive runs saved or cost Rdrs/yr
Fld% Standard fielding percentage Fld%
Good Plays Good Plays/Misplays runs above average Rgood
DP Number of double plays completed DP
OVERALL** Total Zone Runs: Considering outfield arms, infield double play induces, catcher efficiency Rtot/yr
  • Metrics in ** needs to be re-evaluated for more proper evaluation.

Setup

Common Issues

SSL Certs

On Mac, go to Applications/python3._ and double click Install Certificates

moneyball-app's People

Contributors

jk1mm avatar

Stargazers

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