correlate
Compute Pearson or Spearman correlation between two metrics, with optional time lag and lag scanning to identify delayed relationships.
Instructions
Pearson/Spearman correlation between two metrics (default: last 30 days).
Positive lag_days pairs metric_a on day D with metric_b on D+lag; scan_lags=True searches lags -7..+7 for the strongest relationship.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| end | No | ||
| start | No | ||
| lag_days | No | ||
| metric_a | Yes | ||
| metric_b | Yes | ||
| scan_lags | No |