Skip to content

Releasing a synthetic table responsibly

Once a table travels, its context doesn't travel with it. Label it, document it, say what it's fit for, and verify on the real data any result that matters.

Applied ~11 min10 steps

You will be able to

  • Save a synthetic table so nobody mistakes it for real data
  • Write a release note a stranger could act on
  • Explain why findings from synthetic rows need checking on real rows
  • Spot how a generator carries forward the biases of its source

Read first

01

The table will travel

Read

A synthetic table outlives the conversation that produced it. Six months on, someone finds it in a shared folder and has no idea what it is.

Releasing it responsibly has three parts: label it so it can't be mistaken for real data, write down what it's fit for, and be honest about what it can't tell anyone.

02

Don't let it mix with real data

Predict

Predict first

You try to save synthetic rows under the name of an existing dataset that holds real data. What does the app do?

It replaces the real dataIt saves as a new version of that datasetIt refuses and asks for another name
Reveal

It refuses, and asks for another name, so synthetic rows are never mixed with real ones. Saved rows also get a synthetic tag, which shows as a badge in the dataset list. Saving under the name of an existing synthetic dataset can add a new version.

03

Save a copy

In the app

In the studio, open the Save tab, give the copy a name and press Save as dataset.

Then open Data and find the synthetic badge. The tag stays in this project. A file you export from it won't carry the label, so put the word "synthetic" in the file name, and send the note below with it.

04

Write the release note

Reflect

Write a note for a stranger, with these items:

  • What it is: synthetic rows, the source table and its date.
  • How it was made: the generator, seed, holdout share and the columns you left out.
  • What was measured: fidelity, privacy and utility, as scored.
  • What it's for: the job it was checked for.
  • What it's not for: decisions about real people, or estimates you'd publish.

Which item would you most likely leave out when you're in a hurry? That's the one to write first.

05

A finding on synthetic rows

Predict

Predict first

A vendor analyses your synthetic table and finds that customers in one region churn much more. What's the right next step?

Report it: the fidelity was goodTreat it as a lead, and check it on the real dataDiscard it: synthetic results mean nothing
Reveal

Treat it as a lead, and check it on the real data. The pattern could be real, or the generator could have made it up or exaggerated it, especially in a small group. Good overall fidelity says little about one region. Synthetic data is fine for exploring and building, but findings that matter need the real rows.

06

Check a result on both

Explore

Generators can bend exactly the patterns you care about, since a pattern can depend on how groups combine.

EExplorable · Simpson's paradox: Berkeley admissions

Can a comparison reverse when you split the data into groups?

Overall, men were admitted more often. Within departments, who is usually admitted more often?

How sure?

View

45%Men30%Women

Commit your prediction above to see the result

Make your prediction first; the figure appears when you commit.

Make your prediction to see the result.

Look at how the overall trend and the trend within groups can point in opposite directions. A generator that blurs the groups would keep the overall trend and lose the rest, and its column scores could still look fine.

So when a result matters, run the same analysis on the real table and the synthetic one, and compare.

07

Bias comes along

Read

A generator learns the table you gave it, including who's missing and how people were treated.

  • If a group is under-represented in the source, it stays so in the copy, and may fare worse, since the generator has few rows to learn from.
  • If past decisions were unfair, a model trained on the copy can repeat them.
  • Rare people are the hard case: keep them faithfully and you risk exposing them; smooth them out and they vanish.

The scorecard measures none of this, so compare small groups by hand.

08

Check your understanding

Checkpoint

Check yourself

You export a synthetic dataset as a CSV and send it to a colleague. What protects them from mistaking it for real data?

Show the answer

Answer: b

The tag lives in the project's catalog. Good synthetic rows look real, which is the whole point, so the label has to travel some other way.

Check yourself · choose all that apply

Which uses suit a synthetic table with good scores?

Show the answer

Answer: a, b

A synthetic table is good for building and exploring. Claims about the real population and decisions about real people need real data.

Check yourself

A source table has 12 people from one small group. What's the main concern for a synthetic copy?

Show the answer

Answer: a

Small groups get little weight in overall scores. Check them by hand, and consider leaving out or coarsening the columns that make them identifiable.

09

Do it on your own data

In the app

Fit the same simple model on your real table and on its synthetic copy, and compare the coefficients and intervals. Where they disagree, the copy can't answer that question.

Python
import pandas as pd
import statsmodels.formula.api as smf

formula = "visits ~ age + tenure_months"
real = smf.ols(formula, pd.read_csv("customers.csv")).fit()
syn = smf.ols(formula, pd.read_csv("customers_synthetic.csv")).fit()

print(pd.concat({"real": real.params, "synthetic": syn.params}, axis=1).round(3))
print(real.conf_int().round(3))
R
formula <- visits ~ age + tenure_months
real <- lm(formula, read.csv("customers.csv"))
syn <- lm(formula, read.csv("customers_synthetic.csv"))

round(cbind(real = coef(real), synthetic = coef(syn)), 3)
round(confint(real), 3)

If a coefficient from the copy falls outside the real interval, that part of the data structure didn't survive.

10

Recap

Recap
  • The app keeps synthetic rows apart from real data and tags them; outside the project, the label is your job.
  • Write a release note saying what the table is, how it was made and what it's not for.
  • Treat findings on synthetic rows as leads, and check them on the real table.
  • A generator carries bias forward, and small groups need checking by hand.

Concepts in this lesson