Each step is defined by the one before.
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.
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.
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
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.
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.
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.
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.
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.
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.
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.
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.
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.
The best of 300. We gave 40 invented countries 22 possible predictors, only two of them real, and tried 300 model specifications. The best one, chosen by cross-validation, was off by 2.9 points. On fresh countries from the same world, it was off by 3.35. When the whole selection was repeated inside an outer check, the honest estimate was 3.7. Pick a winner and test it on the same data, and the winner looks better than it is. This last video is about choosing, validating and reporting honestly.
Three parts. Welcome back to Module 9. This is the final video of the course: choose, validate, report.
Readiness and candidates. Before models, check the data. For each source: coverage, timing, linkage, definitions, quality and access. A readiness check can say go, or say collect better data first. Where registers, invoices or payment data are thin, newer traces like night lights, phone records or platform data can help, but only with anchors, triangulation and honest benchmark uncertainty. Teaching data like ours are complete and reproducible. Real data are partial, revised and selected. Write down who could enter each dataset, and why each outcome was observed. Then choose a small candidate set: a transparent baseline, a model that matches the theory, and one flexible model. Baseline first, always. In Modules 5 and 7, simply repeating last year's number was hard to beat. The details often matter more than the algorithm: representation, data quality, leakage, the objective, and how you evaluate. Write down which checks failed, too. A model that couldn't be built is a finding about the data, and it saves the next team time.
Selection without self-deception. Now selection. Our 300 specifications had cross-validation errors from 2.9 up to about 4.7. The winner did contain both real predictors, plus two pieces of noise. Its reported score was the best of many tries on the same folds, so luck was built in. On fresh data it lost almost half a point. The fix is nesting. Tune and select inside an inner loop, and score the whole procedure on data the selection never touched. Report every specification you tried, not only the winner. Many models can fit about equally well while relying on different variables. That's the Rashomon effect, a cousin of the equifinality we met in Module 7. Report the range of stories, not one importance ranking. Avoid automatic stepwise selection, and keep a model card: purpose, data, candidates, baseline, tuning, assumptions, intended use, expected failures, and the uncertainty method. Information criteria, regularisation and model averaging are all reasonable ways to choose. What matters is that the choice happens inside the validation, not after a look at the test results. A quick test for any choice of model: could you have written the selection rule down before seeing the data? If not, the score you report includes some of your own searching.
Validation. Validation checks the whole procedure, from data preparation to thresholds, for its intended use. Test on later years, on other places, or in another institution, depending on how the model will travel. Random audits are unusually valuable here, because who gets audited doesn't depend on earlier rules. And when you validate someone else's model on new data, reproduce it exactly before changing anything. Document how leakage was prevented. Say how the data were resampled and how tuning was done. And state how far you claim the result generalises. Validate at the level of the claim. An aggregate model is checked against aggregates. A firm-level ranking is checked against firm-level outcomes, counting both false alarms and missed cases. And keep the final evaluation data untouched until the very end. Every peek turns test data into training data. If the model will be used in another place or another year, test it there before trusting it there. A score earned on familiar data says little about unfamiliar ones.
Uncertainty and coverage. Uncertainty has six sources: the measurement, the sample, the parameters, the model's form, the future, and how the result will be used. A standard error covers only part of that. Here's a subtle one. We built a 90 percent interval for next year's benchmark in 12 invented countries, calibrated on all of them together. Overall, it covered the truth 95 percent of the time. But in the three noisiest countries, only 80 percent. In the nine calmer ones, every time. Calibrating each country separately adapts the widths, from under one point to about seven. But with only ten years per country, one fell to 60 percent coverage. Report coverage by subgroup, and say how much data stands behind each interval. And watch for drift after deployment. A model can change the very behaviour it measures. Bootstrap the whole procedure to capture sampling variation. For panels and maps, resample whole countries or regions, not single rows, or the uncertainty will look smaller than it is. Even intervals with formal guarantees assume the future resembles the calibration data. A structural break isn't fixed by a cleverer interval. It's found by monitoring.
The multiverse. There's another kind of uncertainty: the choices the analyst makes. So run the multiverse. Repeat the analysis across every reasonable combination of choices. We estimated one invented country's hidden share for next year with three benchmark series, three history windows, and two models, one of them with three predictor sets. That's 36 reasonable analyses. They range from about 19.8 percent to 22.3. The true value was 20.4. And which choice mattered? The benchmark series explained 57 percent of the spread. The history window, 21. The predictors, 6. The model, almost nothing. That's worth knowing before collecting anything new. Here, settling which benchmark to trust would narrow the range far more than any change of model. The choice you argue about least can matter most. Show the whole multiverse.
Reporting. Finally, reporting. Keep the chain visible: the question, the estimand, the evidence, the model, the validation, and the uncertainty. A number without that chain is an assertion. Share a reproducibility package: code, data or access instructions, software versions, and random seeds, so someone else can get the same numbers. Separate what the evidence directly supports from what depends on model assumptions. And give both absolute and relative changes. A fall from 20 percent to 15 is five points, and also a quarter. If the result will guide action on people or firms, report errors by subgroup, the proxies the model relies on, who reviews its outputs, and how decisions can be appealed. For decision makers, add a one-page summary: what was asked, what was found, how sure we are, what would change the conclusion, and what should be measured next. And pre-register what you can: the estimand, the validation design and the main comparison, before seeing any results. It's the simplest protection against fooling yourself. Finally, say what the study cannot tell you. A clear list of limits makes the rest of the report more credible, not less.
The course in one view. Let's recap this video. Check data readiness, start from baselines, nest your selection, validate the whole procedure, report coverage by subgroup, and run the multiverse. And that's the course. We defined the non-observed economy, built theory and data around it, estimated and forecast it, mapped it, simulated it, designed policy against it, and turned it all into a research practice. Every number in these videos came from invented worlds we built, so we could check our methods against a truth. Real studies don't get that luxury, which is exactly why the habits matter. If you remember one thing, make it the order: question, estimand, evidence, model, validation, report. The decks, labs and transcripts for every module are on the course page. In the last lab, you'll design a complete study and get a report card. Thank you for learning with me. I'm Teddy. Go look for what's hidden, carefully.
8:26Video 19 · 9.1From a question to an estimandWrite 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.
8:30Video 20 · 9.2Choose, validate, reportA 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.
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.
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.
Fix all six and the question has one answer.
The whole selection procedure is what you validate.
Running…
Report card
What the card flags right now.
Choosing among many specifications
Challenges
Each one is checked on your current settings.
- Fill in the card with no flags at all.
- Choose a detection task with country-year units and see the level-mismatch flag.
- Try 300 specifications and see the winner’s cross-validated error look at least 0.3 points better than on fresh data.
- Nest the selection and get an honest estimate within 0.2 points of the fresh-data error.
