Path: news.mathworks.com!newsfeed-00.mathworks.com!news.tele.dk!feed118.news.tele.dk!news.tele.dk!small.news.tele.dk!newsfeed.cw.net!cw.net!news-FFM2.ecrc.de!news.net.uni-c.dk!not-for-mail
From: "saneman" <asd@ad.com>
Newsgroups: comp.soft-sys.matlab
Subject: Variance?
Date: Thu, 15 May 2008 22:43:21 +0200
Organization: UNI-C
Lines: 24
Message-ID: <g0i78i$ltc$1@news.net.uni-c.dk>
NNTP-Posting-Host: 130.225.245.182
X-Trace: news.net.uni-c.dk 1210884178 22444 130.225.245.182 (15 May 2008 20:42:58 GMT)
X-Complaints-To: usenet@news.net.uni-c.dk
NNTP-Posting-Date: Thu, 15 May 2008 20:42:58 +0000 (UTC)
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2900.3138
X-RFC2646: Format=Flowed; Original
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.3198
Xref: news.mathworks.com comp.soft-sys.matlab:468702


I have a vector that contains:

v = 0.5677    0.4792    0.4844    0.4870    0.5104    0.4870    0.4792 
0.4974    0.4688    0.4870

Now I would like to know how much this data varies. I was thinking:

a = max(v) - min(v)

But if just one sample is very different (like 10.0) then the above 
procedure will not give a realistic result.

I have also tried to use the matlab var function:

>> var(v)

ans =

  7.7977e-004

But 0.0007 is not where most of the data belongs. Is there better approach 
to this problem?