This document discusses data quality testing. It begins by defining data quality and listing its key dimensions such as accuracy, consistency, completeness and timeliness. It then notes common business problems caused by poor data quality and the benefits of improving data quality. Key aspects of data quality testing covered include planning, design, execution, monitoring and challenges. Best practices emphasized include understanding the business, planning for data quality early, being proactive about data growth and thoroughly understanding the data.
4. Agenda:
Data Quality Data Quality Testing
World trending towardsā¦.. How to test data quality
Facts about data quality Data quality test management
Most common business problems Data quality testing challenges
Business benefits Data quality testing best practices
What is data quality?
Dimensions of data quality
Definitions of dimensions
Real time situation
Measuring data quality
Data profiling analysis
When and how to conduct data
profiling
7. Few facts about data quality:
ā Cost of poor data quality in US - $600 Billion
ā Poor Data/Lack of visibility cited as #1 reason for project cost overruns
ā Poor data quality costs the US Economy $3.1 Trillion a year
ā Implementing data quality best practices boosts revenue by 66%
ā Median Fortune 1000 company could increase revenue by $2.01 Billion if they improved
usability of data by 10%
8. Most common business problems
ā¢ Billing and payment errors causing negative customer perceptions
ā¢ Operating expenses are inflated
ā¢ Regulatory fines are levied due to inaccurate reporting of data to government entities
ā¢ Customers and revenue are lost due to an inability to track customer interactions or to
recognize high-value customers
ā¢ Disruption of service
ā¢ Flawed analytics lead to poor tactical and strategic directions
ā¢ Extra time on IT projects to reconcile data
ā¢ Delays in deploying new systems
9.
10. Business benefits:
ā¢ Customer satisfaction
ā¢ Strengthens trust and collaboration between trading partners
ā¢ Increases supply chain efficiencies and cuts costs by reducing errors
ā¢ Cuts delays at point-of-sale as a result of reduced measurement errors
ā¢ Increases reliability and efficiency
ā¢ Ensures better compliance
11. What is data quality?
Data quality is a perception or an assessment of dataās fitness to serve its
purpose in a given context
12. Dimensions of data quality:
ā Consistency
ā Accuracy
ā Correctness
ā Objectivity
ā Timeliness
ā Conciseness
ā Precision
ā Usefulness
ā Unamiguous
ā Usability
ā Completeness
ā Relevance
ā Reliability
ā Amount of data
13. Definitions of data quality dimensions:
ā¢Correctness / Accuracy: Accuracy of data is the degree to which the
captured data correctly describes the real world entity.
ā¢Consistency: This is about the single version of truth. Consistency means data
throughout the enterprise should be sync with each other.
ā¢Completeness: It is the extent to which the expected attributes of data are
provided.
ā¢Timeliness: Right data to the right person at the right time is important for
business.
14. Definitions of data quality dimensions:
ā¢Correctness / Accuracy:
Accuracy of data is the degree to which the captured data correctly describes
the real world entity.
Ability to draw correct conclusions from data
Business process that match reality
Eg of data accuracy issues:
ā¢ An incident reported with $23M when the loss was $12k
ā¢ The amount invoiced does not represent the customerās usage
15. Definitions of data quality dimensions:
ā¢Consistency: This is about the single version of truth. Consistency means
throughout the enterprise should be sync with each other.
Ability to trust data regardless of source
Identical information available to all processes and units
Eg of data consistency issues:
ā¢ Mr.A defines āreprocessingā as cancel/total and Mr. B as Cancel/new.
16. Definitions of data quality dimensions:
ā¢Completeness: It is the extent to which the expected attributes of data are
provided.
Data that does not leave any open questions
Ability to make a good decision based on available data
Closeness between āneed to knowā and what data tells you
Eg of data completeness issues:
ā¢ We cannot tell how many cell phone contracts Mr. X has
ā¢ A summary report includes projects that did not report status!
17. Definitions of data quality dimensions:
ā¢Timeliness: Right data to the right person at the right time is important for
business.
Data that is available without delay
Ability to know what you need, when you need
Smooth information flow: āData delayed is Data denied!ā
Eg of data timeliness issues:
ā¢ Receiving a ābudget exceededā SMS after you went over the limit!
18. Real time situation
Many database professionals face situations like:
1. Several data inconsistencies in source, like missing records or NULL values.
2. column they chose to be the primary key column is not unique throughout the table.
3. Schema design is not coherent to the end user requirement.
4. Any other concern with the data, that must have been fixed right at the beginning
19. What does it mean to fix data quality issues?
Make changes in ETL data flow packages, cleaning identified inconsistencies etc..
Lot of re-work to be done
Added costs in terms of time and effort
Soā¦..
What is the solution???
21. Measuring Data Quality
Profiling ā Understand metadata
ā¢ Point of time shows what data looks like now
ā¢ Automating shows trends
o Alert to new/potential issues as they happen
o Potentially fix issues in near real time
24. Master data management
Create a standard for data
Distribute data so that all sources are uniform
ā¢ Names
ā¢ Addresses
ā¢ Phone numbers
ā¢ Products
Can hook into 3rd party sources
25. Data Governance
Central authority for data quality control
Applies information collected from data profiling uniformly across the business
Communication channels between business and IT groups
26. Maintenance of data quality
Data quality results from the process of going through the data and scrubbing it,
standardizing it, and removing duplicate records, as well as doing some of the data
enrichment.
1. Maintain complete data
2. Clean up data by standardizing using rules
3. Using algorithms to detect duplicates
4. Avoid entry of duplicate leads and contacts
5. Merge existing duplicate records
6. Use roles for security
27. Inconsistent data before cleaning up
Bill no CustomerName SSN
101 Ms Vijaya Kokkili SSN100123
Bill no CustomerName SSN
204 Ms V Kokkili SSN100123
Bill no CustomerName SSN
354 Ms Kokkili Vijaya SSN100123
Bill no CustomerName SSN
467 Ms Vijaya K SSN100123
Invoice 1
Invoice 2
Invoice 3
Invoice 4
28. Consistent data after cleaning up
Bill no CustomerName SSN
101 Ms Vijaya Kokkili SSN100123
Bill no CustomerName SSN
204 Ms Vijaya Kokkili SSN100123
Bill no CustomerName SSN
354 Ms Vijaya Kokkili SSN100123
Bill no CustomerName SSN
467 Ms Vijaya Kokkili SSN100123
Invoice 1
Invoice 2
Invoice 3
Invoice 4
29. When and how to conduct data profiling?
Generally, data profiling is conducted in two ways:
1.Writing SQL queries on sample data extracts put into a database.
2.Using data profiling tools
When to conduct Data profiling?
At the discovery/requirements gathering phase
30. How to conduct data profiling?
Data profiling involves statistical analysis of the data at source and the data being loaded, as well as
analysis of metadata. These statistics may be used for various analysis purposes. Common examples
of analyses to be done are:
Data quality: Analyze the quality of data at the data source.
NULL values: Look out for the number of NULL values in an attribute
Candidate keys: Analysis of the extent to which certain columns are distinct will give developer
useful information w. r. t. selection of candidate keys.
Primary key selection: To check whether the candidate key column does not violate the basic
requirements of not having NULL values or duplicate values.
Empty string values: A string column may contain NULL or even empty sting values that may create
problems later.
String length: An analysis of largest and shortest possible length as well as the average string length
of a sting-type column can help us decide what data type would be most suitable for the said column
31. How to test for Data quality?
Discrepancy in
records count at
Source & target
When all data is at
source is present at
target
Ensure that source &
target donāt contain
conflicting facts
Degree of conformance
of data to its domain
and business values
Physical and logical
duplicates
Orphan records in
targets when no
corresponding parent
records
List of valid/invalid
values that are allowed
along with ranges, look
up etc
Degree to which
data reflects the
real world objects
Describes the
relevance &
meaning of data
Describes
availability of data
as per SLA
Row Count Completeness Consistency
Validity Redundancy Referential Integrity
Domain Integrity Accuracy Usability Timeliness
32. Data quality test management
Test planning Test design Test Execution Test monitoring
Requirements:
ā¢ BRD
ā¢ FSD
ā¢ Test Plan
Requirements:
ā¢ Test
scenarios
ā¢ Test cases
ā¢ Automated
Requirements:
ā¢ Executed in
test cycles
ā¢ Test
results/bugs
are shared
with
business
ā¢ Prioritize
Requirements:
ā¢ Collect
metrics
ā¢ Observe
trend
33. Data quality testing challenges
ā¢ Lack of tools
ā¢ Lack of domain knowledge
ā¢ Changing requirements
ā¢ Poor planning for data quality in initial phase of the application
34. Data quality testing best practices
ā¢ Understand user business
ā¢ Plan early in Design and testing phase
ā¢ Be proactive when it comes to data growth/trending
ā¢ Donāt assume! Understand data!
Today is world of heterogeneity. We have different technologies. We operate on different platforms. We have large amount of data being generated everyday in all sorts of organizations and Enterprises.
Fitbit
Medical
Life everyday routine
Facts of Data quality:
ā Cost of poor data quality in US - $600 Billionā Poor Data/Lack of visibility cited as #1 reason for project cost overrunsā Poor data quality costs the US Economy $3.1 Trillion a yearā Implementing data quality best practices boosts revenue by 66%ā Median Fortune 1000 company could increase revenue by $2.01 Billion if they improved usability of data by 10%
And we do have problems with data. Problems like: Duplicated , inconsistent , ambiguous, incomplete.
So there is a need to collect data in one place and clean up the data
Businesses are increasingly only as good as their data. High quality data is essential for capturing the interest of consumers and driving online sales.
Increases customer satisfaction by ensuring theĀ accuracy of product informationĀ ā ingredients, prices, nutritional information
Strengthens trust andĀ collaborationĀ between trading partners
IncreasesĀ supply chain efficienciesĀ and cuts costs by reducing errors
Cuts delays at point-of-sale as a result ofĀ reduced measurement errors
Increases theĀ reliability and efficiency of product transportationĀ and delivery to stores and warehouses
Ensures betterĀ compliance with industry standardsĀ and regulations
Why data quality matters?
Good data is your most valuable asset, and bad data can seriously harm your business and credibilityā¦ 1.What have you missed? 2.When things go wrong. 3.Making confident decisions
Is the data trustworthy and credible information.
Accuracy: What does accuracy stand for? Good fit between data and realityā¦ā¦ā¦Ability to draw correct conclusions from dataā¦ā¦ā¦ā¦ā¦ā¦.Business process that match reality
Eg: of data acc;uracy issues: An incident reported with $23M when the loss was $12kā¦ā¦ā¦ā¦ā¦ā¦ā¦.The amount invoiced does not represent the customerās usage
Consistency stands for: Data in harmony across the companyā¦ā¦ā¦ā¦..ability to trust data regardless of sourceā¦ā¦ā¦ā¦ā¦ā¦ā¦.Identical information available to all processes and units
Eg: Mr.A defines āreprocessingā as cancel/total and Mr. B as Cancel/new.
Completeness stands for: Data that does not leave any open questionsā¦ā¦ā¦ā¦ā¦ā¦ā¦..Ability to make a good decision based on available dataā¦ā¦ā¦ā¦ā¦ā¦.Closeness between āneed to knowā and what data tells you
Eg: we cannot tell how many cell phone contracts Mr. X hasā¦ā¦ā¦ā¦ā¦ā¦A summary report includes projects that did not report status!
Timeliness stands for: Data that is available without delayā¦ā¦ā¦ā¦ā¦ā¦ā¦ā¦ā¦ā¦Ability to know what you need, when you needā¦ā¦ā¦ā¦ā¦ā¦..smoothe information flow: data delayed is data denied!
Accuracy: What does accuracy stand for? Good fit between data and realityā¦ā¦ā¦Ability to draw correct conclusions from dataā¦ā¦ā¦ā¦ā¦ā¦.Business process that match reality
Eg: of data acc;uracy issues: An incident reported with $23M when the loss was $12kā¦ā¦ā¦ā¦ā¦ā¦ā¦.The amount invoiced does not represent the customerās usage
Consistency stands for: Data in harmony across the companyā¦ā¦ā¦ā¦..ability to trust data regardless of sourceā¦ā¦ā¦ā¦ā¦ā¦ā¦.Identical information available to all processes and units
Eg: Mr.A defines āreprocessingā as cancel/total and Mr. B as Cancel/new.
Completeness stands for: Data that does not leave any open questionsā¦ā¦ā¦ā¦ā¦ā¦ā¦..Ability to make a good decision based on available dataā¦ā¦ā¦ā¦ā¦ā¦.Closeness between āneed to knowā and what data tells you
Eg: we cannot tell how many cell phone contracts Mr. X hasā¦ā¦ā¦ā¦ā¦ā¦A summary report includes projects that did not report status!
Timeliness stands for: Data that is available without delayā¦ā¦ā¦ā¦ā¦ā¦ā¦ā¦ā¦ā¦Ability to know what you need, when you needā¦ā¦ā¦ā¦ā¦ā¦..smoothe information flow: data delayed is data denied!
What is data profiling ? It is the process of statistically examining and analyzing the content in a data source, and hence collecting information about the data. It consists of techniques used to analyze the data we have for accuracy and completeness. 1. Data profiling helps us make a thorough assessment of data quality. 2. It assists the discovery of anomalies in data. 3. It helps us understand content, structure, relationships, etc. about the data in the data source we are analyzing.
4. It helps us know whether the existing data can be applied to other areas or purposes. 5. It helps us understand the various issues/challenges we may face in a database project much before the actual work begins. This enables us to make early decisions and act accordingly. 6. It is also used to assess and validate metadata
It is important for QA to make sure these requirements are provided upfront.