Project for Faculty (Gaussian distribution and estimation)

1 Ansicht (letzte 30 Tage)
Jovan Krunic
Jovan Krunic am 16 Nov. 2020
Kommentiert: Walter Roberson am 16 Nov. 2020
I would much appriciate the correct response and the code that works on Matlab R2018a.
I need help generating normally distributed random vector X = [X1, X2]' with independent components that both have expactancy 0 and variances sigma1^2 and sigma2^2 (it is given, like in concrete values, but for the sake of generality to the code I don't need to specify values). Also, there needs to be N = 10^5 of those.
Let me say that I cannot use mvnpdf and those functions that are implemented in matlab, but only randn, rand, histogram, histcount and when it comes to plotting plot, stem, surf.
I have to divide the surface (x1,x2) into 20x20 elementary surfaces and to experimentaly estimate probability density function f^(x1,x2) into dots that are in the centers of these elementar surfaces. I have to also plot this f^.
  4 Kommentare
Jovan Krunic
Jovan Krunic am 16 Nov. 2020
@Jon
You might be onto sth.
Walter Roberson
Walter Roberson am 16 Nov. 2020
The "More About" section of the mvnpdf function gives the equation for it.

Melden Sie sich an, um zu kommentieren.

Antworten (0)

Produkte


Version

R2018a

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by