Questions on Monte Carlo methods, methods that require the repeated generation of (pseudo-, quasi-)random numbers for computing their results.

learn more… | top users | synonyms

1
vote
1answer
39 views

Question about the Monte Carlo Algortihm

I was reading the Monte Carlo algorithm for finding the area under a curve, say $y=f(x)$. The algorithm considers, $0\le f(x)\le M$ over the closed interval $a\le x\le b$. My question is,that why is ...
1
vote
1answer
169 views

Alternatives to Monte-Carlo simulation

Imagine I have a model of economy of a region, which consists of several companies, importers and population. Let's assume that all local companies in question produce food and agricultural ...
1
vote
1answer
166 views

Three ideas of perfect sampling

From David J.C. MacKay's Information Theory, Inference, and Learning Algorithms 32.2 Exact sampling concepts Propp and Wilson's exact sampling method (also known as "perfect simulation" or ...
1
vote
1answer
519 views

Exponential Probability Monte Carlo simulation

I need to write a Matlab program to estimate the quantity $\theta = \mathrm{Pr}(X < 1)$, where $X$ is an exponential random variable with mean $1$. I am doing this for multiple monte carlo ...
1
vote
1answer
26 views

Mistake in generating random numbers - no irrational ones

Hi I just wondered if the probability densities have to be corrected when using them on a PC since the number representation is not at all continuous. So we cant simulate any irrational numbers and ...
1
vote
1answer
16 views

Efficient methods for drawing random numbers and Monte Carlo for Tsallis q-Gaussians

I would like to draw random numbers from the q-Gaussian used in "Tsallis statistics." This is specifically the distribution $$ f(x) = {\sqrt{\beta} \over C_q} e_q(-\beta x^2) $$ where $$ e_q(x) = ...
1
vote
1answer
35 views

Equivalence of Probability spaces. Monte carlo integration

Pondering about the independence of dimension of Monte Carlo Integration, I came up with the following explanation: An integral over a square is not harder, thus has the same rate of convergence, ...
1
vote
2answers
104 views

Approximating an integral using Monte Carlo Method

I wrote a solution for Calculate the value of the integral I = $\int_0^\pi sin^2(x)dx$ using the Monte Carlo Method (by generating $ 10^4 $ uniform random numbers within domain [0, π] × [0, ...
1
vote
3answers
563 views

Evaluating Difficult Monte Carlo Integration in R

I recently posted a simple version here (Simple Monte Carlo Integration). I was able to verify that the answer was indeed close to 1/3 when I wrote the following R code, and got a mean of X of ~1/3: ...
1
vote
3answers
570 views

Random directions on hemisphere oriented by an arbitrary vector

Hy, i'm writing a raytracer, and for that I need to generate n random vectors that are inside an hemisphere oriented by the surface normal. Ideally, I would also like being able to restrict the rays ...
1
vote
1answer
68 views

Compute the Std. Deviation of Multiple Monte Carlo Estimation of $\pi$

For a school programming assignment, I am trying to compute the value of $\pi$ via the classic Monte Carlo estimation of $\pi$. In the experiment, we throw a variable number of darts at a circle that ...
1
vote
1answer
76 views

Numerical CDF estimation for complicated random variable

Given a combination $U$ of several random variables $X,Y,Z...$ with known distributions, what is an efficient numerical algorithm to estimate PDF or CDF of $U$, if its CDF, PDF, characteristic ...
1
vote
1answer
39 views

Generating two $-1$ correlated Poisson random variables with parameter $5$

Is it possible to generate two random variables $X$ and $Y$ that are both $Poisson(5)$ with $Corr(X,Y)=-1$? Why? I was thinking about generating $3$ independent Poisson random variables $Z_1,Z_2, and ...
1
vote
1answer
37 views

Bias Method in monte carlo integration

This is from a proof in my monte carlo course. let $h$ be a smooth function, $T_n = h(\bar{X})$ $\mu = E(X)$ then by taylor expansion $E(T_n -\tau) = E[h(\bar{X} -h(\mu)] = E[\bar{X} - \mu]h'(\mu)+ ...
1
vote
1answer
131 views

Monte carlo estimation of maximum likelihood estimators

I'm interested in numerically finding the maximum likelihood estimator of a parameter $\theta$, as well as the confidence interval of this estimator. First I'll describe the method I've been trying, ...
1
vote
1answer
298 views

What is the typical method for sampling uniformly in a convex polytope

The polytope in my case is the intersection of the k-plane $Ax=b$ and $\{x>0\}$ where $A$ is the constraint matrix and $b$ is some solution. I'd like to find a method that is fast and efficient for ...
1
vote
2answers
180 views

Monte Carlo Integration - determining if a random x,y coordinate falls within the circle or square

My textbook says you can take any random (x,y )coordinate between -1 and 1 like (-.3, .5) or (.4, -.7) and determine if the given coordinate falls within the circle if you calculate $\sqrt(x^2+y^2)$ ...
1
vote
1answer
33 views

Condition for Law of Large Numbers, Monte Carlo

In some lecture notes I am reading, there is the following; Consider $X_{1},...,X_{n}$, each with pdf $g$ (the instrumental distribution). Our aim is to estimate $E_{f}[h(X)]$ where $h(X)$ is some ...
1
vote
1answer
137 views

Quasi-random sequence on the unit $2$-sphere for Monte-Carlo based method

Please forgive my possible misuse of the appropriate definitions. I'm looking for a quasi-random sequence of directions in the unit $2$-sphere, to be used in a Monte-Carlo method to calculate an ...
1
vote
1answer
105 views

Use of this condition on the instrumental density in importance sampling?

From Rubinstein's Simulation Monte Carlo Method, assume r.v. $X$ has density function $f$, $H$ is a measurable function, and $g$ is another density function. If $g$ dominates $Hf$ in the sense that ...
1
vote
2answers
898 views

Monte Carlo simulation on sphere: unbiased random steps

Im doing a Metropolis Monte Carlo simulation with particles on a sphere and have a question concerning the random movement in a given time step. I understand that to obtain a uniform distribution of ...
1
vote
1answer
77 views

Should I ignore $0$ when do inverse transform sampling?

Generic method Generate $U \sim \mathrm{Uniform}(0,1)$. Return $F^{-1}(U)$. So, in step 1, $U$ has domain/support as $[0,1]$, so it is possible that $U=0$ or $U=1$, but $F^{-1}(0)=-\infty$. ...
1
vote
1answer
182 views

Help me with Monte Carlo method : Importance Sampling

I have a little problem with applying a Monte Carlo method: Importance Sampling. I need to calculate: $$ \int_0^\infty \int_0^\infty \frac{dx\;dy}{2 \pi (1 + x^2 + y^2)^{3/2}} $$ Can somebody help ...
1
vote
1answer
175 views

A problem of inversion method for sampling

I am reading the book Stochastic Simulation, Algorithms and Analysis by Asmussen. On page 39, when talking about inversion method for sampling a distribution, he gave an example: an r.v. ...
1
vote
0answers
27 views

Biggest rectangle inside a random geometric shape

I'm looking for the most efficient algorithm to find the rectangle with the greatest area inside a random geometric shape. The rectangle can be also rotated of course. I am sure that there exists a ...
1
vote
1answer
51 views

How does the Metropolis Algorithm work? (for idiots)

I have the mathematical skills of a house brick and I am desperately trying to learn this algorithm from a computer science perspective. Below is my knowledge of the algorithm. Can someone please ...
1
vote
0answers
19 views

Parameter Values From Asymmetric Probability Distributions

I am performing a Multipole Decomposition Analysis on some experimental data, essentially fitting a set of experimental data with a linear combination of functions. Annoyingly these functions are not ...
1
vote
0answers
52 views

Monte Carlo Integration via Ray Casting

Let's suppose we have a 2D line segment $S$ at $y=0$ and extending from $x=-h$ to $x=+h$. We define a function $f(x)=1$ for every point $x$ of $S$. We wish to integrate $f$ over $S$ with Monte Carlo ...
1
vote
0answers
34 views

How do I solve a under-determined quadratic multi-variate system?

I have the following equation: $$ Y = \beta_0 + \beta_1 X_1 + \beta_2 X_2 + \beta_3 X_3 + \beta_{11} X_{1}^2 + \beta_{22} X_{2}^2 + \beta_{33} X_{3}^2 + \beta_{12} X_{1} X_{2} + \beta_{23} X_{2} ...
1
vote
0answers
23 views

How to compute transition probabilities?

I have a stationary process $(X_t)_{t \geq 0}$ with distribution $$\mathbb{P}[X_t \in A ] = \int_A f(x) \, dx$$ for any measurable set $A$ and any $t \geq 0$. I want to compute $$ \mathbb{P}[X_\tau ...
1
vote
0answers
25 views

Markov-Chain Monte-Carlo: Are transformations on the inputs valid?

The problem: I am trying to solve a high dimensional (up to ~50) class of data fitting & modelling problems. The user specifies the problem, so I would like to make the configuration as easy as ...
1
vote
2answers
30 views

Would like some help formulating an optimization problem

I have a function $f$ that takes $n \geq 1$ positive real-valued arguments $\mathbf{a} \in R^n_+$. This function is defined for all amounts of inputs (e.g. $f(1)$ and $f(3, \pi, 17)$ are both valid) ...
1
vote
0answers
34 views

Gibbs sampling truncation for contrastive divergence

I am following Yoshua Bengio's Learning Deep Architectures for AI and at page 31 there is a phrase that confuses me. Starting by lemma 7.1 in the same page: Lemma 7.1. Consider the Gibbs chain ...
1
vote
3answers
133 views

Exact concept of Monte Carlo Method [closed]

I am a programmer and just came across the section where in Monte Carlo was discussed. I would like to know the exact concept of Monte Carlo simulation. In net i have read about it that it is the ...
1
vote
0answers
34 views

computing the area of a region using Monte Carlo integration

Suppose that I am interested in estimating the area of $\Gamma \in \mathbb{R}^2$. I do not know the exact shape of $\Gamma$ but I have a sufficiently large number of sample points $(X,Y) \in \Gamma$ ...
1
vote
1answer
41 views

Multi-armed bandit with infinitely-many arms

Has anyone studied variants of the multi-armed bandit algorithm with infinitely many arms? I have a collection of distributions parametrized by an integer $n$. Unfortunately, I can't analytically ...
1
vote
0answers
39 views

MCMC/E-M limitations?MCMC over E-M?

I am currently learning hierarchical bayesian models using JAGS from R, and also pymc using ...
1
vote
1answer
104 views

Approximate an integral using Monte Carlo method

I have a question on an assignment Calculate the value of the integral I = $\int_0^\pi sin^2(x)dx$ using the Monte Carlo Method (by generating $ 10^4 $ uniform random numbers within domain [0, ...
1
vote
0answers
54 views

Random numbers generator

If I know how to generate random numbers from Gaussian distribution (using Box-Muller method), how can I generate random numbers from distribution with pdf ...
1
vote
0answers
110 views

Standard deviation of the mean through bootstrap resampling of dependent samples

I'm trying to do a Monte Carlo approximation of an integral where the samples are not independent (how much so can be tuned by a parameter giving how often I sample). Therefore the regular expression ...
1
vote
0answers
136 views

Monte Carlo sampling and Kolmogorov–Smirnov test in practice

I have two deterministic algorithms, Algorithm 1 and Algorithm 2. The first has $m$ inputs and one output, and the second has $n$ inputs and one output. The distributions of the inputs of the ...
1
vote
1answer
40 views

Is there a such thing as a quasi-random shuffle?

I've recently experimented with Quasi-random numbers in monte-carlo applications. Is there a way to construct a quasi-random shuffle? By that I mean can I take a sequence $Q$ and shuffle it to produce ...
1
vote
0answers
51 views

Linear Filtering Problem (Keynman Fac/Particle Model)

$lienar Filtering Problem $$X_n^1 = X_{n-1}^1 + \epsilon_n *W_n $$ $$X_n^2 = (1-\alpha* \delta) X_{n-1}^2 + \beta*\delta X_n^1 $$ $$X_n^3 = X_{n-1}^3 + \delta*X_n^2$$ above is $$\approx$$ $$dX_n^1 ...
1
vote
0answers
41 views

Normalisation of Monte Carlo overlap

Background: In quantum mechanics you are sometimes required to compute the overlap (inner product) of two wave functions (square integrable complex functions) $\Psi(x)$ and $\Phi_i(x)$ as $$ ...
1
vote
1answer
39 views

Find Monte Carlo Variance When Expected Value is not Known

I'm working on a problem that can be approached in two different ways. Both are Monte Carlo algorithms--but it's a hard problem, so I am unsure whether the expected values are indeed the same. I ...
1
vote
0answers
177 views

Convergence of Monte Carlo simulation

I am not sure if this is a valid question but here goes. For the monte carlo method I know that estimation of the mean is also a random quantity and follows a normal distribution. The standard error ...
1
vote
0answers
190 views

What does “sequence is equidistributed in [0, 2]” mean?

I was reading an article in which they are mentioning this sentence: "sequence is equidistributed in [0, 2]" where the sequence in question, is a sequence of real number (the article in question is ...
1
vote
0answers
464 views

Monte Carlo standard deviation of the mean estimate too small.

I'm doing a Monte Carlo calculation and use the standard deviation of the mean $\sigma_M$ as the error. To get an estimate of this from the regular standard deviation I use $$\sigma_M=\dfrac\sigma ...
1
vote
1answer
51 views

How do we calculate when to shout for the optimal payoff?

For example: A non-dividend paying stock is currently priced at $20, and you hold a put that allows early exercise in 2 months and in 4 months. The option expires in 6 months. Volatility is 30%, and r ...
1
vote
0answers
79 views

Monte Carlo Integration help.

I need to evaluate the following internal: $I=\int^{+\infty}_{-\infty}\dots\int^{+\infty}_{-\infty} f(x_,x_2,x_3\dots x_n) {1\over (\sqrt{2\pi})^N}e^{-{1\over2}x_1^2-{1\over2}x_2^2 \dots ...