Thursday, April 1, 2010

Hull vs Wilmott to determine those tough quant algorithms, models, and other number crunching

Hull vs Wilmott to determine those tough quant algorithms, models, and other number crunching
Starting out in Quant? Which books are best to start with? Ok. There are only two to choose from. I mean, I have only dove into two. There are three highly recommended books to start with.

They include
Options, Futures, and Other Derivatives with Derivagem CD (7th Edition) by John Hull
Where do I start on this? This appears to be the easier of the books that I was introduced to. His latest includes updates on the recent financial crush. This includes how to work in emerging markets like China or India. The one thing I like about this book is its ability to keep things simple. Learning quant aint’ easy so don’t think you will pick it up in the first read. It will take at least two or maybe three. This is very heavy math. Unless you have a background in it like physics or engineering, this will be a very steep learning curve. The book alone is about 800 pages from what i remember so this is definitely not light reading.

Paul Wilmott on Quantitative Finance 3 Volume Set (2nd Edition)
Paul Wilmott has got something going on as compared to John Hul.. In my mind, both could be considered God fathers of quant by authoring these books. Althought Wilmot has about 1200 pages in this three volume set, you will find it very overwhelming as compared to Hull. As said, start with Hull’s book first as it is easier to lump. Wilmott introduces all the same as Hull but it is at much more overwhelming as less simplistic approach. I am not knocking Wilmott’s book, but understand it seems to be more of an advanced book in the last two sets. Just understand, serious quants will use this as their bible. Get this once you earn your chops later in the game.

Why C++ is the better than Java, C#, and others for quant development

Why C++ is the better than Java, C#, and others for quant development
Man, these kinds of comparisons bring out in the worst in people. What is it with programmers and their programming language wars? My personal belief it matters based on the needs of your end client. As we know, quant development is very unique compared to other types of development. It is not really web based or digital signal processing or even game development. When it comes to pure quant modelling solutions, one must think that speed of execution is very essential for performance on the solution. Here is what I mean:
1. Java is based on a java Virtual machine (JVM) which includes a garbage collector. That right becomes a disability for the performance on a bin or executable file. It can definitely slow down your system if there are too many layers in your development stack. With the JVM, it doesn’t help. Ask any purist quant developer who know their stuff, the will vouch for this one.
2. C# can be fast but it has been proven to be the slowest of these three languages. Because it is based on .NET technologies and Windows, you can thank Microsoft for adding so many layers in with your interface, multitasking, and way much more stuff going on in the background.
3. If speed is essential, there is no doubt why tier one investment banks and hedge funds use C++ running on a barebones Linux platform like Red Hat. There are few layers in the stack as your compiler will turn everything into native byte code for the local operating system to churn on. That is what we call being close to the metal. Less layers, the better.
This then brings me to my argument of developing on Windows or Linux. Depending on your front end, this can determine which platform to choose. For instance, if you are working with traders or end clients who need to Microsoft Excel as the front end; this is without a doubt to go with C++ on Windows using Visual Studio. If you are using an end client like a scripting language (Python, Ruby, R, etc), it might be wise to look at SWIG which can rewrap your C++ libraries to talk to your client code. If so, go with a Linux operating system. That is what I would look for to choose your development stack and operating system.

Which flavor Linux or Unix to go with for your Quant software solution?

Which flavor Linux or Unix to go with for your Quant software solution?
This is one of those tough questions I always struggle with. It is quite easy if you ask me. I am always the kind of person to focus o n the top three to five choices. In this case, I will only focus on three.
1. If you want total free and the most popular. It does not take an idiot to go with Ubuntu. This is one very stable and hugely popular Linux flavour I would highly recommend. You also have the choice of a desktop version or server edition depending on the enterprise level you need.
2. If money is no object, I woud go with Red Hat. Even though it is commercial based (paid), you cannot go wrong if you have certain service level agreements needed or enterprise level support from a reputable company. Everything is based on a subscription fee on a per server/CPU basis. It is the number one choice as even Goldman Sachs was an earlier paid client of theirs.
3. If you really cannot afford a subscription fee on an annual basis, I would recommend the next best alternative which is CentOS. It is supposed to be one hundred percent compatible with Red hat. The best is that it is open source meaning of course, free. No one can wrong with that. From what I see beng on the developer and user list of Red Hat, there are some highly intelligent technical people that can help you out for any needs you might have.
I hope this gives a quick synopsis of which flavour of Linux you should go with. I can tell I would promote CentOS if you want to stay on the same level as Godlman Sachs. Even my older client were using strategically for all Linux installations they had.