The Math Forum

Search All of the Math Forum:

Views expressed in these public forums are not endorsed by NCTM or The Math Forum.

Math Forum » Discussions » Software » comp.soft-sys.matlab

Notice: We are no longer accepting new posts, but the forums will continue to be readable.

Topic: ekpirical histogram of a density function
Replies: 1   Last Post: Jun 8, 2012 11:54 PM

Advanced Search

Back to Topic List Back to Topic List Jump to Tree View Jump to Tree View   Messages: [ Previous | Next ]
kumar vishwajeet

Posts: 96
Registered: 4/6/10
ekpirical histogram of a density function
Posted: Jun 8, 2012 11:06 PM
  Click to see the message monospaced in plain text Plain Text   Click to reply to this topic Reply

I have 10000 realizations of a 50-dimensional vector X. i.e. I have X1, X2,...X10000, each of size 50x1. How to plot the empirical histogram of density function of X??
My understanding:
1. Find the mean of 10000 samples. We get a 50 dimensional vector X_mean.
2. Find the covariance of 10000 samples. We get 50x50 dimensional matrix X_cov.
3. Fit a Gaussian distribution with X_mean and X_cov.
4. Draw a 50-dimensional sample X_sample from the Gaussian distribution.
5. [f,x] = ecdf(X_sample).
6. ecdfhist(f,x)

Is this approach correct???

Point your RSS reader here for a feed of the latest messages in this topic.

[Privacy Policy] [Terms of Use]

© The Math Forum at NCTM 1994-2018. All Rights Reserved.