ArticleslgStudy

science

Data preparation

Data preparation is a science topic covered in the lgStudy science library. This page brings together a partial reference excerpt, illustrations, worked examples, real-world applications and a short study plan, so you can understand Data preparation rather than just read about it. In short: Data preparation is the act of manipulating (or pre-processing) raw data (which may come from disparate data sources) into a form that can be readily and accurately analysed, e.g. for business purposes. Data preparation is the first step in data analytics projects and can include many discrete tasks such as loading data or data ingestion, data fusion, data cleaning, data augmentation, and data delivery.

Key takeaways

  • Data preparation belongs to science; place it in that map before memorising details.
  • Learn the definition first, then one example that makes the definition concrete.
  • Connect Data preparation to a quantity you can measure, compute or draw — that is where exam questions come from.
  • Reproduce the core statement of Data preparation from memory before moving on to harder problems.

Reference excerpt

Data preparation is the act of manipulating (or pre-processing) raw data (which may come from disparate data sources) into a form that can be readily and accurately analysed, e.g. for business purposes. Data preparation is the first step in data analytics projects and can include many discrete tasks such as loading data or data ingestion, data fusion, data cleaning, data augmentation, and data delivery. The issues to be dealt with fall into two main categories:

systematic errors involving large numbers of data records, probably because they have come from different sources; individual errors affecting small numbers of data records, probably due to errors in the original data entry.

Data specification The first step is to set out a full and detailed specification of the format of each data field and what the entries mean. This should take careful account of:

most importantly, consultation with the users of the data any available specification of the system which will use the data to perform the analysis a full understanding of the information available, and any gaps, in the source data. See also data definition specification.

Example Suppose there is a two-character alphabetic field that indicates geographical location. It is possible that in one data source a code "EE" means "Europe" and in another data source the same code means "Estonia". One would need to devise an unambiguous set of codes and amend the code in one set of records accordingly. Furthermore, the "geographical area" might refer to any of e.g. delivery address, billing address, address from which goods supplied, billing currency, or applicable national regulations. All these matters must be covered in the specification. There could be some records with "X" or "555" in that field. Clearly, this is invalid data as it does not conform to the specification. If there are only small numbers of such records, one would either correct them manually or if precision is not important, simply delete those records from the file. Another possibility would be to create a "not known" category.

Other examples of invalid data requiring correction Telephone numbers are in the correct format and have the correct values for the territory indicated in the geographical location field. The country code may be present in some records and not in others: it should either be removed or inserted (based on the geographical location) depending on the data specification. Similarly, the formats of dates and units of measurement (weights, lengths) may be inconsistent. In some cases missing data should be supplied from external sources (e.g. finding the ZIP/postal code of an address via an external data source) Data should be consistent between different but related data records (e.g. the same individual might have different birthdates in different records or datasets). Where possible and economic, data should be verified against an authoritative source (e.g. business information is referenced against a D&B database to ensure accuracy). Given the variety of data sources (e.g. databases, business applications) that provide data and formats that data can arrive in, data preparation can be quite involved and complex. There are many tools and technologies that are used for data preparation. The cost of cleaning the data should always be balanced against the value of the improved accuracy.

Self-service data preparation Self-service data preparation emerged as a distinct software category in the mid-2010s, driven by business analysts and data scientists who needed to prepare data for analysis without waiting on IT or writing code themselves. Gartner began tracking the market formally, publishing guidance on self-service data preparation vendors starting around 2016, and later folded coverage of the category into its broader research on data integration tools. These platforms typically provide a visual, spreadsheet-like interface in which a user can directly see sample data and apply operations such as filtering, joining, or reformatting, with the same sequence of steps then reusable across future datasets. Vendors in this space have included Paxata, Trifacta, Alteryx, Talend, and Ataccama, though the market has consolidated through acquisitions in subsequent years. Once the preparation work is complete, the underlying steps can be run on other datasets to perform the same operations. This reuse provides a significant productivity boost when compared to more traditional manual and hand-coding methods for data preparation.

Data preparation steps The specifics of the data preparation process vary by industry, organization, and need, but the workflow remains largely the same.

Gather data. The data preparation process begins with identifying relevant datasets, which may be sourced from existing data catalogs or added as needed. Discover and assess data. After collecting the data, each dataset is examined to understand its structure, contents, and limitations. This step focuses on determining what actions are required before the data can be used in a specific context. Cleanse and validate data. Data cleansing focuses on improving data quality. Common tasks include removing extraneous data and outliers, filling in missing values, conforming data to standardized formats, and masking private or sensitive information. Once the data has been cleansed, it is validated by testing for errors introduced during earlier steps. Transform and enrich data. Data transformation involves modifying data formats or values to achieve a defined outcome or to make the data easier to interpret. Data enrichment refers to enriching data by adding or linking it with related information to provide additional context or insights. Store data. After preparation, data may be stored or transferred to third-party applications, such as business intelligence tools, where it can be process or analyzed.

See also Data editing, correcting errors in a corpus of data Data pre-processing, a step of cleaning data in data mining for analysis purposes Data mining, finds patterns and insights within data sets Data transmission

References

Worked examples

Example 1 — a first encounter with Data preparation

Start with the simplest possible case. Write down what Data preparation claims or describes in one sentence, then invent the smallest concrete situation in which that sentence is true. In science, the smallest case is usually a single object, a single equation or a single measurement. Check that every symbol or term in your sentence has a meaning in that case.

Example 2 — changing one variable

Take the situation from Example 1 and change exactly one quantity: double it, halve it, or set it to zero. Predict what should happen to Data preparation before you calculate. Comparing your prediction with the result is the fastest way to find out whether you understand the idea or only the words.

Example 3 — an exam-style question

Typical questions about Data preparation ask you to (a) state it precisely, (b) apply it to given data, and (c) explain a limitation. Practise writing all three answers in under five minutes; the third part is what separates a full-mark answer from an average one.

Applications of Data preparation

In research
Data preparation appears in science research whenever the underlying quantities have to be modelled precisely. Papers usually cite it as a starting assumption and then explore where it breaks down.
In technology and industry
Engineering practice reuses Data preparation in design rules, simulations and safety margins. Knowing the idea lets you read a specification sheet and understand why the numbers look the way they do.
In the classroom
Data preparation is common in secondary-school and first-year university syllabi. It links to neighbouring topics Data mapping, so understanding it makes those chapters shorter.
In everyday life
Look for Data preparation outside the textbook — in sport, cooking, traffic, electronics or the sky above you. An example you found yourself is remembered far longer than one you were given.
Ask Teacher Smith questions about this articleOpens your AI tutor with a question about “Data preparation” →

How to study Data preparation in 20 minutes

  1. Read the reference excerpt below once, without taking notes.
  2. Close the page and write down what Data preparation means in your own words.
  3. Compare your version with the excerpt and mark what you missed.
  4. Work through the three examples above with pen and paper.
  5. Explain Data preparation out loud to somebody else — or to Teacher Smith in the lgStudy chat.

Frequently asked questions

What is Data preparation in simple terms?

Data preparation is the act of manipulating (or pre-processing) raw data (which may come from disparate data sources) into a form that can be readily and accurately analysed, e.g. for business purposes. Data preparation is the first step in data analytics projects and can include many discrete task…

Why does Data preparation matter?

Because it connects several science ideas at once: it gives you a definition you can apply, a quantity you can calculate, and a way to check whether a result is plausible.

How should I study Data preparation?

Read the excerpt, restate it from memory, then work through the examples and applications listed on this page. The five-step study plan above takes about twenty minutes.

What does this page cover?

It gives you a compact reference excerpt plus original lgStudy explanations, examples, applications and study material on Data preparation.

Tags

  • Data mapping

Keep exploring