Re: Creating White Noise in Matlab



On May 5, 6:51 pm, miki <miki.li...@xxxxxxxxx> wrote:
Hello All,

How can I generate a Gaussian white noise process in Matlab?
To be more specefic, I want to generate the process x(t)=w(t) where

E[w(t)] = 0
E[w(t)w(s)] = (Q*Q)*dirac(t-s)

Well, In matlab (in discrete form), If (t_(k+1) - t_k) = dt < 1
then one might think that x_t_k = Q*randn is the white noise.
But, I dont think so. something is missing here that should include
the discrete sampling dt.

For example, in order to solve the random walk equation

x_dot = w(t)

then x_t_(k+1) = x_t_k + Q*sqrt(dt)*randn is the correct solution.

BECAUSE THERE IS NO WHITE NOISE (as defined above) IN DISCRETE SPACE.

So what is the correct form of just white noise process in Matlab as I
asked in the beginning of the question.

Thanks in advance,
Miki

Clearly you cannot generate elements of the continuous time process,
as they are functions on R. You can generate coarser resolution
versions, though, in a principled way, by discretization. Define a
discrete time process to be the projection of the continuous time
process by a linear operator that takes averages over small, disjoint
time periods. You can derive the covariance (the mean is obviously
zero) of this process, which remains Gaussian with the value at each
discrete time independent of the others. This is the best you can do.
Note that the expectation of any quantity that only depends on the
coarse resolution function is the same under both processes.

illywhacker;
.



Relevant Pages

  • Re: Matlab vs C computations ----
    ... I was simulating a 28 species biochemical network on Matlab and found ... that it became unstable when some white noise was added to the system. ... In order to do mass runs, I translated the Matlab code ... depends on the nature of the computations performed. ...
    (comp.soft-sys.matlab)
  • Re: Matlab vs C computations ----
    ... I was simulating a 28 species biochemical network on Matlab and found ... that it became unstable when some white noise was added to the system. ... One possible difference is the use of 80-bit extended precision floats ... FPU will retain the 80-bit precision. ...
    (comp.soft-sys.matlab)
  • Re: White noise test in matlab
    ... You can use the kstest in matlab but you will need the Statistical ... > white noise test on this data and see this data resembles a white ...
    (comp.soft-sys.matlab)
  • How to Generate Uniform White Noise?
    ... I know that wgn and randn generate Gaussian white noise. ... How to generate uniform white noise in MATLAB? ...
    (comp.soft-sys.matlab)
  • Re: Matlab vs C computations ----
    ... Beau Paisley ... I was simulating a 28 species biochemical network on Matlab and found ... that it became unstable when some white noise was added to the system. ... In order to do mass runs, I translated the Matlab code ...
    (comp.soft-sys.matlab)