Anybody experience with MATLAB ?

Discussion in 'Automated Trading' started by ASusilovic, May 24, 2007.

  1. A salesperson from mathworks sent me this pretty interesting report :

    Financial Services
    EIM Group Develops Quantitative Tools for Hedge Fund Portfolio Management


    Challenge To develop quantitative tools for hedge fund portfolio optimization and analysis
    Solution Use MathWorks tools to develop distributed algorithms and models, accelerate simulation, and streamline user interface development and deployment
    Results

    * Development time cut in half.
    * Simulation time reduced by 80%.
    * Development and deployment streamlined.



    Application developed with MATLAB to access simulation results and perform calculations.

    Institutional investors, such as insurance companies and central banks, invest in hedge fund portfolios to diversify the risks associated with traditional stock and bond portfolios. To assess, monitor, and forecast these risks, hedge fund portfolio managers rely heavily on quantitative methods. Since hedge funds have more complex statistical characteristics than equities and bonds, however, portfolio managers cannot use traditional models and standard analytical approaches.

    EIM Group, a fund-of-funds manager and a global leader in the hedge fund industry, has developed a sophisticated analytical model using MATLAB that enables portfolio managers to tailor hedge fund portfolios to each client's needs and risk profile using quantitative assessments and risk analysis.

    "Using MathWorks tools and enhanced statistical methods, we have constructed a risk model that is unique in the industry," explains Dr. Stéphane Daul, certified financial analyst and senior quantitative analyst at EIM. "Each portfolio manager at EIM uses a compiled, standalone application, also built with MathWorks tools, to incorporate simulation results from the model as they create and monitor portfolios."
    Challenge

    To tailor hedge fund portfolios for clients, EIM portfolio managers use advanced analytical models that incorporate copulas, which are mathematical functions to describe the dependencies between investments. Because the complexity of the model makes analytical solutions impossible, EIM uses Monte Carlo simulations of thousands of samples to construct accurate risk and return assessments for each portfolio.

    To do this, the company needs a development environment that enables quantitative analysts to model complex algorithms and run thousands of simulations quickly. EIM also needs to build and deploy easy-to-use tools that portfolio managers use to access simulation results and calculate their portfolio’s profit-and-loss distribution.

    "With MathWorks tools, we provide answers to complex portfolio management questions rapidly. Responding quickly to our clients with quantitative analysis is a competitive advantage for EIM."

    Dr. Stéphane Daul,
    EIM Group


    Solution

    The EIM team uses MATLAB to develop and simulate the advanced model for quantitative hedge fund analysis. They then use MATLAB development tools and the MATLAB Compiler to build and deploy an application that includes a graphical user interface (GUI). Portfolio managers use this standalone application to access simulation results and to calculate their portfolio’s profit-and-loss distribution, which includes relevant statistics and measures such as value at risk, drawdowns, expected returns, and the risk contribution of each fund.

    The team first used MATLAB to build an advanced analytical model based on a year of research. The group then used MATLAB to run Monte Carlo simulations of 24,000 samples for the 700 hedge funds that the company tracks.

    Simulations, which are scheduled to run automatically each night, initially required six hours to complete. To accelerate this task, EIM used the Distributed Computing Toolbox to run the simulations in parallel on three dual-processor servers, reducing the simulation time by more than four hours.

    Using MATLAB development tools, Daul and his team then created a second application for portfolio managers to calculate the profit and loss distribution of their portfolios. This application uses the simulation results built with the distributed computing tools. The results are then displayed in an ActiveX Excel worksheet.

    "Without the MATLAB Compiler, it would have taken us between two to five times longer to develop our deployable application," Daul notes.

    EIM used the Optimization Toolbox to propose allocation weights to their portfolio managers that maximize the Omega ratio, a performance measure that considers the skewness and fat tails inherent in asymmetrical hedge fund distributions.

    Throughout development, the group also used the Statistics Toolbox to create key distributions, histograms, logistic progressions, and linear regressions.

    EIM is currently working on the second version of the portfolio management tool. They plan to integrate functionality from existing qualitative risk management tools into their quantitative tools.

    Results

    * Development time cut in half. "Compared to developing in C or Excel, MATLAB enables us to develop numeric algorithms twice as fast," says Daul. "Also, developing the interface is 10 times faster with MATLAB."
    * Simulation time reduced by 80%. "Using the Distributed Computing Toolbox, we easily parallelized our simulations without modifying the underlying algorithms," explains Daul. "By distributing the tasks across three servers, we reduced the simulation time from 6 hours to 1.2 hours. Adding more processors would further reduce our simulation time."
    * Development and deployment streamlined. EIM streamlined development by assembling a library of commonly used functions and by using the same environment for algorithm development and application development and deployment. "Because all development is in MATLAB, we save time by reusing the algorithm developed during research in the real application," says Daul.
     
    #11     May 27, 2007
  2. A sales rep recently quoted me a price somewhere in the region of 5K for Matlab along with certain finance specific add ons.

    Anyone have a different experience?
     
    #12     May 27, 2007
  3. skepticaltrader

    skepticaltrader Guest

    Does anyone know if Mathcad will perform the same funtions as Matlab and Mathematica?

    I have Mathcad 13 at home, but have never considered using it for trading.

    Has anyone used Mathcad to develop trading strategies?

    Thanks..
     
    #13     May 27, 2007
  4. nitro

    nitro

    Use R:

    http://www.r-project.org/

    nitro
     
    #14     May 27, 2007
  5. Add QuantLib(http://quantlib.org/) and maybe Ta-lib(http://ta-lib.org/) you're almost on par with matlab in terms of financial stuff.

    But keep in mind, matlab is still better than R and easier to program. Their toolboxes help out a LOT.
     
    #15     May 27, 2007
  6. rosy2

    rosy2

    on par? what does matlab offer over python/scipy , quantlib, and R. run it all on linux and you have paid zero. look up everything you need off google and again paid zero.
     
    #16     May 27, 2007
  7. I completely understand that it is more efficient in terms of performance to go straight to the source but it is no where near as efficient in terms of time. If you used straight C/C++ or python, you'd have to program lots of subroutines. That being said, if matlab didn't offer those toolboxes then everyone would be indifferent toward matlab. But it does and those things save a WHOLE lot of time. They let you test models and ideas quickly. If your models work, the you can take the next step and export them as C.

    Now downloading various libraries while programming from scratch is also an option and does save time(and money), but often each library is not standardized relative to other libraries. As a result, it's hard to interpret code from different sources. In the end, it's the question about how good of a programmer you are, how much time you, and have much your time it worth to you.

    Sidenote: Matlab is ridiculously expensive, but that's only the retail version. If you look at the student version, then it's much cheaper. For the latest matlab version(2007a), the core program costs $99. Each toolbox costs $59. Diamond Geezer quote of 5K was most likely the WHOLE retail matlab program with toolboxes such as Aerospace and stuff that he would never use. So lets say you get the Financial, Financial Derivatives, GARCH, Excel Link, Curve Fitting, and Database toolbox. So $99 + 6*$59 = $454. You can of course add and remove toolboxes as you please.
    http://www.mathworks.com/store/default.do
     
    #17     May 27, 2007