Giter Site home page Giter Site logo

worldcup-2022's Introduction

GV2022 World Cup Predicitons

I entered a contest to try and predict the 2022 Fifa World Cup with very little prior knoweldge. You can read a blog post about my attempt here: https://philswatton.github.io/r/2022/11/21/world-cup-forecasting.html

Files

  • 01_elo.R: Processing of data, computation of elo ratings for the teams (see note below on data)
  • 02_monte-carlo.R: Monte Carlo simulation of the tournament
  • 03_results.R: Producing outputs from the simulation into nicer formats

Data

As in the code, I stored the files from these in a 'data' folder. If using this repository, you will have to download the data and create this yourself. (Sorry!)

I have however included data I generated myself. So you'll need to reproduce the data folder for script 01, but

Results

  • results.RData: Various R objects encoding simulation results used in script 03
  • results/results_01_group_fixtures.csv: Group stages game fixture probabilities
  • results/results_02_expected_group_order.csv: Group stages order predictions and probabilities (for most likely order)
  • results/results_03_expected_team_performances.csv: Expected team performances given in probabilities for reaching the last 16, reaching the quarter finals, reaching the semi finals, reaching the final, and winning overall
  • HTML versions of results 02 and 03 are also available!

worldcup-2022's People

Contributors

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