Thread Subject: Finding Covariance and Mean for a given sample set

Subject: Finding Covariance and Mean for a given sample set

From: Kishore

Date: 3 Sep, 2009 01:00:04

Message: 1 of 3

Hello,

I wanted to know if there is a function in matlab that i can use to find out the mean and covariance matrix of a given distribution samples..

Assuming normal distribution , i used [mean,variance] = normalfit() function, but, this returns only the variance and not a matrix ( covariances).

For example, my sample set is

x1 x2 x3

1 1.1 1.0

-1 -0.5 2.0


and so on,

what i need is a way to input this matrix containing x1,x2 and x3 as columns and return the mean and covariances between them.



Kindly help..


thanks

Subject: Finding Covariance and Mean for a given sample set

From: dpb

Date: 3 Sep, 2009 01:10:39

Message: 2 of 3

Kishore wrote:
...
> I wanted to know if there is a function in matlab that i can use to
> find out the mean and covariance matrix of a given distribution
> samples..
...

 >> lookfor average
MEAN Average or mean value.
 >> lookfor covariance
LSCOV Least squares with known covariance.
COV Covariance matrix.
...

--

Subject: Finding Covariance and Mean for a given sample set

From: Kishore

Date: 3 Sep, 2009 03:19:05

Message: 3 of 3

Thanks a lot !



dpb <none@non.net> wrote in message <h7n5ai$3l9$2@news.eternal-september.org>...
> Kishore wrote:
> ...
> > I wanted to know if there is a function in matlab that i can use to
> > find out the mean and covariance matrix of a given distribution
> > samples..
> ...
>
> >> lookfor average
> MEAN Average or mean value.
> >> lookfor covariance
> LSCOV Least squares with known covariance.
> COV Covariance matrix.
> ...
>
> --

Tags for this Thread

Everyone's Tags:

Add a New Tag:

Separated by commas
Ex.: root locus, bode

What are tags?

A tag is like a keyword or category label associated with each thread. Tags make it easier for you to find threads of interest.

Anyone can tag a thread. Tags are public and visible to everyone.

Tag Activity for This Thread
Tag Applied By Date/Time
covariance matrix Kishore 2 Sep, 2009 21:04:02
mean Kishore 2 Sep, 2009 21:04:02
normal distribu... Kishore 2 Sep, 2009 21:04:02
rssFeed for this Thread

Contact us at files@mathworks.com