How to generate iid Gaussian noise vector
23 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
I am trying to simulate algorithams given in a research paper.
How can I generate a noise sequence w_t, which is i.i.d. Gaussian of mean zero with variance 2I3 (2xI3 ,where I3 is identity matrix of dimension 3x3) and the initial condition is x_init = [10 10 −10]'
Kindly look at this segment of the paper for which I need to create Gaussian noise samples. I think gaussian noise is a column vector...

0 Kommentare
Antworten (1)
Ben McMahon
am 14 Jul. 2021
Bearbeitet: Ben McMahon
am 15 Okt. 2021
For your particular example as your covariance is idenity and your mean 0, this is a mulitvariate standard normal distrbuiton:
% Set Number of Samples
NumSamples = 1000;
% Prealloacte
w = zeros(3,NumSamples);
% Loop for each sample
for t = 1:NumSamples
w(3,t) = randn(3,1); % Generate a 3x1 Random vector
end
Note that the inital condition is for the state vector of the SDE, x, and is not related to generating the white noise vectors.
3 Kommentare
Ben McMahon
am 19 Jul. 2021
A Gaussian distribution and a normal distribution are two names for the same thing. See the Wikipedia entry for normal distribution.
Siehe auch
Kategorien
Mehr zu Deep Learning Toolbox finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!