Data validation

Data validation ensures data integrity and reliability, and existence checking, type checking, and range checking are essential techniques used in this process:

  1. Existence checking
    • Definition: Verifies that required data is present and not missing or null.
    • Purpose: Ensures completeness of data to avoid gaps that could compromise analysis or operations.
    • Example: Checking that all rows in a dataset have a non-empty ID field or that foreign keys in one table reference valid entries in another table.
  2. Type checking
    • Definition: Confirms that data matches the expected format or type (e.g., numeric, text, date).
    • Purpose: Prevents processing errors and ensures data compatibility with analytical tools.
    • Example: Validating that a column designated for dates contains only valid date entries or that a price field contains numeric values.
  3. Range checking
    • Definition: Ensures that numeric, date, or ordered values fall within an acceptable range.
    • Purpose: Detects and flags outliers or invalid data entries, such as negative values for age or future dates for past events.
    • Example: Validating that ages in a dataset are between 0 and 120, or that transaction dates fall within a specified fiscal year.

Combined importance
By applying these techniques, data quality issues are minimised, ensuring datasets are accurate, complete and suitable for further analysis or decision-making. Download and read the following data validation resource:

Download data validation PDF
Reflection: In data we trust

Read and reflect upon these two questions:

  • Data's Reliability: How can we ensure that the data we rely on is accurate and trustworthy, especially in a world where misinformation is rampant online?
  • The Human Factor: While automation can help validate data, how can we minimise human error in the data entry and validation process in order to maintain data integrity?