数据分析方法论顾问(前置依赖)。在执行任何数据分析任务之前,必须先读取此 Skill, 获取统计严谨性检查清单、常见分析陷阱(Simpson's Paradox、幸存者偏差等)和分析方法 选择指南,以确保分析质量。此 Skill 是 duckdb-analysis、pandas-analysis 的前置方法论依赖, 提供"分析前该怎么想"的框架,而非"怎么写代码"。补充参考文档:pitfalls.md、techniques.md。
User asks about: analyzing data, finding patterns, understanding metrics, testing hypotheses, cohort analysis, A/B testing, churn analysis, statistical significance.
Analysis without a decision is just arithmetic. Always clarify: What would change if this analysis shows X vs Y?
Before touching data:
| Pitfall | What it looks like | How to avoid | |---------|-------------------|--------------| | Simpson's Paradox | Trend reverses when you segment | Always check by key dimensions | | Survivorship bias | Only analyzing current users | Include churned/failed in dataset | | Comparing unequal periods | Feb (28d) vs March (31d) | Normalize to per-day or same-length windows | | p-hacking | Testing until something is "significant" | Pre-register hypotheses or adjust for multiple comparisons | | Correlation in time series | Both went up = "related" | Check if controlling for time removes relationship | | Aggregating percentages | Averaging percentages directly | Re-calculate from underlying totals |
For detailed examples of each pitfall, see pitfalls.md.
| Question type | Approach | Key output | |---------------|----------|------------| | "Is X different from Y?" | Hypothesis test | p-value + effect size + CI | | "What predicts Z?" | Regression/correlation | Coefficients + R² + residual check | | "How do users behave over time?" | Cohort analysis | Retention curves by cohort | | "Are these groups different?" | Segmentation | Profiles + statistical comparison | | "What's unusual?" | Anomaly detection | Flagged points + context |
For technique details and when to use each, see techniques.md.
Category:science-education