Correlate two series
correlate_metric_seriesCalculate Pearson correlation between two daily metric series using only shared days, and report causation caveat with coverage details.
Instructions
Pearson r between two daily series, over days that have BOTH recorded.
Days missing on either side are dropped, never interpolated and never read as
zero, so n_pairs is usually smaller than either series — quote it with r.
Fewer than 3 shared days returns null with a reason: any two points are
perfectly collinear, so a coefficient there is an artefact.
The result carries a caveat field about causation. Repeat its substance in
your answer, and do not translate r into a word like "strong".
Carries a coverage block over the days the arithmetic used: quote
coverage.days_covered and coverage.span_days beside any number here, and
read coverage.window_satisfied: false as a shorter history than you asked
for rather than as a missing kind.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| days | No | ||
| fresh | No | ||
| owner | No | ||
| series_a | Yes | ||
| series_b | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||