Skip to content

Instantly share code, notes, and snippets.

@exaucae
Last active January 10, 2021 20:23
Show Gist options
  • Save exaucae/858701a8eb91b9ae78e9ff33c2b7c580 to your computer and use it in GitHub Desktop.
Save exaucae/858701a8eb91b9ae78e9ff33c2b7c580 to your computer and use it in GitHub Desktop.
monte-carlo-simulation
"""
we tackle the acceptance rejection alogorithm with the beta law
It is well established that the rejection method allows to simulate data
of the normal law N (0; 1) according to a certain algorithm.
"""
# We illudtrate how to calculate a double integral with Monte Carlo's method
Display the source blob
Display the rendered blob
Raw
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
# Let's estimate gauss integral via Monte Carlo' method.

Using python capabilities, we are simulating a set of 6 mathematical problems resolvable with Monte carlo's methods. They take advantage of the strong law of big numbers. The work on these examples is on progress. Fell free to leave a comment if you want.

# Monte carlo's method appliyied to Markov's chains
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment