<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Data Science on Polimath</title><link>https://haptonstahl.org/polimath/category/data-science/</link><description>Recent content in Data Science on Polimath</description><generator>Hugo -- gohugo.io</generator><language>en-us</language><managingEditor>srh@haptonstahl.org (Stephen Haptonstahl, Ph.D.)</managingEditor><webMaster>srh@haptonstahl.org (Stephen Haptonstahl, Ph.D.)</webMaster><copyright>Stephen Haptonstahl</copyright><lastBuildDate>Thu, 28 May 2026 00:00:00 -0400</lastBuildDate><atom:link href="https://haptonstahl.org/polimath/category/data-science/index.xml" rel="self" type="application/rss+xml"/><item><title>Corporate empathy about AI</title><link>https://haptonstahl.org/polimath/corporate-empathy-about-ai/</link><pubDate>Thu, 28 May 2026 00:00:00 -0400</pubDate><author>srh@haptonstahl.org (Stephen Haptonstahl, Ph.D.)</author><guid>https://haptonstahl.org/polimath/corporate-empathy-about-ai/</guid><description>&lt;p&gt;A while back I gave my first talk to a general audience about AI. The presentation went well, and it was generally very well received. Then came the Q&amp;amp;A.&lt;/p&gt;
&lt;p&gt;The person who spoke first was nearly in tears. They went on at length about the evils of AI and how they would never use it. They said AI is taking jobs (true) and that all the jobs it takes can be done better by humans (not true, in many cases). The speaker used up the time scheduled for questions. They ended, less with a question and more with a challenge to rebut.&lt;/p&gt;</description></item><item><title>Good practices: Naming Things</title><link>https://haptonstahl.org/polimath/good-practices-naming-things/</link><pubDate>Wed, 07 Jan 2026 00:00:00 -0400</pubDate><author>srh@haptonstahl.org (Stephen Haptonstahl, Ph.D.)</author><guid>https://haptonstahl.org/polimath/good-practices-naming-things/</guid><description>&lt;blockquote&gt;&lt;p&gt;There are only &lt;a href="https://martinfowler.com/bliki/TwoHardThings.html" target="_blank" rel="noreferrer"&gt;two hard things&lt;/a&gt; in Computer Science: cache invalidation and naming things.&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Phil Karlton&lt;/li&gt;
&lt;/ul&gt;
&lt;/blockquote&gt;&lt;p&gt;Bad names create confusion. Good names:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Provide &lt;strong&gt;clarity to consumers&lt;/strong&gt; about what to find inside by telling us &lt;em&gt;why&lt;/em&gt; we have the named thing.&lt;/li&gt;
&lt;li&gt;Provide &lt;strong&gt;guidance to producers&lt;/strong&gt; about what should and should not go inside, and tell us &lt;em&gt;how&lt;/em&gt; we create the named thing.&lt;/li&gt;
&lt;li&gt;Are &lt;strong&gt;easy to use&lt;/strong&gt;: concise, memorable, easy-to-spell, not random or disconnected from how and why we have the named thing.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Avoid &amp;ldquo;collisions&amp;rdquo;&lt;/strong&gt; = repeating a name of something else that is not distinguishable from context.&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;This is not a complete guide to naming, but rather a compilation of good practices&lt;sup id="fnref:1"&gt;&lt;a href="#fn:1" class="footnote-ref" role="doc-noteref"&gt;1&lt;/a&gt;&lt;/sup&gt; that generalize what I have found useful. We&amp;rsquo;ll discuss:&lt;/p&gt;</description></item><item><title>Get someone else to do it</title><link>https://haptonstahl.org/polimath/get-someone-else-to-do-it/</link><pubDate>Sat, 08 Nov 2025 00:00:00 -0400</pubDate><author>srh@haptonstahl.org (Stephen Haptonstahl, Ph.D.)</author><guid>https://haptonstahl.org/polimath/get-someone-else-to-do-it/</guid><description>&lt;p&gt;The easiest way to get something done is to get someone else to do it.&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Stephen Haptonstahl&lt;/li&gt;
&lt;/ul&gt;

&lt;h2 class="relative group"&gt;Thanksgiving dinner
 &lt;div id="thanksgiving-dinner" class="anchor"&gt;&lt;/div&gt;
 
 &lt;span
 class="absolute top-0 w-6 transition-opacity opacity-0 -start-6 not-prose group-hover:opacity-100 select-none"&gt;
 &lt;a class="text-primary-300 dark:text-neutral-700 !no-underline" href="#thanksgiving-dinner" aria-label="Anchor"&gt;#&lt;/a&gt;
 &lt;/span&gt;
 
&lt;/h2&gt;
&lt;p&gt;Dad is about to put the turkey in the oven. There&amp;rsquo;s a lot of food yet to prepare. Three guests wander into the kitchen and ask how they can help. The last thing Dad needs is a distraction!&lt;/p&gt;</description></item><item><title>How I lead (data) teams: principles</title><link>https://haptonstahl.org/polimath/how-i-lead-data-teams-principles/</link><pubDate>Sun, 13 Jul 2025 00:00:00 -0400</pubDate><author>srh@haptonstahl.org (Stephen Haptonstahl, Ph.D.)</author><guid>https://haptonstahl.org/polimath/how-i-lead-data-teams-principles/</guid><description>&lt;h2 class="relative group"&gt;tl;dr
 &lt;div id="tldr" class="anchor"&gt;&lt;/div&gt;
 
 &lt;span
 class="absolute top-0 w-6 transition-opacity opacity-0 -start-6 not-prose group-hover:opacity-100 select-none"&gt;
 &lt;a class="text-primary-300 dark:text-neutral-700 !no-underline" href="#tldr" aria-label="Anchor"&gt;#&lt;/a&gt;
 &lt;/span&gt;
 
&lt;/h2&gt;
&lt;ul&gt;
&lt;li&gt;North star: Happier teams deliver more.&lt;/li&gt;
&lt;li&gt;How I sail that course:
&lt;ul&gt;
&lt;li&gt;Remove demotivating emotional shielding, using empathy and vulnerability to create a safe space.&lt;/li&gt;
&lt;li&gt;Motivate by providing purpose, autonomy, and the chance to develop mastery.&lt;/li&gt;
&lt;li&gt;Don&amp;rsquo;t control: trust.&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;hr&gt;
&lt;p&gt;Management is allocating resources. &lt;strong&gt;Leadership is influencing people toward goals.&lt;/strong&gt;&lt;/p&gt;</description></item><item><title>How sure are you? Confidence v. Prediction intervals</title><link>https://haptonstahl.org/polimath/how-sure-are-you-confidence-v-prediction-intervals/</link><pubDate>Thu, 03 Jul 2025 00:00:00 -0400</pubDate><author>srh@haptonstahl.org (Stephen Haptonstahl, Ph.D.)</author><guid>https://haptonstahl.org/polimath/how-sure-are-you-confidence-v-prediction-intervals/</guid><description>&lt;p&gt;Two common uses for statistical (or machine learning) models are:&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;Something happened. Why?&lt;/li&gt;
&lt;li&gt;Something will happen. What?&lt;/li&gt;
&lt;/ol&gt;

&lt;h2 class="relative group"&gt;Spoiler Alert
 &lt;div id="spoiler-alert" class="anchor"&gt;&lt;/div&gt;
 
 &lt;span
 class="absolute top-0 w-6 transition-opacity opacity-0 -start-6 not-prose group-hover:opacity-100 select-none"&gt;
 &lt;a class="text-primary-300 dark:text-neutral-700 !no-underline" href="#spoiler-alert" aria-label="Anchor"&gt;#&lt;/a&gt;
 &lt;/span&gt;
 
&lt;/h2&gt;
&lt;ul&gt;
&lt;li&gt;When reporting results, tell your audience how certain you are. This is essential &lt;a href="https://haptonstahl.org/polimath/one-number-doesnt-do-it-context-matters/" target="_blank" rel="noreferrer"&gt;context&lt;/a&gt;.&lt;/li&gt;
&lt;li&gt;&amp;ldquo;Why?&amp;rdquo;: When presenting parameters (drivers, slopes, causal effects, and the like) use something like a confidence interval, Bayesian credible interval, or bootstrapping the data.&lt;/li&gt;
&lt;li&gt;&amp;ldquo;What?&amp;rdquo;: When presenting predictions, use a conformal prediction interval, Bayesian posterior predictive interval, or the like. Forecasts must use these.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2 class="relative group"&gt;&amp;ldquo;Why?&amp;rdquo; = inference about drivers
 &lt;div id="why--inference-about-drivers" class="anchor"&gt;&lt;/div&gt;
 
 &lt;span
 class="absolute top-0 w-6 transition-opacity opacity-0 -start-6 not-prose group-hover:opacity-100 select-none"&gt;
 &lt;a class="text-primary-300 dark:text-neutral-700 !no-underline" href="#why--inference-about-drivers" aria-label="Anchor"&gt;#&lt;/a&gt;
 &lt;/span&gt;
 
&lt;/h2&gt;
&lt;p&gt;When we ask &amp;ldquo;why?&amp;rdquo; we are trying to make an &lt;strong&gt;inference&lt;/strong&gt; about how the data was generated. Specifically, inferences about the &lt;strong&gt;parameters&lt;/strong&gt; of the model, which can be thought of as measures of the relationships between features and the target.&lt;/p&gt;</description></item><item><title>One number doesn't do it: Context matters</title><link>https://haptonstahl.org/polimath/one-number-doesnt-do-it-context-matters/</link><pubDate>Sun, 22 Jun 2025 00:00:00 -0400</pubDate><author>srh@haptonstahl.org (Stephen Haptonstahl, Ph.D.)</author><guid>https://haptonstahl.org/polimath/one-number-doesnt-do-it-context-matters/</guid><description>&lt;p&gt;&lt;em&gt;&lt;strong&gt;&amp;ldquo;Our net promoter score for the new version is 42.&amp;rdquo;&lt;/strong&gt;&lt;/em&gt;&lt;/p&gt;
&lt;p&gt;Okay. So what? Is 42 good or bad? Should we continue rolling out the new version, or should we roll back to the previous version?&lt;/p&gt;</description></item><item><title>Not everything valuable is measurable</title><link>https://haptonstahl.org/polimath/not-everything-valuable-is-measurable/</link><pubDate>Sun, 01 Jun 2025 00:00:00 -0400</pubDate><author>srh@haptonstahl.org (Stephen Haptonstahl, Ph.D.)</author><guid>https://haptonstahl.org/polimath/not-everything-valuable-is-measurable/</guid><description>&lt;p&gt;I wrote before about &lt;a href="https://haptonstahl.org/polimath/the-business-value-of-a-data-science-project/" target="_blank" rel="noreferrer"&gt;types of value generated by data science projects&lt;/a&gt;. What happens if you can&amp;rsquo;t report value in dollars?&lt;/p&gt;
&lt;p&gt;&lt;a href="https://en.wikipedia.org/wiki/James_Q._Wilson" target="_blank" rel="noreferrer"&gt;James Q. WIlson&lt;/a&gt; classified bureaucratic agencies based on whether their &lt;a href="http://ryansandbox.openetext.utoronto.ca/chapter/democracy-and-bureaucracy/#table8_1" target="_blank" rel="noreferrer"&gt;inputs and outputs were measurable&lt;/a&gt;.&lt;/p&gt;</description></item><item><title>The business value of a data science project</title><link>https://haptonstahl.org/polimath/the-business-value-of-a-data-science-project/</link><pubDate>Mon, 26 May 2025 00:00:00 -0400</pubDate><author>srh@haptonstahl.org (Stephen Haptonstahl, Ph.D.)</author><guid>https://haptonstahl.org/polimath/the-business-value-of-a-data-science-project/</guid><description>&lt;p&gt;&lt;strong&gt;Data science should deliver business value.&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;When considering whether to invest in a data science project, itʼs useful to be clear about the kinds of value the project will bring.&lt;/p&gt;</description></item></channel></rss>