Do two metrics move together?
oura_relateDetermines if day-to-day changes in two Oura metrics co-move beyond chance. It removes weekday patterns and corrects for autocorrelation to answer outside_noise, within_noise, or cannot_tell.
Instructions
Do the day-to-day changes of two metrics move together, beyond chance?
The second calculation this server makes, held to the same rule as
oura_compare: the method travels with the number. Two metrics that both
rise on weekends, or both drift over months, correlate without touching
each other, so each weekday's usual level is removed and only day-to-day
changes are compared, with the effective number of pairs corrected for
autocorrelation. It answers outside_noise, within_noise, or
cannot_tell — usually for anything under about three months.
It measures co-movement, not cause and not direction. first_pair shows
which day of x met which day of y, so a wrong lag is visible.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| x | Yes | First metric, `collection.field`, e.g. `daily_activity.high_activity_time`. Daily collections and `sleep` only. | |
| y | Yes | Second metric, `collection.field`, e.g. `daily_readiness.score`. | |
| end | Yes | YYYY-MM-DD, inclusive | |
| lag | No | Days from x to y, 0-7. Oura files a night's sleep and the next morning's readiness under the day you woke up, so activity on a day meets the sleep that followed it at lag=1. ONE lag per question: trying several is several tests. | |
| start | Yes | YYYY-MM-DD. About three months or more is needed to answer. |