Simulating Gaussian Process in R w/ Mean & Variance

Join the discussion
Ask a follow-up here, or get your own question answered by working scientists, mathematicians and engineers — people, not an autocomplete.
Real named experts · corrections over time · the nuance an AI answer skips
2 replies · 2K views
Mark J.
Messages
81
Reaction score
0
Hi everybody

Any ideas how to simulate a Gaussian stationary process in R language using predefined variance and mean?
I have a uni-variate normal distribution for my real life process
Thank you
 
Physics news on Phys.org
Let X be the uivariate normal. Then Y=σX + m where σ is the standard deviation and m is the mean of the process (Y) that you want to simulate. (I don't know what R language is.)
 
Hey MarkJ.

In R, you should use output = rnorm(n,mean,standard_deviation) to simulate from a normal distribution with n observations given those probabilities (you will get a random vector of size n from this distribution).