Skip to content

Instantly share code, notes, and snippets.

View caspercasanova's full-sized avatar

Nicholas Lopez caspercasanova

View GitHub Profile

Prompt 1: The Monty Hall Problem

Suppose you’re on a game show, and you’re given the choice of three doors: Behind one door is a car; behind the others, goats. You pick a door, say door 1, and the host, who knows what’s behind the doors, opens another door, say door 3, which has a goat. He then says, "Do you want to pick door number 2 or stick with door number 1?"

1. What is your immediate instinct?

Is it to your advantage to switch your choice or stick with it? Discuss/explain why.

I saw in a movie that you should always change your choice. The reasoning is that you start with a $\frac{1}{3}$ chance of picking the right door, but when the host selects a door and gives you an answer, the other door's chance of being the car increases to $\frac{2}{3}$ . My immediate instinct would say that when the door is opened that the chances of being correct are 50%-50%, but in reality its 33.3%-66.6%.

2. Simulation

Assume you’re on t

Prompt 1

  1. Describe the distribution of San Antonio’s income data, as depicted in the histogram.
    Be sure to attach the histogram image here. The following questions should guide your description (Shape, Center, Spread, Outliers): image

    The histogram is skewed to the right.

    • Peaks: How many peaks does the histogram have, and where are they located?

There are 4 peaks.