Module 2 · What Counts as Data

Which of a gaming channel’s stats can you do math on?

Lesson 2.1 · You Can’t Average Minecraft

Ashley

The average of Minecraft and Rocket League is not a thing.

Ashley tries to average her channel.

The views average fine. Then she tries to average the game titles and the spreadsheet gives her a blank stare.

You can’t average “Minecraft.”

The short answer

Views, length and subscribers. Game title, upload day and face-in-thumbnail are categories: she can count them and group by them, but not average them. Which is still useful, as Module 4 shows.

Try it yourself

Sort each column from Ashley’s channel stats. Can you do math on it, or does it name a group?

1 of 6

Views

Put it in

What you just did has a name

Numeric and categorical data

Data that measures how much or how many is numeric.

Data that says which kind or which group is categorical.

Every column in every table is one or the other, and the first thing an analyst does is figure out which.

A few more things

The zip code trap

Some categories look like numbers. A zip code, a jersey number, a video’s ID. You can’t average zip codes, even though a spreadsheet will happily try. If adding two of them together means nothing, it’s a category.

Categories with an order

“Small, medium, large” and “1 star to 5 stars” are categories with an order. You can rank them, but the gap between 3 and 4 stars isn’t a fixed amount. Averaging star ratings is common and a little sketchy.

It decides the chart

Numbers get charts that show a shape or a relationship; you’ll draw both in Modules 8 and 10. Categories get bar charts. Pick the wrong one and the chart lies without meaning to. Module 11 lives on this idea.

Go deeper

The longer version, if you want it.

The four levels, if you want the names

Statisticians split it finer. Nominal data is categories with no order (game titles). Ordinal data is categories with an order (star ratings). Interval data is numbers where gaps mean something but zero is arbitrary (temperature in Fahrenheit). Ratio data is numbers with a true zero (views, minutes, dollars).

For this course, number vs. category covers almost everything. The finer split matters when you pick which statistic to compute: a median makes sense for star ratings, a mean really only for interval and ratio data.

Quick check

A transit app logs the route number, the driver’s name and how many riders boarded for each trip. Which column is numeric?

Let’s take it slower

Try it this way: ask the column one question. “More of you means what?” If more means a bigger amount, more views, more minutes, more dollars, it’s numeric. If “more” makes no sense, if route 30 isn’t more bus than route 12, the column is sorting things into buckets, and that’s categorical. Digits can fool you, so don’t look at how the value is written. Look at whether it measures something or names something.

More examples

1

Room 204 is not a quantity

A class schedule lists the period, the room number and how many minutes the class runs. Minutes are numeric: you could add up your whole day. Period 3 and room 204 are categories in disguise. Nobody has ever ended up in room 408 by doubling up.

2

The pizza order

An order has a topping and a number of slices. Slices are numeric, so the kitchen can total them across the night. Topping is categorical, so the kitchen can only count how many pepperoni orders came in. Same order, one column of each kind.

Back to the question

So which of Ashley’s stats can she do math on?

Show the answer

Views, length and subscribers. Game title, upload day and face-in-thumbnail are categories: she can count them and group by them, but not average them. Which is still useful, as Module 4 shows.

One last question

Felix wants to know what makes something a number instead of a category.

Talk Card

Talk Card · 2.1

You can average view counts. You can’t average “Minecraft.” Numbers measure, categories name groups, and the difference decides what math makes sense.

Data to AI · pettigrewlab.com/learn

Next lesson