<?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 Nathan Brewer, Ph.D. on Medium]]></title>
        <description><![CDATA[Stories by Nathan Brewer, Ph.D. on Medium]]></description>
        <link>https://medium.com/@nbrewer.ads?source=rss-162b2d541e0e------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*ygK42llC5bqIE99ao_jtnA.jpeg</url>
            <title>Stories by Nathan Brewer, Ph.D. on Medium</title>
            <link>https://medium.com/@nbrewer.ads?source=rss-162b2d541e0e------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sun, 06 Dec 2026 06:13:26 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@nbrewer.ads/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[Misattribution — An example of data gathering and the importance of data lineage as a part of data…]]></title>
            <link>https://medium.com/@nbrewer.ads/misattribution-an-example-of-data-gathering-and-the-importance-of-data-lineage-as-a-part-of-data-ec0f94fb84f6?source=rss-162b2d541e0e------2</link>
            <guid isPermaLink="false">https://medium.com/p/ec0f94fb84f6</guid>
            <category><![CDATA[misinformation]]></category>
            <category><![CDATA[data-science]]></category>
            <category><![CDATA[data-lineage]]></category>
            <category><![CDATA[data-quality]]></category>
            <dc:creator><![CDATA[Nathan Brewer, Ph.D.]]></dc:creator>
            <pubDate>Mon, 13 Mar 2023 02:13:09 GMT</pubDate>
            <atom:updated>2023-03-13T02:13:09.926Z</atom:updated>
            <content:encoded><![CDATA[<h3>Misattribution — An example of data gathering and the importance of data lineage as a part of data quality.</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/519/1*oelSkFiA-Dvyfq8TQeYxdA.png" /><figcaption>A quote from Orson Wells, attributed to Hitchcock, for a movie by Kubrick with a graphic representing a different Kubrick movie (Dr. Strangelove) . (image by author)</figcaption></figure><p>Data gathering can be an important aspect of a data scientists work. But it is an invaluable part of my personal growth and development as well. I recently came across a couple of examples that I wanted to share.</p><h3>[Citation Needed]</h3><p>It makes little difference to the graphic design, but for the curious among us, the richness of the context of these quotes can be immensely more powerful than the quote in isolation. It could bring one to an author that deserves to be read and recognized.</p><p>And when your organization is building data strategy, or tearing down long standing data silos, or installing a new data pipeline; build into the data structure the data’s context and the data’s lineage. Someone may very well want to go back and look at the whole picture. I think this is especially important if the data is aggregated in some form for the end user.</p><p>Example 1: Quoted Source</p><p>“We are what we repeatedly do. Excellence, then, is not an act but a habit” — Aristotle</p><p>Example 1: Full (actual) Source</p><p>“Excellence is an art won by training and habituation : we do not act rightly because we have virtue or excellence, but we rather have these because we have acted rightly ; ‘these virtues are formed in man by his doing the actions’;1 we are what we repeatedly do. Excellence, then, is not an act but a habit: ‘the good of man is a working of the soul in the way of excellence in a complete life; . . . for as it is not one swallow or one fine day that makes a spring, so it is not one day or a short time that makes a man blessed and happy.’ 2 (1 Ethics, ii, 4. 2 Ibid., i, 7.)&quot;</p><p>Will Durant — The Story of Philosophy (1926, pg. 87)</p><p>I originally learned of this misattribution from “<a href="https://medium.com/the-mission/my-favourite-quote-of-all-time-is-a-misattribution-66356f22843d">https://medium.com/the-mission/my-favourite-quote-of-all-time-is-a-misattribution-66356f22843d</a>” This misattribution is rather well known and not altogether far off. The quote is about Aristotle yet, I prefer his actual (translated) quotation here over the original. This slight difference makes very little practical difference, but for someone with a particular interest or passion, finding Durant and reading this and other works may be much more fruitful than perusing all of Aristole’s work and never finding this quote.</p><p>The analogy to data lineage is that even if the lineage is there, if it is wrong or misleading, it may cause a great deal of lost time down the road if the data requirement is to track down the origin or context of data and pull it into work, models, or analysis.</p><p>This next example is less well known and I had a very difficult time tracking it down. Recently there were some workplace wellness messages on the topic of humility and I came across the following quote with diverse attributions.</p><p>Example 2: Quoted Source</p><p>Humility —</p><p>Perpetual quietness of heart.<br>It is to have no trouble.<br>It is never to be fretted or vexed, irritable or sore;<br>to wonder at nothing that is done to me,<br>to feel nothing done against me.</p><p>It is to be at rest when nobody praises me,<br>and when I am blamed or despised,<br>to have a blessed home in myself<br>where I can go in and shut the door<br>and kneel to my Father in secret and be at peace,<br>as in a deep sea of calmness,<br>when all around and about is seeming trouble.</p><p>(Various: Dr. Bob, Andrew Murray, Anonymous, T.T. Carter, Books on Yoga Meditations, or even simply ‘a friend’.)</p><p>Example 2: Full Source</p><p>“HUMILITY</p><p>‘Who made himself of no reputation.’ Philippians II. 7.</p><p>…</p><p>Humility is perpetual quietness of heart. It is to have no trouble. It is to be never fretted or vexed, or irritated, or wounded, or sore, or disappointed.<br>It is to expect nothing, to wonder at nothing that is done to me,<br>to feel nothing done against me. It is to be sweetly at rest when nobody notices me, when nobody praises me, or when I am blamed or despised. It is to have a blessed home in myself, where I can go in and shut the door, and kneel to my Father in secret, and am quiet; as in a deep sea of calmness, when all around me and above me is troubled. It is to be like one of those blessed women, who knelt, and buried their faces in their hands when the people around cried shame, and would have thrown stones, and the blessed one felt the Lord’s love bent on her alone, as if He cared for no one else in all the world like her.</p><p>…</p><p>-Rev. T.T. Carter “</p><p>From “Holy Meditations for Every Day, compiled and ed. by B.E.B. From Ancient and Modern Writers” 1867 source with further lineage as Digitized by Google Books Aug 31, 2006 from Oxford University stamped with a seal from the Bibleotheca Bodleiana, transcribed by NT Brewer (author) 02/2023.</p><p>This is still only a subpar data lineage because my most ‘original’ source is still a compendium. I type this up for publication here, because I found no other copy-able source.</p><p>And this is not even the full quote. There are three additional paragraphs, one before and two after and the interested reader can, at least, find this compendium on Google Books at the time of writing. There are a few notable differences, but nothing terribly substantive. Although I really noticed the distinction between quiet and peace in the different quotes.</p><p>The analogy to data lineage is that perhaps a seemingly semantic difference has real value somewhere. Data passed along getting filtered, aggregated or modeled should be traceable to be scientific. Maybe this is overstated, I mostly just wanted to jot down my thoughts on these examples and saw the connections to other aspects of my life and work.</p><p>Post in the comments your favorite misattribution, examples of needing data lineage (whether you had it or not), or any other thoughts you may have had in the comments.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=ec0f94fb84f6" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Data Quality, Dinosaurs and GreatExpectations]]></title>
            <link>https://medium.com/@nbrewer.ads/data-quality-dinosaurs-and-greatexpectations-73f6dd085b5b?source=rss-162b2d541e0e------2</link>
            <guid isPermaLink="false">https://medium.com/p/73f6dd085b5b</guid>
            <category><![CDATA[data-nerd]]></category>
            <category><![CDATA[growth-mindset]]></category>
            <category><![CDATA[data-science]]></category>
            <category><![CDATA[data-quality]]></category>
            <category><![CDATA[great-expectations]]></category>
            <dc:creator><![CDATA[Nathan Brewer, Ph.D.]]></dc:creator>
            <pubDate>Thu, 29 Dec 2022 17:36:20 GMT</pubDate>
            <atom:updated>2022-12-29T17:36:20.696Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/400/0*wLRMB0Umlunfp0_1.png" /><figcaption>The Datasaurus (also, Anscombosaurus) cred: Alberto Cairo</figcaption></figure><p>I recently had the pleasure to dive into some new data quality tools and options. I’m grateful that my network suggested I start with GreatExpectations (greatexpectations.io, GE) <a href="https://medium.com/u/6048af210e26">Great Expectations</a>. I am not affiliated with GE, I’m just learning and writing it down.</p><h4>Starting with ‘why’ anyone should care:</h4><p>An internet search shows one figure quoted frequently. That one evaluation claims $9.7 Million average impact of poor data on business. I would love to tell you that upon reviewing the original source material I found what the contributing factors include. But I can’t.</p><ul><li>Often cited is IBM: https://www.ibm.com/downloads/cas/EDJANVZY which cites, <strong>as an original source,</strong> Forbes/Pitney Bowes 5/2017: The Data Differentiator</li><li>Well actually… That report cites a 2017 Gartner report <strong>which is now longer available</strong>. The cited webpage (<a href="https://www.gartner.com/smarterwithgartner/how-to-create-a-business-case-for-data-quality-improvement">https://www.gartner.com/smarterwithgartner/how-to-create-a-business-case-for-data-quality-improvement) </a>now reflects a $15 Million number as of 2018 and the 2021 number is 12.7 Million.</li></ul><p><em>This is beyond ironic…</em></p><p>What is the expectation?</p><p>How big are the companies evaluated? How much should I expect this number to vary year-over-year? Maybe my businesses is small and its total revenue is less than that cost…. Does that mean I could double my revenue by fixing my data problems? Does it mean all businesses regardless of scale should spend $2–5 Million to fix their data quality issues?</p><p>Even the way data vendors, businesses and their marketing materials use a big scary number is a case study in issues with data quality. It is so very easy to make decisions off of bad data. This data is unexplained and untraceable. Maybe there is Gartner material that is available somewhere that does explain it. But it doesn’t solve for a commonly cited, out of date number that may not be understood by the people using it. In its own way, this still serves to illustrate that making decisions based off of bad data can be costly.</p><p><strong>Data can be messy in lots of ways.</strong></p><p>I feel like this is plainly understood well enough to simply state this and move on. To further illustrate the common problems with data quality I want to introduce you to my favorite examples of data quality where the data is completely valid and there is nothing missing or biased necessarily.</p><p><strong>LESSONS FROM THE DATA DINOSUAR:</strong></p><p><strong>Lesson 1: Data can be misunderstood</strong></p><p>The descriptive statistics of numerical data are insufficient to describe the data. Is the data segmented? Should it be? Is it binned or sampled in some way?</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Y-ovEOT5lui5z7ecqd6qIg.png" /><figcaption><a href="https://www.autodesk.com/research/publications/same-stats-different-graphs">https://www.autodesk.com/research/publications/same-stats-different-graphs</a></figcaption></figure><p><strong>Solution: Look at the distribution!</strong></p><p>Very often, however, it is not reasonable to leverage the amazing power of your human eyes and the pattern matching engine that is your brain to visualize the data and make conclusions. Maybe there is a compromise… (maybe that’s foreshadowing…)</p><p><strong>Lesson 2: Data can be misinterpreted:</strong></p><p>In the cited experiment, respondents</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*WmmEVcMeqnloBeYUOUyyIw.png" /><figcaption><a href="https://www.computer.org/csdl/proceedings-article/vis/2021/333500a071/1yXujc7Nwqc">https://www.computer.org/csdl/proceedings-article/vis/2021/333500a071/1yXujc7Nwqc</a></figcaption></figure><p>“Graphs effectively communicate data because they capitalize on the visual system’s ability to rapidly extract patterns. Yet, this pattern extraction does not occur in a single glance…. Participants consistently missed a conspicuous dinosaur in the ignored collection of marks”</p><p><strong>Solution: Apply metadata to documentation of data so that best fit distribution, lineage, context and value for decision making travels with data as an expectation where ever it goes.</strong></p><p><strong>What does a reasonably complete solution look like:</strong></p><ul><li>Customizable</li><li>Readable</li><li>Automatable</li><li>Interpretable</li><li>Scalable</li><li>Integrable</li><li>Reproducible</li></ul><p>I found GreatExpectations to be very Customizable, and not just customizable, flexibly customizable. Introspection as a starting point in the workflow allows one to get started and then test and iterate on the result. There are several ways however to apply subject matter expertise and incorporate that into an expectation suite.</p><p>And it is readable enough … But the documentation for the tool is SO very readable and pedagogical I have difficulty writing an article that is much more than a collection of quotes from the website.</p><p>Automatable: Send Emails, or Slack notifications based on validation</p><p>Interpretable: Great Expectations creates Data Docs for documentation. Metadata can be created by commenting Expectations that then display in the Data Docs.</p><p>Scalable: DataConnectors can be used to batch or sample data for processing. Aggregate Expectations can also be made.</p><p>Importantly for me there are ways to test that a given categorical or numerical data set fits to a distribution (i.e. normally distributed). If there is interest, let me know in the comments and I may follow-up with an article about this use case.</p><p>Integrable: The following are name drops for keyword and SEO, mostly. But GE does integrate into other data engineering workflows Airflow, dbt (although one may prefer dbt Tests), Prefect, Dagster, Kedro. GE can be used with different reference architectures: Databricks, Google Cloud and Big Query, EMR Spark, Airflow, Flyte, Deepnote, Meltano, Ydata-Sythetic, and ZenML.</p><p>Reproducible: At the talk I gave on this topic an attendee commented on this important aspect of such a QA system. I looked into it further and found that Batch Requests fit to this requirement.</p><p>“the Data Connector(s) transform the BatchDefinition list into BatchData, BatchSpec, and BatchMarkers.” <a href="https://docs.greatexpectations.io/docs/terms/batch_request/">https://docs.greatexpectations.io/docs/terms/batch_request/</a></p><p>Where the BatchSpec includes “persistent, unique identifiers for the Batch within the context of the Data Asset” and BatchMarkers are metadata that include “indicators of the state of the underlying data system” among other descriptors that appear to be useful for ensuring reproducibility.</p><p><strong>Summary: Data quality checks with a growth mindset</strong></p><p>I found the tool to be very approachable and the learning pathway is very well laid out and pedagogical. The organization of proficiency into Core Skills (and then Advanced) was very beneficial. And I really felt like the contribution pathway was also very well established and engineered. Maturity level is a fantastic framework for evaluating and progressing on contributing to the tool.</p><p>In its use and in the learning I found a consistent philosophy of a growth mindset: get something up and running and then improve little by little, everyday. It makes it seems doable even as I get pulled into so many other tasks. This mindset gets the important things done along with the urgent ones.</p><p><strong>Care to share?</strong></p><p>As this was my first foray into this tool, let me know if I got something wrong. Let me know what you use for data quality checking and if your use case is analytics or engineering. As this is my first medium article, let me know if this is content you like to read.</p><p>The next post on this topic would be my insights on walking through the process of contribution.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=73f6dd085b5b" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>