# Tag Info

Accepted

### Parallel Mersenne Twister for Monte Carlo

Like you say, using the Mersenne Twister for parallel computations is almost always done incorrectly, as the correct method is tricky to implement. By far the easiest and best answer would be to move ...
• 2,483

### Maximizing unknown noisy function

There are several Bayesian optimization techniques you could try. Easiest are based on Gaussian process: Harold J. Kushner. A new method of locating the maximum of an arbitrary multipeak curve in the ...
• 860
Accepted

### Why the magnetisation shows abrupt behaviour for this 3D ising spin system

Your lattice consists of 5 x 5 x 5 = 125 spins, so your number of Montecarlo steps to reach equilibrium should be >> 125, because you randomly picking a site and flipping it, so random numbers should ...
• 276

### Python implementations of Gillespie's direct method

As part of the lab the developed and maintains StochKit. I am happy to hear that it is highly recommended in the previous answers. However, I wanted to update everyone. There already is a python ...
Accepted

### Mean-squared displacement in Monte Carlo studies

This is possible (see [1]) but uncommon, as it requires Monte Carlo moves that alter the current conformations by a very small perturbation. In that setting of "small" Metropolis MC moves, it is ...
• 3,954

### Mean-squared displacement in Monte Carlo studies

It is in some cases possible to map the dynamics obtained in MC simulations to other (more realistic) dynamics, especially for the case of dense colloidal suspensions. The following two papers talk ...
• 677
Accepted

### Absence of Discontinuity in Specific Heat Plot Simulated by Ising Model

I sincerely thank @Daniel Shapero for directing me towards this answer. Discontinuity in the specific heat or susceptibility curves to be visible significantly, you should take much more finer ...
• 276
Accepted

### Use Monte Carlo integration to compute the volume and centre of mass in Python

Here is a corrected and slightly improved code, set up here for calculation of the full torus volume to verify the result. ...
• 2,218

### How to sample points in hyperbolic space?

I'm in the middle of doing this for myself. I think the most appropriate analogue to the Gaussian would be the heat kernel in hyperbolic space. Fortunately, this has been figured out before: https://...

### What are the tradeoffs of using statically allocated arrays vs. pointers and dynamic allocation?

Arrays allocated with brackets such as int s[i][j] are fixed to be of size i x j, whereas arrays allocated with new and int *s / int **s are not necessarily uniformly deep and can be resized with ...

### Efficient Quadrature Methods for Indicator Functions?

I found that the grid summing method beat out both the Cubature package and the adaptive Monte Carlo schemes from the GSL package (standard, VEGAS, and MISER) when it came to both speed an accuracy (...

### Monte Carlo Metropolis method - trial step algorithm

Well I guess that this question could take place in both computational science and physics, depending on the kind of physicist or computational scientist stubbling upon it. Yet for your answer, as I ...
• 323
Accepted

• 143

### Calculation of Mean Square Displacement for Brownian dynamics system with Lennard Jones interactions in python3

This will not an answer to your problem, more an excessive comment and few things you might consider, when writing such code even for self educational purpose. Constants You asked whether your ...
• 1,285
Accepted

• 3,954

### Metropolis Monte Carlo integration of Area with unknown normalization

I don't think you're missing anything, MCMC is used to sample points from a given distribution, known up to a normalization constant, and to evaluate expectations w.r.t. that distribution (not ...
• 11.4k
Accepted

### Use of Metropolis-Hasting algorithm for gathering statistics

Your post actually contains two questions: 1) What should you calculate This first question will be answered by defining what you are studying. If it is the magnetic properties of your system (usual ...
• 323