The tag has no wiki summary.

learn more… | top users | synonyms

0
votes
0answers
17 views

How to generate integer random numbers that equal to another random number?

I am running a simulation in Excel, and need to generate a group of integer random numbers summing up to another random integer, how can I possibly do it? For instance I have an integer random number ...
0
votes
1answer
24 views

Time between arrivals Distribution

I am simulating a hair parlor queue with m number of queues and 3 different types of services (queues). I was doing the time between arrival with a uniform distribution with a min value and a max ...
1
vote
0answers
26 views

Simulating r.v.'s from a joint density by rejection sampling in R. Continued

I wish to sample variables $v$ and $w$ from the joint density $$(v+w)e^{-\frac{(v+w)^{2}}{2x_{0}}-2\mu v-(\mu -\lambda )w},$$ where $x_0$, $\mu$ and $\lambda$ can be seen as positive constant. Since ...
-1
votes
1answer
37 views

Finding density and distribution functions [closed]

I have been trying to understand probability by attempting past paper question and I have been stuck on this question all day and night. I am not quite sure how to go about finding the functions ...
0
votes
0answers
8 views

Stability of boostrap confidence intervals

As a word of background, I want to show that certain result is stable when averaging over a large number of simulations, but could be just a lucky draw with a small number of simulations. I have a ...
0
votes
0answers
15 views

Numerical Triple integral with three other parameters in R

I am trying to integrate this function $f(u,v,w; t,x_{0},z)$ with respect to three variables, $u$, $v$, $w$, although the function also have other three parameters $t$, $x_0$, and $z$. Question: How ...
2
votes
1answer
27 views

Simulating r.v.'s from a joint density by using rejection sampling in R

I wish to sample variables $v$ and $w$ from the joint density $$(v+w)e^{-\frac{(v+w)^{2}}{2x_{0}}-2\mu v-(\mu -\lambda )w},$$ where $x_0$, $\mu$ and $\lambda$ can be seen as positive constant. Since ...
1
vote
0answers
39 views

Personal Experiences with Probability Simulation

Simulations methods are increasingly used in theoretical and (especially) applied probability. Personally, I have used simulation for purposes that range from recreational Q&A to applications of ...
0
votes
2answers
35 views

exponential distribution with probability about texts

It is 9:00 p.m. The time until Joe receives his next text message has an exponential distribution with mean 5 minutes. A text has not arrived for 5 minutes. Find the probability that none will arrive ...
0
votes
0answers
18 views

Sinusoid with zero boundary conditions on $[0,1] \times [0,1]$ grid

I want to make a sinusoidal plot (any shape is welcome) on a $[0,1] \times [0,1]$ grid, with boundary conditions equal to zero. It should resemble a membrane fixed along its edge. I tried out some ...
1
vote
3answers
68 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: ...
0
votes
1answer
19 views

Difference and confidence intervals

I performed a few series of simulation to evaluate values of two parameters. Let's say, the results can be presented like this: ...
1
vote
0answers
29 views

Is Principal Component Analysis applicable to this type of situation?

I'm trying to model the response of ant populations to pheromones in this way: The ants are simulated as Self Propelled Particles with internal energy. They undergo acceleration due to their internal ...
0
votes
0answers
27 views

Simulation of an ODE model with non-constant parameter

I have a model, I can formulate the model using ordinary differential equation with parameter $P$. I want to simulate the model, but instead of using a fixed constant $P$ for the parameter, I want to ...
0
votes
1answer
36 views

Is it possible to estimate $e$ based on $N$?

Consider a sequence of random numbers $u_1,\dots,u_n$ obtained from a continuous distribution $F$. Let $N$ be the first one that is greater than its immediate predecessor. In othe words, ...
2
votes
1answer
55 views

Simulate correlated $\chi^2$ distribution

I understand that when one have multiple independent variable that follows $N\sim(0,1)$, denoted as $A$ if we have a correlation matrix $R$, we can generate correlated variables $B$ that are normally ...
0
votes
1answer
26 views

mean and std deviation from little's law

I have a service node with a queue The arrival rate in this service node is exponential(0.4) The service time is exponential(0.2) Running a simulation i've calculated the average population of the ...
1
vote
0answers
55 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
0answers
59 views

Statistics Marble Simulation

Given the jar containing 20 red, 5 white, and 10 blue marbles, Joey thinks a more interesting problem would be to find the number of marbles you would have to draw, without replacing them in the jar, ...
0
votes
0answers
8 views

Simulation model, reality check on sample data

I wrote a simple simulation in C (a next-event simulation) and I'd like an opinion on the consistence of the sample data. The model is that of a two nodes service, the user enter on the first one and ...
0
votes
0answers
13 views

How can I efficiently optimize stochastic multi-modal functions?

I'm looking for methods for optimizing stochastic functions. I'm probably abusing the notation here, since this is a new field for me. By stochastic functions I mean functions whose output is a ...
1
vote
0answers
26 views

Can you simulate from a cantor distribution?

Has someone run across a method for generating random variates from a Cantor Distribution? It seems like its abstract definition prevents this. In essence, can one "invert" the Cantor Function?
1
vote
2answers
41 views

How to efficiently simulate successes of several trials if probabilities are inhomogeneous

If I'm doing a simulation with $n$ trials, each with probability $p$, a quick way to select the successful trials is to choose a binomially distributed random number. Then randomly choose that many ...
0
votes
1answer
25 views

What platform is best for simulating a stochastic process on a graph/network?

I'm simulating a dynamic process which was so far done only on a lattice, and Matlab was quite sufficient for that. However, I can't seem to find a convenient way to model such a process on a graph ...
0
votes
1answer
36 views

Permutation algorithm for simulating random variables $X,Y,Z \in [0,1]: X+Y+Z = 1$ and $X,Y,Z \sim U(0,1)$

Edit: Sorry, I tend to jump back and forth between math notation and computer science notation....often to the chagrin of my more rigorous colleagues (and Math.SE folks ;-) Also, I accidentally ...
0
votes
1answer
37 views

Looking for Method to evaluate the optimal node rate vs number of simulation rate in a Monte Carlo simulation

I am currently working on evaluating an American Option using a Monte Carlo simulation, and I am getting answers but they vary quite a bit. The two variables that I can alter are number of simulations ...
0
votes
1answer
33 views

uniqueness of svd decomposition and its role in statistical analysis

let us consider following model according to following link http://www4.ncsu.edu/~ipsen/REU09/chapter4.pdf it says that : The singular values are unique, but the singular vector matrices are ...
2
votes
2answers
65 views

Probability that winner of tournament is best player

There are $2^n$ players with skills $1, 2, \ldots, 2^n$ where the probability of Player A winning any game (against B) is $\text{skill}(A)/(\text{skill}(A)+\text{skill}(B))$. Set up a tournament of ...
0
votes
0answers
24 views

Strictly local martingales: what is the intuition behind them?

I did post this on the Quant Finance exchange a while back, but without any luck A process $X_t$ is a local martingale if for each increasing sequence of stopping times $\{τ_k,\ k=1,2,...\}$ the ...
3
votes
1answer
25 views

Simulating elastic collision

I wrote a simple program where i can move around some objects. Every object has a bounding box and I use hooke's law to apply forces to the colliding objects. On every tick, I calculate the forces, ...
1
vote
1answer
29 views

Tissue Deformation Simulation using FEM

I need to simulate tissue deformation using FEM. Is it advisable to represent the object as a triangle mesh or a ...
3
votes
1answer
76 views

Applying MCMC Metropolis algorithm

I'm interested in all possible paths (on the grid $\mathbb{N}^2 $) that goes from $ (0,0) $ to $ (n, n) $. At each step there are two possibilities: go right or go up. The path is a sequence $ ...
0
votes
0answers
34 views

Understanding simulation of Brownian Motion

I am trying to understand the simulation of Brownian Motion given at http://www.math.uah.edu/stat/applets/BrownianMotion.html. There are four boxes in this simulation. For the purpose of this question ...
0
votes
2answers
102 views

Calculating a Cardgame

I was send here from stackoverflow because they thought maybe you can help me. Here my original post: http://stackoverflow.com/questions/26799476/a-faster-way-then-doing-14-for-loops What I want: ...
0
votes
0answers
19 views

Skew in black scholes model

We are modeling Foreign exchange rates using Black Scholes model given below: $F_t = F_{t-1} + (r_d - r_f)F_{t-1} dt + \sigma\cdot F_{t-1}\cdot dW_t$ Where $F_t$ and $F_{t-1}$ are FX rates at time ...
0
votes
1answer
73 views

Incomplete Cholesky decomposition conjugate gradient method in Matlab

I have a problem in finding the numerical material that describing in detail for incomplete Cholesky combined with conjugate gradient method by using Matlab. Someone can help me? Many thank in ...
0
votes
1answer
21 views

Angular momentum superposition

I am doing a space simulation. I have a spaceship and this spaceship has engines that don't push the spaceship through its center of gravity. These engines can therefore give the spaceship angular ...
0
votes
1answer
37 views

Generate a random chain with cauchy distribution using C language

Here is my question: I want to simulate a random variable using cauchy distribution with C language. Scale and position must be setted manually. I fuond the GSL library wich contain the function: ...
0
votes
0answers
48 views

Uniform Sampling over Convex Polytope (not full-dimensional)

I want to simulate a uniform distribution on a convex polytope that is not full-dimensional for optimization purposes (to generate random points on the set I want to minimize over). The polytope is ...
3
votes
1answer
49 views

Hypercomputation & Higher Dimensional Variants of Conway's Game of Life

Conway's Game of Life is a simple and important mathematical game with some rules of evolution in a two dimensional space. It appears in many subjects in mathematics, artificial intelligence and ...
2
votes
0answers
25 views

Are these two approaches to calculating return rate mathematically consistent?

I have coded two C# programs, which use two different approaches to evaluate the outcome of a certain casino-style game (casino-style in the sense that the user pays points to take a turn, and ...
1
vote
0answers
81 views

Backward Euler method with a cross-product.

I want to solve the following differential equation with the backward Euler method ...
0
votes
0answers
22 views

Sampling from a random distribution with a margin of error

A survey of a population is taken using sampling. It is determined that 70% prefer option A and 30% prefer option B with a margin of error being 5%. Typically when simulating the process with the ...
0
votes
0answers
55 views

Transform this IVP into a first-order autonomous system with $\dot{x} = Ax + b$

I'm fairly new to differential equations and need some guidance with this following problem: Transform the following IVP into a first-order autonomous system in the form $\dot{x} = Ax + b$: $$ ...
0
votes
1answer
40 views

Conditional probability problem and Alias Method

I hopefully someone can help me with this problem of conditional probability: "A disk server receives requests from many client machines and requires 10 milliseconds to respond to each request. The ...
0
votes
0answers
44 views

Expected Probability of a Random Agent and a Probabilistic Agent

I'm running simulations on two agents: random agent and probabilistic agent. The world they are running in is the Wumpus World where the agent is dropped in a 4x4 grid where each cell has a 20% chance ...
2
votes
0answers
21 views

orderstatistics of uniform distributions on different ranges

During a simulation I discovered an interesting phenomenon: Given you have 3 agents. 2 are uniformly distributed between [0,1] and one between [0,2]. The question is how often do the smaller agents ...
0
votes
1answer
34 views

Simulating a controlled dynamical system

I am try to simulate a controlled dynamical system of the form $$\dot{x}=f(x,\phi(x)),$$ where $\phi$ is the controller. To do so, I am using Octave (an open source version of Matlab). My commands ...
0
votes
1answer
33 views

Approximation and Monte Carlo simulation.

I am a bit up over my head here, I will present an argument and then I hope you guys will say if my reasoning is correct or what should be changed, ultimately I am hoping to say something qualified ...
0
votes
1answer
98 views

Simple Monte Carlo simulation/approximation of 2 pair in a 5 card poker hand

I am very curious about simulation of an event where an estimating/sampling technique is used. In this example, the goal is to simulate a subset of all the roughly $2.6$ million $5$ card poker hands ...