About 295,000 results
Open links in new tab
  1. Geometric Brownian Motion simulation in Python - Stack Overflow

    I am trying to simulate Geometric Brownian Motion in Python, to price a European Call Option through Monte-Carlo simulation. I am relatively new to Python, and I am receiving an answer that I belie...

  2. Beginner Python Monte Carlo Simulation - Stack Overflow

    Jan 28, 2019 · In the Python editor, write a Monte Carlo simulation to estimate the value of the number π. Specifically, follow these steps: A. Produce two arrays, one called x, one called y, which contain …

  3. Simple Monte Carlo Simulation in python - Stack Overflow

    Mar 11, 2019 · Simple Monte Carlo Simulation in python Asked 6 years, 9 months ago Modified 6 years, 9 months ago Viewed 4k times

  4. python - Plotting Pi using Monte Carlo Method - Stack Overflow

    Apr 30, 2017 · I can evaluate the value of pi using different data points by Python. But for each repeat I want to plot the scatter plot like this: My python code for finding pi using monte carlo method i...

  5. How to implement multiprocessing in Monte Carlo integration

    I created a Python program that integrates a given function over a given interval using Monte Carlo simulation. It works well, except for the fact that it runs painfully slow when you want higher l...

  6. python multiprocessing - How can I easily parallelize my Monte Carlo ...

    Mar 21, 2024 · for n in range(200): simulation_trial(a,b,c,d,n) but that ends up taking several hours to run. I know this should be an "embarrassingly parallel" task, but I can't seem to piece together how to …

  7. Speeding up simulation code & ideas to make it more efficient

    Dec 29, 2021 · I created a quick monte-carlo simulation which seems to do what I want (simple version below). import numpy as np import os import scipy.stats as sp sigma = 0.5 u = 10 mu = 100 no_sim …

  8. python - I want to code a monte carlo simulation to find the optimal ...

    Dec 20, 2023 · 1 I have a total number of samples which is equal to 10^6, but I do not want to test all of these samples, rather I want to determine an optimal batch size m using the monte carlo simulation …

  9. python - Monte Carlo Simulation to estimating pi using circle - Stack ...

    Aug 10, 2018 · Monte Carlo Simulation to estimating pi using circle Asked 7 years, 4 months ago Modified 6 years, 6 months ago Viewed 2k times

  10. python - Monte Carlo simulation of PI with numba is the slowest for …

    Apr 16, 2024 · As part of a homework exercise, I am implementing a Monte-Carlo simulation of pi in Python. I am using Numba to accelerate and parallelize the computation. From a previous test I …