Monte carlo Definition and 128 Threads

  1. chimath35

    Monte Carlo Integration for ∫ xdx/(2+3x)^2 with Bounds of 0 and 1

    Homework Statement Perform a Monte Carlo integration of: ∫ xdx/(2+3x)^2 with the bounds of 0 and 1 on the integral You should use 10 trials of at least 100 data pairs per trial and average the result I guess I am supposed to generate a x and y random number between 0 and 100 and if the...
  2. R

    Determine the number of required Monte Carlo iterations

    I am performing a Monte Carlo simulation of a weapon system to determine the effect of variations in weapon characterisitics on the accuracy of the weapon. For example, I might vary the muzzle velocity of the weapon and measure the angles between the aim point and the impact point (i.e. miss...
  3. Adoniram

    Monte Carlo problem - mean free path to a star

    Homework Statement (We are to solve this with Monte Carlo programming. Based on the universe from Olber's paradox) Suppose you are in an infinitely large, infinitely old universe in which the average density of stars is n = 10^9 Mpc^−3 and the average stellar radius is equal to the Sun’s...
  4. J

    Teaching finance with Monte Carlo simulation

    Some of the social sciences suffer from "physics envy". This malady causes educators to inject an unnecssary amount of mathematics into the curriculum as a way of gaining scientific letgitimacy. Sadly for most undergrads, the math actually gets in the way. I wrote a paper in which I describe the...
  5. S

    Monte Carlo textbook suggestion?

    I am looking for a good text for running monte carlo simulations. I have taken a monte carlo course for particle transport, but I need something more general. Any suggestions? (Using C++/C)
  6. gfd43tg

    Computing integral using Monte Carlo method

    Homework Statement Complete the following MATLAB function that computes the integral ##\int_{-2}^{5} f(x)dx## of the function ##f(x)## plotted in the figure below, after N trials using a Monte Carlo method. Take all the required numerical inputs from the figure shown below. Hint: Generate a...
  7. P

    NPT monte carlo simulation pressure calculation

    Hello all, I have been working on an NPT monte carlo simulation. I would like to know how I can measure the instantaneous pressure of the system at each monte carlo step?
  8. S

    Monte Carlo Simulation: Exploring Error, Accuracy and Variance

    Hello, 1. Does anybody know which book that gives a good explanation about monte carlo simulation? I've read many tutorials, it mentions about its error, accuracy, variance. But, many of them don't actually show, how to perform monte carlo simulation. Questions 2. Is it actually the same...
  9. A

    How do they simulate the g4numi beamline and particle interactions?

    The Monte Carlo simulation is a very important tool in particle physics specially to tune in the preciseness of the real time experiment. In particle physics, I had an opportunity to work on the data analysis of neutrino flux produced from the g4numi (the Neutrino beam from main injector, in...
  10. P

    First passage time for Kinetic Monte Carlo model

    Hi all! I have a problem on finding the first passage time for kinetic monte carlo model. Suppose I have a linear kinetic model for n states: S1<->S2<->S3<->...<->Sn where all the rate constants k_ij for transition between any two states are known. Is there any general way to find out the...
  11. Hercuflea

    Monte Carlo Integration Books for Senior Undergrads

    First let me say I apologize for posting in the wrong subforum. But for some reason I am not allowed to post in Math and Science Learning materials, maybe a glitch? Please move this thread there if possible. I am looking for a good book that will teach me Monte Carlo Integration at a senior...
  12. Jameson

    MHB Monte Carlo method to generate standard normal

    Problem: I need to use the Monte Carlo method to generate the mean, variance and kurtosis of the standard normal distribution. It has to be coded in Matlab, so there are two parts to this question: 1) The theory 2) The code Any help on either is appreciated. My attempt: To find $E[X]$ for a...
  13. L

    Critical exponents in Monte Carlo simulations

    In Monte Carlo simulation of classical spin systems I have a trouble to determine critical exponent ##\alpha##. ##M \propto L^{-\frac{\beta}{\nu}} ## ## \chi \propto L^{\frac{\gamma}{\nu}} ## ## C_V \propto L^{\frac{\alpha}{\nu}} ## Is this correct? From that slope of the curve ##\ln Cv## as a...
  14. T

    Understanding Quantum Monte Carlo Methods: Clearing up Doubts on Their Use

    Hi, I understood the formal derivation of various QMC methods like Path Integral Monte Carlo. However, at the end of the day I still have a doubt on how to effectively use these techniques. Given that we can interpret \beta in the quantum operator e^{-\beta\hat{H}} both as an inverse...
  15. J

    Monte Carlo in high energy physics

    Why is it necessary to use Monte Carlo methods in high energy physics? There is Feynman calculus to evaluate matrix elements for various interactions and the relativistic Fermi's Golden Rule for decays and scattering to obtain a decay width or differential cross section. What are we...
  16. P

    NVT/NPT Monte Carlo Simulation - Thermodynamics Explained

    Hello, I am working on a MC simulation of a solid using NVT ensemble with Metropolis algorithm. The botlzman factor is of the form exp(-βΔU(r1,r2...rN)), where U is just the potential energy. From thermodyanmics, dU=dq+dw (dq is the amount of heat put in, and dw is the amount of work done...
  17. H

    Why do we use Monte Carlo in order to calculate the VEV?

    Homework Statement It's not homework. It's just a simple question occurred when I'm reading Monte Carlo method in QFT by Colin Morningstar. Of course, I didn't study the QFT earlier. I'm just a regular(or retarded) undergraduate student and I just wanted to learn MCMC technique, and hoped...
  18. M

    Transition Matrix ( Markov Chain Monte Carlo)

    1. -Find a regular transition matrix that is not time reversible, i.e., doesn't satisfy the balance equations? 2.Pi,j=0≠Pj,ifor some i and j My understanding from Markov Chain Monte Carlo is that for the transition matrix to be regular the matrix has to have all positives entries and each row...
  19. M

    Markov Chain Monte Carlo question

    I was wondering if anyone could help me with this problem dealing with Markov Chain Monte Carlo -Find a regular transition matrix that is not time reversible, i.e., doesn't satisfy the balance equations? My understanding from Markov Chain Monte Carlo is that for the transition matrix to be...
  20. clope023

    Python Monte Carlo Python Plotting Question

    If this is better served in a section like Nuclear Engineering please let me know. Homework Statement Simulate the projection of a radiation source onto the plane of a collimated detector. Check if said projection is circular. The attempt at a solution What I want to do is...
  21. L

    Ressources for becoming familiar with Monte Carlo methods in stat mech

    Hi, I will start working on stat mech problems with use of Monte Carlo methods for a summer internship. I don't have more details about what I'll be doing for now but I'm already looking for resources for becoming familiar with the tool. I already used Monte Carlo algorithms to compute high...
  22. M

    Monte Carlo Step: Definition & Examples

    What is referred as one Monte Carlo step. In all books, papers people is written that was performed ##5 \cdot 10^{6}## MCS on all system sizes. Or the time is measured in MCS. But what is referred as one MCS? For example in MC simulation of Ising model what is a one MCS?
  23. J

    Monte Carlo Simulation of a liquid - Need help computing g(r)

    EDIT: I'm not in my sharpest moment. I just found a bunch of posts that discuss this. I'll read them and update this post if I find an answer. I'm working on a hard-sphere MC simulation (for a class). I want to compute the radial distribution function g(r). To put you in context, as to my...
  24. K

    Nucleation and growth in a 2D Ising Model with Monte Carlo Simulation

    I'm currently working on a project for a code that does umbrella sampling of a 2-D Ising model [size LxL of a magnet (analyzing up or down spins)]. The next step is to take my code to analyze a nucleation region and its growth by varying the temperature above critical. Before I even attempt to...
  25. T

    Monte Carlo neutron slab model

    Hi All, Trying to write a simple Monte Carlo code for mono energetic neutrons in a steady state slab geometry in one-dimension. Their is an incident source on the left hand side of the slab and its of length L. I understand how to work out the path length and scattering angles based on...
  26. M

    Understanding the Role of Uniform Random Variables in Monte Carlo Simulation

    Hi all! I started learning about Monte Carlo Simulation. However, one thing that I don't quite get is that why for generating any random variable, we have to first generate a Uniform RV? What is the reason behind that? Thanks!
  27. R

    Writing a method of integration using the Monte Carlo method.

    Homework Statement So the problem is to write a method/function in Java to integrate x2 from a = 1 to b = 2 using the Monte Carlo method. Basically: 1. Generate random points in the range of (0, M) and domain of (a, b), where M is a y value greater than the maximum of f(x) = x2 within (a...
  28. E

    Using theMatLab Monte Carlo method for volume of CN tower

    Homework Statement I have to do a monte carlo approximation for the Volume of the CN tower for my assignment but I don't know what size to make the cubes and for the part below the main pod I do not know how to create a tapered tower for loop that gets smaller with each loop so that the...
  29. B

    Question about a monte carlo simulation of car travel patterns

    Hi there, I have a question about probability, conditional expectations, copula functions and their use in a Monte carlo simulation. I'd appreciate any help or comments that you can offer. I'll describe briefly what I am trying to simulate and I'll ask the specific question at the end...
  30. maverick280857

    Ising Model Monte Carlo - interpretations

    Ising Model Monte Carlo -- interpretations Hi, I am trying to solve and understand the classical Ising Model through a classical Monte Carlo simulation. I notice that if I begin with a ferromagnetic initial state, then the magnetization is more or less constant for a wide range of temperatures...
  31. maverick280857

    C/C++ Visualizing the 2D Ising Model with Monte Carlo Algorithm

    Hi, So I'm trying to solve the 2D Ising Model using a simple Monte Carlo algorithm, for small square lattices, imposing periodic boundary conditions. Before I compute any thermodynamic quantities though, I want to study the energetics of the system with only nearest-neighbour interactions...
  32. M

    Question about discrete Monte Carlo Summation

    Hello all, I'm aware of the Monte Carlo Summation method in discrete spaces, where you can approximate a very long summation over the entire space by a shorter one with only a few randomly selected terms from the original summation (weighted by the inverse probability density of them being...
  33. M

    Question about discrete Monte Carlo Summation

    Hello all, I'm aware of the Monte Carlo Summation method in discrete spaces, where you can approximate a very long summation over the entire space by a shorter one with only a few randomly selected terms from the original summation (weighted by the inverse probability density of them being...
  34. L

    Statistical uncertainties Monte Carlo

    Hi! I'm newbie in Monte Carlo. My question concerns the statistical uncertainties of my simulations. Let's say that the result of my Monte Carlo is a certain distribution A (e.g. number of particles as a function of the depth in a target) and I have run NA events to generate that...
  35. C

    Automotive Rear disc brakes on 88 monte carlo racecar problems

    Have a 88 monte carlo racecar, reciently installed a 9in ford with disc brakes using metric calipers, can't use aftermarket master cylinders or proportonal valve, an have a problem with no rear braking, tried a corvette master cyclinder but didnt seem to help, any ideas??
  36. K

    Free Energy calculation in Monte Carlo simulations

    Hello everyone, I am currently working on a classical MC simulation of helimagnets and I try to calculate the experimentally measured phase diagram. Up to now I am able to reproduce a large piece of the phase diagram by using a single site Metropolis update and simulated annealing...
  37. M

    Calculating pi with Monte Carlo integration

    Hello! I am taking a computational physics class this semester and just got out of a test. One of the questions provided us with 10 random numbers and asked us to approximate pi. The method I came up with was realizing that \int_0^1 \sqrt{1-x^2} dx = \frac{\pi}{4}, and then performing this...
  38. N

    Developing Direct Simulation Monte Carlo and I have problem

    Please understand my low command of English. I'm developing Direct Simulation Monte Carlo and I'm now validating. To validate my DSMC code, I'm checking the viscosity in Couette Flow. Simulation Condition is, Kn = 0.0056(Near Continuum) and Gas is Nitrogen, Temperature is 273K. Nitrogen...
  39. C

    How can i calculate length of a rod with Monte Carlo method?

    0_______._________________L L/3 Suppose that there is a rod has length L. How can you calculate some part of its length from starting point (for example from 0 to L/3)?
  40. C

    How to use monte carlo method : importance sampling ?

    Hello.I have a little problem with applying a Monte Carlo method : Importance Sampling.I need to calculate : integral(0 to infinity) integral(0 to infinity) 1/(2 * pi * sqrt((1 + x^2 + y^2)^3))dxdy Can somebody help me ? Thanks in advance.
  41. W

    Producing Xi squared distribution by Monte Carlo

    Hi all, I am using a Xi squared test to for independence of two sets of categorical data. So let's say I have a vector x1 of 1s and 0s and x2 of 1s and 0s, and I am testing to see if x1 and x2 are independent. and let's say, for my given data, with n = 200, I have x1=1...
  42. W

    Mathematica Mathematica GPU quasi monte carlo integrals using CUDA

    hello all! I just got a new computer with an Nvidia card, and am now able to do some GPU parallel processing inside mathematica using CUDA. My main interest is in taking tons of moderate accuracy (3-4 digits) numerical integrals. I've been using QMC in MMA and that's been working well...
  43. M

    Programs for Grand Canonical Monte Carlo

    Hi all, I need to perform Grand Canonical Monte Carlo simulation. Does anybody knows any of this? I used Music (http://www.iec.northwestern.edu/software.php), but It cannot create Potential Map for my very large MOF.
  44. I

    Monte Carlo Sims - Strange life insurance policy

    Homework Statement 5 people of ages (30M, 32M, 37F, 40M, 42F) enter into a life insurance contract where the one that outlives the others, receives a one time benefit of $1M, at the time of the penultimate death. What are the fair premiums (different), for each policy member?Homework Equations...
  45. G

    Uncertainty calculation for calculating pi using Monte Carlo integration

    Homework Statement I wrote a code that calculates pi using accept&reject monte carlo integration. It picks -1000000000 pseudo-random points (x,y), and counts the number of points that fall within a unit circle (let's call that number k). The ratio of k/ N (N = Number of trials = 1000000000)...
  46. R

    Monte carlo integral evaluation

    Hello I need to evaluate Gaussian integral K=1/(sqrt(2pi) int(-infinity +infinity) x^2 exp(-x^2/2) dx by using K=E[X^2] ∼Kn=1/N sum(x^2) where x follows a normal distribution. So far I have written this: N=1000; for i=1:n x1(i+1)=x(i)+1/N*random('normal',0,1).^2 end x1 but I am...
  47. T

    Complex Monte Carlo Integration

    Hello, I am trying to write a code taking path integrals in C++, using GNU Scientific Library. GSL is mainly written for C and does not include classes and other object-oriented language stuff, but it's also compatible with C++. Thus, what I first tried was making use of classes with GSL...
  48. S

    How can a double integral be used to estimate pi using Monte Carlo integration?

    Homework Statement I am supposed to calculate/estimate pi using a Monte Carlo method. This is of course trivial: create N uniformly distributed random pairs (x,y) in [0,1]^2 and check how many, M, that have x^2+y^2<1. Then M/N=pi/4. Now, the strange thing is that I am not supposed to do it...
  49. I

    Monte Carlo simulaition with Tspice

    Hi, I have a small problem with running a Monte Carlo simulation in an exercise I have. We are using Tanner EDA to simulate our circuits, and we have to change the value on an inductor while running a Monte Carlo simulation. Is there a way to do this? Whats the proper command to change...
  50. 8

    "Monte Carlo Methods for Finding y(x)

    here is the background information before the question: For a function of x, y(x), the two probability distributions must satisfy \left|p_{y}(y)dy\right|=\left|p_{x}(x)dx\right| and therefore p_{y}(y)=p_{x}(x)\left|\frac{dx}{dy}\right| where...
Back
Top