# Questions tagged [simulation]

A vast area which includes generating results from computer models.

688 questions
Filter by
Sorted by
Tagged with
14 views

### Nonlinear algebraic loop vs. discretized ODE system

I am not a mathematician and my question may not be well posed but I would appreciate any insight if you have it. Suppose I have a model of a hydraulic system composed of nonlinear differential and ...
23 views

### A probability simulation and probability distribution spike-graph are contradicting

I'm referring to the book: "Grinstead and Snell’s Introduction to Probability", and quoting a problem from the book, Example 1.4 (Heads or Tails) For our next example, we consider a problem ...
50 views

### Simulating Particle motion on a surface

I am working on a personal project to model the motion of a particle on a surface. Using calculus, I parametrized a surface and then found the normal vector to that surface. Using that normal vector, ...
1 vote
38 views

### Help with an article on convex-splitting method

I trying to simulate gradient flow $$\frac{\partial u}{\partial t}=-\nabla_x F(u)$$ where F(u) is (in my case): $$F(u)=2u^4-u^2$$ for u $\in [-0.5,0.5]$. Since the equation is non-linear, I would like ...
85 views

### How to mathematically model my population growth simulation

In high-school we learn to model population growth as an exponential, but we know that this is different from reality because population growth seems to hit as asymptote as some point due to limited ...
14 views

### How to quantify the convergence of a reverse Monte Carlo simulation, where the underlying distribution is entirely unknown

Background I'm in the process of writing a Monte Carlo simulation, which solves the radiative transfer problem in arbitrary anisotropic media with (in general) scattering and absorptive properties, ...
1 vote
21 views

### Software to simulate angles in a pv system

I am trying to model a pv system and I want to simulate different angles, and to calculate values of different angles. I am asking if there is any software that allows me to design the figure below ...
59 views

### Is running multiple simulations with fewer iterations the same as running a single simulation with as many total iterations?

I enjoy video games and one of the games that I play involves running simulations to test damage per second (DPS). I am wondering whether running five $10,000$-iteration simulations is equivalent to ...
16 views

### Help with sample size for finding average distance betwee geographical points

I have a program that I want to test through simulations (since I don't know exactly how it works). The program converts a precise location (lat, lon) to an approximate location (it adds noise and ...
68 views

1 vote
102 views

### Are there any Mathematical Theorems that Can Prove the Results of this Experiment?

I had the following question about Probability and Estimation. Let $\hat{\theta}_n$ be an estimator of a parameter $\theta$ based on a random sample of size $n$. The estimator $\hat{\theta}_n$ is said ...
67 views

### Prove projection of a computable function is computable without using Church-Turing Thesis

Let $R(x,y)$ be a computable relation. I want to prove that for any fixed $y$, the set $S_y$ defined by $S_y := \{ \; x\; | \; R(x,y) \; \}$ is computable. I know this can be reasoned with the Church-...
1 vote
31 views

### MCMC in practice : how much access do we have to the target distribution?

In real world applications how much do practitioners usually know about the target distribution $\pi$? do they know its form exactly? do they only know it up to constant multiple (I guess this is the ...
81 views

### how many unique numbers will appear in simulation?

I am from ukraine and I start taking course on the computer programming. My classmate tells me about this website for interesting discussion and information about mathematics. Today we learn about ...
29 views

### Randomly generate points uniformly on an ellipsoid in general position

I want to uniformly generate points at random on the boundary of an ellipsoid in any dimension. The method given by @elhuhdron here is very nice and it can be straightforwardly generalized to any ...
32 views

### Is it a valid way to uniformly generate points in/on an ellipsoid?

I found this method somewhere (I don't remember where) and I'm wondering whether it is correct. One has an ellipsoid of any dimension and one wants to uniformly generate some points at random on its ...
9 views

### Fisher test to aggregate p-values in a simulation (from Wilcoxon rank-sum tests )- interpret correctly null-hypothesis

I got contradictory results between p-values in single trials, obtained with Wilcoxon test, and Fisher's p-value, obtained from a simulation over 1000 trials. I am confused about correctly ...
374 views

### Best strategy for 6 sided dice game: Roll as many dice as you want, you lose if at least one $1$ appears.

I am new here because we got stuck with a question during the weekend's discussion. Let's imagine we are playing a dice game. You can roll as many 6-sided dice as you want, and so can your opponents, ...
18 views

### How to detect to groups which shows significant slope differences from a single scatter plot

Is it possible to create a dummy or continuous variable which separates the points into two separate groups which show significant slope differences? In effect, I would like to know whether a "...
33 views

### Aproximating $E[g(X)]$ using Monte Carlo method

In an exercise, my teacher asked to approximate the expected value of $g(X)$ where X is a random variable with probability density function $f(x)$ using the Monte Carlo method. I thought about it, ...
1 vote
25 views

### Sampling from Kolmogorov forward equation

I've asked this question over in cross-validated over here:https://stats.stackexchange.com/q/610492/383970 But no answers. I was curious if somebody in this stack has an answer. I've been learning ...
89 views

### PI Controller - Integral term is causing instability

I am simulating the height of the reservoir in a hydro power plant using Matlab, without Simulink. The radial gates of the power plant are used to control the height of the water in the reservoir. ...
1 vote
108 views

### Finding ellipse from points and distances, 2d space sim/two body problem

Good afternoon, everyone. Is there any way to find the parameters of an ellipse, knowing random n points of the ellipse? Say, 3, 5, 10, 20 or any other reasonable number that doesn't require a lot of ...
1 vote
38 views

### Percentage Jobs drop in $M/M/1 K$ Queue with Finite Queue Length

In my simulation of the $M/M/1 K$ Queue, the arrival rate $\lambda$ is $2.7\ \mathrm{ jobs/s}$ while the service rate $\mu$ is $3 \ \mathrm{ jobs/s}$. The capacity $K$ of the buffer is $5$. I am ...
65 views

### Dynamic Monte Carlo in a random walk

I am simulating a random walk of two particles connected by a spring that has spring energy $E(x)=\frac{1}{2}C(x-a)^2$, where $C$ is a spring constant and $a$ the equilibrium length of the spring, and ...
121 views

### Implementing digital controller in the time domain

I have simulated a digital control system in the Z domain using MATLAB and I have got satisfactory results. However, when I converted the plant and the digital controller to difference equations and ...
1 vote
103 views

150 views

### Double Pendulum Simulation Accuracy?

I have what I think is a very simple doubt, but one that I've never seen explicitly addressed. It's a classic coding activity to simulate a double pendulum. You can code this simulation up more or ...
84 views

1 vote
41 views

### How can I simulate uncertainty propagation

I am learning about uncertainty propagation, but it is all very obscure and I am not sure I understand it very well. I have a couple of exercises, but I want to run some simulations just to make sure ...
I have this problem: Choose randomly six numbers in $\{1,2,...,56\}$ without replacement. Call $L_0$ to this choosen set. Fix $N$. For each $n\in\{1,2,...,N\}$, generate a random set $L_n$ choosing ...