{"skills":[{"name":"Check a percentage-change headline","description":"Distinguish percentage points from relative change and catch claims that compare two different populations.","content":"# Check a percentage-change headline\n\nDistinguish percentage points from relative change and catch claims that compare two different populations.\n\n## When to use this skill\n\n- A draft says a rate 'rose by 5%' and it is unclear whether that means five points or five per cent of the earlier rate.\n- Someone wants a renewal, pass, response or turnout rate change described correctly in a report or press release.\n- Two rates come from groups of different sizes, or from surveys that may define the outcome differently.\n\n## When not to use it\n\n- Deciding whether a change is statistically significant or larger than survey error. That needs sample sizes and a test, or the publisher's confidence intervals.\n- Changes in counts or money amounts that are not rates. An ordinary percentage change applies there.\n- Adjusting money for inflation. Use the constant-price comparison skill.\n\n## What you need\n\n- The two percentages or their numerators and denominators, populations, periods and proposed wording.\n\n## Ask before you start\n\nIf any of these are missing or unclear, ask before doing the work.\n\n- What are the numerators and denominators for each period, or at least both rates? Recalculating from counts catches rounding and denominator errors.\n- Were both rates measured with the same definition, population and method? A change of definition breaks the comparison.\n- What wording is proposed, and for which audience? The replacement sentence should fit where it will be published.\n\n## Method\n\n1. Calculate each rate from its own numerator and denominator. The groups need not be the same size, but the event, population and period length must be defined the same way.\n2. Check comparability: same definition, population, collection method and period length. If any of these changed, the comparison is not comparable. Report no change figures and ask for a consistent series.\n3. Percentage-point change: the later rate minus the earlier rate, keeping the sign.\n4. Relative change: the point change divided by the earlier rate, multiplied by 100. If the earlier rate is zero, the relative change is undefined, so report the point change only.\n5. Round once, at the end, to the precision the source supports, and use the same number of decimal places for figures in a sequence.\n6. Write a replacement sentence that gives the starting and ending rates, the periods and the point change, adding the relative change if it helps the reader. For example: 'rose from 60% in 2025 to 65% in 2026, an increase of 5 percentage points'.\n7. If the counts are small, say so and avoid strong words such as 'surge' or 'collapse', because a few events can move a rate a long way.\n\n## Checks before you deliver\n\n- \u2018Up five per cent\u2019 is ambiguous when the source moves from ten to fifteen per cent.\n- A larger count can accompany a smaller rate.\n- Calling a point change a per cent change: 40% to 50% is a rise of 10 percentage points but a 25% increase.\n- Reporting a relative change from a zero baseline as a very large or infinite figure.\n- Comparing rates across a change of definition or survey method without saying so.\n\n## How to present the result\n\nLead with the corrected sentence, ready to paste. Under it, show the working: each rate with its numerator and denominator, the percentage-point change and the relative change, or why it is undefined. Add one line on comparability, naming any change of definition or method that stops the comparison.\n\n## Worked example\n\n**Request:** Check 'renewals grew by five per cent'.\n\n**Supplied material:**\n\n```text\nSame membership definition. 2025: 60 of 100 renewed. 2026: 130 of 200 renewed.\n```\n\n**Answer:** The renewal rate rose from 60% in 2025 (60 of 100) to 65% in 2026 (130 of 200). That is a rise of 5 percentage points, or 8.33% relative to the earlier rate.\n\n## Structured output for tests\n\nFor an ordinary job, answer in the format above and point back to the supplied evidence. Use this structure only for the test cases published with this skill, or when someone asks for structured JSON.\n\nReturn comparable, point_change and relative_change_pct. Round numbers to two decimals. Use null for undefined values and for both changes if the populations use different definitions.\n\n## Sources\n\n- [Office for National Statistics Service Manual: percentages](https:\/\/service-manual.ons.gov.uk\/content\/numbers\/percentages): ONS defines a percentage point as the difference between percentages, gives the example that 10% falling by 1 percentage point becomes 9%, and asks for the same number of decimal places in a sequence of percentages.\n- [Government Analysis Function: communicating quality, uncertainty and change](https:\/\/analysisfunction.civilservice.gov.uk\/policy-store\/communicating-quality-uncertainty-and-change\/): Asks producers to describe the direction, absolute size and relative size of a change, to flag changes in definitions or collection methods that affect comparisons, and to describe changes within survey error as indicative.\n\nTest cases and an answer checker for this skill: https:\/\/skills.raq.com\/skills\/percentage-point-check\n","scope":"contextual","trigger_keywords":["Check a percentage-change headline","percentage-point-check","percentage point check","Should we say renewals rose by 5% or by 5 percentage points?","Should we say renewals rose by 5% or by 5 percentage points","percentage points or percent","percentage point change","check this percentage headline"],"is_private":true,"is_active":true,"scripts":[{"name":"percentage-point-check-check","description":"Compare a saved JSON answer with a published test. Pass tests\/case-1\/expected.json (or another case) and the path to your answer.","language":"python","filename":"percentage-point-check-check.py","content":"from pathlib import Path\nimport runpy\n\nrunpy.run_path(str(Path(__file__).parent \/ 'tests' \/ 'check.py'), run_name='__main__')\n","supporting_files":[{"path":"SKILL.md","content":"---\nname: percentage-point-check\ndescription: \"Check a sentence about a change in a rate, separating the percentage-point change from the relative percentage change and confirming both rates are comparable. Use when someone writes 'up 5%' about a rate, share, turnout, renewal, response or pass rate.\"\nlicense: CC-BY-4.0\nmetadata:\n  author: Raq.com\n  version: \"2026-11-22\"\n  homepage: https:\/\/skills.raq.com\/skills\/percentage-point-check\n---\n\n# Check a percentage-change headline\n\nDistinguish percentage points from relative change and catch claims that compare two different populations.\n\n## When to use this skill\n\n- A draft says a rate 'rose by 5%' and it is unclear whether that means five points or five per cent of the earlier rate.\n- Someone wants a renewal, pass, response or turnout rate change described correctly in a report or press release.\n- Two rates come from groups of different sizes, or from surveys that may define the outcome differently.\n\n## When not to use it\n\n- Deciding whether a change is statistically significant or larger than survey error. That needs sample sizes and a test, or the publisher's confidence intervals.\n- Changes in counts or money amounts that are not rates. An ordinary percentage change applies there.\n- Adjusting money for inflation. Use the constant-price comparison skill.\n\n## What you need\n\n- The two percentages or their numerators and denominators, populations, periods and proposed wording.\n\n## Ask before you start\n\nIf any of these are missing or unclear, ask before doing the work.\n\n- What are the numerators and denominators for each period, or at least both rates? Recalculating from counts catches rounding and denominator errors.\n- Were both rates measured with the same definition, population and method? A change of definition breaks the comparison.\n- What wording is proposed, and for which audience? The replacement sentence should fit where it will be published.\n\n## Method\n\n1. Calculate each rate from its own numerator and denominator. The groups need not be the same size, but the event, population and period length must be defined the same way.\n2. Check comparability: same definition, population, collection method and period length. If any of these changed, the comparison is not comparable. Report no change figures and ask for a consistent series.\n3. Percentage-point change: the later rate minus the earlier rate, keeping the sign.\n4. Relative change: the point change divided by the earlier rate, multiplied by 100. If the earlier rate is zero, the relative change is undefined, so report the point change only.\n5. Round once, at the end, to the precision the source supports, and use the same number of decimal places for figures in a sequence.\n6. Write a replacement sentence that gives the starting and ending rates, the periods and the point change, adding the relative change if it helps the reader. For example: 'rose from 60% in 2025 to 65% in 2026, an increase of 5 percentage points'.\n7. If the counts are small, say so and avoid strong words such as 'surge' or 'collapse', because a few events can move a rate a long way.\n\n## Checks before you deliver\n\n- \u2018Up five per cent\u2019 is ambiguous when the source moves from ten to fifteen per cent.\n- A larger count can accompany a smaller rate.\n- Calling a point change a per cent change: 40% to 50% is a rise of 10 percentage points but a 25% increase.\n- Reporting a relative change from a zero baseline as a very large or infinite figure.\n- Comparing rates across a change of definition or survey method without saying so.\n\n## How to present the result\n\nLead with the corrected sentence, ready to paste. Under it, show the working: each rate with its numerator and denominator, the percentage-point change and the relative change, or why it is undefined. Add one line on comparability, naming any change of definition or method that stops the comparison.\n\n## Worked example\n\n**Request:** Check 'renewals grew by five per cent'.\n\n**Supplied material:**\n\n```text\nSame membership definition. 2025: 60 of 100 renewed. 2026: 130 of 200 renewed.\n```\n\n**Answer:** The renewal rate rose from 60% in 2025 (60 of 100) to 65% in 2026 (130 of 200). That is a rise of 5 percentage points, or 8.33% relative to the earlier rate.\n\n## Structured output for tests\n\nFor an ordinary job, answer in the format above and point back to the supplied evidence. Use this structure only for the test cases published with this skill, or when someone asks for structured JSON.\n\nReturn comparable, point_change and relative_change_pct. Round numbers to two decimals. Use null for undefined values and for both changes if the populations use different definitions.\n\n## Sources\n\n- [Office for National Statistics Service Manual: percentages](https:\/\/service-manual.ons.gov.uk\/content\/numbers\/percentages): ONS defines a percentage point as the difference between percentages, gives the example that 10% falling by 1 percentage point becomes 9%, and asks for the same number of decimal places in a sequence of percentages.\n- [Government Analysis Function: communicating quality, uncertainty and change](https:\/\/analysisfunction.civilservice.gov.uk\/policy-store\/communicating-quality-uncertainty-and-change\/): Asks producers to describe the direction, absolute size and relative size of a change, to flag changes in definitions or collection methods that affect comparisons, and to describe changes within survey error as indicative.\n\nTest cases and an answer checker for this skill: https:\/\/skills.raq.com\/skills\/percentage-point-check\n"},{"path":"LICENSE.txt","content":"Original Raq.com instructions and synthetic examples: CC BY 4.0.\nhttps:\/\/creativecommons.org\/licenses\/by\/4.0\/\nAttribution: Raq.com, https:\/\/skills.raq.com\/skills\/percentage-point-check\nReferenced third-party materials retain their own terms.\n"},{"path":"examples\/worked-example.md","content":"# More members renewed\n\nCheck 'renewals grew by five per cent'.\n\n## Supplied material\n\nSame membership definition. 2025: 60 of 100 renewed. 2026: 130 of 200 renewed.\n\n## Worked answer\n\nThe renewal rate rose from 60% in 2025 (60 of 100) to 65% in 2026 (130 of 200). That is a rise of 5 percentage points, or 8.33% relative to the earlier rate.\n\n## Reasoning\n\n60% to 65% is five points; relative growth is about 8.33%.\n"},{"path":"tests\/check.py","content":"\"\"\"Check a saved agent answer locally with Python 3 (standard library only).\"\"\"\nimport json\nimport math\nimport sys\nfrom pathlib import Path\n\n\ndef compare(expected, actual, path=\"$\", accepted=None):\n    if isinstance(expected, bool) or isinstance(actual, bool):\n        if expected is not actual:\n            yield path\n    elif isinstance(expected, (int, float)) and isinstance(actual, (int, float)):\n        if not math.isclose(expected, actual, rel_tol=0, abs_tol=1e-8):\n            yield path\n    elif isinstance(expected, dict) and isinstance(actual, dict):\n        for key in sorted(set(expected) | set(actual)):\n            if key not in expected or key not in actual:\n                yield f\"{path}.{key}\"\n            elif not any(\n                not list(compare(option, actual[key]))\n                for option in (accepted or {}).get(key, [])\n            ):\n                yield from compare(expected[key], actual[key], f\"{path}.{key}\")\n    elif isinstance(expected, list) and isinstance(actual, list):\n        if len(expected) != len(actual):\n            yield f\"{path} (length)\"\n        for i, (left, right) in enumerate(zip(expected, actual)):\n            yield from compare(left, right, f\"{path}[{i}]\")\n    elif type(expected) != type(actual) or expected != actual:\n        yield path\n\n\ndef main():\n    if len(sys.argv) != 3:\n        raise SystemExit(\"Usage: python3 check.py expected.json answer.json\")\n    try:\n        expected, actual = [json.loads(Path(p).read_text(encoding=\"utf-8\")) for p in sys.argv[1:]]\n        alternatives = Path(sys.argv[1]).with_name(\"accepted.json\")\n        accepted = json.loads(alternatives.read_text(encoding=\"utf-8\")) if alternatives.is_file() else {}\n    except (ValueError, OSError) as error:\n        raise SystemExit(str(error))\n    differences = list(compare(expected, actual, accepted=accepted))\n    if differences:\n        raise SystemExit(\"Different fields: \" + \", \".join(differences))\n    print(\"Pass\")\n\n\nif __name__ == \"__main__\":\n    main()\n"},{"path":"tests\/README.md","content":"Give your agent SKILL.md and one request.txt in a fresh session. Keep the expected answer aside. Save the reply as answer.json, then run this from the tests folder:\n\n    python3 check.py case-1\/expected.json answer.json\n\nEach case also has an explanation. Where accepted.json exists, the checker accepts the alternatives listed there.\n"},{"path":"tests\/case-1\/request.txt","content":"Check 'renewals grew by five per cent'.\nReturn only the JSON specified in SKILL.md for this test.\n\nSame membership definition. 2025: 60 of 100 renewed. 2026: 130 of 200 renewed.\n"},{"path":"tests\/case-1\/expected.json","content":"{\n    \"comparable\": true,\n    \"point_change\": 5,\n    \"relative_change_pct\": 8.33\n}\n"},{"path":"tests\/case-1\/explanation.txt","content":"60% to 65% is five points; relative growth is about 8.33%.\n"},{"path":"tests\/case-2\/request.txt","content":"Check relative growth.\nReturn only the JSON specified in SKILL.md for this test.\n\nSame sample definition. Baseline 0 of 50; follow-up 2 of 50.\n"},{"path":"tests\/case-2\/expected.json","content":"{\n    \"comparable\": true,\n    \"point_change\": 4,\n    \"relative_change_pct\": null\n}\n"},{"path":"tests\/case-2\/explanation.txt","content":"The point change is finite; division by the zero baseline is undefined.\n"}],"is_active":true,"is_approved":false}]}]}