/trunk Developers: gerton.lunter

Login name:
gerton.lunter
Total Commits:
23 (0.1%)
Lines of Code:
2,976 (0.3%)
Most Recent Commit:
2007-06-23 04:42
Tweet this:
Tweet this

Activity by Clock Time

Activity by Hour of Day for gerton.lunter

Activity by Day of Week for gerton.lunter

Activity in Directories

Directory Changes Lines of Code Lines per Change
Totals 23 (100.0%) 2976 (100.0%) 129.3
src/dr/math/ 9 (39.1%) 2058 (69.2%) 228.6
src/dr/evomodel/coalescent/operators/ 5 (21.7%) 763 (25.6%) 152.6
src/dr/evomodel/coalescent/ 2 (8.7%) 101 (3.4%) 50.5
src/dr/inference/distribution/ 2 (8.7%) 46 (1.5%) 23.0
src/dr/inference/markovchain/ 1 (4.3%) 4 (0.1%) 4.0
src/dr/app/beast/ 3 (13.0%) 3 (0.1%) 1.0
src/dr/app/beastdev/ 1 (4.3%) 1 (0.0%) 1.0

Activity of gerton.lunter

Most Recent Commits

gerton.lunter 2007-06-23 04:42 Rev.: 299

Test commit - no change

541 lines of code changed in 1 file:

  • src/dr/math: GammaDistribution.java (new 541)
gerton.lunter 2007-06-17 01:49 Rev.: 291

Changed ExponentialMarkovPrior so that it can also produce Gamma markov priors,
to control the variation of population size across groups. Default is shape=1.0
corresponding to an exponential Markov prior.

The Bayesian skyline operator can now also use this prior; as before, with matching
priors a Gibbs sampling step is obtained.

Fixed a small bug in BeastParser.

Generalized the sampling code from the biased Gamma distribution; if G(x;shape,scale,bias)
= x^(shape-1) e^(x/scale) e^(1/(bias*x)), then this distribution is normalizable for
scale>0, bias>0 and all shape parameters (including 0); the sampling code can now handle
all these cases.


99 lines of code changed in 5 files:

  • src/dr/app/beast: BeastParser.java (-1)
  • src/dr/evomodel/coalescent/operators: BayesianSkylineGibbsOperator.java (+41 -18)
  • src/dr/inference/distribution: ExponentialMarkovModel.java (+23 -6)
  • src/dr/inference/markovchain: MarkovChain.java (+4)
  • src/dr/math: GammaDistribution.java (+31)
gerton.lunter 2007-06-11 21:55 Rev.: 290

Added <generalizedSkylineGibbsOperator> to BeastMain's parser.

Comment added to bayesianskylinegibbsoperator.java.



7 lines of code changed in 2 files:

  • src/dr/app/beast: BeastParser.java (+1)
  • src/dr/evomodel/coalescent/operators: BayesianSkylineGibbsOperator.java (+6 -4)
gerton.lunter 2007-06-04 22:14 Rev.: 289

Minor bugfix

1 lines of code changed in 1 file:

  • src/dr/math: GammaDistribution.java (+1 -1)
gerton.lunter 2007-06-04 21:40 Rev.: 288

Cleanup of GammaDistribution.java - more straightforward algorithm to sample from a exp-weighted Gamma distribution

590 lines of code changed in 1 file:

  • src/dr/math: GammaDistribution.java (+590 -572)
gerton.lunter 2007-06-01 22:24 Rev.: 287

Changed the way the Gibbs sampler for the Bayesian skyline works. Instead of
sampling all population parameters at once, they are now sampled one-at-a-time
in one-dimensional Gibbs moves.

The advantage is that the exponential Markov prior can now be efficiently incorporated
- previously this prior would cause very high rejection rates (~99%), because new states
would often have a bad prior likelihood, whereas now the Gibbs move has acceptance
rate 1.

The exponential Markov prior has been updated to also 'run in reverse' if desired,
putting a Jeffrey's prior on the most ancestral Ne rather than the most recent.
The Gibbs sampler can handle both forward and backward exponential Markov priors,
with an without a Jeffrey's prior on the first (last) Ne.

The sampling code for the exponential-weighted Gamma distribution has been updated
and is more efficient.


492 lines of code changed in 3 files:

  • src/dr/evomodel/coalescent/operators: BayesianSkylineGibbsOperator.java (+281 -156)
  • src/dr/inference/distribution: ExponentialMarkovModel.java (+23 -6)
  • src/dr/math: GammaDistribution.java (+188 -77)
gerton.lunter 2007-05-23 07:39 Rev.: 276

Bugfix of exp-weighted sampling from gamma-distribution.
This version doesn't get stuck in inefficient rejection sampling.

114 lines of code changed in 1 file:

  • src/dr/math: GammaDistribution.java (+114 -102)
gerton.lunter 2007-05-21 09:36 Rev.: 274

Update of the gamma + exponential sampler -- rejection sampling algorithm got too slow

17 lines of code changed in 1 file:

  • src/dr/math: GammaDistribution.java (+17 -2)
gerton.lunter 2007-05-21 05:38 Rev.: 273

Bayesian skyline Gibbs operator updated to include the exponential Markov prior.

188 lines of code changed in 2 files:

  • src/dr/evomodel/coalescent/operators: BayesianSkylineGibbsOperator.java (+109 -55)
  • src/dr/math: GammaDistribution.java (+79 -81)
gerton.lunter 2007-05-18 10:51 Rev.: 269

The rest of the previous commit -- parser for the bayesian skyline gibbs sampler,
and additions to the gamma distribution.


500 lines of code changed in 3 files:

  • src/dr/app/beast: BeastParser.java (+2 -2)
  • src/dr/app/beastdev: BeastParser.java (+1)
  • src/dr/math: GammaDistribution.java (+497 -207)
gerton.lunter 2007-05-18 10:50 Rev.: 268

Added an almost-Gibbs operator for the generalized Bayesian skyline model.

The operator samples from the posterior distribution of population sizes, conditional on the genealogy,
but not including any external prior. When no prior is provided, the Hastings ratio cancels with the
ratio of likelihoods, and the operator behaves as a Gibbs sampler. Any external prior is taken into
account via the normal Metropolis step.

The operator can be restricted to sample only from a range of population sizes. This is implemented
by rejection sampling. In extreme cases, it may take -very- long to get a decent sample; so when 100
samples have been rejected, a sample at the appropriate extreme end is selected. This is a hack.

The operator can also incorporate (without rejection sampling) a Jeffrey's prior on the geometric
average of population sizes. This however is probably not very useful.

To make all this happen, I've also extended GammaDistribution to sample reliably all valid parameter
values, and some invalid ones (i.e. shape parameter = 0).


427 lines of code changed in 3 files:

  • src/dr/evomodel/coalescent: BayesianSkylineLikelihood.java (+63 -46), CoalescentLikelihood.java (+38 -2)
  • src/dr/evomodel/coalescent/operators: BayesianSkylineGibbsOperator.java (+326)
Generated by StatSVN 0.7.0