# Statistics Documentation by Type This document outlines the various statistical metrics collected, grouped by their type, and details their corresponding JSON structures for different time spans. ## STRESSORS ### Daily Summarized Values `timeSpan`: ONE_DAY `timeFilter`: AWAKE ```json { "duration": , // Total time under stress (in milliseconds) "recovery": , // Average recovery time (in milliseconds) "frequency": // Count of detected stressors } ``` ## STRESS_FREQUENCY ### Descriptive Values `timeSpan`: TWO_WEEKS `timeFilter`: AWAKE ```json { "sentence": // Descriptive sentence for STRESS_FREQUENCY } ``` ## INTENSE_ACTIVITY ### Daily Summarized Values `timeSpan`: ONE_DAY `timeFilter`: AWAKE ```json { "value": // Total Intense Activity duration (in milliseconds) } ``` ### Typical Range Values `timeSpan`: ONE_MONTH `timeFilter`: AWAKE ```json { "typicalRaw": { "value": , // Typical Mean (Raw) "lowerStd": , // Typical Lower Deviation (Raw) "upperStd": // Typical Upper Deviation (Raw) }, "typicalSmoothed": { "value": , // Typical Mean (Smoothed) "lowerStd": , // Typical Lower Deviation (Smoothed) "upperStd": // Typical Upper Deviation (Smoothed) } } ``` ### Y-Axis Range Values `timeSpan`: SIX_MONTHS `timeFilter`: AWAKE ```json { "overviewYAxis": { "min": , // Minimum Y-axis value (sent in milliseconds for time metrics) "max": // Maximum Y-axis value (sent in milliseconds for time metrics) } } ``` ### Descriptive Values `timeSpan`: TWO_WEEKS `timeFilter`: AWAKE ```json { "sentence": // Descriptive sentence for INTENSE_ACTIVITY } ``` ## RESTING_HEART_RATE ### Daily Summarized Values `timeSpan`: ONE_DAY `timeFilter`: AWAKE ```json { "value": // Resting Heart Rate (in bpm) } ``` ### Typical Range Values `timeSpan`: ONE_MONTH `timeFilter`: AWAKE ```json { "typicalRaw": { "value": , // Typical Mean (Raw) "lowerStd": , // Typical Lower Deviation (Raw) "upperStd": // Typical Upper Deviation (Raw) }, "typicalSmoothed": { "value": , // Typical Mean (Smoothed) "lowerStd": , // Typical Lower Deviation (Smoothed) "upperStd": // Typical Upper Deviation (Smoothed) } } ``` ### Y-Axis Range Values `timeSpan`: SIX_MONTHS `timeFilter`: AWAKE ```json { "overviewYAxis": { "min": , // Minimum Y-axis value (sent in milliseconds for time metrics) "max": // Maximum Y-axis value (sent in milliseconds for time metrics) } } ``` ### Descriptive Values `timeSpan`: TWO_WEEKS `timeFilter`: AWAKE ```json { "sentence": // Descriptive sentence for RESTING_HEART_RATE } ``` ## HRV ### Daily Summarized Values `timeSpan`: ONE_DAY `timeFilter`: SLEEP ```json { "value": // Heart Rate Variability (raw value) } ``` ### Typical Range Values `timeSpan`: ONE_MONTH `timeFilter`: SLEEP ```json { "typicalRaw": { "value": , // Typical Mean (Raw) "lowerStd": , // Typical Lower Deviation (Raw) "upperStd": // Typical Upper Deviation (Raw) }, "typicalSmoothed": { "value": , // Typical Mean (Smoothed) "lowerStd": , // Typical Lower Deviation (Smoothed) "upperStd": // Typical Upper Deviation (Smoothed) } } ``` ### Y-Axis Range Values `timeSpan`: SIX_MONTHS `timeFilter`: SLEEP ```json { "overviewYAxis": { "min": , // Minimum Y-axis value (sent in milliseconds for time metrics) "max": // Maximum Y-axis value (sent in milliseconds for time metrics) } } ``` ### Descriptive Values `timeSpan`: TWO_WEEKS `timeFilter`: SLEEP ```json { "sentence": // Descriptive sentence for HRV } ``` ## STRESS_DURATION ### Typical Range Values `timeSpan`: ONE_MONTH `timeFilter`: AWAKE ```json { "typicalRaw": { "value": , // Typical Mean (Raw) "lowerStd": , // Typical Lower Deviation (Raw) "upperStd": // Typical Upper Deviation (Raw) }, "typicalSmoothed": { "value": , // Typical Mean (Smoothed) "lowerStd": , // Typical Lower Deviation (Smoothed) "upperStd": // Typical Upper Deviation (Smoothed) } } ``` ### Y-Axis Range Values `timeSpan`: SIX_MONTHS `timeFilter`: AWAKE ```json { "overviewYAxis": { "min": , // Minimum Y-axis value (sent in milliseconds for time metrics) "max": // Maximum Y-axis value (sent in milliseconds for time metrics) } } ``` ### Descriptive Values `timeSpan`: TWO_WEEKS `timeFilter`: AWAKE ```json { "sentence": // Descriptive sentence for STRESS_DURATION } ``` ## STRESS_RECOVERY ### Typical Range Values `timeSpan`: ONE_MONTH `timeFilter`: AWAKE ```json { "typicalRaw": { "value": , // Typical Mean (Raw) "lowerStd": , // Typical Lower Deviation (Raw) "upperStd": // Typical Upper Deviation (Raw) }, "typicalSmoothed": { "value": , // Typical Mean (Smoothed) "lowerStd": , // Typical Lower Deviation (Smoothed) "upperStd": // Typical Upper Deviation (Smoothed) } } ``` ### Y-Axis Range Values `timeSpan`: SIX_MONTHS `timeFilter`: AWAKE ```json { "overviewYAxis": { "min": , // Minimum Y-axis value (sent in milliseconds for time metrics) "max": // Maximum Y-axis value (sent in milliseconds for time metrics) } } ``` ### Descriptive Values `timeSpan`: TWO_WEEKS `timeFilter`: AWAKE ```json { "sentence": // Descriptive sentence for STRESS_RECOVERY } ``` ## SLEEP_DURATION ### Daily Summarized Values `timeSpan`: ONE_DAY `timeFilter`: SLEEP ```json { "value": , // Total Sleep Duration (in milliseconds, converted from hours) } ``` ### Typical Range Values `timeSpan`: ONE_MONTH `timeFilter`: SLEEP ```json { "typicalRaw": { "value": , // Typical Mean (Raw) "lowerStd": , // Typical Lower Deviation (Raw) "upperStd": // Typical Upper Deviation (Raw) }, "typicalSmoothed": { "value": , // Typical Mean (Smoothed) "lowerStd": , // Typical Lower Deviation (Smoothed) "upperStd": // Typical Upper Deviation (Smoothed) } } ``` ### Descriptive Values `timeSpan`: TWO_WEEKS `timeFilter`: SLEEP ```json { "sentence": // Descriptive sentence for SLEEP_DURATION } ``` ## SLEEP_REGULARITY ### Daily Summarized Values `timeSpan`: ONE_DAY `timeFilter`: SLEEP ```json { "sleeps": [ { "start": "", // Bedtime (ISO8601 format) "end": "", // Wake Time (ISO8601 format) "awakenings": [ { "start": "", "end": "" } ], "showStages": // Indicates if detailed sleep stages should be shown } ] } ``` ### Y-Axis Range Values `timeSpan`: SIX_MONTHS `timeFilter`: SLEEP ```json { "overviewYAxis": { "min": , // Minimum Y-axis value (sent in milliseconds for time metrics) "max": // Maximum Y-axis value (sent in milliseconds for time metrics) } } ``` ### Descriptive Values `timeSpan`: ONE_MONTH `timeFilter`: SLEEP ```json { "sentence": // Descriptive sentence for SLEEP_REGULARITY } ```