Correlation
correlationCompute the Pearson correlation between two numeric series. FREE.
Typical input {"x": [1, 2, 3, 4], "y": [2.1, 3.9, 6.2, 8.1]} returns {"pearson_r": 0.999, "r_squared": 0.998, "interpretation": "very strong positive correlation", "caution": "..."}.
Use when two equal-length numeric series may move together. Reports association only, never causation. Not for a single series over time (growth_rates). Errors: on invalid, missing, or malformed input this tool never raises a protocol error — it returns {"error": ""} (for example {"error": "need two equal-length series of 3+ values"}). Every call is read-only and idempotent, so after correcting the input it is always safe to retry.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| x | Yes | First numeric series; at least 3 values, same length as y. | |
| y | Yes | Second numeric series; at least 3 values, same length as x. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||