Five Steps to Better Data Quality
If software is eating the world, then it's data that serves as the calories. As more and more companies use data to drive their decision-making processes, getting good quality data is a crucial ingredient.
Join the DZone community and get the full member experience.Join For Free
if software is eating the world, then it's data that serves as the calories. just as there are good calories and bad calories, not all data is equal. as more and more companies use data to drive their decision-making processes, getting good quality data is a crucial ingredient.
you might think data science is a recent thing. but actually, it's been around since the 1980s, in the form of concepts such as data warehousing . if you scour the internet, looking for advice on getting better data quality, you'll read about long-standing concepts such as metrics of accuracy and timeliness. in addition, you'll find more recent tactical advice on how to sanitize data using python or r. how do we better navigate through this dizzying array of information?
well, i'm here to help. here are the five steps you can take today to get better data quality.
step 1: define your usefulness metrics
whether it's to help management make better decisions faster or to help ground level staff be more responsive, your data has to be useful. therefore, you have to define what "useful data" looks like.
these are the most common metrics we use to define useful data:
- ability to be understood
you can then use these metrics as a checklist to help guide your data quality control:
- is the level of accuracy acceptable? (accuracy)
- is the granularity sufficient? (precision)
- have we captured enough data? (completeness)
- did we filter out the irrelevant information? (relevancy)
- is the data model connecting the data to a sound structure? (validity)
- did we run the analysis in batch or in real-time? (timeliness)
- did we clean the data up and make it more readable? what about presentation? (ability to be understood)
- do we need to do more reconciliation checks? more frequently? across time? (trusted)
as a result, you have a wide range of options to define what useful data looks like.
and sometimes less is more. for example, pinterest realized their new visual ai feature was more useful when they deliberately went for less precision:
that's the lesson pinterest learned from avocados. exact matches are the specialty of google search, which has been optimized to respond to specific questions—like, "how do you grill fish?"—with the perfect link. pinterest users tend to pose vaguer queries: they might search for "seafood dinner ideas" several times a week. for them, a non-exact match is not an error. it's inspiration. — fast co. design article
for users, this imperfect matching is a feature rather than a bug. so, you don't need to have perfect data to have good results. aim for usefulness, not perfection.
step 2: profiling
profiling means you analyze the information in order to clarify the structure, content, relationships, and derivation rules of the data . this is a crucial step. users tend to have an understanding, on an intuitive level, of how data is interrelated. unfortunately, machines currently still need precise instructions. so you need to profile the data at hand and make it work for your users via data analysis software.
start by clarifying how different data points are related to one another. how do you want to group and structure them? what rules do you want to apply to the data to derive for display purposes? these are the typical steps you apply in data profiling.
but don't think this is a one-and-done step. usually, you perform more in-depth profiling before you build your models. after that, you may still continue to perform detailed profiling. that's because continuous detailed profiling helps determine the appropriate data for extraction and the appropriate filters to apply to your data set.
sometimes, even after the data loading stage, you may want to continue to perform profiling. this helps ensure that you correctly sanitize the data and transform it to comply with your requirements.
think of it like this:
if you're doing it right, the amount of profiling work should decrease over time for your project
this chart displays how the nature of profiling work changes as the project progresses.
step 3: standardization
setting policies about data standardization is another crucial step for data quality. standards help improve communications.
good communication means two different parties can understand one another quickly and completely, with minimal confusion. that's also true for communicating your data to your audience.
there are two kinds of standardization: external and internal. external standards (as in outside your organization) are appropriate for commonly used data types. for example, if you wanted to represent datetime, you'd choose a widely accepted international standard like iso-8601 . i'd advise you not to invent your own standards needlessly, and don't choose obscure standards. remember, your goal is to communicate the data easily and effectively. therefore, you should choose external standards wisely.
sometimes, you need to invent your own internal standards. this takes a bit more work, but they're custom-built to be appropriate for your company's specific situation. internal standards also help improve communications in your company. but they might serve another purpose. imagine your business has a revolutionary business process that allows you to ship twice as fast as your competitors. that's a huge competitive edge. you'll want the entire company to work within this revolutionary process and same for the data it uses. to avoid a case of garbage in, garbage out, you might want to ensure that the same vocabulary is consistently applied in the data as well. consistent internal standards will help your staff stay on the same page and work within the new paradigm you've created.
set up a standards policy document
usually, organizations just set up a policy document that contains the standards, and then they're done with it. that's not good enough. my experience tells me you'll want to include the reasons behind the standards themselves. this is helpful because people come and go, but the document remains. sometimes, these standards may become obsolete or get in the way of the organization achieving its goal in the future.
compliance and enforcement of standards is another issue. you may want to enlist the help of software. a rules engine is a good way to ensure data is conforming to the standards you've put in place. often, it's not possible to have all your business rules in one piece of software. you may end up needing several pieces, especially when you have a long and complex process workflow. therefore, having a single source of truth in a standards policy document can help align your workflow and your various software with the chosen standards.
step 4: matching or linking
so, let's say that you've properly defined what useful data looks like. you've performed profiling and your models correctly reflect reality. standards have been chosen and properly enforced. but what if your audience is still not getting the kind of useful insights they thought they would? this is when you need to add matching and linking capabilities.
recall that we talked about relationships and the structure of your data earlier, in step 2: profiling. you need to show your audience the relationships you discover in your data. when the relationships are in place, your audience will be able to perform a wide array of operations on the data, rolling up, drilling down, and slicing and dicing the data as they need. in other words, they'll have business intelligence via online analytic processing.
imagine sales data that's tied to customers demographics. and imagine it's tied to product inventory as well. now have all three disparate data sources all linked together. you'll have the possibility of anticipating trends and buying patterns based on product, transaction time, or demographics. it's the same group of data, but it now can be analyzed in three different ways.
step 5: monitoring
the work of a good data analyst is never done. you need to constantly monitor the changes in the data you receive and the output you produce. changes may be brought about by a new competitor in the scene. or maybe there's a change in regulation. technology advances may also cause you to change your data analysis process. moore's law never sleeps.
you may have heard that software decays. data decays, too. new discoveries due to continuous profiling may lead you to change your policy. new standards may need to be introduced.
constant monitoring of data is crucial. this ensures you don't accidentally pollute your data warehouse with incorrect or noncompliant data points. you can use software to help alleviate the workload in terms of monitoring. this software will send out notifications to the departments responsible for collecting or sanitizing the data whenever your monitoring software picks up anomalies, such as wrongly inputted data.
now that you know the five steps you can take to improve your data quality, check the list again. see which steps highlight an area you need to strengthen. and take note of which steps you're already doing well. then, put in place a quarterly review process to make sure you're continually evaluating your data quality control. this way, you'll always be seeing where you stand and where you can improve.
Published at DZone with permission of KimSia Sim, DZone MVB. See the original article here.
Opinions expressed by DZone contributors are their own.