About this question
Easy · portfolio_optimization · Quant Researcher interview question · portfolio-optimization, quadratic-programming, numpy, covariance-matrix
Global Minimum Variance Portfolio (GMVP) construction is a cornerstone of quantitative portfolio management, enabling the creation of risk-minimizing allocations. Systematic funds use GMVP, especially when expected returns are unreliable, with the long-only case requiring quadratic programming and the unconstrained case admitting an analytical solution. Task Implement the function solution(cov: listlistfloat, allow_short: bool = False) -> listfloat that computes the Global Minimum Variance Port