# A Concise Statistical Proof of the Monty Hall Problem in R

**Abstract**

## This code is a concise demonstration of the famous probability scenario, the "Monty Hall Problem" in R. The focus of this proof is the construction of the code, not rigorous proofcraft (which is easily found online).

## A contestant on a game show is asked to choose one of three doors. Behind one door is a prize, and behind the other two are nothing. After choosing a door, the game show host opens one of the remaining doors - behind which is nothing. The contestant is asked whether or not they'd like to switch to the remaining door, or keep their original choice.

## Counter-intuitively, it is always to the contestant's advantage to switch doors.

## As of May 3rd, 2018, this code is positively rated on Stack Exchange and has been favorited by users.

### Author(s)

## Wyatt "Miller" Miller

# Similar Projects

All Projects

Non-Parametric Bootstrap in R With Correction for Bias and Skew

CodingMillerUniversity of Colorado DenverCoding, Statistics, Mathematics, Probability, R, Proofcraft, All ProjectsComment