endueendue

Data Analysis

Use when someone shares a table, CSV or figures and asks what happened, why it changed or how groups compare. Gives a one-page analysis with causes, checks and a next step.

v3.0.0

Ce que fait cette compétence

Les instructions complètes que suit votre agent. Rien ici n’est caché derrière une connexion.

Data analysis

Answer one question from the user's data, show the working, and say how far to trust the answer.

When to use

Use it to explain what happened, why, or how groups compare. Use metrics-monitoring for a running service's health, budget-analysis to compare with a budget, growth-experiments for a test plan, and database-query when only SQL is wanted. If the user wants one number, reply in chat with it, its calculation and its limits.

How to work

  1. Write the question in one sentence. Ask about a column or period only if it can be read two ways and the answer would change. Otherwise choose the natural reading and list it as an assumption.
  2. Run six checks: missing values, duplicates, equal periods, same denominator, subtotals that match totals, and group size. Mark each one pass, problem or can't check.
  3. Work out every total from the rows. Never average the groups' averages.
  4. If a rate changed and you have group counts, split the change. Mix effect = sum of (new share − old share) × old rate. Rate effect = sum of new share × (new rate − old rate). Together they equal the whole change. If an amount changed, show what each group added or took away.
  5. Choose one verdict: "Ready to use", "Use with limits" or "Not ready".

The result

Always use these sections, in this order. For a small question, shorten them but keep them all.

  1. Cover: the answer with its main number. Key facts: the verdict, the period and the number of rows. If the user asks for a decision, make it, or name the missing fact it depends on.
  2. Key numbers: 3–4 KPIs, with the old value in <em>.
  3. What drove it: the main visual. One e-diff bar per cause, plus a total bar that equals the whole change. For a rate, the causes are the mix and rate effects. For an amount, use one bar per group. If nothing changed over time, use ranked e-bars with n in each label.
  4. By group: a table with n (what you divide by: people, days) and the old and new values. Add "Small sample" in an <em> only where n is below 30.
  5. Checks and assumptions: the six checks in an e-check list, then assumptions.
  6. What we can't tell yet: what's missing and which decision it affects.
  7. Next check: one check, and the result that would change the conclusion.

Build the page

Save one .html file (under 7,000 characters) with save_output. Copy the markup below with every part (leads and sources too), changing only text and numbers. Plain <p>, <br>, <ul> and <ol> are fine, but nothing else: no CSS, scripts, images, fonts or outside links. Keep <style> as is: endue adds its design there. Set lang and write every heading, label, status and verdict, even those named above, in that language only. In text and code, write &lt; for < and &amp; for &.

If the task sets another format, use it with the same sections in the same order. If you can't save files, give them in chat. After saving, reply with only the conclusion and what needs attention.

<!doctype html><html lang="ko"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width,initial-scale=1"><title>Title</title><style>/*endue-kit*/</style></head><body><main class="e">
<header class="e-cover"><p>topic · date</p><h1>Conclusion, up to 60 characters (30 in Korean or Japanese)</h1><p>The main reason</p><ul><li>key fact</li></ul><div class="e-big"><b>12%</b><span>what it measures</span></div></header>
<section><h2>Heading</h2><p class="e-lead">The point in one sentence</p><!-- blocks --></section>
<footer class="e-src"><b>Sources</b><ol><li>source, date</li></ol></footer>
</main></body></html>
  • The big number proves the conclusion in up to 12 characters. Without one, leave out e-big.
  • Variables take plain numbers (1240 or 0.5, not 1,240). --max is the block's largest value. Show every value as text too. Counts in sentences must match the blocks.
  • Put hi only on what proves the block's point. Use good, warn and bad only when clear, with a word beside them. Say what each change is compared with.

Blocks to use here:

  • Key numbers, 2–4: <div class="e-kpis"><div class="e-kpi"><span>Orders</span><b>1,240</b><em class="up good">8% vs Sep</em></div></div>. up/down is the direction, good/bad says if that is welcome. Values: 14 characters or fewer.
  • Bars either side of zero: <div class="e-diff" style="--max:12"><div class="bad" style="--v:12"><span>Ads</span><b>+12</b></div><div class="good" style="--v:-7"><span>Shipping</span><b>−7</b></div><div class="total" style="--v:5"><span>Total</span><b>+5</b></div></div>. The sign of --v is the direction; good and bad say if that is welcome. --max is the largest size, ignoring the sign.
  • Ranked bars, largest first: <div class="e-bars e-focus" style="--max:62"><div class="hi" style="--v:62"><span>Search</span><b>62</b><em>optional note</em></div></div>
  • Table, up to 5 columns: <div class="e-table"><table><thead><tr><th>Task</th><th class="n">Cost</th></tr></thead><tbody><tr class="hi"><td>text</td><td class="n">1,200</td></tr><tr class="total"><td>Total</td><td class="n">1,200</td></tr></tbody></table></div>. n is for numbers. <em> in a cell adds a small line below.
  • Checklist: <ul class="e-check"><li class="done">passed or done</li><li class="bad">failed</li><li class="warn">could not check</li><li>open<em>owner · date</em></li></ul>. The words must match the mark.

Before you finish

  • Recalculate from the rows. The bars must add up to the total bar, and the cover must match the table.
  • Use "pp" for a change in a rate and "%" for a relative change.
  • Show n beside every rate and the calculation behind every headline number.

Never

  • Invent, fill in or forecast a value unless asked. If asked, label it.
  • Say one thing caused another because the dates match. Write "consistent with" and name the check that would confirm it.
  • Use a second axis, or bars that don't start at zero.
Commencer gratuitement

Après votre inscription, ajoutez Data Analysis à votre agent en un clic.

Autres compétences