Coder Social home page Coder Social logo

1noobdev / tennis-prediction-common-opponents Goto Github PK

View Code? Open in Web Editor NEW
3.0 1.0 1.0 237 KB

Tennis Probabilities Calculator based on the Common Opponents Theory

Home Page: https://tennis-predictor.streamlit.app/

License: MIT License

Python 100.00%
betting betting-models betting-odds streamlit streamlit-application tennis-score

tennis-prediction-common-opponents's Introduction

Tennis Predictor (Web UI)

Go to the Tennis Predictor Website. Select player A and provide the odds offered on the exchange/bookmaker, and do the same for player B. You can select a timeframe that will be used for the analysis, defaults to 2023.

Main Results

Within the Main Results tab you will see the % probability of each player to win, based on the common opponents they had in the timeframe selected. The bet sizes are calculated using the Kelly Criterion formula.

Probability Screen

Detailed Analysis

The Detailed Analysis tab is added for extra insights on how the statistics have been concluded to their results. You can see how many common opponents each player had, in the given timeframe, but also all matches they played including scoring.

Detailed Stats Screen

CLI usage

In order to use it first extract the zip, then run the command python -m pip install -r requirements.txt in a terminal in the directory of the code. You can bring up the help as to how to run the code by calling python predictor.py -h

A couple of examples: For probability of Roger Federer beating Novak Djokovic, run python predictor.py men "Roger Federer" "Novak Djokovic" (tip: adding '-vv' at the end will print on the screen some progress information, as the calculation can take some time (especially if downloading the files for the first time), and this way you have an idea of what's going on. So in this case it would be python predictor.py men "Roger Federer" "Novak Djokovic" -vv

For Serena Williams beating Venus Williams, it would be python predictor.py women "Serena Williams" "Venus Williams" -vv

Be careful with the case of the text as I haven't implemented any checks. So "serena williams" would not work.

Related theory

A common-opponent stochastic model for predicting the outcome of professional tennis matches by William J. Knottenbelt, Demetris Spanias and Agnieszka M. Madurska. Department of Computing, Imperial College London, South Kensington Campus, London, SW7 2AZ, United Kingdom.

Source: Science Direct

Datasets

tennis-prediction-common-opponents's People

Contributors

1noobdev avatar dependabot[bot] avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar

Forkers

mainfoxop

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.