Synthetic data: how the underlying process works
Synthetic data is information created artificially to represent selected features of real-world records, events or systems. Learners may encounter it in software testing, data science, artificial intelligence, simulations and classroom exercises. Understanding how it is produced helps distinguish a useful synthetic dataset from a collection of random values that merely looks like data.
The process usually begins with a purpose, not with a generator. A team first decides what the data must help them do, identifies the properties that matter, chooses a way to create examples and checks whether the resulting dataset is fit for its intended use.
This guide explains the process step by step, introduces common generation approaches and provides practical exercises. The examples are educational and use fictional data. They do not describe real customers or guarantee that synthetic data will protect sensitive information.
1. Start with the reason for creating the data
Before generating records, describe the task the data must support. A dataset designed to test a sign-up form has different requirements from one designed to train a forecasting model.
Common purposes include:
- Testing whether software accepts valid inputs and rejects invalid ones.
- Practising data cleaning and analysis without using real customer records.
- Demonstrating a machine-learning workflow.
- Simulating events that are rare or difficult to observe.
- Testing an integration or message-processing system.
- Exploring how a model behaves under different scenarios.
Write a short purpose statement. For example: “Create fictional daily order totals so learners can practise plotting a time series and comparing a moving-average baseline with actual values.”
This statement helps determine the fields, data volume, relationships and quality checks required. It also prevents the team from generating information that is unnecessary for the exercise.
2. Define what one record represents
Next, decide what a single row, image, event or observation represents.
In a simple tabular example, one record might represent one fictional order. The fields could include an order identifier, order date, product category, quantity and order total.
For a sensor example, one record might represent a measurement at a particular time. For an image dataset, one item might represent an image with a label. For an event stream, one record might represent a state change or transaction event.
The unit of observation matters because it determines how records relate to one another. If the purpose is to model orders, generating one row per customer may not provide the right structure.
3. Define the schema and allowed values
A schema describes the structure of the data. It can define field names, data types, required fields, optional fields, valid ranges and relationships.
For a fictional order table, a simple schema might be:
| Field | Meaning | Example rule |
|---|---|---|
| order_id | Unique fictional order reference | Must be unique |
| order_date | Date the order was placed | Must use the selected date format |
| category | Product group | Must use an allowed category |
| quantity | Number of items | Positive whole number |
| unit_price | Price per item | Non-negative numeric value |
| order_total | Total order value | Quantity multiplied by unit price |
A schema check can catch missing fields, invalid types and values outside permitted ranges. However, passing a schema check does not prove that the records make business sense. Additional rules are needed to validate relationships and process behaviour.
4. Choose which properties should be represented
Synthetic data is not required to reproduce every characteristic of a real dataset. The team should select the properties that matter for the intended task.
For example:
- A form test may need valid formats, required values and boundary cases.
- A reporting exercise may need plausible categories and totals.
- A forecasting exercise may need trend, seasonality and realistic variation.
- A workflow simulation may need valid event order and state transitions.
- A model experiment may need relevant relationships between features and labels.
These properties become design requirements. It is helpful to separate essential requirements from optional details so that the generator is not made more complex than necessary.
5. Choose a generation method
There are several ways to create synthetic data. The appropriate method depends on the task, available information, required realism and the team's skills.
Manual examples
A person writes a small number of records by hand. This is useful for lessons, demonstrations and specific test cases. The values are easy to understand and control, but manual creation does not scale well to large datasets.
Rule-based generation
A program follows explicit instructions. It might choose a category from an allowed list, generate a date within a range and calculate an order total from quantity and unit price.
Rule-based generation is often transparent and repeatable. It works well when the rules are known, but it may not represent complicated relationships unless those relationships are deliberately encoded.
Statistical generation
A statistical method estimates or specifies distributions and relationships, then generates new observations from them. For example, it might create values around a chosen average with a selected amount of variation.
Statistical generation can represent useful properties of a dataset, but matching individual field distributions does not automatically preserve relationships between fields.
Simulation
A simulator represents a process and generates observations as that process evolves. A queueing simulation might create arriving customers, waiting times and completed service events. An equipment simulator might produce readings as a fictional machine moves between operating states.
Simulation is useful for exploring scenarios, but the results depend on the assumptions built into the simulator.
Machine-learning generation
A generative model learns patterns from examples and produces new samples. Different model families are designed for different kinds of information, such as tables, images, text or sequences.
These approaches can capture complex patterns, but they require appropriate data, expertise and evaluation. They may also reproduce details from training records, so generated output should not be assumed to be private simply because a machine-learning model created it.
6. Build the generator
Once requirements and method are selected, the team creates the process that produces records. A simple generator may use a fixed list of categories, a date range and specified numeric limits. A more advanced process may fit a statistical model, run a simulation or train a generative model.
A useful generator should make its assumptions visible. Record:
- The fields it produces.
- The allowed values and constraints.
- The method used to select or calculate values.
- Any reference data used.
- The volume of data generated.
- The configuration and software version.
- Any random seed or reproducibility setting.
A random seed is a value used to initialize a pseudorandom number generator. When the same generator and settings are used correctly, a fixed seed can make a generated sample repeatable. This is helpful when debugging, teaching and comparing software changes.
7. Generate records while enforcing rules
Generation is not simply a matter of filling every column with unrelated random values. The process should enforce important constraints.
For example, if an order has a quantity of three and a unit price of ten currency units, its total should normally be thirty currency units before any documented taxes, discounts or fees. If an order refers to a customer or product table, the referenced identifier should exist.
Some constraints are simple:
- Identifiers must be unique.
- Dates must be valid.
- Required values must not be blank.
- Numeric values must fall within defined bounds.
Other constraints describe relationships:
- An invoice date should not precede its issue date.
- A shipment should refer to an existing order.
- An account cannot enter a state that the process does not permit.
- A time-series observation should follow the intended ordering and interval rules.
A good generator handles these conditions deliberately rather than relying on chance.
8. Include realistic variation without creating false claims
A dataset made entirely of identical values may be too simple for many tests. Variation can be introduced through controlled ranges, distributions, conditional rules, event schedules or simulated process behaviour.
For example, fictional daily order totals might be higher on selected days of the week, vary around an expected level and include a small number of deliberately marked events.
The important point is that the variation should serve the purpose. A learner should be told whether a pattern is a chosen teaching assumption, a simulated process rule or a property estimated from a reference dataset.
Do not describe an invented pattern as a fact about a real market or population. Synthetic values are outputs of design choices, not direct measurements of the world.
9. Validate the structure
After generation, run checks to see whether each record follows the schema.
Typical checks include:
- Required fields are present.
- Field types match the specification.
- Identifiers are unique where required.
- Date and time values are valid.
- Values stay within permitted ranges.
- Categorical values belong to the allowed list.
- Relationships between tables are valid.
For a tabular dataset, automated assertions can test these requirements. For images or text, validation may require format checks, label review, content filters or human inspection.
Structural validation is an early quality gate. It does not establish that a generated dataset is realistic or useful.
10. Validate relationships and behaviour
The next step is to check whether the dataset behaves in a way that fits the intended process.
For example, if a synthetic order table contains quantities, prices and totals, verify that the calculation is consistent. If it contains customer and order tables, verify references. If it represents a sequence of events, check whether the event order is possible.
For time-series data, useful checks may include:
- Correct interval and timestamp ordering.
- Plausible trend and seasonal behaviour for the exercise.
- No unintended duplicate timestamps.
- Sensible handling of gaps and missing observations.
- No impossible jumps caused by a generator defect.
A dataset can contain valid individual values yet still be incoherent as a whole. Relationship validation is therefore essential.
11. Compare important distributions
When a synthetic dataset is intended to resemble a reference dataset, the team may compare selected statistical properties.
For numeric fields, it may review ranges, averages, medians, quantiles and variability. For categories, it may compare proportions and frequency counts. It may also examine relationships between fields and behaviour within important groups.
The comparison should focus on the properties required by the task. A training dataset for a specific model may need to preserve some patterns more carefully than a collection of test records designed to exercise a user interface.
There is no single similarity score that proves a dataset is good. A strong review combines quantitative measures, business rules and human judgement.
12. Test whether the data is useful
A dataset may be valid and statistically plausible but still fail to support the intended task.
Use it in the actual workflow:
- Can the application import and process it?
- Do the test cases exercise the required code paths?
- Can a learner complete the intended analysis?
- Does a model behave as expected on the planned experiment?
- Are important conditions missing?
- Does the dataset produce misleading conclusions?
For model-development work, synthetic data alone may not establish real-world performance. A model can learn the assumptions of the generator and perform well on similar generated examples while failing on actual data.
Where appropriate and authorized, evaluate the model on independent real-world data that was not used to build the generator or train the model. If such a test is not available, clearly state that limitation.
13. Review privacy and disclosure risks
Synthetic data may be generated from scratch or learned from sensitive source records. The origin affects the privacy assessment.
A manually created fictional example may have no personal-data source. A machine-learning generator trained on private records may reproduce or reveal distinctive information. Generated samples can also be linked with outside information in ways the creator did not anticipate.
Before sharing a dataset, consider:
- Whether source records contained personal or confidential information.
- Whether generated samples closely reproduce source records.
- Whether rare combinations could identify an individual.
- Whether the generator itself exposes information about its training data.
- Who can access the dataset and for what purpose.
- Whether the data has been assessed under relevant privacy and security requirements.
Removing names or replacing identifiers is not enough to prove anonymity. Do not upload sensitive information to an unapproved tool or describe synthetic data as automatically safe.
14. Document the result
A synthetic dataset should be accompanied by a short description of how it was created and what it is suitable for.
Useful documentation includes:
- The dataset's purpose.
- Its source or design assumptions.
- The generator method and version.
- The schema and important constraints.
- The settings and random seed, if applicable.
- The validation checks and their results.
- Known gaps and unsupported uses.
- Privacy and access considerations.
- The owner and review date.
This information helps other learners or developers understand what the dataset represents. It also prevents synthetic examples from being mistaken for real operational evidence.
15. Worked example: create fictional daily shop orders
Imagine a learner needs a small dataset to practise charts and basic forecasting. The assignment asks for 14 days of fictional daily order counts for a sample shop.
The learner defines:
- One record per calendar day.
- A date field.
- A whole-number order count.
- A selected date range of 14 consecutive days.
- A modest weekly pattern for demonstration.
- Random variation within a documented range.
The learner could manually prepare 14 values or write a small rule-based generator. The generator should not imply that the values came from a real shop. The weekly pattern is an instructional assumption chosen to demonstrate how repeated behaviour can appear in a time series.
After generation, the learner checks that:
- Exactly 14 records exist.
- Every date is valid and unique.
- Dates are in chronological order.
- Each order count is a non-negative whole number.
- The intended weekly pattern is visible but not perfectly identical.
- The dataset contains no real customer information.
- The source and assumptions are documented.
The learner can then plot the values and compare a simple forecast with later observations. Because the dataset was deliberately constructed, the exercise demonstrates a workflow rather than proving that the method will forecast real shop demand accurately.
16. Exercise: identify the missing requirement
Scenario: A learner generates fictional product orders with these fields: order reference, product category, quantity and order total.
Questions:
- What additional field would help establish when the order occurred?
- What rule should relate quantity, price and total?
- What check should be performed on order references?
- Why might random category and quantity values produce implausible combinations?
- What should the learner document about the values?
Suggested answer: A date or timestamp is needed for time-based analysis. A unit-price field and a calculation rule can connect quantity to total. Order references should be unique if they identify individual orders. Some categories may have different realistic quantity or price ranges, so conditional rules may be needed. The learner should record that the values are fictional and explain the generator's assumptions.
17. Exercise: distinguish structure from usefulness
Scenario: A generated dataset passes all checks for column names, data types and valid numeric ranges. However, a model trained on it performs poorly when tested on a separate dataset.
Questions:
- Did the schema checks prove the synthetic data was useful?
- What other properties could have been missing?
- How could the team investigate the difference?
- What conclusion should be avoided?
Suggested answer: Schema checks established structural validity only. The generator may have failed to preserve relationships, important segments, temporal behaviour or rare cases. Compare relevant distributions and relationships, inspect error patterns and review how both datasets were collected or generated. Avoid claiming that good schema compliance proves that synthetic data can replace real training data.
18. Exercise: choose a generation method
Match each task to a possible starting approach and explain the trade-off.
| Task | Possible starting method | Why it may fit |
|---|---|---|
| Test an empty required field | Manually authored or rule-based example | The case is specific and easy to control |
| Generate many valid invoices | Rule-based generator | Business calculations and constraints can be encoded |
| Simulate a queue of arriving customers | Process simulation | Events and waiting times depend on process behaviour |
| Create a sample image collection | An appropriate image-generation method | The output is unstructured visual data |
| Demonstrate a simple statistical distribution | Statistical sampling | The intended distribution can be specified directly |
There may be more than one valid answer. The learner should justify the choice by referencing purpose, data type, realism, scale and validation needs.
19. Common mistakes to avoid
| Mistake | Why it matters | Better approach |
|---|---|---|
| Generating data before defining a purpose | The dataset may not support the intended task | Write requirements first |
| Filling every column independently | Relationships may become implausible | Encode important constraints and dependencies |
| Checking only data types | Structurally valid records may still be incoherent | Validate business rules and behaviour |
| Treating invented values as real evidence | Readers may misunderstand what the data represents | Label assumptions and synthetic origin |
| Assuming synthetic means anonymous | A generator may reproduce source information | Assess privacy risk based on the generation process |
| Testing a model only on similar generated data | Results may reflect the generator's assumptions | Seek independent evaluation when possible |
| Forgetting reproducibility | The dataset may be impossible to recreate | Record generator version, settings and seed |
| Ignoring changes in requirements | Old data may no longer test the system properly | Version and review the generator |
20. A learner's end-to-end checklist
Plan
- [ ] State the purpose of the dataset.
- [ ] Define what one record represents.
- [ ] Specify the schema, fields and constraints.
- [ ] Identify the properties that matter for the task.
- [ ] Decide whether manual, rule-based, statistical, simulation or machine-learning generation is suitable.
Generate
- [ ] Record the generation method and settings.
- [ ] Enforce required values and relationships.
- [ ] Include relevant variation and test cases.
- [ ] Keep the output clearly labelled as synthetic.
- [ ] Preserve reproducibility where needed.
Validate
- [ ] Check schema, formats and ranges.
- [ ] Check relationships and business rules.
- [ ] Review distributions and coverage where relevant.
- [ ] Test the dataset in the intended workflow.
- [ ] Assess privacy and disclosure risks.
- [ ] Record limitations and known assumptions.
Use and share
- [ ] Keep access appropriate to the data and purpose.
- [ ] Do not present generated values as measured facts.
- [ ] Avoid publishing sensitive source information or generator credentials.
- [ ] Document the dataset version and owner.
- [ ] Review the generator when the task or system changes.
21. When the process needs more than a simple generator
A few hand-written examples or a small rule-based script may be all that is needed for a classroom exercise. More involved work may require statistical expertise, simulation design, machine-learning engineering, privacy assessment or integration with existing systems.
Warning signs that a project needs additional expertise include:
- Complex relationships across many linked tables.
- Sensitive training data or possible memorization.
- High-fidelity simulation of a physical or safety-critical process.
- A requirement to support model evaluation or deployment decisions.
- Strict reproducibility, auditability or data-governance requirements.
- Large-scale generation with performance and operational constraints.
Use a method proportionate to the task. A sophisticated generator is not automatically better than a small, transparent set of examples.
How KOV can support a synthetic-data initiative
KOV can assess a proposed synthetic-data use case, map the people, data and systems involved, identify feasible approaches and define a scoped implementation. Where appropriate, this may include requirements definition, generation-workflow design, integration of approved tools, validation criteria, human review, monitoring and measurement against agreed business objectives.
The starting point is to clarify what the generated data must enable, which properties need to be represented, what risks must be controlled and how success will be checked. Specialist privacy, statistical or security review should be included when required by the project.
Further verification and editorial notes
Before publication, add and verify authoritative references for synthetic-data generation, statistical sampling, simulation, generative models, data validation, model evaluation and privacy risk. Check software capabilities, provider features, prices, API access, regulations and platform policies against current official documentation. Cite primary sources and record the verification date.
This article is educational material. It does not certify that a synthetic dataset is anonymous, suitable for every model or safe for unrestricted sharing.
Need help applying this to your business?
KOV can assess your current process, systems and requirements, then help define a practical AI strategy, integration or implementation plan.
Discuss this with KOV ↗