analysis-qa
Quality-check a data analysis before sharing — verify joins, aggregations, denominators, time ranges, and metric definitions. Detect pitfalls like survivorship bias, average-of-averages, join explosion, timezone mismatches, incomplete periods, and selection bias. Includes documentation templates for reproducible analyses.
What this skill does
## Review Checklist Work through every section below before presenting findings to stakeholders. ### Data Foundation - [ ] **Correct sources**: Confirmed that the tables and datasets used are the appropriate ones for this question - [ ] **Freshness**: Data recency is sufficient; the "data as of" date is noted - [ ] **Coverage**: No unexpected time gaps or missing segments in the dataset - [ ] **Null treatment**: Null rates in critical columns have been reviewed; nulls are excluded, filled, or explicitly flagged - [ ] **Duplicate control**: Row counts confirm no double-counting from faulty joins or repeated source records - [ ] **Filter accuracy**: Every WHERE clause and filter condition has been verified; nothing is accidentally excluded or included ### Computation Integrity - [ ] **GROUP BY correctness**: All non-aggregated columns appear in GROUP BY; the aggregation grain matches the analytical question - [ ] **Denominator validity**: Rates and percentages use the intended base population; division by zero is prevented - [ ] **Temporal alignment**: Compared periods span equal durations; partial periods are either excluded or called out - [ ] **Join behavior**: JOIN types are intentional (INNER vs. LEFT); many-to-many relationships have not silently inflated totals - [ ] **Metric fidelity**: Calculated metrics align with how the business defines them; any deviations are documented - [ ] **Additive consistency**: Sub-totals sum to the reported total where expected; non-additive cases (overlap, double-counting) are explained ### Plausibility Assessment - [ ] **Order of magnitude**: Key figures fall within a believable range; revenue is non-negative; percentages stay within 0-100% - [ ] **Trend coherence**: Time series show no unexplained jumps or drops - [ ] **External agreement**: Headline numbers align with dashboards, finance reports, or earlier analyses - [ ] **Ballpark math**: Total revenue roughly equals per-user revenue times user count, etc. - [ ] **Boundary behavior**: Results make sense for edge cases — a single day, a single user, a single category ### Presentation Quality - [ ] **Accurate visuals**: Bar charts begin at zero; axes have labels; scales are consistent across panels - [ ] **Clean formatting**: Numbers use appropriate precision, consistent currency/percent notation, and thousands separators - [ ] **Descriptive titles**: Headings convey the insight, not just the metric name; date ranges are included - [ ] **Transparent caveats**: Limitations and assumptions are stated up front - [ ] **Reproducibility**: Another analyst could recreate the work from the provided documentation ## Recognizing Common Mistakes ### Inflated Counts from Many-to-Many Joins **What goes wrong**: Joining two tables with a many-to-many relationship silently multiplies rows, blowing up counts and sums. **Detection method**: ```sql -- Compare row counts before and after the join SELECT COUNT(*) FROM orders; -- 1,000 SELECT COUNT(*) FROM orders o JOIN line_items li ON o.id = li.order_id; -- 3,500 (unexpected inflation) ``` **Prevention**: - Always compare pre-join and post-join row counts - Verify the actual cardinality of the join relationship - Use `COUNT(DISTINCT o.id)` to count entities accurately through multi-row joins ### Survivorship Bias **What goes wrong**: The analysis only covers entities that still exist, ignoring those that were removed, churned, or failed. **Typical scenarios**: - Studying behavior of "active users" while ignoring everyone who left - Benchmarking against "companies on our platform" while skipping those who evaluated and moved on - Analyzing traits of "successful" cases without any "unsuccessful" comparison group **Prevention**: Before drawing conclusions, ask: "Who is absent from this dataset, and would their presence change the story?" ### Partial Period Comparisons **What goes wrong**: A month, week, or quarter that is still in progress gets compared to a completed one. **Typical scenarios**: - "January revenue is $500K vs. December's $800K" when January is only half over - "Signups are down this week" when checked on Tuesday against a full prior week **Prevention**: Restrict comparisons to completed periods, or normalize by matching the same number of elapsed days. ### Shifting Denominators **What goes wrong**: The population used as a denominator changes between periods, making rate comparisons invalid. **Typical scenarios**: - Conversion rate appears to improve because the definition of "eligible visitor" was narrowed - Churn rate shifts because "active user" was redefined mid-analysis **Prevention**: Lock in consistent definitions across every period being compared. Flag any definition changes. ### Averaging Pre-Computed Averages **What goes wrong**: Taking the mean of group-level averages ignores differences in group size, producing an incorrect overall figure. **Illustration**: - Segment A: 100 customers, $50 average order - Segment B: 10 customers, $200 average order - Incorrect overall average: ($50 + $200) / 2 = $125 - Correct weighted average: (100 * $50 + 10 * $200) / 110 = $63.64 **Prevention**: Always compute averages from individual records. Never take the mean of already-aggregated means. ### Timezone Inconsistencies **What goes wrong**: Different source systems record timestamps in different zones, causing misaligned daily rollups and join mismatches. **Typical scenarios**: - Backend events logged in UTC while the reporting layer uses US Pacific - Two tables that define "today" with different cutoff hours **Prevention**: Convert all timestamps to a single reference zone (UTC is the safest default) before any analysis. State the timezone in the deliverable. ### Circular Segmentation **What goes wrong**: Segments are defined using the very outcome being measured, creating tautological findings. **Typical scenarios**: - "Users who finished onboarding retain better" — finishing onboarding is itself a retention signal - "Power users drive more revenue" — revenue generation is what made them power users **Prevention**: Base segment definitions on characteristics measured before the outcome period, not on the outcome itself. ## Sanity-Checking Results ### Quick Magnitude Tests | Metric Category | Validation Approach | |---|---| | User counts | Cross-reference against known DAU/MAU benchmarks | | Revenue totals | Compare to known ARR or recent financial reports | | Conversion rates | Must be 0-100%; compare to dashboard baselines | | Growth rates | Is 50%+ month-over-month realistic, or does it signal a data problem? | | Averages | Given the distribution, does this number feel right? | | Segment shares | Do percentage breakdowns sum to approximately 100%? | ### Cross-Validation Approaches 1. **Dual calculation**: Derive the same metric via two independent query paths and confirm they match 2. **Record-level spot checks**: Select a handful of specific entities and manually trace their numbers end to end 3. **Benchmark comparison**: Verify against published dashboards, finance systems, or prior analysis outputs 4. **Arithmetic reversal**: If total revenue is X and there are N users, does X / N approximate the reported per-user figure? 5. **Micro-slice testing**: Filter to a single day, user, or category and confirm the micro-result is sensible ### Signals That Demand Investigation - Any metric swinging more than 50% period-over-period without a clear explanation - Totals or sums that land on suspiciously round numbers (possible filter or default-value artifact) - Rates pegged at exactly 0% or 100% (may indicate missing data rather than perfect outcomes) - Results that confirm the hypothesis too neatly (real data is almost always messy) - Identical values appearing across different time periods or segments (suggests a dimension is being ignored) ## Ensuring Reproducibility ### Analysis Write-Up Template Every substantial analysis should ship with this documentatio
Related in Data & Analytics
clawarr-suite
IncludedComprehensive management for self-hosted media stacks (Sonarr, Radarr, Lidarr, Readarr, Prowlarr, Bazarr, Overseerr, Plex, Tautulli, SABnzbd, Recyclarr, Unpackerr, Notifiarr, Maintainerr, Kometa, FlareSolverr). Deep library exploration, analytics, dashboard generation, content management, request handling, subtitle management, indexer control, download monitoring, quality profile sync, library cleanup automation, notification routing, collection/overlay management, and media tracker integration (Trakt, Letterboxd, Simkl).
querying-soql
IncludedSOQL query generation, optimization, and analysis with 100-point scoring. Use this skill when the user needs SOQL/SOSL authoring or optimization: natural-language-to-query generation, relationship queries, aggregates, query-plan analysis, and performance or safety improvements for Salesforce queries. TRIGGER when: user writes, optimizes, or debugs SOQL/SOSL queries, touches .soql files, or asks about relationship queries, aggregates, or query performance. DO NOT TRIGGER when: bulk data operations (use handling-sf-data), Apex DML logic (use generating-apex), or report/dashboard queries.
app-store-optimization
IncludedApp Store Optimization (ASO) toolkit for researching keywords, analyzing competitor rankings, generating metadata suggestions, and improving app visibility on Apple App Store and Google Play Store. Use when the user asks about ASO, app store rankings, app metadata, app titles and descriptions, app store listings, app visibility, or mobile app marketing on iOS or Android. Supports keyword research and scoring, competitor keyword analysis, metadata optimization, A/B test planning, launch checklists, and tracking ranking changes.
habit-flow
IncludedAI-powered atomic habit tracker with natural language logging, streak tracking, smart reminders, and coaching. Use for creating habits, logging completions naturally ("I meditated today"), viewing progress, and getting personalized coaching.
app-store-optimization
IncludedApp Store Optimization (ASO) toolkit for researching keywords, analyzing competitor rankings, generating metadata suggestions, and improving app visibility on Apple App Store and Google Play Store. Use when the user asks about ASO, app store rankings, app metadata, app titles and descriptions, app store listings, app visibility, or mobile app marketing on iOS or Android. Supports keyword research and scoring, competitor keyword analysis, metadata optimization, A/B test planning, launch checklists, and tracking ranking changes.
visualizing-data
IncludedBuilds dashboards, reports, and data-driven interfaces requiring charts, graphs, or visual analytics. Provides systematic framework for selecting appropriate visualizations based on data characteristics and analytical purpose. Includes 24+ visualization types organized by purpose (trends, comparisons, distributions, relationships, flows, hierarchies, geospatial), accessibility patterns (WCAG 2.1 AA compliance), colorblind-safe palettes, and performance optimization strategies. Use when creating visualizations, choosing chart types, displaying data graphically, or designing data interfaces.