commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Piotr KochaƄski">
Subject [math] Re: EmpiricalDistribution improvments
Date Sun, 22 Feb 2004 18:54:12 GMT
Phil Steitz wrote:

> The use case that I had in mind was repeated simulation runs using the 
> same source dataset -- for this it would be handy to be able to digest a 
> large dataset once and then reload just the digest (EDF) for subsequent 
> runs.
> There is more data than that -- remember the bin stats, etc.  If we want 
> to do it in a platform-independent way, that will be interesting; 
> otherwise we could just serialize the whole mess using Java 
> serialization (hence the comment that maybe just implementing 
> Serializable is enough).

I was thinking about writing to a file something intermediate between
a raw data file and fullblown information about EDF. Then necessary
and more coplicated things would be recalculated, however this is
not that interesting approach in case of the application you have

The biggest problem I see is the format of the file with EDF. We can either
invent some format (not a big deal) but then we need to provide validation
and parsing of such a file in order to load EDF in a safe and robust way.
This is no longer simple.

The other solution is to use XML, then parsing and validation would be
done by XML parses - we need to provide a proper schema only. This is
nice but the code starts to depend on XML parser. I am not sure if
this is a good idea for such a library like math?

So maybe relaying on serialization is enough, like you have suggested...

> > As long as we test means or variances we can use t test or some variance
> > equality test (Levene test). However we need to choose significane level
> > anyway, so still there is a arbitrary number (like "tolerance" we have
> > now),
> > on the other hand this number have clear interpretation.
> Yes, that is the problem.  I don't see how exactly we can correctly set 
> df for the t-test, for example, since the sampling distribution of the 
> "mean of EDF-generated values" is sort of an ugly beast that depends on 
> the the number and dispersion of the origial values as well as the 
> number of bins and the number of generated values.

Ugh, true. That's rather complicated. If we have bootstrap available
in future we can use it as a test tool in such situations.


To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message