Giter Site home page Giter Site logo

Monty Hall

My attempt at simulating the Monty Hall game show problem in both R and Python.

Both R and Python scripts follow a functional approach.

However, in R, I actually simulated the doors and Monty Hall closing them. In Python, I took a more direct approach by inverting the initial result on players switching. This way, the R version of the code is more flexible. For instance, in case someone wants to change the number of (wrong) doors Monty Hall opens.

I visualized the cumulative wins a player would have if he/she'd consecutively play against Monty Hall.

In R, I visualized these cumulative wins using ggplot2. For Python, I used matplotlib.

50 games of Monty Hall simulated in R

50 games of Monty Hall simulated in Python

Paul van der Laken's Projects

2018_widm icon 2018_widm

Analysis of twitter data around Wie is de Mol? 2018.

active-learning icon active-learning

Visualizing the performance and inner workings of various (active) machine learning models with different intermittent labelling strategies.

baccarat icon baccarat

Baccarat game in python. Small first personal project.

corrtable icon corrtable

Publication ready correlation matric - packaging up for CRAN

free_r_tips icon free_r_tips

Free R-Tips is a FREE Newsletter provided by Business Science. It comes with bite-sized code tutorials every Tuesday.

ml4selection icon ml4selection

Simulating the implications of a Machine Learning approach to Employee Selection

ppsr icon ppsr

R implementation of Predictive Power Score

standards icon standards

Repository with standard code bits I often use

vacancy_miner icon vacancy_miner

quick attempts at scripts mining vacancy texts of job market websites

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.