Rolling Correlation Matrix Snapshot - Quant Researcher Interview Question
Difficulty: Medium
Category: time_series
Asked at: Jane Street, Goldman Sachs, Citadel, Two Sigma, BlackRock, Citadel Securities, AQR Capital Management, Millennium
Topics: finance, statistics, pandas, correlation
Problem Description
Understanding dynamic relationships between assets is crucial for risk management and portfolio construction. The rolling correlation matrix captures how asset co-movements evolve over time, allowing for adaptive hedging and diversification strategies.
Task
Implement a function solution(prices, window) that calculates the pairwise Pearson correlation matrix of simple returns for a set of assets based on the most recent window periods. The function must sort asset tickers alphabetically to deter
Practice this medium researcher interview question on MyntBit - the LeetCode for quants with 200+ quant interview questions for Jane Street, Citadel, Two Sigma, and other top quantitative finance firms.