Skip to content

Diogo TravassosData leadership · Analytics · Decision-making

Real public data

Acceptance criteria from the documentation, run on Chicago's licence register

Criteria were frozen before the download, run as queries on 1,212,500 records, and scored against a generic profiling round.

The data

Real public data: the City of Chicago's business licence register, 1,212,500 records, every licence issued since 2002, one extract. Downloaded in pages from the portal's open interface, 1,212,500 rows, every column kept as published text. The register is open, published by the city's licensing office.

Data from the City of Chicago data portal. The city asks every site that uses its data to carry this notice:

This site provides applications using data that has been modified for use from its original source, www.cityofchicago.org, the official website of the City of Chicago. The City of Chicago makes no claims as to the content, accuracy, timeliness, or completeness of any of the data provided at this site. The data provided at this site is subject to change at any time. It is understood that the data provided at this site is being used at one's own risk.

The requester and the measure

The requester is an example: a city small-business office building a monthly licence speed report from the open register. BACP, Chicago's Department of Business Affairs and Consumer Protection, is the data owner in the requirements. In 2018 BACP announced a monthly License Clock. The announcement says it "tracks the average number of days to issue all business licenses" and "will be updated by the fifth of each month". BACP's performance metrics dataset says "the performance target for processing most business license types is approximately 15 days."

The decision the study serves: whether such a figure can be built on the open register as published, or needs an acceptance step first. BACP did not ask for this study.

The documents

The requirements rest on five public documents, read before the data:

Documents
DocumentFrom
The dataset's description and column definitionsCity of Chicago data portal
General Licensing Provisions, Municipal Code chapter 4-4a 2011 compilation the city hosts
The licence renewal pagethe licensing office
The "3 Simple Steps" flyerthe licensing office
The licensing office's operations pagethe licensing office

The order of work

  1. Request, scope and requirements, process map, data flow diagram, business case, stories and criteria, and seven predictions: frozen before any record was downloaded.
  2. The second author's criteria, written blind and frozen.
  3. The download, then the acceptance round: each criterion as a query on the full register.
  4. Profiling, with rules fixed before the data and no reference to the documents.
  5. Scoring, then one profiling rule corrected after the results, with both runs reported.
  6. A targeted catch rule, declared after the results and before its run, scored beside the declared rule on both runs.
  7. A tested-type rule, declared after the results and after a trial run, before its final run, scored beside both.
  8. Readings added after the results, with no change to any score: monthly figures and averages, the split by field, and BACP's own figures against the register.

How it was scored

Glossary

Acceptance criterion
A testable condition a story must meet: given some records, then something holds.
User story
Who wants what, and why: as the analyst, I want each renewal linked, so that on-time renewal can be measured.
Acceptance round
Running every criterion as a test script and logging pass or fail, here on the full register.
Within tolerance
Failing rows at most 0.1% of the rows in scope.
Flagged for investigation
A criterion failing on a fifth or more of its scope: the rule, not the data, may be wrong. It catches nothing.
Profiling
Generic rules on every column and pair of columns: blanks, shapes, spaces, order, outliers, codes that disagree. The entry page calls it a scan of every field.
Problem type
One profiling finding, or one criterion's failures that profiling did not cover, with its rows. A candidate, not a confirmed error.
Set aside
The entry page's name for held back, below.
Tested
Added after the results: one criterion that is not flagged, whose failure test reads every column of the type, fails on half or more of its rows.
Caught, targeted
Added after the results: one criterion that names one of the type's columns, and is not flagged, fails on half or more of its rows.
Caught, pooled
As declared: half or more of a type's rows fail any criterion that is not flagged.
Held back
A row failing a criterion, kept out of the report and logged for the data owner.

How to rebuild it

The download holds the artefacts, the criteria, the tools, the tests and the results. The README lists the commands: fetch the register, run the acceptance round, profile, score, and render the diagrams and pages. No account is needed.

Limits

BACP's clock was matched to the request after the results. BACP reports an average, the requirements a median. BACP's own yearly figures do not match the register (results).

The second author's run records are not in the download, so that part cannot be re-run from it alone.