Path: news.mathworks.com!not-for-mail From: <HIDDEN> Newsgroups: comp.soft-sys.matlab Subject: Expected value from a empirical cdf that is a step function Date: Sat, 22 Oct 2011 18:50:14 +0000 (UTC) Organization: The MathWorks, Inc. Lines: 3 Message-ID: <j7v396$ocf$1@newscl01ah.mathworks.com> Reply-To: <HIDDEN> NNTP-Posting-Host: www-02-blr.mathworks.com Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-Trace: newscl01ah.mathworks.com 1319309414 24975 172.30.248.47 (22 Oct 2011 18:50:14 GMT) X-Complaints-To: news@mathworks.com NNTP-Posting-Date: Sat, 22 Oct 2011 18:50:14 +0000 (UTC) X-Newsreader: MATLAB Central Newsreader 2749702 Xref: news.mathworks.com comp.soft-sys.matlab:746796 Given an empirical cumulative distribution function, i.e. calculated based on real data and thus a step function, how would you calculate the expected value, i.e. in this case, average spell length or expected spell length? The complicating factor is that the empirical cdf never reaches 100% because the data consists of spell lengths and some of the spells never end. Thus, I have a step cdf that flats out at 60-70% and I would like to know the average of the spells that end at some stage.