Types of data

We talk about the different types of data: the main buckets of qualitative and quantitative metrics, and their sub-categorizations.

Project Source Code

Get the project source code below, and follow along with the lesson material.

Download Project Source Code

To set up the project on your local machine, please follow the directions provided in the README.md file. If you run into any issues with running the project source code, then feel free to reach out to the author in the course's Discord channel.

This lesson preview is part of the Fullstack D3 Masterclass course and can be unlocked immediately with a single-time purchase. Already have access to this course? Log in here.

This video is available to students only
Unlock This Course

Get unlimited access to Fullstack D3 Masterclass, plus 70+ \newline books, guides and courses with the \newline Pro subscription.

Thumbnail for the \newline course Fullstack D3 Masterclass
  • [00:00 - 00:17] So when you have a new dataset, the first step is often just figuring out the structure of the data. So over here on the left, we have the name and value of all the properties for one of the days in our dataset.

    [00:18 - 00:28] So we can see there's the summary, there's the moon phase, precipitation, de-point, cloud cover, the date. So this is January 1st, 2018.

    [00:29 - 00:37] There's really a lot to look at here. So let's see how we can kind of categorize these to make sense of what these different values are.

    [00:38 - 00:47] So one common grouping you might see is grouping types of data into two buckets . One is qualitative, the other is quantitative.

    [00:48 - 00:58] So for qualitative data, it's usually a string, doesn't have to be, but often it is. And it's usually you can put things in different buckets.

    [00:59 - 01:15] So things like icon, this is a string, you can put clear day, you can put this data point within the clear day bucket. And to contrast that we have quantitative is the other categorization.

    [01:16 - 01:29] And it's usually a number where there aren't really buckets, but instead that we have kind of like a number line. So let's go into a little bit more detail for both of these two categorizations .

    [01:30 - 01:44] So the first sub-categorization for qualitative data, the one with the buckets is binary. So if you have a binary metric, it's usually, it's one or the other one.

    [01:45 - 01:59] So a good example of this is raining or not raining. I'm not sure if we have any good examples of this in our data set, but imagine that precipitation probability was zero or one.

    [02:00 - 02:05] Is it going to rain or is it not going to rain? That would be a binary metric.

    [02:06 - 02:12] The next one, still qualitative is nominal. So nominal is usually things that you have a name.

    [02:13 - 02:26] So like this icon, I can say clear day, sunny, cloudy or windy. These are just names of things and they don't really have an order.

    [02:27 - 02:32] The next one we have is ordinal. So it's a little bit similar to nominal, but there's a natural order of things.

    [02:33 - 02:44] So not windy, kind of windy, very windy. If the icon, there were three options, they said clear day, partially clear day .

    [02:45 - 02:51] Partially cloudy day and cloudy day. That would be an ordinal metric.

    [02:52 - 03:06] And then, so those are the three qualitative metric types, binary, nominal and ordinal. And then on the other side, we have for quantitative metrics, we have discrete metrics.

    [03:07 - 03:18] So this is a classic example of this is number of kids. So you can have one kid, two kid or three kid, but you can't really have one and a half kids, unless maybe you're averaging.

    [03:19 - 03:37] So discrete data is, there are discrete numbers and they kind of have a place on a number line. So they have relationships to each other, but you can't interpolate in between certain values.

    [03:38 - 03:46] And I think for visibility is kind of discrete because I think there are set values here. I think they're going to be integers.

    [03:47 - 03:52] So zero, one, two, three all the way up to ten. And then the last one is continuous.

    [03:53 - 04:01] And this is what you're going to see the most often. This is, if you see a number, it's most likely continuous like degrees Fahrenheit.

    [04:02 - 04:10] You can have 70 degrees, you can have 72 degrees, you can have 71 and a half degrees. You can have really any point in between the two extremes.

    [04:11 - 04:22] So most of the things on here will be a continuous variable. So temperature min is going to be continuous.

    [04:23 - 04:34] Humidity is a continuous variable. And then any dew point or pressure or wind speed, these are all going to be continuous variables.

    [04:35 - 04:50] And once you've kind of labeled all of the metrics in your data set as what type of data they are, you can start to figure out the structure for your data set and then move on to the next step, which is figuring out how to visualize those different pieces of data.