Project for Faculty (Gaussian distribution and estimation)
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
Jon
on 16 Nov 2020
This sounds like a homework problem. Once you have tried writing some code if you are still having problems please attach your code and explain what problem you are having with your MATLAB code
Jovan Krunic
on 16 Nov 2020
Jovan Krunic
on 16 Nov 2020
Walter Roberson
on 16 Nov 2020
The "More About" section of the mvnpdf function gives the equation for it.
Answers (0)
Categories
Find more on Exploration and Visualization in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!