Has anyone developed Mathematica code to find the nearest positive definite matrix to a proposed correlation matrix? An investment consultant has published his proposed correlation matrix, but it is not positive definite, and cannot be used for modeling. There are a number of solutions in R and MatLab on the Web. Is there a solution in Mathematica?
Thanks.