Skip to content

Multivariate student's t proposal - #67

Merged
oschulz merged 22 commits into
bat:masterfrom
fredRos:student
Nov 3, 2015
Merged

oschulz merged 22 commits into
bat:masterfrom
fredRos:student

Conversation

@fredRos

@fredRos fredRos commented Sep 9, 2015

Copy link
Copy Markdown
Contributor

The main goal was to implement #31. It requires random numbers from the chi2 distribution. I implemented two alternatives. The much faster way is to use the GSL via MathMore. If that is not available, I use the inverse transform. The quantile function is slow, at least in root.

Along the way, I

I hope this is the last major new feature of the code for 1.0

@oschulz

oschulz commented Sep 20, 2015

Copy link
Copy Markdown
Member

Blocked by #81 (can't run make distcheck).

Comment thread BAT/BCEngineMCMC.h

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why remove the assignment operator and swap?

@oschulz

oschulz commented Sep 22, 2015

Copy link
Copy Markdown
Member

Merge conflicts are minimal, seem to be easy to resolve.

@oschulz

oschulz commented Oct 1, 2015

Copy link
Copy Markdown
Member

@fredRos could you fix the merge conflict? It looks trivial, but you know the changes best. Then I can run tests and merge quickly.

Frederik Beaujean added 16 commits October 20, 2015 16:52
* remove boiler-plate ctors for Statistics
* `and` -> `&&, `or` -> `||`
* prefer `const string&` in ctor
* fixes bat#31
* allocate TVectorD in ThreadLocalStorage, fixes bat#63
* generate chi2 variate either with GSL via MathMore or via inverse
  transform via MathCore. MathMore isn't always available but overall
  runtime can be faster by a factor of 2(!). Needs some rather
  ugly `void*` hacking to hide the type from the public header and
  conditional compilation inside `BCEngineMCMC.cxx`
* RandomSeed setting now in one place only: `SyncThreadStorage`. This
  means if MCMC is run again on the same model, the same random numbers
  are used. It's not clear if that's desirable or not
* Before the same parameter vector was compared every time. Now it
  changes appropriately.
* now test factorized, multivariate Gaussian, and multivariate Cauchy
  for equality of serial and parallel evaluation
The compilation worked with root6 but not with root5. Apparently due to
ROOT's CXXFLAGS
Frederik Beaujean added 6 commits October 20, 2015 17:05
* reintroduce memory leaks to preserve plots
* fix correlation plot
* fix iteration html output
* increase lag so tests should work
The integration algorithm issued a warning about nonconvergence even
though it converged because it compared the #iterations to the max. set
for MCMC.

Further improvements:

* refactor cuba ctors
* update default values for suave from latest cuba manual v4.2
* make unit test more robust by asking for higher precision than what is
  compared to. Sample mean allowed to run longer.
* comment out suave for 3D integration. It just doesn't work
oschulz added a commit to oschulz/bat that referenced this pull request Nov 3, 2015
Multivariate student's t proposal
@oschulz
oschulz merged commit ae08770 into bat:master Nov 3, 2015
@fredRos
fredRos deleted the student branch January 19, 2016 11:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants