Data Analysis
Derive reviewable conclusions from the user's data. Use the available source
and computation tools; this Skill does not prescribe a format, language,
library, or artifact. Respect project metric definitions and business rules.
Preserve inputs unless transformation was requested, and match effort to the
decision's risk.
Apply three gates before analysis:
- Precision gate: execute precision-preserving arithmetic before reporting
an exact monetary/ledger reconciliation or another result where ordinary
numeric arithmetic can lose meaningful digits. Reading values, profiling
them, or writing out arithmetic is not verification.
- Method gate: report no statistical interval, p-value, model coefficient,
forecast, or probability unless an applicable method was executed and its
assumptions are supported by the evidence. Calling a number rough or
approximate does not supply a derivation.
- Confidence gate: return no 0-100 or other numerical confidence unless the
source defines the score or an applicable method estimates that quantity.
Otherwise say it is not estimable from the supplied evidence. Never relabel
an unsupported number as evidence strength, decision confidence, reliability,
or confidence in the opposite conclusion. When the user requests numerical
confidence, execute the bundled
uncertainty-gate after classifying the claim
and evidence; its rejection of a generic score is binding.
Evidence boundary
Every reported number needs a derivation, a unit, and a denominator where
applicable. Apply this to the final recommendation, not just the calculations.
- Units: retain source units unless a conversion is needed and supported.
If the currency is unspecified, say so and keep the supplied monetary unit;
do not guess a currency or silently scale the values. Label totals versus
per-unit values and percentage points versus relative percentages.
- Confidence: identify the requested quantity and whether the design/data
can estimate it. A user's request for a number does not create evidence, and
not estimable is not zero probability. A defined business scoring rule may be
computed, but is not a probability.
- Causality: a descriptive comparison, of any sign, establishes neither a
causal effect nor its absence without a credible identifying design.
Report the observed result separately from what remains unidentified.
Analytical loop
- Frame the claim. Establish the population, entity grain, period, metric,
denominator, units, comparison, and deliverable. Distinguish description,
prediction, and causal inference. Resolve ambiguities that could change the
answer; otherwise state a reasonable assumption.
- Establish the evidence. Inspect source provenance, freshness, schema,
counts, keys, and boundaries. A preview or sample describes only its covered
scope; retrieve the complete records required by the claim using the source's
pagination or persisted-result contract.
- Check fitness. Test the relevant risks: missingness, duplicates, filter
loss, join coverage/multiplication, changed definitions, partial periods,
incompatible units, or shifted population/segment mix. State material
exclusions and missing-value treatment. Narrow an unsupported claim instead
of filling evidence gaps with speculation.
- Compute reproducibly. Use transparent direct arithmetic for a few visible
values when it is safely reviewable. Execute code, SQL, or spreadsheet
formulas for bulk transformations, statistical inference, fitted models,
precision-sensitive results, or when execution was requested. Reuse a bundled
calculation below when its assumptions fit; otherwise use the simplest suitable implementation.
Have the computation output the report-ready values with metric labels,
units and denominators, including needed conversions and display rounding.
Reuse those values in the answer; keep exact money/counts internally. Do not
install a data-science stack merely for analysis.
- Challenge the headline. Use an independent check capable of changing the
conclusion: raw-component recomputation, reconciliation, record tracing,
alternate grouping/baseline, or sensitivity analysis. Correct discrepancies;
stop when further checks would not materially improve the answer.
- Report at the evidence boundary. Lead with the result, its scope and
practical meaning. Separate observation, interpretation, and recommendation.
Put material assumptions, exclusions, and limitations beside their claims.
Do not produce a checklist report or extra files merely to follow this loop.
Choosing uncertainty
Use quantitative uncertainty when the design supports it: a suitable interval
for a sample estimate or experiment, validated prediction error/ranges for a
forecast, or bounds/sensitivity analysis for incomplete evidence. Give the
estimate, scale, sample basis, method, and material assumptions together. A
complete in-scope deterministic total needs scope and validation, not an
artificial sampling interval. When uncertainty cannot be quantified, explain
the evidence gap and decision impact without an arbitrary numerical substitute.
Before responding, reconcile the answer's material numbers and labels with
their derivations. Remove unsupported quantities introduced during explanation;
in particular, remove any statistical quantity that did not pass the method
gate, any numerical confidence that did not pass the confidence gate, and
execute any precision-sensitive result that did not pass the precision gate.
Conditional references
- For a requested numerical confidence, binomial rate/difference intervals,
missing binary outcome bounds, multiple-testing correction, or exact decimal
totals/reconciliation, read calculations.md and
execute the matching bundled script. Source extraction and business logic
remain task-specific; these helpers do not define a universal confidence score.
- For sampling inference, experiments, forecasts, formal uncertainty, or causal
analysis, read inference-and-uncertainty.md.
- For reviewing an existing analysis, reconciling conflicting sources, or
validating a surprising or high-impact conclusion, read
validation.md.
1---2name: data-analysis3description: Data Analysis4---56# Data Analysis78Derive reviewable conclusions from the user's data. Use the available source9and computation tools; this Skill does not prescribe a format, language,10library, or artifact. Respect project metric definitions and business rules.11Preserve inputs unless transformation was requested, and match effort to the12decision's risk.1314Apply three gates before analysis:1516- **Precision gate:** execute precision-preserving arithmetic before reporting17 an exact monetary/ledger reconciliation or another result where ordinary18 numeric arithmetic can lose meaningful digits. Reading values, profiling19 them, or writing out arithmetic is not verification.20- **Method gate:** report no statistical interval, p-value, model coefficient,21 forecast, or probability unless an applicable method was executed and its22 assumptions are supported by the evidence. Calling a number rough or23 approximate does not supply a derivation.24- **Confidence gate:** return no 0-100 or other numerical confidence unless the25 source defines the score or an applicable method estimates that quantity.26 Otherwise say it is not estimable from the supplied evidence. Never relabel27 an unsupported number as evidence strength, decision confidence, reliability,28 or confidence in the opposite conclusion. When the user requests numerical29 confidence, execute the bundled `uncertainty-gate` after classifying the claim30 and evidence; its rejection of a generic score is binding.3132## Evidence boundary3334Every reported number needs a derivation, a unit, and a denominator where35applicable. Apply this to the final recommendation, not just the calculations.3637- **Units:** retain source units unless a conversion is needed and supported.38 If the currency is unspecified, say so and keep the supplied monetary unit;39 do not guess a currency or silently scale the values. Label totals versus40 per-unit values and percentage points versus relative percentages.41- **Confidence:** identify the requested quantity and whether the design/data42 can estimate it. A user's request for a number does not create evidence, and43 not estimable is not zero probability. A defined business scoring rule may be44 computed, but is not a probability.45- **Causality:** a descriptive comparison, of any sign, establishes neither a46 causal effect nor its absence without a credible identifying design.47 Report the observed result separately from what remains unidentified.4849## Analytical loop50511. **Frame the claim.** Establish the population, entity grain, period, metric,52 denominator, units, comparison, and deliverable. Distinguish description,53 prediction, and causal inference. Resolve ambiguities that could change the54 answer; otherwise state a reasonable assumption.552. **Establish the evidence.** Inspect source provenance, freshness, schema,56 counts, keys, and boundaries. A preview or sample describes only its covered57 scope; retrieve the complete records required by the claim using the source's58 pagination or persisted-result contract.593. **Check fitness.** Test the relevant risks: missingness, duplicates, filter60 loss, join coverage/multiplication, changed definitions, partial periods,61 incompatible units, or shifted population/segment mix. State material62 exclusions and missing-value treatment. Narrow an unsupported claim instead63 of filling evidence gaps with speculation.644. **Compute reproducibly.** Use transparent direct arithmetic for a few visible65 values when it is safely reviewable. Execute code, SQL, or spreadsheet66 formulas for bulk transformations, statistical inference, fitted models,67 precision-sensitive results, or when execution was requested. Reuse a bundled68 calculation below when its assumptions fit; otherwise use the simplest suitable implementation.69 Have the computation output the report-ready values with metric labels,70 units and denominators, including needed conversions and display rounding.71 Reuse those values in the answer; keep exact money/counts internally. Do not72 install a data-science stack merely for analysis.735. **Challenge the headline.** Use an independent check capable of changing the74 conclusion: raw-component recomputation, reconciliation, record tracing,75 alternate grouping/baseline, or sensitivity analysis. Correct discrepancies;76 stop when further checks would not materially improve the answer.776. **Report at the evidence boundary.** Lead with the result, its scope and78 practical meaning. Separate observation, interpretation, and recommendation.79 Put material assumptions, exclusions, and limitations beside their claims.80 Do not produce a checklist report or extra files merely to follow this loop.8182## Choosing uncertainty8384Use quantitative uncertainty when the design supports it: a suitable interval85for a sample estimate or experiment, validated prediction error/ranges for a86forecast, or bounds/sensitivity analysis for incomplete evidence. Give the87estimate, scale, sample basis, method, and material assumptions together. A88complete in-scope deterministic total needs scope and validation, not an89artificial sampling interval. When uncertainty cannot be quantified, explain90the evidence gap and decision impact without an arbitrary numerical substitute.9192Before responding, reconcile the answer's material numbers and labels with93their derivations. Remove unsupported quantities introduced during explanation;94in particular, remove any statistical quantity that did not pass the method95gate, any numerical confidence that did not pass the confidence gate, and96execute any precision-sensitive result that did not pass the precision gate.9798## Conditional references99100- For a requested numerical confidence, binomial rate/difference intervals,101 missing binary outcome bounds, multiple-testing correction, or exact decimal102 totals/reconciliation, read [calculations.md](references/calculations.md) and103 execute the matching bundled script. Source extraction and business logic104 remain task-specific; these helpers do not define a universal confidence score.105- For sampling inference, experiments, forecasts, formal uncertainty, or causal106 analysis, read [inference-and-uncertainty.md](references/inference-and-uncertainty.md).107- For reviewing an existing analysis, reconciling conflicting sources, or108 validating a surprising or high-impact conclusion, read109 [validation.md](references/validation.md).