compare_area_with_great_britain
Compare an industry's growth in a chosen UK council area with Great Britain using company counts, significance-tested area share, location quotient, and quarterly trend.
Instructions
One-call brief: is this industry growing faster or slower in this area than across Great Britain? Compares a period (default the latest four quarters) with the same quarters a year before, or the period just before: the area's count, Great Britain's, the area's share of GB with a significance test, how concentrated the industry is here (location quotient), and the quarterly trend. Formation-agent addresses are left out on both sides. If you picked this area from rank_areas_against_great_britain, quote the ranking's verdict instead: this tool tests one area on its own. To say which of two areas grew faster, use compare_two_areas.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| area | Yes | A council area, region or nation code from find_area | |
| against | No | Compare with the same quarters a year before (default; '2026-Q1 to Q3 against 2025-Q1 to Q3'; a period longer than four quarters goes back whole years, e.g. eight quarters against the eight before, so the two never overlap) or with the period of the same length just before. Answers name both periods | year_before |
| sic_codes | Yes | SIC codes from find_sic: 5 digits, a 2-4 digit group such as '812' for all of it, or a ready-made bundle id such as 'ai-and-data' (approximate). Choose codes for the activity asked about, e.g. cleaning: ['812']; digital and tech: ['62011', '62012', '62020', '62090', '63110', '63120', '58290']; every industry: ['all']. The choice can change the answer, so say which codes you used. | |
| to_quarter | No | YYYY-Qn ending the later period; default the last complete quarter | |
| from_quarter | No | YYYY-Qn starting the later period; default four quarters before to_quarter's end, so a whole year | |
| include_closed | No | True (default): count companies registered in each period, including those since dissolved, so an older period isn't shrunk by closures. False: still open only |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| rows | Yes | ||
| answer | Yes | The summary plus both must-quote caveats, ready to pass on as one text. | |
| caveats | Yes | The first two are must-quote: include them in any answer. | |
| summary | Yes | Quote this sentence word for word. | |
| excluded | Yes | ||
| snapshot_date | Yes | ||
| snapshot_sha256 | Yes |