Giter VIP home page Giter VIP logo

montyhallproblem's Introduction

This program demonstrates the Monty Hall problem.

The Monty Hall prolem goes like this:

You are a contestant on a game show. The game you are playing is simple. There are three doors. Behind one of the doors is a shiny new sport's car. Behind each of the other two doors is a goat. The host asks you to pick: "door one, door two or door three?" Let's suppose you pick door one, but before it's opened, the host will open another door. Knowing which door the car is truly behind, the host opens door three revealing one of the two goats. "Now", says the host,"There are still two doors closed. The car is either behind door one - which you have chosen - or door two. Before we open another door, I'm going to give you a chance now to change from door one to door two. It's completely up to you!"

Sould you switch doors or should you stay with your original choice (in this case door one)? At first glance the problem seems simple. There are two doors remaining, the chance of choosing right should be 50/50 right? Well...not exactly.

This program will demostrate that, in the long run, you are better off switching. You, in fact, have a better than 50/50 chance if you switch doors after the host reveals the first goat. But why?

montyhallproblem's People

Contributors

gsc229 avatar

Watchers

James Cloos avatar  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.