Search All of the Math Forum:

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

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

 Messages: [ Previous | Next ]
 kumar vishwajeet Posts: 96 Registered: 4/6/10
ekpirical histogram of a density function
Posted: Jun 8, 2012 11:06 PM

Hi,
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???
Thanks.

Date Subject Author
6/8/12 kumar vishwajeet
6/8/12 ImageAnalyst