correlation_matrix
Compute pairwise correlation matrix for a set of assets to identify highly correlated pairs and uncover diversification opportunities.
Instructions
Compute the pairwise correlation matrix for a set of assets. Identifies highly correlated pairs and diversification opportunities.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| tickers | Yes | Tickers to include in the correlation matrix. Minimum 2, maximum 50. Free tier: max 10 tickers. Paid tier: up to 50. | |
| lookback_days | No | Historical window for computing correlations in trading days. 30 = ~6 weeks, 252 = ~1 year. Range: 30-1260. Default: 252. | |
| method | No | Correlation method. "pearson" = linear correlation (standard), "spearman" = rank-based (robust to outliers), "kendall" = concordance-based. Default: "pearson". | pearson |