Giter Site home page Giter Site logo

monty_hall's Introduction

Monty_Hall

Monty Hall problem generalization.

Here we can have as many doors and goats shown on the game as we wish.

The user can choose the number of doors, goats and simulations for every configuration. (n°_doors >= 2, 0<= n°_goats_shown <= 'n°_doors - 2', n°_simulations >= 1)

There are two main modes for the user to choose from: 'sampling' and 'graphical'. The sampling mode is very basic, here we have N iteratrions of the game and we see how the two players perfom under a certain set of doors and goats. One of the players knows the best strategy for playing this game works and always changes his/her first choice. The other always stays with the first door that he/she has choosen.

We have different graphical modes: Ngoats and Interval. In Ngoats we have the number of doors fixed; therefore, we change the number of goats after N simulations. In Interval we have the number of goats fixed (1 goat shown or 'n°_doors-2' goats shown) and we change the number of doors, beggining on a and ending on b (parameters passed by the user).

monty_hall's People

Contributors

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