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.
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
The table will travel
ReadA 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.
Don't let it mix with real data
PredictPredict first
You try to save synthetic rows under the name of an existing dataset that holds real data. What does the app do?
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.
Save a copy
In the appIn 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.
Write the release note
ReflectWrite 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.
A finding on synthetic rows
PredictPredict first
A vendor analyses your synthetic table and finds that customers in one region churn much more. What's the right next step?
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.
Check a result on both
ExploreGenerators 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?
View
Commit your prediction above to see the result
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.
Bias comes along
ReadA 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.
Check your understanding
CheckpointCheck 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.
Do it on your own data
In the appFit 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.
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))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.
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