Monte Carlo simulation

0.0(0)
Studied by 0 people
call kaiCall Kai
learnLearn
examPractice Test
spaced repetitionSpaced Repetition
heart puzzleMatch
flashcardsFlashcards
GameKnowt Play
Card Sorting

1/6

encourage image

There's no tags or description

Looks like no tags are added yet.

Last updated 11:36 PM on 9/21/26
Name
Mastery
Learn
Test
Matching
Spaced
Call with Kai
Chat

No analytics yet

Send a link to your students to track their progress

7 Terms

1
New cards

Monte Carlo simulation

still in the probability side

method of generating random data using the rules of probability

<p>still in the probability side</p><p>method of generating random data using the rules of probability </p>
2
New cards

what is randomness

anything that isn’t perfectly predictable is subject to randomness, even things that are somewhat regular

3
New cards

random variable

any variable defined by:

  • a domain: possible values it can take on

  • function: way of mapping possible values onto numerical outcomes

  • probability distribution: rules governing how likely each numerical outcome is


4
New cards

random number generation in R

typically start with r

simulate single Bernoulli trial: rbinom(n = 1, size = 1, prob = .5)

n is the number of “draws”/samples taken

size number of trials per draw

prob probability of success on each trial

5
New cards

ifelse()

takes a vector and checks if a test condition is met (yes or no)

ifelse(test = event == 1, yes = "heads", no = "tails")

6
New cards

Monte Carlo procedure

proposed by Stanislow Ulam, John von Neumann and Nicholas Metropolis in the 40s

  1. define domain

  2. define probability distribution

  3. draw random numbers

  4. perform computation on random numbers

  5. repeat many times

  6. analyze distribution of computation outputs from each iteration


7
New cards

for loop

repeats a procedure for a finite number of times, each iteration is indexed

indexed outputs can thus be saved and analyzed after loop is complete