3.0

3.0 | 2 ratings Rate this file 6 Downloads (last 30 days) File Size: 471 Bytes File ID: #21486

Finding a similar valid correlation matrix

by Erlend Ringstad

 

19 Sep 2008 (Updated 19 Sep 2008)

The function transforms a suggested matrix to a valid correlation matrix

| Watch this File

File Information
Description

Implementation of Nicholas J. Higham's algorithm "Computing the Nearest Correlation Matrix - A Problem from Finance", 2002.

http://eprints.ma.man.ac.uk/232/01/covered/MIMS_ep2006_70.pdf

MATLAB release MATLAB 7.4 (R2007a)
Tags for This File  
Everyone's Tags
Tags I've Applied
Add New Tags Please login to tag files.
Comments and Ratings (3)
19 Sep 2008 Jos x@y.z

No (useful) help, no comments, no H1 line. How do you expect that anybody else than you is able to use this function properly ...

30 Apr 2010 Andrea Carbone

I have found its use rather straightforward. Just pass the (quasi)correlation matrix for which you'd like to find the nearest valid correlation matrix (described in the reference above) ... and it's done.
The only parameter that you can tweak it seems to be the number of iterations that originally is set to 100 times the squared dimension of your problem.

30 Apr 2011 Wolfgang

Hi Erlend, all,

first of all, many thanks for providing this useful tool. I used it to transform symmetric 80x80 correlation matrices (~1300 correlation matrices, one for each day during my observation period). I encountered 2 difficutlties: 1. The program took ages to complete (14 hours) (despite high-performance Xeon workstation) and the result was not satisfying because only 15 of the resulting transformed correlation matrices were positive-definite. Could you please comment on options to increase speed and how to ensure that the resulting matrices are positive-definite? Many thanks for your feedback

Please login to add a comment or rating.
Tag Activity for this File
Tag Applied By Date/Time
finance Erlend Ringstad 22 Oct 2008 10:20:08
modeling Erlend Ringstad 22 Oct 2008 10:20:08
valid correlation matrix Erlend Ringstad 22 Oct 2008 10:20:09
analysis Erlend Ringstad 22 Oct 2008 10:20:09
positive Erlend Ringstad 22 Oct 2008 10:20:09
semidefinite Erlend Ringstad 22 Oct 2008 10:20:09
financial Erlend Ringstad 22 Oct 2008 10:20:09

Contact us at files@mathworks.com