<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by George Tanampasides on Medium]]></title>
        <description><![CDATA[Stories by George Tanampasides on Medium]]></description>
        <link>https://medium.com/@gtanampasides?source=rss-e8e26ab2d946------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*k3PUT3n50B4vLmy3mEraSw.jpeg</url>
            <title>Stories by George Tanampasides on Medium</title>
            <link>https://medium.com/@gtanampasides?source=rss-e8e26ab2d946------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Mon, 23 Nov 2026 14:00:52 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@gtanampasides/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[Data Quality Quantification and Risk Appetite Limits]]></title>
            <link>https://medium.com/@gtanampasides/data-quality-quantification-and-risk-appetite-limits-b46227067a93?source=rss-e8e26ab2d946------2</link>
            <guid isPermaLink="false">https://medium.com/p/b46227067a93</guid>
            <category><![CDATA[data-quality-measurement]]></category>
            <category><![CDATA[data-quality-limits]]></category>
            <category><![CDATA[data-quality-metrics]]></category>
            <category><![CDATA[risk-appetite]]></category>
            <category><![CDATA[data-quality]]></category>
            <dc:creator><![CDATA[George Tanampasides]]></dc:creator>
            <pubDate>Mon, 25 Mar 2024 19:59:33 GMT</pubDate>
            <atom:updated>2024-03-27T11:37:55.089Z</atom:updated>
            <content:encoded><![CDATA[<p>This article presents a Data Quality Quantification methodology that can be used for setting up, measuring, and monitoring the Risk Appetite Limits of an organization with respect to Data Quality.</p><p>The proposed methodology can be applied on data collections describing the business entities and business terms of an organization.</p><p>The goal of the methodology is to calculate a data quality score (or inversely, a data dirtiness score) that will be used in setting up the data quality risk appetite limits.</p><h3>Introduction</h3><p>The following articles provided the theoretical foundation for the development of the presented methodology:</p><p>· <strong>How to quantify Data Quality?, Yannick Saillet, Nov 2020</strong>, <a href="https://towardsdatascience.com/how-to-quantify-data-quality-743721bdba03">https://towardsdatascience.com/how-to-quantify-data-quality-743721bdba03</a></p><p>· <strong>Data Dirtiness Score, Simon Grah, Mar 2024,</strong> <a href="https://towardsdatascience.com/data-dirtiness-score-fe2ca5678d40">https://towardsdatascience.com/data-dirtiness-score-fe2ca5678d40</a></p><p>In the context of this article, the following definitions apply:</p><h3>Dataset</h3><p>The data universe of an organization is segmented into data collections which are called data sets. <strong>Each data set contains data belonging to the same knowledge area and describing a certain business entity.</strong> At the database level, a dataset may be implemented with one or more database tables.</p><p>Some examples of datasets from the financial services industry are:</p><p><strong>Customers</strong>. Which includes all customer data (ie., identification data, financial data, addresses, occupational data etc.)</p><p><strong>Loans</strong>. Which includes all loans data (ie., balances, interest behavior data, payment behavior data, transactions, etc.)</p><p><strong>Deposits</strong>. Which includes all deposits data (ie., balances, interest behavior data, direct debit data, transactions, etc.)</p><h3>Data Record/Row</h3><p>Each dataset is horizontally split into data records/rows. <strong>Each data row is an instance of the entity described by the dataset.</strong></p><p>For example, the 1st row of the Customers dataset is the instance of the customer #1. The 2nd row, the instance of the customer #2, etc.</p><h3>Data attribute/Column</h3><p>Each dataset is vertically split into data attributes. <strong>Each data attribute describes a business term of interest, whose data quality needs to be measured.</strong> At the database level, a data attribute may be implemented by one or more database fields in one or more database tables.</p><p>For example:</p><p>The customer’s financial data can be identified as a single data attribute. However, depending on the database design, this attribute may be:</p><p>- Only one field in the table Customers. ie., the field: Income</p><p>- Two or more fields in the table Customers. ie., the fields Income (for individuals), Total Assets and Total Revenue(for legal entities)</p><p>- An entire new table named FinancialData, where the customer financial data of each financial period is recorded. The Customers master table will be linked with a 1-M relationship with the FinancialData table.</p><h3>Data Quality Quantification Score &amp; Risk Appetite</h3><p>As part of its strategic planning, an organization needs to set its risk appetite limits with respect to the diverse risks it faces in its operations. Data quality is one of the risks that the management must deal with.</p><p>A score that measures data quality, must address the following questions:</p><p>· How good is the overall quality of a data set?</p><p>· How good is the overall quality of an attribute?</p><p>· How good is the overall quality of a data record?</p><p>· Which of the two data sets has better data quality?</p><p>· Which of the two records has better quality?</p><p>· Which of the two attributes has better quality?</p><p>· How does the data quality of a data set / record / attribute, compare to what it was last month?</p><p>Furthermore, a data quality score must consider the following:</p><p>· Does each record contribute equally to the overall data quality score, or does its contribution depend on its business impact? And if the answer is yes, which is the metric that measures the “business impact” of each data record and how is it determined?</p><p>· Does each data attribute contribute equally to the overall data quality score, or does its contribution depend on its business impact? And if yes, how do we define the “business impact” of each data attribute and how is it determined?</p><p>A data quality score must have the following characteristics:</p><p>· It must be quantitative (not qualitative).</p><p>· It must be numeric and normalized in a scale 0–100%</p><p>· It must express the percentage of errors in the data (or inversely, the percentage of error-free data).</p><p>· In the proposed methodology, two scores will be calculated:</p><p>1) A <strong>Data Dirtiness Score (DDS)</strong>, expressing the percentage of data with errors, at a dataset, record, or attribute level.</p><p>2) A <strong>Data Quality Score (DQS)</strong>, expressing the percentage of error-free data.</p><p>3) Note that: <strong>DDS + DQS = 100%</strong></p><p>· Only the rows and the attributes participating in the measurements will contribute to the score. Thus, if the dataset is filled with “inactive” records which due to their “inactivity”, are not checked for their data quality, then the data quality score will not be affected. The same applies when useless or redundant data attributes are added to the dataset and no data quality check is applied on them.</p><p>· When a data attribute in a row, is identified to have two or more errors, then the overall quality score will not deteriorate more than if only one error had been identified.</p><p><strong>Once, the Data Quality Score (DQS) is calculated, then the organization’s risk appetite can be expressed in one of the following ways:</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/830/1*irtarT60WYdiDNgtIa_h9Q.png" /></figure><h3>Fundamental Concepts</h3><p>For the calculation of the DDS and DQS, we must consider the following:</p><p>· <strong>Data errors</strong> are associated with <strong>violated constraints</strong>.</p><p>· <strong>Constraints</strong> are determined by <strong>expectations</strong> about the data.</p><p>· The <strong>absence of expectations</strong> means <strong>no impact</strong> on the quality score.</p><p>· A dataset without any quality expectations about its data has a DDS=0% and DQS=100%.</p><p>· Data issues should be associated with specific attributes and rows.</p><p>· Each identified data quality issue is linked to a <strong>confidence score</strong> (0–100%). The confidence score reflects the probability that the data quality finding is a real data quality error, acknowledging that some issues might be subject to interpretation.</p><p>· The constraints are implemented by sql-like controls which check for violations. In the scope of this article, these controls will be <strong>called data quality key performance indicators (in short: KPIs)</strong></p><p>· <strong>Each KPI belongs to a certain dataset</strong> (dataset examples from the financial services industry are Customers, Loans, Deposits, Treasury products etc.)</p><p>· <strong>Each KPI checks for constraint violations</strong> regarding one specific attribute of interest.</p><p>· <strong>Each KPI is associated with a confidence score</strong>.</p><p>· When the KPI is certain that describes an error, then its confidence score is 100%.</p><p>· Otherwise, is a percentage between 0 and 100%. Usually, this case applies to KPIs that identify outliers.</p><p>· <strong>Each KPI shall calculate</strong>:</p><p>o The records on which the constraint test is applied (<strong>population</strong>)</p><p>o The records which fail the constraint test (<strong>errors</strong>)</p><h3>Data Quality Quantification Model — Simplified Approach</h3><p>Let’s assume that we have the Customers dataset, with 20 rows and three attributes:</p><p>- Financial Data</p><p>- Addresses</p><p>- Identities</p><p>The quality of each attribute is measured by one and only one KPI which is associated with a coefficient score, as shown in the Table A of the following figure</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/849/1*LULmB5FDa3os96mnYjzWOg.png" /></figure><p><strong>Table A</strong></p><p>· The population of records that each KPI is applied on, is marked with green color.</p><p>· Value 0 denotes that no data quality issue was identified by the respective KPI in that row.</p><p>· Value 1 denotes that a data quality issue was identified by the respective KPI in that row.</p><p>· The grey cells were not checked by the respective KPIs for data quality issues. Thus, they will not contribute to the final quality score.</p><p><strong>Table B</strong></p><p>· We move the confidence score of the respective KPI, to the cells where a data quality issue was identified.</p><p>· A confidence score is assigned only to the cells where a data quality issue is identified (green cells with a value 1).</p><p>· The confidence score denotes the probability that the KPI finding is a true-positive error.</p><p><strong>Table C</strong></p><p>· <strong># of attributes tested on each row</strong>. It is the number of attributes of each row that were tested by the KPIs. (in other words: The number of green cells in the row).</p><p>· <strong>Sum of prob</strong>. <strong>of errors</strong>. It is the sum of the confidence scores of each row. No sum is calculated for the rows that were not checked by any KPI (grey rows), as they will not contribute to the final score.</p><p>· <strong>Dirtiness Score</strong>. It is the dirtiness score of each row, expressing the expected percentage of the row’s data attributes, with data quality errors.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/446/1*bvDXRYQlfjjbI6jvQnPUpg.png" /></figure><p>· <strong>Quality Score</strong>. It is the data quality score of each row, expressing the expected percentage of the row’s data attributes without data quality errors:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/190/1*cM0Tbynk-DoSIXWQ1H1DPw.png" /></figure><p><strong>Table D</strong></p><p>· <strong>Population</strong>. The number of rows that each KPI was applied on. (in other words: the number of green cells per KPI)</p><p>· <strong>Sum of prob. of errors per KPI</strong>. It is the sum of the confidence scores over each column/KPI. No sum is calculated for the KPIs that were not applied to at least one row.</p><p>· <strong>Data Dirtiness overall scoring per KPI</strong>. It is the dirtiness score of each data attribute (column), expressing the expected percentage of Customers(rows) with data quality errors in the respective data attribute.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/399/1*u3oMRSPrE6HPtyTh_s_4Pw.png" /></figure><p>· <strong>Data Quality overall scoring per KPI.</strong> It is the data quality score of each data attribute (column), expressing the expected percentage of Customers(rows) without data quality errors in the respective data attribute.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/177/1*xvpSF4YZz51ELaPn03qvUQ.png" /></figure><p>· <strong>Overall Dirtiness Score of the Dataset.</strong> It is the overall dirtiness score of the dataset, expressing the expected percentage of the all data elements that participate in the quality measurement, with data quality errors.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/551/1*q01BfYtfNIELsou_vIoi7Q.png" /></figure><p>· <strong>Overall Quality Score of the dataset.</strong> It is the overall data quality score, expressing the expected percentage of the data elements without data quality errors.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/165/1*1U5CID38NS7ryFqRzWxMxg.png" /></figure><h3>Data Quality Quantification — Advanced Approach</h3><p>In real business cases, there are more than one KPIs for each data attribute. In fact, each data attribute is composed of more than one database fields or tables. Thus, we need more than one KPI to check the data quality of a data attribute.</p><p>In our revised example, we have 3 KPIs measuring data quality of the Financial Data, 2 KPIs for the Addresses and 4 KPIs for the Identities, with the respective confidence coefficients, as shown in the next figure.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/852/1*3Wg5RKDJA2jJ6QVCJwzcSQ.png" /></figure><p>Once the Confidence coefficient indicates the probability that a data quality finding is a true error, its complement (1-Confidence score) indicates the probability that a data quality finding is not a true error.</p><p>Our first goal is to <strong>aggregate the findings of all KPIs under each data attribute</strong>. Thus, <strong>for each data attribute we will calculate a new single column of probabilities</strong> (like those in Table B of the simplified approach). Then, from that point on, we will apply the same calculation methods as we applied in the simplified approach presented before.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/845/1*hgqmFma944Xjor_jny-5lA.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/693/1*xRk0VRa5Pk0MRI5HwDHp-Q.png" /></figure><p>The figures above, show how to calculate that new probabilities column per data attribute (the columns in yellow).</p><p>For “Customer #4” and the data attribute “Financial Data”, KPIs #1 and #3 identified data quality errors while the KPI #2 didn’t.</p><p>The probability of having an error in Customer #4 in the “Financial Data” attribute must be calculated by the following formula:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/298/1*H9_6wkprA5RKflbkS7qwrw.png" /></figure><p>Where:</p><p><strong>Pij,</strong> is the probability that an error exists in row i, for the data attribute j. It is the probability we need to calculate.</p><p><strong>Q</strong>, the number of KPIs of the data attribute j, that have identified a data quality error in row i.</p><p><strong>Coeffk,</strong> is the confidence coefficient of the k-th KPI that identified an error in row i for the attribute j.</p><p>In the case of Customer #4 and attribute “Financial Data”, we have</p><p>1 — Pij = (1–100%) * (1–90%) = 0 =&gt; Pij = 1 = 100%</p><p>We do the same for the rest of the rows and data attributes.</p><p>Note that we calculate probabilities only for the rows that at least one KPI has identified errors in their data.</p><p>Next, we use the three new columns we have already calculated, to feed the model and continue the calculations as shown in the simplified approach.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/874/1*Ss3a8hfj_aPLgQ_C8eeLDQ.png" /></figure><h3>Adding weights</h3><p>The above methodology has two major constraints:</p><p>· Each row contributes equally to the overall score.</p><p>· Each data attribute contributes equally to the overall score.</p><p>There are, however, business cases where we need to differentiate the contribution of each row and/or column.</p><p>For example, we may want a data quality error in a corporate customer, to contribute more to the quality score, than the same error in a retail customer.</p><p>Similarly, an error in the Financial Data, might be considered more “important “than an error in ones Addresses (ie., in terms of compliance impact and possible penalties and fines)</p><p>In both cases, we must assign “weights” to each row and/or each data attribute. These weights reveal the relative importance of one row/column compared to another.</p><p>Before calculating and assign weights we need to consider:</p><p>· What is the business meaning of the “importance” we want to introduce in our model?</p><p>· How can it be quantified into a “weight” coefficient?</p><p>· Will the weights apply on the rows, the columns or both?</p><p>· What are the units that a “weight” coefficient is denominated into?</p><p>· How is it calculated?</p><p>Note that:</p><p>· These “weights” are hyperparameters of the model (along with the KPI “coefficients”)</p><p>· Their calculation method should not change frequently and uncontrollably, because that would create confusion about the meaning of the quality scores and render them not comparable between points in time.</p><p>· The introduction of “weights” into the model modifies the definitions of the dirtiness and quality scores.</p><p>· The “weights” introduce new variability in the model and its results. The management needs to be fully aware of the business meaning of these new parameters.</p><p>· <strong>Any change in calculation methods of the weights, their definition or their value domains</strong> <strong>must be controlled. This means that it has to be approved by the management and be appropriately disclosed to the interested parties</strong>.</p><p><strong>For example</strong>, in the Customers dataset we examined before, let’s assume the following:</p><p>At each attribute (Fin. Data, Addresses, Identities), we assign a weight that expresses the relative regulatory impact of an error in the respective data attribute, and</p><p>we select the 5 years moving average of the annual sales per customer, as the “weight” of relative importance between customers,</p><p><strong>then:</strong></p><p>The <strong>adjusted data dirtiness score (DDS)</strong> will be the <strong>expected percentage of data errors, weighted by the regulatory impact of the data attributes and the total annual sales of the customer.</strong></p><p>The definition of the quality score (DQS) changes accordingly.</p><p>In our example we use the following rating for the data attributes weights:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/419/1*I5LZlNcqInskqxTVqfmuDA.png" /></figure><p>For the row weights, we use the 5-year moving average of the total annual sales of each customer. The moving average is a value denominated in monetary units.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/860/1*ipqw8_tpEUgQ6Zg6YtSh1Q.png" /></figure><h3>Step 1</h3><p><strong>Firstly, we have to normalize the values of the weights</strong> by the formula:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/495/1*kDhdeT_7hU_Lq1JpRYIz9A.png" /></figure><p>For calculating the</p><p>we use only the data participating in the data quality quantification process.</p><p>For example, Customer #5 has the highest 5 years moving average sales. However, it does not participate in the data quality quantification process, since none of the KPIs selected its record to perform any quality tests (no green cells on the row). This may happen because the Customer’s #5 business went bankrupt and ceased to exist a few months ago, and the KPIs are designed to check only the data of “active” customers. That’s why, as max(sales) we take the value of Customer #18 (3,200,000).</p><p>The above process will normalize the weights into the interval [0 , 1]</p><h3>Step 2</h3><p><strong>Then we have to calculate the combined weights of each cell.</strong></p><p><strong>Combined Weight (i, j) = normalized weight of row(i) * normalized weight of column(j)</strong></p><p>Where,</p><p>· <strong>Combined Weight (i, j)</strong>, is the result in each cell of the table Combined Weights</p><p>· <strong>normalized weight of row(i)</strong>, is the normalized sales of customer i</p><p>· <strong>normalized weight of column(j)</strong>, is the normalized weights for each column of the data attributes (Financial Data, Addresses, Identities).</p><p>Combined weights are calculated only for the green cells.</p><h3>Step 3</h3><p><strong>We calculate the scores by row (by customer)</strong></p><p>· <strong>Sum of weights per line.</strong> The sum of the rows of the Combined Weights table</p><p>· <strong>Sum of products of errors * combined weights.</strong> It is the <strong>product sum</strong> of each row of the “Prob. Of Error” table with each row of the “Combined Weights” table.</p><p>· <strong>Data Dirtiness Score per customer.</strong> It is calculated by dividing the previous two metrics.</p><p>· <strong>Data Quality Score per customer</strong>, is the complement of the dirtiness score (1-DDS)</p><h3>Step 4</h3><p><strong>We calculate the scores by column (by data attribute)</strong></p><p>· <strong>Sum of weights per attribute.</strong> The sum of the columns of the Combined Weights table.</p><p>· <strong>Sum of products of errors * combined weights.</strong> It is the <strong>product sum</strong> of each column of the “Prob. Of Error” table with each column of the “Combined Weights” table.</p><p>· <strong>Data Dirtiness Score per data attribute.</strong> It is calculated by dividing the previous two metrics.</p><p>· <strong>Data Quality Score per data attribute</strong>, is the complement of the dirtiness score (1-DDS)</p><h3>Step 5</h3><p><strong>We calculate the overall scores for the entire dataset.</strong></p><p>· We sum up the “<strong>Sum of weights per line”</strong>. They add up to <strong>5,153313</strong>. We end up with the same result if we sum up the “<strong>Sum of Combined Weights per attribute”</strong>.</p><p>· We sum up the column “<strong>Sum of Prob. Of errors * Combined weights</strong>”. The sum is <strong>1,742750</strong>. We end up with the same result if we sum up the row “<strong>Sum of (Prob of error)*(Combined weights)</strong>”.</p><p>· We calculate the <strong>overall dirtiness score of the dataset</strong> by diving the previous two metrics. <strong>The result is 34%</strong>.</p><p>· We calculate the <strong>overall quality score of the dataset</strong> by finding the complement of the dirtiness score. <strong>The result is 66%</strong>.</p><h3>Summary</h3><p>· Data quality is defined with respect to expectations about the data.</p><p>· If we need to set up a risk appetite framework with respect to data quality, then we have to calculate a data quality score that quantifies it.</p><p>· The data quality score shall express the percentage of error-free data in a dataset, a record, or a data attribute.</p><p>· If we need to differentiate the contribution of data rows/data columns in the quality score, then weights have to be integrated in the data quality calculation model.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=b46227067a93" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>