/v2/analytics/correlationGet Correlation Analysis
Calculate correlation coefficients between multiple economic series.
Compute statistical correlations between two or more economic data series over a specified time period. This endpoint is useful for identifying relationships between economic indicators, performing portfolio analysis, and understanding market dynamics. Returns Pearson correlation coefficients and supporting statistics.
Authentication: Your API key is required to access correlation analysis.
Query Parameters
| Name | Type | Required | Description |
|---|---|---|---|
series | string | Required | Comma-separated list of series IDs to correlate (minimum 2, maximum 10). |
startDate | string | Optional | Start date for correlation calculation (ISO 8601 format: YYYY-MM-DD). |
endDate | string | Optional | End date for correlation calculation (ISO 8601 format: YYYY-MM-DD). |
methoddefault: pearson | string | Optional | Correlation method: "pearson" (default), "spearman", "kendall". |
seriesComma-separated list of series IDs to correlate (minimum 2, maximum 10).
startDateStart date for correlation calculation (ISO 8601 format: YYYY-MM-DD).
endDateEnd date for correlation calculation (ISO 8601 format: YYYY-MM-DD).
methodpearsonCorrelation method: "pearson" (default), "spearman", "kendall".
Response Attributes
| Name | Type | Required | Description |
|---|---|---|---|
series | array | Required | List of series IDs used in the analysis. |
period | object | Required | Time period used for calculation. |
— startDate | string | Required | Start date. |
— endDate | string | Required | End date. |
correlationMatrix | array | Required | Correlation matrix as nested arrays. |
pairs | array | Required | Pairwise correlation details. |
— series1 | string | Required | First series ID. |
— series2 | string | Required | Second series ID. |
— correlation | number | Required | Correlation coefficient (-1 to 1). |
— pValue | number | Optional | Statistical significance p-value. |
seriesList of series IDs used in the analysis.
periodTime period used for calculation.
startDateStart date.
endDateEnd date.
correlationMatrixCorrelation matrix as nested arrays.
pairsPairwise correlation details.
series1First series ID.
series2Second series ID.
correlationCorrelation coefficient (-1 to 1).
pValueStatistical significance p-value.
Error Responses
Notes
- Correlation values range from -1 to 1, where -1 is perfectly negative and 1 is perfectly positive.
- You must provide at least 2 series and at most 10 in one request.
- Pearson is the default method and captures linear relationships.
- A p-value under 0.05 is often treated as statistically significant.
- Correlation does not imply causation.