Code Monkey home page Code Monkey logo

horsebet's Introduction

Horsebet

Having fun with making original problem originally stated by Enns and Ferenstein a little bit more interesting.

Original problem

Two gentlemen, Mr White and Mr Black are coowners of the horse named Jerome. Jerome takes part in n races during the season, each of the same length. Men decide to play a game to win a horse. During the season each player want to choose race result better than the opponent. After each race they meet and discuss. If both of the players hasn't made a desision yet, Mr White is first to decide whether to take the most recent result or not. If he rejects, the same option is given to Mr Black. Previously rejected results can not be reconsidered. When one player makes a selection, the other continues to play alone and try to pick the better result. As shown by Enns and Ferenstein, the probability of Mr White victory when n -> infinity is about 0.67.

Modified problem

After playing many games, having lost over 2/3 of them, Mr Black wants to change the rules to have the greater chances of winning. Now, at the beginning of the season, random barrier value is stated. Mr Black has two ways to win:

  1. Take the greater score than Mr White (as usual)
  2. Take a result close enough to the barrier such that $f(d)$ is greater than result selected by Mr White, where d is equal to distance of chosen score to the barrier. We consider two versions of f:
  • f(d) = |1 - d|
  • f(d) = (1 - d)^(n-1)

horsebet's People

Contributors

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