yego.me
💡 Stop wasting time. Read Youtube instead of watch. Download Chrome Extension

Dataset individuals and categorical variables


3m read
·Nov 11, 2024

So we have this question that says millions of Americans rely on caffeine to get them up in the morning, and that is probably true. Although for me, if I drink even a little bit of caffeine in the morning, I won't be able to sleep that night. Here's nutritional data on some popular drinks at Ben's Beans Coffee Shop.

We have the names of different drinks, and for each of those drinks, we know not only their name, we know whether they are hot or cold, we know how many calories they contain, sugar content, caffeine. All right, now with that, let's try to answer these questions. Like always, try to pause the video and see if you can answer these questions before I do.

And on this one on the right, there's a little bit below where you see; there's a little bit below, and actually, I'll just leave it there. So the individuals in this data set are... So when you see the term individuals, you might immediately say, "Oh, they must be talking about people," because in everyday language, when we talk about individuals, we tend to be talking about people. But in statistical language, it's really referring to what are the different entries of the data set.

So each of these rows of the data set, they're not referring to types of people or customers and things about those customers. So it's not about Ben's Beans customers. I have trouble saying that. Each of these rows represents one of the drinks that are offered at Ben's Beans Coffee Shop. So those are the individuals in statistical language.

The individuals could refer to things—what are the things representing Ed in that data set? Then we're asked what the data set contains, and we're asked how many variables it contains and whether or not they're categorical or not.

So first, what's a variable? Well, the variables are what are the things that are different about these different entries, about these different individuals that this table tells us about, that this data set tells us about. Well, the name is a variable; each of these drinks has different names—that's one variable. The type is a variable; they can be hot or cold. The calories are a variable, the sugar content is a variable, and the caffeine is a variable.

So we have five variables over here: the name, type, calories, sugar, caffeine. So we have five variables, so we can rule out the six variable choices right over there. We're going to rule that one and that one out.

And so how many of these are categorical? A categorical variable—let me write this down—categorical variable means that you're going to that dimension of the thing you're measuring is going to be placed into some categories, or that variable takes on values that are the name of a category.

So for example, drink name—this is a categorical variable because the values that drink name can take on, well, those are the actual names of the drinks. These are the categories. It could be brewed coffee, café latte, café mocha, cappuccino, so on and so forth.

So this one right over here is... is this one over here categorical. Now, you might say, "Well, what's another type of variable?" Well, another type of variable is quantitative. A quantitative variable is going to take on numerical values as opposed to categorical values, numerical values that are measuring some type of attribute.

So, let's go through these. So what about type? Well, type isn't a numerical value; it's taking on a category. It's either going to be hot or cold, so that is also going to be categorical. But these other three, these take on numerical values that represent, in the case of calories, the number of calories a serving has, the amount of sugar in the sugar variable, or the amount of caffeine in the caffeine variable.

So these three right over here, these are quantitative variables. So you have five total variables, two of which are categorical and three of which are quantitative. And so that is this choice right here: five variables, two of which are categorical. The two categorical ones are, well, what name, what's the name of the drink, and also whether they are hot or cold.

More Articles

View All
Climate 101: Deforestation | National Geographic
[Narrator] Forests cover about 30% of the planet. And the ecosystems they create play an essential role in supporting life on earth. But deforestation is clearing earth’s forest on a massive scale. And at the current rate of destruction, the world’s rainf…
Moving Illusions
Hey, Vsauce. Michael here. This is a completely still image, but as your eye reads what I’m saying and jumps from word to word, the paragraph will appear to slightly, just subtly, wave and boil. The allusion is called anomalous motion. It’s neat. But to …
These Giant Manta Rays Just Want to Hang Out | Expedition Raw
We are at the Ravi Hio Island, 300 miles from shore off of Mexico, and we’re putting Critter cams on giant mantas for the first time. Mantas are so friendly that they just hang out with the divers, so we wouldn’t get any interesting footage because we’d …
Advice for Students and Recent Graduates on Finding Jobs – Liz Wessel of WayUp
At what point did you know you wanted to start a company? Um, so my sophomore year of college, I was at Penn, and I actually started my first business at the end of sophomore year. I went to Stanford for a three-day boot camp called Basis Entrepreneurial…
World War I: Homefront | Period 7: 1890-1945 | AP US History | Khan Academy
In 1917, the United States entered World War One on the side of the Allies. After several years of neutrality, Woodrow Wilson, who was serving as president of the United States at the time, even campaigned for re-election on the slogan “He kept us out of …
“Someone despises me. That’s their problem.” | How to Build Stoic Fortitude
There’s a big difference between having fortitude and hiding away in a fortress. In the latter case, we physically separate ourselves through self-isolation. Oftentimes, this is an attempt to hide from the big, bad things in the world. It’s not unlikely t…