Computational Approaches to the Non-Observed EconomyPolicy and practice

Module 9A practical guide

The last module turns the course into a research practice. One invented e-invoicing reform gives six correct answers to one question, so a study must fix its estimand first: population, outcome, intervention, comparator, horizon and summary. We name task types, audiences and the cost of error, separate production, compliance and observability, then choose models from a small candidate set with a baseline, select inside the validation instead of after it, report coverage by subgroup, run a multiverse of reasonable analyses, and report so others can reproduce, check and act.

By the end you should be able to run a study in order from question to report, write a precise estimand, match validation to the claim, avoid selection optimism with nesting, report uncertainty by subgroup and across analyst choices, and write a reproducible, honest report.

Key ideas, one per video

  • Video 19Write the estimand first: population, outcome, intervention, comparator, horizon and summary. An estimand limited to eligible firms missed the small firms' slight rise in hiding and the closures above the size threshold.
  • Video 20A pooled 90% interval covered 95% overall but 80% in the noisiest countries. Across 36 reasonable analyses the estimate ran from 19.8% to 22.3% (truth 20.4%), and the choice of benchmark explained 57% of the spread.

Book: Chapter 9 of Computational Approaches to the Non-Observed Economy: From Theory to Practice (coming soon). The videos and slides follow the chapter’s topics in our own words, figures and simulations; the towns and countries are invented, and nothing is copied from the book.

The title slide of Module 9: A practical guide

26 slides, written to be read on your own, with worked examples, our own small simulations and check-yourself questions (answers at the end). PDF, 4.7 MB.

Watch

2 videos for this module, each about 8 to 11 minutes. Pick one from the list, and open the transcript to read along: each timestamp plays the video from there. The narration is generated with a voice clone of Teddy, used with his permission.

Video 19 · 8:26

From a question to an estimand

One invented e-invoicing reform, 3,000 firms, six correct answers to the question “does it work?”.

Write the estimand first: population, outcome, intervention, comparator, horizon and summary. An estimand limited to eligible firms missed the small firms' slight rise in hiding and the closures above the size threshold.

TranscriptVideo 19
0:00

One reform, six answers. Does e-invoicing reduce the hidden economy? We invented a reform for 3,000 firms, and got six different answers. All of them correct. Declared sales of the firms that must e-invoice rose by 11 percent. Their hidden share fell from 20 percent to 11. The whole economy's fell from 22 to 15. Revenue rose by about 10 percent. Detected hidden sales rose by 46 percent, because invoices make hiding easier to catch. And among firms just above the size threshold, almost four in a hundred more closed. Six questions, six answers. A study has to say which question it answers before it computes anything. That's where this final module begins.

0:48

Two videos. Welcome to Module 9, the last module of the course: a practical guide to research on the non-observed economy. I'm Teddy. This video goes from a vague question to a precise target. The next one covers choosing models, validating them, and reporting.

1:03

A fixed order. A credible study runs in a fixed order. The question and its intended use define the target quantity. The target decides which evidence matters. The evidence limits the candidate models. Validation decides which conclusions survive. And reporting turns them into outputs people can use. Reverse that order, and the study weakens. Starting with we'll use a neural network, or we'll build a simulation, puts a favourite method in place of a defined task. Explaining, predicting and estimating an effect are different goals. A model that explains an association is judged one way. A forecasting model is judged another way. And a model that measures a policy's effect is judged a third way. The bridge is the estimand: the exact quantity the study is trying to learn. Write it down before choosing any estimator.

1:51

A topic is not a task. Studying tax evasion is a topic, not a task. Estimating the average undeclared share among registered retail firms in a given year is a measurement task. Ranking firms by expected recoverable tax for the next audit cycle is a detection task. Estimating the two-year effect of e-invoicing on eligible small firms is a causal task. Six task types cover most of the field: measurement, detection, forecasting, causal evaluation, simulation, and policy design. Each produces a different output: a level, a ranking, a trajectory, an effect, a generated distribution, or a portfolio. A project can contain several, but one should be primary, because each is judged differently. Measurement against evidence and accounting. Forecasts against later data. Scenarios on the credibility of their assumptions. A simple task card keeps it honest: the question, the audience, the output, the estimand, the data, the model, the validation, and the reporting. In that order. Fill in the card before the analysis starts, and keep it. When the results arrive, it shows whether the study answered the question it set out to answer.

3:02

Audience and the cost of error. Who will use the result matters. A statistics office needs an aggregate consistent with the accounts, with metadata and revision rules. A tax office needs a ranking that supports human review, with error rates and an audit trail. So does the cost of error. A country-level estimate that's off by two points may be fine for comparing countries, and serious for fiscal planning. Repurpose that country model to flag individual firms, and the error is no longer two points. It's a category mistake. A relationship among countries doesn't identify which firm is hiding. Write the output down precisely: a level, a probability, a distribution, a ranking. And state how often it updates, and how long it should live. If the data arrive a year late, a current-year number is a nowcast, not a measurement. Interpretability needs differ too. A statistics office may need every assumption visible. A tax office needs reasons a human reviewer can check, firm by firm. One question helps before any data work: what would the user do differently if the number came out high, or low? If nothing would change, the question needs more work before the data does.

4:07

Production, compliance, observability. Next, the concepts. Separate three properties of any activity. Is it production, inside the accounting boundary? Does it comply with the rules? And can the responsible institution observe it? A compliant activity can be unobserved, through gaps in statistics. A non-compliant one can be observed, once it's detected. So unobserved needs three more words: by whom, when, and for what purpose. Choose the unit to match the claim: transactions, workers, firms, regions, or country-years. Aggregating a firm into formal or informal loses the firm that does both. Fix the time basis: reference period, frequency, prices, data vintage, flows or stocks. And always state the denominator. In Module 1, one invented town's hidden economy was 15, 18 or 8 percent, depending on the definition and the denominator. State the benchmark's status too. Survey, audit, administrative, calibrated, or the output of another model. A flexible model trained on a model-based series is a model of a model. A handy test is one example in and one example out for every boundary. An undeclared repair job is in. An undeclared bank balance is not current production. Unpaid care is outside the usual production boundary, valuable as it is. Write each of these choices on the task card, so a reader can check them without guessing.

5:30

Building the estimand. Now turn a policy question into an estimand. Take our reform. Which population: all firms, or only those required to e-invoice? Which outcome: declared sales, true hidden sales, detected cases, revenue, or survival? Compared with what: no reform, or the old paper invoices? Over what horizon: a month, a year, five years? And summarised how: a mean, a share, a distribution? Fix all of these, and the question has one answer. Leave them open, and our six numbers all compete to be the effect. Keep three layers apart. The theoretical estimand is what you care about, like the true hidden share of eligible firms. The empirical estimand is what the data can identify under assumptions, like the gap between invoices and audit findings. The estimator is the procedure that computes it. For observational data, describe the experiment you wish you could run: who is eligible, what each group receives, when follow-up starts, and what's measured. Formalisation isn't an intervention until you say who gets what, how much, when, and compared with what. Causal diagrams help expose the assumptions that link the data to an effect. But a diagram doesn't replace knowing how the institution actually works. A written estimand also helps readers. They can see at once whether your number answers their question, or a nearby one.

6:46

Who is counted. Defining the population also decides what you can see. In our reform, the small firms that weren't required to e-invoice hid slightly more afterwards, about one point more, as some activity moved to them. An estimand limited to eligible firms would never notice. An economy-wide one would, but would mix that displacement with the main effect. The same goes for closures. If firms just above the threshold close, their hidden sales vanish from the eligible group, and the average can improve for the wrong reason. Survival belongs in the outcome list. So list every group a reform can touch, including firms just outside it, and say which of them your estimand counts. Most disagreements about whether a policy worked are disagreements about the estimand.

7:29

Recap. Let's recap. Question, estimand, evidence, models, validation, reporting. In that order. Name the task type and the audience, and price the errors. State production, compliance and observability, the observer, the unit, the time basis and the denominator. Turn every policy question into a population, an outcome, an intervention, a comparator, a horizon and a summary, before estimating anything. In the lab, you'll fill in a task card and an estimand card, and the lab will flag the common gaps. Next and final video: choosing models, validating them honestly, and reporting what you found.

Interactive lab

Study designer

Fill in a task and estimand card that flags what does not fit together, then try up to 300 model specifications on forty invented countries and see how picking the best flatters it, and how nesting the selection gives an honest estimate.

Everything runs in your browser. Four challenges are checked as you go.

Simple math

Study designer: a card that checks itself

Part one: describe a study in a few choices and the card flags what does not fit together. Part two: forty invented countries, 22 candidate predictors of which only two are real, and up to 300 specifications chosen by cross-validation on the same folds.

The order
question → estimand → evidence → model → validation → report

Each step is defined by the one before.

An estimand
population, outcome, intervention, comparator, horizon, summary

Fix all six and the question has one answer.

Nesting
select inside, score outside

The whole selection procedure is what you validate.

Card checks passed
–
Best cross-validated error
–
On fresh data
–
Nested estimate
–

Running…

Report card

What the card flags right now.

    Choosing among many specifications

    1

    Challenges

    Each one is checked on your current settings.

    1. Fill in the card with no flags at all.
    2. Choose a detection task with country-year units and see the level-mismatch flag.
    3. Try 300 specifications and see the winner’s cross-validated error look at least 0.3 points better than on fresh data.
    4. Nest the selection and get an honest estimate within 0.2 points of the fresh-data error.