correlation_analysis
Compute Pearson correlation of daily log-returns between two currency pairs to quantify co-movement over a selectable period, with values from -1 to +1.
Instructions
Compute the Pearson correlation of daily log-returns between two currency pairs over N days. Useful for understanding co-movement: NZD/USD vs AUD/USD typically correlate highly (~0.85). Range: -1 (inverse) to +1 (perfect).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| days | No | Lookback window in days (10–90, default 30) | |
| pair1_to | Yes | Quote currency of first pair (e.g. USD) | |
| pair2_to | Yes | Quote currency of second pair (e.g. USD) | |
| pair1_from | Yes | Base currency of first pair (e.g. NZD) | |
| pair2_from | Yes | Base currency of second pair (e.g. AUD) |