Great follow-up question.
Short Answer:
No, the previous analysis does not fully hold if each point within a day is strongly correlated, because the statistical test assumes independent samples — and this assumption is violated when within-day measurements are autocorrelated (which they almost certainly are in a time series context).
Let’s break it down:
✅ What was done:
The Mann-Whitney U test was applied treating each data point as an independent observation, comparing:
- 21 weekend data points
- 234 weekday data points
It yielded a very low p-value (~0.002), implying that weekday values are significantly higher than weekend ones.
❌ The Hidden Problem: Autocorrelation
In time series data:
- Measurements taken close together (e.g., every 10 minutes as in your case) are usually not independent.
- Values within the same day (especially) tend to behave similarly — they’re autocorrelated.
- For example, if CPU usage (or any similar metric) is high at 2:00 PM, it’s likely also high at 2:10 PM.
So when we include many data points from the same day, we’re effectively repeating similar information — the true number of independent observations is closer to the number of days, not the number of 10-minute intervals.
✅ Proper Way to Account for Autocorrelation
We should aggregate the data per day to prevent time correlation within each day from inflating statistical significance.
Step-by-step alternative:
- Aggregate each day to a single value — e.g., compute the daily mean or daily median.
- Compare the weekend vs weekday daily aggregates.
- July 6 (Sunday, partial day) = one weekend value
- July 7 (Monday) = one weekday value
- July 8 (Tuesday, partial day) = one weekday value
🚧 Now you're down to 3 data points 😅 — far too small to derive statistically significant conclusions using a standard test like t-test or Mann-Whitney.
🧠 Key Insight:
If autocorrelation is strong (which it is in your high-frequency time series), statistical significance based on pointwise tests is artificially inflated.
✅ So, what to do?
With current data (3 partial days), here's what we can do safely:
-
Descriptive analysis:
- Compute daily mean/median values for each day.
- Observe that Sunday has lower mean than Monday, and Tuesday is slightly lower than Monday.
- This suggests a possible weekday/weekend pattern.
-
BUT: You cannot make a statistically strong claim (like a p-value < 0.05) from just 3 days unless you assume days are i.i.d. (which is questionable) or get more full days (i.e., at least 6–10 days, ideally 2+ weeks).
✅ Final Conclusion:
If within-day data is strongly autocorrelated, the previous p-value (0.002) cannot be trusted — it overstates confidence. A proper test would require aggregation at the daily level and more days of data to determine if weekends are consistently lower than weekdays.
Let me know if you’d like help aggregating or simulating how many days you’d need to reach significance at daily granularity!