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$>
Reply-To: <HIDDEN>
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
X-Trace: 1319309414 24975 (22 Oct 2011 18:50:14 GMT)
NNTP-Posting-Date: Sat, 22 Oct 2011 18:50:14 +0000 (UTC)
X-Newsreader: MATLAB Central Newsreader 2749702
Xref: 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.