Coder Social home page Coder Social logo

simulate-horsey-game's Introduction

Simulate Horsey Game

A just-for-fun project that simulates our family's horsey game of chance. A blog article about this project can be found here

Table of Contents

  1. Project Motivation
  2. File Description
  3. Libraries Required
  4. Summary of Results
  5. Licensing and Acknowledgements

Project Motivation

Everybody claims to have witnessed horsey 2 (one of the long shots) winning a round at one time or another. I wanted to calculate the odds of each horse winning as well as the distribution of pot sizes.

File Descriptions

README.md - This file, describing the contents of this repo

.gitignore - The gitignore file ignoring mainly photos and images to be used in the blogpost.

simulate_horsey_game.ipynb - Jupyter Notebook file containing simulation and visualizations.

Libraries Required

numpy, pandas, matplotlib

Summary of Results

Horse #7 is the most likely to be scratched and horse 2 (and 12) is the least likely. Interestingly, as you move to each new scratch, the probability of choosing a 7 decreases slightly, and the probability of choosing a 2 increases slightly. This is because each successive scratch must be different than ones previous chosen, so if a 7 is chosen as the first scratch, it cannot be chosen for the other scratches.

Despite the higher chances of a 7 being chosen as a scratch, #7 still remains the most likely horse to reach the end with a 16% chance of winning, while horse #2 has 0.7% chance of winning.

The minimum pot size is $2.1 set by the fact that all the scratch cards in people’s hand get paid before the round begins. The median pot size is $4.80, and with the histogram being slightly right-skewed, with the highest pot size being $13.55.

Licenses and Acknowledgements

Thanks to my family for prompting the idea for this project!

simulate-horsey-game's People

Contributors

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