From Absolute Value to Your Values | ThinkData Ed

From Absolute Value to Your Values: Data Science as the Practice of Human Judgment

Dylan Poulsen

Digital simulation

October 13, 2026

AI Disclosure: I originally presented these ideas in a talk to students. Using Notability’s voice recorder and drawing tools, I sketched out figures live alongside the corresponding concepts during the presentation. Afterwards, I imported the audio recordings and PDF sketches into Google Antigravity. I then used Gemini 3.8 Flash to transcribe the recording and generate TikZ figures based on each sketch. Finally, the model and I iteratively edited the draft for clarity while working to preserve my voice and core reflections.

 


 

One aspect I enjoy about studying and teaching data science is the ability to show how mathematical practices (starting with a simple idea, iterating on it through logic , proof, and modeling) can have a practical application. Through this, we build something technically marvelous. Alongside that, the process of building those tools requires asking and answering profound questions, questions that can also inform our view on how to live a good life. I want to take you on a journey that illustrates this point well. It begins with one of the simplest concepts we teach in middle school math, the absolute value.

 


 

1. Absolute Value as Distance

 

Let’s start with the absolute value function. At its core, the absolute value simply measures how far away a number is from zero on the number line. For instance, |-5| = 5 because -5 is 5 units away from zero, just as |3| = 3 because 3 is 3 units away from zero.

 

From this starting point, we can immediately begin talking about the distance between any two numbers. To find the distance between -5 and 3, we calculate the absolute value of their difference,

 

d ( -5, 3 ) = |-5 – 3| = |-8| = 8.

 

Calculating it in the other direction gives the same result,

 

d ( 3, -5 ) = |3 – ( -5 )| = |8| = 8.

 

Either way, the distance is 8. Already, within the absolute value function, we possess a concrete mathematical definition of distance.

 


 

2. Generalizing Simple Ideas

 

Mathematicians love to think deeply about simple ideas like “distance” and generalize them. When exploring the absolute value on a number line, distance clearly represents the shortest path between two points. Suppose we want to travel from -5 to 3. The shortest distance along the number line is 8 units. Now imagine introducing a detour through an intermediate number, z. If that number lies directly on the path, such as z = 1, the distance from -5 to 1 is 6, and the distance from 1 to 3 is 2, yielding a total distance of 6 + 2 = 8. The detour does not lengthen the trip because 1 was already on the way. But if that number lies outside the path, such as z = -7 or z = 5, the journey strictly grows longer. In short, a detour either preserves the original distance or increases it; it can never shorten the journey.

 

When mathematicians look at this behavior, they ask what makes a distance a “distance,” and what core rules must hold. Formally, any valid distance function (what mathematicians call a metric) must satisfy four foundational properties.

 

  1. 1. Positivity (Non-negativity): d ( A , B ) ≥ 0. Distance is always positive or zero; we can never travel a negative distance.

  2.  

  3. 2. The Zero Property (Identity of Indiscernibles): d ( A, B ) = 0 if and only if A = B. The distance is zero if and only if the starting point and destination coincide.

  4.  

  5. 3. Symmetry (Reflexivity): d ( A, B ) = d ( B, A ). The distance from point A to point B is the same as the distance from B to A.

  6.  

  7. 4. The Triangle Inequality: d ( A, B ) ≤ d ( A, C ) + d ( C, B ). Taking a detour through a third point C can never be shorter than going directly from A to B.

 

What started as a concrete rule on a number line has become an abstract framework to classify what we think is essential in the concept of distance. Once mathematicians established these four properties, they realized this does not just apply to numbers on a 1D line; it extends into higher dimensions. In two dimensions, given any two points ( x 1, y 1 ) and ( x 2, y 2), we can break the separation into a horizontal leg |x 1 – x 2 | and a vertical leg | y 1 – y 2 |. Using the Pythagorean theorem, one of the earliest mathematical results in human history, the straight-line diagonal distance becomes


 

And remarkably, all four properties hold. Distances are always non-negative, zero only when points coincide, perfectly symmetric, and the triangle inequality holds (see Figure 1). The concept of distance has stepped off the line and stepped into the plane, and this idea only grows.

 

Figure 1: Generalizing distance beyond the number line
Figure 1: Generalizing distance beyond the number line, showing Euclidean distance in 2D space (left) and the triangle inequality with detours (right).

 


 

3. Measuring the Distance Between Model and Data

 

In data science, one of our primary tools of modeling is linear regression. Suppose we are investigating the relationship between two numerical variables, such as the number of hours a student studies each week ( x ) and their GPA ( y ). There will naturally be variability (putting in more hours does not guarantee a higher GPA), but it is plausible that studying more is associated with higher achievement. Suppose we collect our data points, ( x 1 , y 1 ) ,( x 2 , y 2 ) , … , ( x 5 , y 5 ). When we plot these points on a scatter plot, we want to find a linear model y = m x + b ,
that explains the data.

 

The problem is there are infinitely many candidate lines we could draw through that cloud of points (see Figure 2). Some lines are steep, some are flat, some sit high, and some sit low. How do we choose which line is the “best”?

 

Figure 2: Infinitely many candidate lines can pass through data points. How do we define which line is closest?
Figure 2: Infinitely many candidate lines can pass through data points. How do we define which line is closest?

 

The amazing thing is that the answer once again comes down to distance. We construct a value function that measures the distance between the data and the model. For each input x i , our model produces a predicted output,

 
 

We compare this predicted point ( x i , mx i + b ) to our actual observed data point, ( x i , y i ). The vertical difference between where the point actually is and where the model predicted it to be is the residual, defined as

 
 

How do we measure the total distance between our model and all our data points? In standard regression, we calculate the sum of squared residuals. Rather than relying on compact mathematical shorthand, we can write this addition out explicitly across all data points,

 
 

We can also express this directly in terms of our individual errors,

 
 

For the five concrete data points in Figure 3, this is simply the sum of five numbers,

 
 

Just like the absolute value, squaring the residuals gets rid of negative signs because squaring makes everything positive. Visually, this calculation has a pleasing geometric interpretation. We are literally drawing squares on our graph whose side lengths are the vertical distances from each data point to the line (see Figure 3). The sum of the areas of those squares represents the total distance between the model and the data.

 

Figure 3: Ordinary Least Squares
Figure 3: Ordinary Least Squares minimizes the sum of squared residuals, representing the total area of the green squares drawn along each residual.

 

We can picture this system as having two slider bars. One slider controls the slope, m, and the other controls the intercept, b. The data points ( x 1 , y 1 ) through ( x 5 , y 5 ) are fixed. They are empirical facts. The only parameters we have the power to adjust are m and b. As we nudge the m and b sliders, the line tilts and shifts. The green squares grow and shrink, and with them, the total distance changes. By adjusting those sliders, we can find the exact combination of m and b that makes the total area of those squares as small as physically possible (see Figure 4). Unless all data points lie perfectly on a single straight line, we cannot eliminate the error entirely. However, we can find the line that gets as close to the data as possible.

 

Figure 4: Parameter sliders
Figure 4: Parameter sliders (m and b) allow us to adjust the line’s slope and intercept to find the best fit.

 


 

4. What Norm Do We Choose?

 

Here is where the mathematics hands the baton to philosophy. Finding the optimal slider positions (m, b) that minimize that sum is an objective, mechanical problem. In calculus, you will learn to take partial derivatives with respect to m and b, set them to zero, and solve. In linear algebra, you will learn to treat this as an orthogonal projection of the data vector onto the column space of the model matrix. Mathematicians and computer scientists have spent centuries developing astonishingly fast, robust algorithms for optimization, and at this point, computers can minimize functions with virtually no human input. Where human judgment enters is deciding what function to minimize in the first place.

 

The sum of squared residuals, closely tied to the L2 norm (Euclidean distance), is only one way to measure distance. (Technically, the true Euclidean distance includes a square root,    but minimizing the sum of squares yields the exact same best-fit line while making the calculus vastly simpler to solve.) What if, instead of squaring the errors, we took the sum of the absolute values of the residuals?

 
 

This is the L1 norm, the foundation of Least Absolute Deviations (LAD) regression. The choice between the L1 norm and the squared L2 norm is not a technical trivia question; it directly changes the fitted model. The squared L2 norm squares every deviation. An error of 2 becomes a penalty of 4, while an error of 10 explodes into a penalty of 100. Because large errors are penalized so harshly, the model will bend over backwards to accommodate extreme points. A single massive outlier can drag the entire line toward itself. In fact, minimizing the squared L2 norm connects mathematically to finding the mean. The L1 norm (absolute residuals) treats errors linearly. An error of 10 is penalized exactly twice as much as an error of 5. It is robust to outliers; extreme data points cannot bully the line. Minimizing the L1 norm connects mathematically to finding the median.

 

Neither norm is handed down from on high as the “correct” one. When we choose a distance function, we make an active choice about what kind of mistakes we can tolerate and what kind of mistakes we refuse to accept (see Figure 5). The choice of norm is the way we embed our values into a model.

 

Figure 5: The choice of norm embeds our values
Figure 5: The choice of norm embeds our values. Quadratic penalties in L2 (mean-seeking, sensitive to outliers) versus linear penalties in L1 (median-seeking, robust).

 

In data science, we generalize this concept even further into what we call a loss function (or objective function). A loss function measures the penalty of being wrong. In regression, it is often a literal geometric distance, such as the L1 norm or the Euclidean distance underlying Ordinary Least Squares. In broader machine learning, loss functions may relax strict metric rules like symmetry to account for asymmetric real-world consequences, such as when underestimating a risk is far more costly than overestimating it. But in every case, a loss function formalizes the gap between where our model is and where we want it to be. The machine’s only role is to minimize that gap; our role is deciding what that gap represents.

 


 

5. How Do You Measure Your Life?

 

When I was an undergraduate nearing graduation, staring out at the wide-open expanse of possibilities, I found myself in the office of my physics professor, Paul Weber. At the time, I was enrolled in a course on real analysis, the branch of mathematics where we strip away intuitive geometry and rigorously study the formal definition of distance functions and metric spaces. Professor Weber and I began talking about life after college, and the conversation drifted into an unexpected realization that the things we value in life are, in some sense, a distance function.

 

Some people optimize their lives around a financial target. They make life decisions ruthlessly oriented around closing the distance between their current circumstances and a specific vision of wealth. You can measure your proximity to that target every single day. Others measure distance against a checklist of novelty: countries visited, flight miles logged, or bucket-list experiences completed. Others measure distance against targets of stability, status, time spent with family, or service to their community. All of these define personal distance functions: gaps between where we currently stand and where our model of a good life says we should be. Every decision you make, such as how you spend your Tuesday evening, which job offer you accept, or what you pay attention to, is an adjustment of your personal parameter sliders.

 

Now, as a mathematician, I would advise against trying to write down an explicit loss function for your life. Life is far too rich, messy, and non-linear to formalize into a convex optimization problem (and that’s part of the joy). I would, however, ask you to keep this framing in mind. Whether you articulate it or not, the choices you make are the embodiment of what you value. You are, in some sense, constantly trying to minimize the distance between the life you lead and some model of what matters to you. I wouldn’t worry about failing to find the global minimum distance, but instead about not knowing what your target was in the first place.

 


 

6. Data Science as the Practice of Human Judgment

 

If there is one lesson I want students and educators to take away from this journey, it is that data science, for all its computational trappings, is not really about computation. Data science is about human judgment. Mathematics and data science can easily feel cold and detached. Our classes are full of precise definitions, theorems, counterexamples, statistical tests, programming languages, etc. It is understandable for learners to believe that the job of a data scientist is merely to feed data into an algorithm and accept whatever output the machine provides, especially in the current age where the algorithm might be a powerful large language model.

 

I maintain that the values-based human decisions that we make as data scientists make our work even more essential in a future that is increasingly computational. The human being is responsible for the metric. We decide which variables to collect and which to ignore. We decide whether an outlier represents a measurement error or a vital human story. We decide whether to penalize errors using an L1 norm, an L2 norm, or a custom function. We decide whether a predictive algorithm should prioritize raw accuracy, interpretability, or equity across subgroups. None of those important decisions should be automated.

 

By teaching data science, we are not merely training students for technical careers. We are providing them with a laboratory to practice human judgment, the disciplined, thoughtful act of deciding what to measure, what to value, and how to weigh competing trade-offs. Taken far enough, data science doesn’t just teach us how to fit a line to a scatter plot. It invites you to step back from the screen, look at the life you are building, and ask the questions that truly matter: How do you measure your life? What function are you minimizing?

 


 

Dylan Poulsen headshot

About the Author

Dylan Poulsen

Hi all, my name is Dylan Poulsen. I’m an associate professor of mathematics and data science at Washington College in Maryland. I want my students to be well equipped to enter data science careers. I hope to connect with the community here and share what I learn from everyone here with my students. I care deeply about teaching effectively, so I would love to discuss teaching ideas with y’all and steal the good ideas! I’m also very interested in questioning the practice of grading and seeking alternative ways for students to demonstrate their knowledge beyond an exam. My current research is about developing Fourier methods for time series data which is non-uniformly sampled in time. I’m also working with students applying data science to help professors and our athletic teams with their data analysis. I’d be curious to discuss experiences you have mentoring students with projects that have impact on other people. My most widely-known work is a fun piece of mathematics I wrote about how to cut an onion optimally which has been written about in the New York Times and the Pudding, which did a great job presenting the idea. I also published all the details in Mathematics Magazine.