Project for Faculty (Gaussian distribution and estimation)
2 views (last 30 days)
Show older comments
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 Comments
Walter Roberson
on 16 Nov 2020
The "More About" section of the mvnpdf function gives the equation for it.
Answers (0)
See Also
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!