Description

Book Synopsis

Test-driven data analysis is the synthesis of ideas from test-driven development of software to data-intensive work including data science, data analysis, and data engineering. It is a methodology for improving the quality of data and of analytical pipelines and processes. It can be thought of as data analysis as if the answers actually matter.

Part I of the book describes the use of constraints for data validation and shows how tools can use a machine-learning-style approach to infer suitable constraints from data. This is illustrated using the command-line tools in the open-source Python tdda library, as well as alternatives. These can be used regardless of the programming language in use. Part II covers reference testing of analytical pipelines and processes. Again, there is support in the tdda library for this, including automatic test-generation capabilities for testing software in any language. There are specific discussions of testing models and modeling, including the large language models used in chatbots, coding bots, and summarizers. Part III covers broader kinds of errors that can occur in analysis, including

  • errors of formulation, when the problem domain, methods or libraries are misinterpreted;
  • errors of process, as developed analytical processes are used;
  • errors of applicability, when analytical processes are used in situations for which they were not designed;
  • errors of communication, when valid analyses are misinterpreted; and
  • errors of judgement, when harmful analyses are carried out.

Extensive checklists are provided that can be used to improve quality before, during, and after analysis.

Test-driven data analysis can be thought of as a sibling to reproducible research, with similar concerns, but greater emphasis on automated testing, and less requirement for a human to reproduce results.

Key Features:

  • Prevents costly errors in analytical processes before they reach production through automated data validation and reference testing of data pipelines.
  • Provides actionable checklists for issues beyond the reach of automated testing.
  • Equips readers with open-source Python tools and language-agnostic command-line interfaces.
  • Addresses testing challenges for modern LLM-based systems including chatbots and coding assistants.
  • Instills in analysts an inner voice that is always asking: âœHow is this misleading data misleading me?â

Nicholas Radcliffe is the Founder and Director of Stochastic Solutions Limited, a Scottish company specializing in consulting in data science, data analysis, and data engineering. He has also, since 1995, been a Visiting Professor in the Operations Research Group in the School of Mathematics at the University of Edinburgh. He is known for developing forma analysis (sic) of genetic algorithms and uplift modeling, before more recent work on test-driven data analysis.

TestDriven Data Analysis

    Product form

    A Hardback by Nicholas J. Radcliffe

    £152.00

    Includes FREE delivery

    Order before 4pm on Wednesday for delivery by Fri 6 Nov 2026.

    1 in stock

      Trusted by thousands of customers. See 2,385+ Customer Reviews

      View other formats and editions of TestDriven Data Analysis by Nicholas J. Radcliffe

      Book details

      Publisher CRC Press
      ISBN-13 9781032897158
      978-1032897158
      Also in:
      Data mining

      Description

      Book Synopsis

      Test-driven data analysis is the synthesis of ideas from test-driven development of software to data-intensive work including data science, data analysis, and data engineering. It is a methodology for improving the quality of data and of analytical pipelines and processes. It can be thought of as data analysis as if the answers actually matter.

      Part I of the book describes the use of constraints for data validation and shows how tools can use a machine-learning-style approach to infer suitable constraints from data. This is illustrated using the command-line tools in the open-source Python tdda library, as well as alternatives. These can be used regardless of the programming language in use. Part II covers reference testing of analytical pipelines and processes. Again, there is support in the tdda library for this, including automatic test-generation capabilities for testing software in any language. There are specific discussions of testing models and modeling, including the large language models used in chatbots, coding bots, and summarizers. Part III covers broader kinds of errors that can occur in analysis, including

      • errors of formulation, when the problem domain, methods or libraries are misinterpreted;
      • errors of process, as developed analytical processes are used;
      • errors of applicability, when analytical processes are used in situations for which they were not designed;
      • errors of communication, when valid analyses are misinterpreted; and
      • errors of judgement, when harmful analyses are carried out.

      Extensive checklists are provided that can be used to improve quality before, during, and after analysis.

      Test-driven data analysis can be thought of as a sibling to reproducible research, with similar concerns, but greater emphasis on automated testing, and less requirement for a human to reproduce results.

      Key Features:

      • Prevents costly errors in analytical processes before they reach production through automated data validation and reference testing of data pipelines.
      • Provides actionable checklists for issues beyond the reach of automated testing.
      • Equips readers with open-source Python tools and language-agnostic command-line interfaces.
      • Addresses testing challenges for modern LLM-based systems including chatbots and coding assistants.
      • Instills in analysts an inner voice that is always asking: âœHow is this misleading data misleading me?â

      Nicholas Radcliffe is the Founder and Director of Stochastic Solutions Limited, a Scottish company specializing in consulting in data science, data analysis, and data engineering. He has also, since 1995, been a Visiting Professor in the Operations Research Group in the School of Mathematics at the University of Edinburgh. He is known for developing forma analysis (sic) of genetic algorithms and uplift modeling, before more recent work on test-driven data analysis.

      Recently viewed products

      © 2026 Book Curl

        • American Express
        • Apple Pay
        • Diners Club
        • Discover
        • Google Pay
        • Maestro
        • Mastercard
        • PayPal
        • Shop Pay
        • Union Pay
        • Visa

        Login

        Forgot your password?

        Don't have an account yet?
        Create account