Meet Cactar, the Mongolian warlord of Data Quality

Jean-Georges Perrin
3 min readAug 25, 2018

Cactar will help you remember the 6 key elements of data quality: consistency, accuracy, completeness, timeliness, accessibility, and reliability. In this short article, I will first remember the etymology of Cactar and then switch to the definition of each component of the acronym.

On August 18, 1227, the well-known Mongolian emperor Genghis Khan passed. Despite numerous criticisms based on rumors of genocide and brutality, he united Mongolia. One of his sons, Ögedei, took over the Mongol Empire and became the second Great Khan.

A little less known fact is the role one of his sons played. Cactar Khan was not of prime ascendance, as there is no trace of his mother. Cactar was non-violent, which was really rare for a Mongolian of the 13th century. Cactar’s passion for rigor and quality drove him to data quality. From his name, he forged the eponymous acronym.

Honor guard members from Mongolia’s armed forces stand in formation before the opening ceremony of Khaan Quest at Five Hills Training Area, Mongolia, Aug. 3, 2013. U.S. Marine Corps photo by Sgt John M. Ewald.
Honor guard members from Mongolia’s armed forces stand in formation before the opening ceremony of Khaan Quest at Five Hills Training Area, Mongolia, Aug. 3, 2013. U.S. Marine Corps photo by Sgt John M. Ewald.

There is little trace of Cactar, but we could imagine him as a member of the Mongolian Armed Forces Honorary Guard above.

The six key attributes of data quality

This pretty much-ignored history fact needs to remind us of the six key elements of data quality, named after Cactar.

C: Consistency

Data must be consistent across multiple data sources, servers, and platforms.

Example: You do not want two sensors to report a different level of humidity if they are placed next to one another.

A: Accuracy

The value must mean something, and this something must be accurate.

Example: I was born, in France, on 05/10/1971 but I am a Libra (October). Date formats, when expressed as strings, are transformed through a localization filter. So, being born on October 5th makes my date representation 05/10/1971 in Europe, but 10/05/1971 in the U.S. I feel lucky, because if you are born on March 22nd, you may violate some rules (as there are only 12 months).

C: Completeness

To make sense, your data must be complete — at least, for key data. Missing fields, values, or rows will harm your analysis.

Example: You are trying to geographically locate your customers based on their ZIP Code™, but you are missing 26.3% of them.

T: Timeliness

How recent and relevant is the data? If you are building an industrial system, you must have your data in time. With the growing world of IoT, you expect data to be available right away.

Fun fact: 45 million Americans change addresses every year.

A: Accessibility

How easily can data be accessed and manipulated? One (manual) way to measure data quality is to be able to sample it, do you have the right tool? How representative is your sample or are you always getting the same 100 first rows of your dataset?

Fun fact: Apache Spark has a seed parameter to the sampling method of its dataset, providing a consistent sample.

R: Reliability

This last item is about how reliable your sources are. A source can be a database system, but also a human operator inputting data into a system.

Example: If your IoT hub is supposed to send you the data between 2 a.m. and 3 a.m. but for security reasons, access to the Internet is restricted to business hours, your source is definitely not reliable.

Conclusion

The first time I referenced Cactar publicly was during my talk at Spark Summit in June 2017.

Of course, Cactar is a completely fictitious character, but it is always a good mnemonic way to remember data consistency, data accuracy, data completeness, data timeliness, data accessibility, and data reliability, the six key elements of data quality.

Feel free to share your examples in the comment sections to make this article richer.

--

--

Jean-Georges Perrin

#Knowledge = 𝑓 ( ∑(#SmallData, #BigData), #DataScience U #AI, #Software ). Lifetime #IBMChampion. #KeepLearning. @ http://jgp.ai