Serving the Quantitative Finance Community

 
User avatar
pnrodriguez
Topic Author
Posts: 1
Joined: December 19th, 2008, 1:12 pm

MATLAB vs. Python for Quant Work?

November 16th, 2009, 1:06 pm

Hi everyone,In the next couple of months, I want to learn a new language for prototyping. Which one would you recommend and why? Thanks!
 
User avatar
louist1013
Posts: 2
Joined: August 5th, 2008, 7:05 pm

MATLAB vs. Python for Quant Work?

November 16th, 2009, 8:11 pm

I like Python because it interfaces very well with C/C++ meaning that for performance critical sections of code, you can directly call C/C++ functions from Python. In the same vein, Python has binding for various GUI toolkits such as Qt (which I use and fully endorse as well). Also, the modules Numpy and MatplotLib do an excellent job of mimicking most Matlab functionality. Oh, and its free and open source :-).
 
User avatar
louist1013
Posts: 2
Joined: August 5th, 2008, 7:05 pm

MATLAB vs. Python for Quant Work?

November 16th, 2009, 10:50 pm

Numpy can be build with BLAS or LAPACK. I don't remember which I have it built with, nor have I done any speed comparisons against Matlab or straight up C/C++ stuff.
 
User avatar
louist1013
Posts: 2
Joined: August 5th, 2008, 7:05 pm

MATLAB vs. Python for Quant Work?

November 16th, 2009, 11:00 pm

Python rocks! I totally endorse it :-)
 
User avatar
bojan
Posts: 0
Joined: August 8th, 2008, 5:35 am

MATLAB vs. Python for Quant Work?

November 17th, 2009, 7:07 am

QuoteOriginally posted by: louist1013Numpy can be build with BLAS or LAPACK. I don't remember which I have it built with, nor have I done any speed comparisons against Matlab or straight up C/C++ stuff.It is both BLAS and LAPACK since they do different things And yes, you can use ATLAS versions of those. I agree, Python and extensions in C++/SWIG are a superb environment. We've had a few threads on this already with more details...
 
User avatar
louist1013
Posts: 2
Joined: August 5th, 2008, 7:05 pm

MATLAB vs. Python for Quant Work?

November 17th, 2009, 12:37 pm

oops, yes, bojan is correct. thanks for the correction!
 
User avatar
pnrodriguez
Topic Author
Posts: 1
Joined: December 19th, 2008, 1:12 pm

MATLAB vs. Python for Quant Work?

November 17th, 2009, 12:40 pm

Thanks everyone for your tips!
 
User avatar
Pannini
Posts: 1
Joined: March 9th, 2005, 6:45 pm

MATLAB vs. Python for Quant Work?

November 24th, 2009, 2:11 pm

QuoteOriginally posted by: louist1013Numpy can be build with BLAS or LAPACK. I don't remember which I have it built with, nor have I done any speed comparisons against Matlab or straight up C/C++ stuff.You can also build NumPy with the Intel Math Kernel Library.
 
User avatar
dpinte
Posts: 0
Joined: October 29th, 2009, 8:32 am

MATLAB vs. Python for Quant Work?

January 21st, 2010, 8:19 am

For those interested, I have posted a rough benchmark comparing the usage of the MKL against the old BLAS/LAPACK with numpy. The blog post is here : http://dpinte.wordpress.com/2010/01/15/ ... h-the-mkl/ . I want to add some information comparing it to Matlab. The first test made with a R2007a are interesting for numpy ;-)
 
User avatar
goekhan
Posts: 0
Joined: January 14th, 2008, 9:09 am

MATLAB vs. Python for Quant Work?

January 21st, 2010, 10:53 am

Clearly Python!! PyQT and you can use all the fortran, c/C++ library for the numerics too.
 
User avatar
APS
Posts: 0
Joined: November 20th, 2009, 6:27 am

MATLAB vs. Python for Quant Work?

January 21st, 2010, 8:50 pm

You can learn how to do useful things in MATLAB within a day. You can learn enough to be an expert within a few days or weeks. Given this consideration, there is no need to insist on using the exclusive OR in the statement about learning MATLAB OR ..
 
User avatar
quantstart
Posts: 0
Joined: March 7th, 2010, 11:16 am

MATLAB vs. Python for Quant Work?

March 8th, 2010, 7:22 pm

In regards to Python performance, this may come as a surprise to some: http://www.scipy.org/PerformancePython