Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Quantitative finance/mathematical library for Java [closed]

I am currenlty working on a project which relies on a couple of mathematical/statistical/financial tools which I would ideally like to include in one (perhaps several) libraries. What I would like to have is:

  1. Statistical measures - modes, variance etc.
  2. probability distributions + sampling from them available
  3. financial models for e.g. option pricing

Does anyone have an idea which libraries might be useful?

like image 474
Bober02 Avatar asked May 23 '12 00:05

Bober02


People also ask

Is Quant open source?

QuantLib is a free/open-source library for modeling, trading, and risk management in real-life. QuantLib is written in C++ with a clean object model, and is then exported to different languages such as C#, Java, Python, and R.


2 Answers

I do quite a bit of numerical work in Java and Clojure so hopefully my perspective can be useful.

For 1. and 2. here are some options to explore:

  • Parallel Colt - very comprehensive, high-performance mathematical library. Good for lots of vector processing which you get in finance apps.
  • Incanter - R-like statistical library for Clojure (very easy to embed in a Java app). Has pretty much all the statistical tools you could desire, plus is very easy to extend if you want to create your own DSLs
  • EJML - probably the fastest matrix library available in Java
  • Apache Commons Math - handy collection of maths and statistical tools

For 3. (financial models) these tend to be pretty bespoke to the problem you are trying to solve. I doubt you would want to use an off-the-shelf solution even if it existed. I'd suggest developing yourself using the toolkits mentioned above.

like image 132
mikera Avatar answered Sep 18 '22 09:09

mikera


QuantLib apparently has Java bindings via SWIG.

like image 30
Oliver Charlesworth Avatar answered Sep 21 '22 09:09

Oliver Charlesworth