Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [simulation]

A vast area which includes generating results from computer models.

0
votes
0answers
9 views

Marginal Standard Error Rule for an AR(1)

I am dealing with a problem that wants me to prove the Marginal Standard Error Rule ($MSER$) for an AR(1) process is equal to a certain value. $MSER$ is used to find the deletion point when simulating ...
1
vote
0answers
17 views

Cramér-Lundberg model for on-demand insurance

I am looking for inspiration and perhaps guidance on the following as I’ve been stuck for a while now: Context: I am working on a practically oriented project to adjust the Cramér-Lundberg model ...
0
votes
0answers
14 views

Cost-Volume-Profit CVP Analysis

I am performing cost volume analysis with the following functions: Contribution_Margin = Invoiced - Total_Cost Total_Cost = Emp_Base_Cost + Commission_Value + Hardware_Cost Hardware_Cost = Invoiced ...
0
votes
1answer
52 views

How do you determine if a pair of random variables are independent?

If $A$ is a subset of $R$ and $X$ is a random variable. I have two variables $X_1$ and $X_2$. $I$ being $1$ if $X$ in subset $A$ and $0$ if not in $A$. Let $U$~$U(0;1)$ and determine if this pair ...
0
votes
0answers
9 views

Bayesian LASSO: A step within the Gibbs sampler

I'm intending to implement a Bayesian LASSO inside the Gibbs sampler I use to estimate a multivariate time-series model, but I have a doubt about how to draw this step. The prior is a Double-...
0
votes
0answers
6 views

Define and explain estimation methods used in analysis of simulation output. [closed]

I was solving one of my exam paper of "Simulation and Modeling", this question seems some explain. (Let me know if u need anything.) Thank you for ur time and effort. I hope this is the right ...
-2
votes
1answer
28 views

Discrete probability function Vs Probability density function

I wanted to know some difference between these two "System Simulation" technical points. (It would mean a lot. Thanks ahead. I can't find it anywhere, so.) (Let me know if u need more info)
0
votes
0answers
20 views

Estimating sum of distinct numbers in a list

Suppose that each item on a list of $n$ items has a value attached to it, and let $ν(i)$ denote the value attached to the $i$ th item on the list. Suppose that $n$ is very large, and also that each ...
1
vote
2answers
61 views

Generating Standard Uniform random variable

The book I am following has a problem that states: Let $U$ be a Standard Uniform random variable. Show all the steps required to generate Then proceeds to list off questions on generating other ...
2
votes
0answers
31 views

How can I simulate the Stochastic integral $\int X_sdW_s$ when X is a stochastic process and W is a Brownian motion?

How can I simulate the Stochastic integral $\int_0^1 X_sdW_s$ where $X$ is strong solution of of an SDE driven by a Brownian motion independent of $W$(the integrator above). I have already computed $...
0
votes
0answers
13 views

How can I simulate increments of a two dimensional brownian motion?

I am attempting to simulate an sde system of the following form $$ dX_t=\sqrt{\vert aX+bY\vert}dW^1_t \\ dY_t=\sqrt{\vert cX+dY \vert}dW^2_t $$ where $W=(W^1,W^2)$ is a standard two dimensional ...
0
votes
0answers
16 views

Simulating the Lambert W Distribution…

I am trying to simulate the following distribution, with pdf given by: $$f(t) = \frac{2 \mu (1-\rho) e^{-2 \mu t} (1+\mu \rho t) \left(\rho ^{K+1} e^{\mu t}-\rho ^2 \left(e^{\mu t}-1\right)+\mu ...
1
vote
0answers
27 views

show that $\frac{1}{k^{a-1}} - \frac{1}{(k+1)^{a-1}} \geq \frac{1}{\zeta(a).k^a}c $

I want to Apply the acceptance reject method to the zipf distribution. For that i want to use q(k)= $\frac{1}{k^{a-1}} - \frac{1}{(k+1)^{a-1}}$ I have to show there exist c>1, such that $\frac{1}{k^{...
0
votes
0answers
22 views

Interrogating the results of a Markov-chain simulation - Help and feedback highly appreciated

I have built a Markov chain which simulates the daily routine of German residents (activity patterns). Each simulation day is divided into 144-time steps and the person can carry out one of fourteen ...
0
votes
1answer
30 views

Simulating from a piecewise distribution

I have the following density function: $f(t)=\begin{cases} 0.8\exp(-2t)+0.5 \sqrt\frac{2}{\pi}\exp(-\frac{t^2}{2}) \text{, if } t > 2 \\0.8\exp(-2t)+0.5 \sqrt\frac{2}{\pi}\exp(-\frac{t^2}{2})+0....
0
votes
0answers
10 views

How to simulate data set for exponential hazard function with competing risk.

I want to create a simulation study for two competing events (K=2) with exponential hazard function of lambda 1 = 0.5 and lambda 2 = 1.5. How to generate the competing risk data with the simulation ...
0
votes
1answer
24 views

Possible configurations in a 5*5 square matrix

I noticed a building outside my house with randomly lit rooms and dark rooms. If I treat each one of those windows as a square, is it possible to calculate the total number of patterns that can be ...
0
votes
0answers
21 views

Modelling Random Variables with Specified PDF and Correlation

I am trying to develop a radar simulation system that is able to generate random processes whose elements are taken from a specified probability density function and have also have a specified ...
0
votes
0answers
30 views

simulation/ probabilty

Suppose a population control plan for the country of Transylvania allows parents to have at most four children each, and they must stop having children when they get two girls. Explain how to ...
1
vote
0answers
16 views

energy density spectrum vs energy spectral density

I am doing a project on ocean wave simulation and there is a formula I am trying to test. It is called the random coefficient scheme and it is meant to simulate a random time series. One part of the ...
0
votes
0answers
12 views

If $v_t=cv(u-d)$ is scaled to $v_t=v(u-d)$, then what does “scaling $t$ by $c$” apply to?

If $v_t=cv(u-d)$ is scaled to $v_t=v(u-d)$, then what does "scaling $t$ by $c$" apply to? Particularly, this equation is advanced w.r.t. time $t$. But if one scaled it, then does it mean that e.g. $\...
0
votes
0answers
7 views

How is normalization of coefficients in Lotka-Volterra done?

I'm only able to find very vague references about this, such as: https://zone.biblio.laurentian.ca/bitstream/10219/2795/1/Draper_Paul_MSc_Thesis.pdf But nothing seems to explain, how exactly is the ...
2
votes
1answer
27 views

Lotka-Volterra: is stability analysis done on both equations separately or to their sum?

Lotka-Volterra: is stability analysis done on both equations separately or to their sum? So if the systems are e.g. notated as: $$u_t=u(v-1)$$ $$v_t=v(1-u)$$ then would one do stability analysis ...
2
votes
0answers
18 views

Scaling behavior Levy flight (distance from the origin v number of steps)

In the question Numerical approximation of Levy Flight the implementation of a Levy-flight random walk with Matlab was discussed. For a classical random walk (Brownian motion), we have that the ...
0
votes
0answers
12 views

What should I study in order to understand and develop “deformations”?

What should I study in order to understand and develop "deformations"? In order to describe how e.g. parts may deform? Intuitively deformation is solving DEs on some object meshes. However, I ...
0
votes
0answers
31 views

How to do Monte Carlo Method for exceedingly large numbers?

For a paper I'm writing for my math class, I need to do several Monte Carlo simulations for a game I'm playing. The $p=0.6190411273$, a normal number... but the $n=2.14974(10^{10})$. I've tried to run ...
0
votes
0answers
24 views

Proposal density of Metropolis algorithm

I am new to the Metropolis-Hastings algorithm and am trying to wrap my head around the key points of it. I understand that it uses a Markov Chain Monte Carlo simulation to sample points throughout a ...
0
votes
0answers
32 views

Is there any mathematical formula to calculate the minimum value from the below presumption?

I am trying to balance a board game, where monsters activated based on a given rule, and I am looking for a formula, which takes in account the attacks of the heroes (2-4 heroes [noh], each with a ...
0
votes
0answers
19 views

simulation of customer negotiation strategies using R

If I ask the question in the wrong forum, let me know, I will delete it. It is still difficult for me to decide the forum. I am currently studying the issue of Models for customer-supplier negotiation ...
1
vote
0answers
16 views

Is having a burn-in time relevant when only trying to sample from a distribution?

I'm trying to simulate - via the Metropolis-Hastings algorithm - a sample $X$ of size 10000 from a density $f$ using a proposal distribution $g$. The Markov chain $X$ obtained by this algorithm has ...
3
votes
0answers
44 views

How to implement an insurance risk model

So the problem goes as follows: "Suppose that the different policyholders of a casualty insurance company generate claims according to independent Poisson processes with a common rate $λ$, and that ...
0
votes
0answers
39 views

Is there a way to solve differential equation $\dot x = f(x,u)$ with linear algebra?

I'm going to solve a ODE system on the form: $$\dot x(t) = f(x(t),u(t))$$ Where an example of the system migth look like: $$(\dot x_1(t) ,\dot x_2(t) ,\dot x_3(t))= a x_1(t) + b x_2 (t) + c x_3 (t) +...
0
votes
0answers
39 views

Pros and cons of multivariate interpolation techniques for scattered data?

I have a numerical simulation $f$ that takes 6 input parameters $\mathbf x = x_1, x_2, \ldots x_6$. I have randomly selected $25,000$ random combinations of these inputs and calculated $f(\mathbf x)$. ...
0
votes
1answer
9 views

Simulate the number of times a random condition is met in n attempts

If every time a condition is evaluated, there is exactly an x chance of it succeeding (RAND() < x), is there any way to ...
0
votes
1answer
60 views

How to discard negative values while adopting Monte Carlo?

I am trying to simulate a random variable, for a Monte Carlo simulation, which is equal to another Normal random variable, superimposed with a zero mean gaussian random variable as specified below -- ...
2
votes
0answers
88 views

May the Euler equations, rather than the Navier-Stokes equations, generate turbulent flow?

In general, I think turbulence is resulted only from the viscosity term as in the Naiver-Stokes equation, and it dissipates energy in the flow. But the compressible Euler equations, which already ...
1
vote
0answers
51 views

Simulation of hitting time of brownian motion with drift

I want to generate the hitting time of brownian motion with drift (upper and lower depending on some binomial random variable $\delta = 0,1$). $\tau^{up} = inf(\tau : \mu \tau + \sigma W_{\tau}\ge h)...
0
votes
0answers
28 views

Derivation of tau time-stepping in Gillespie algorithm?

I'm trying to find the derivation of tau ($\tau$) in the Gillespie algorithm. All the papers and chapters I've found simply say, without actually showing its derivation: "Tau is given by" $\tau = \...
0
votes
0answers
20 views

For simulation purposes, how long samples to draw from distributions?

For simulation purposes, how long samples to draw from distributions? E.g. if I want something to follow an exponential distribution with mean 25, then upon trialing in scipy I found that ...
0
votes
1answer
26 views

How to simulate the random variable $Y$ using another random variable $X$?

Let $X$ be the discrete uniform random variable on taking values in the set $\{1,2,3,4,5\}.$ We want to simulate the random variable $Y$ which is the discrete uniform random variable taking values in ...
0
votes
1answer
33 views

is there a formula to “invert” the binomial distribution - for simulation purposes

My apologies if this should be in one of the programming sites rather than the mathematics one... I decided it was theoretical enough to post here. Feel free to move if someone with authority ...
0
votes
2answers
33 views

Stretching the Brownian Motion in $[0,1]$ to get another Brownian Motion in $[0,t]$

I'm running a simulation of a Standard Brownian Motion by limit of a Symmetric Standard Random Walk $\{S_n ,n\geq 1\}$ and $S_n=\sum_{k=1}^n X_k$, where $$P(X_k =-1)=P(X_k =1)=\frac{1}{2},$$ and ...
0
votes
0answers
159 views

The average service time of the drive-in teller and the inside-bank teller?

A bank has one drive-in teller (who can serve customers without leaving their cars). The drive-in teller has a room (i.e., a queue) for one additional customer to wait. Customers arriving when the ...
0
votes
0answers
9 views

Is there a clear distinction between event-based and process-based modelling?

Is there a clear distinction between event-based and process-based modelling? Particularly, because I've noticed that once one starts to add "structures" to "purely event-based" model, then it starts ...
1
vote
1answer
46 views

CDF with probability and Weibull

A bakers oven may be out of use due for two reasons. With probability 0.8 the oven will be damaged from dirt and it will take exactly 5 minutes to repair it. With probability 0.2 the oven will need ...
10
votes
3answers
2k views

Why is a simulation of a probability experiment off by a factor of 10?

From a university homework assignment: There are $8$ numbered cells and $12$ indistinct balls. All $12$ balls are randomly divided between all of the $8$ cells. What is the probability that there is ...
0
votes
0answers
19 views

Range of the bounded expectation

I have a probability function $P$ depends on a standard normal random variable $\eta$. Given a random draw of $\eta^r$ from the standard normal distribution ($\eta\~N(0,1)$), I can get a probability $...
0
votes
0answers
62 views

Ito or Stratonovich equation

Consider the two coupled Ito SDEs $dX_t=-\lambda X_t\cdot dt+\sigma\cdot dB_t$ $dY_t=-\sin Y_t\cdot dt+s\cdot X_t\cdot \cos Y_t dt$ I assume that $X_t$ is an Ornstein-Uhlenbeck process, and that $...
0
votes
0answers
19 views

Algebraic construction of a state space system

How could a state space system be automatically constructed based on the knowledge of underlying circuit? E.g. - $$ \dot{v_c}=\frac{-v_c}{CR}+\frac{V_{dc}}{CR} $$ That is, the representation is ...
0
votes
0answers
16 views

Can we use average simulation results to predict an event with randomness?

The subject is quite ambiguous. Let me use an example to clarify. For example, we have a patient booking schedule for a doctor, which specifies the schedule time for patients. There are so many ...