Data Science Metrics Explained With Strawberries 🍓

Todd Lewandowski
7 min readJun 14

Accuracy, precision, and recall explained through strawberries and agritourism

A selfie of the author. With a green hat and red shirt, I look like a strawberry. Source: Todd Lewandowski

Last weekend I went to Tanaka Farms to pick strawberries. It was very fun and I really enjoyed it (not a paid endorsement btw). I picked one box of strawberries and one bag of carrots. Both were very delicious.

While out in the beautiful Southern California weather, I realized that picking strawberries is a great metaphor for classifier algorithms from data science and in particular the success metrics.

I always forget the exact meanings of accuracy, precision, and recall. So why not explain with strawberries? It’s a fun example that really brings these ideas to life. It also forms a strong emotional memory — who doesn’t love strawberries—that makes the concepts easy to remember.

Metrics Recap

Here’s a quick recap of the important classifier metrics:

Source: Jerry An, How to Remember all these Classification Concepts forever

Now let’s apply it to strawberry picking. Let’s start by defining the classes:

  • Positive = The strawberry is ripe (pick it)
  • Negative = The strawberry is not ripe (leave it)

Let’s also define the algorithms. We’ll call my eye+brain the predictive algorithm. These metrics are measuring how good my eye+brain is at classifying strawberries as good or bad.

My friend is much better than me at cooking. So we’ll call their eye+brain estimation as the actual class of the strawberry, as they double check the strawberries before we actually use them.


Accuracy measures the overall correctness of a model by comparing the number of correct predictions (true positives and true negatives) with the total number of predictions made. For strawberries, it’s quite simply my overall ability to pick good ones…

Todd Lewandowski

Product Manager, Innovator, Entrepreneur. Need advice on your next project? Visit