# Variables in Statistics

In the sampling lesson, we discussed the details around collecting data for analysis. In this lesson, we’ll focus on understanding the structural parts of a dataset and how they’re meeasured.

Whether a sample or a population, a dataset is generally an attempt to describe correctly a relatively small part of the world. The dataset we worked with in the previous lesson describes basketball players and their performance in the season 2016-2017.

Other data sets might attempt to describe the stock market, patient symptoms, stars from galaxies other than ours, movie ratings, customer purchases, and all sorts of other things.

The properties with varying values we call variables. The height property in our data set is an example of a variable. In fact, all the properties described in our data set are variables.

Notice that this particular meaning of the “variable” concept is restricted to the domain of statistics. A variable in statistics is not the same as a variable in programming, or other domains.

In this lesson, we’ll explore the concept of variables. We’ll discuss the difference between quantitative and qualitative variables, discrete and continous variables, and more.

While this lesson is primarily theory-based, the Python environment inside of this lesson includes answer checking so you can ensure that you’ve fully mastered each concept before learning the next concept.

## Objectives

- Learn what variables are in statistics.
- Learn the different kinds of variables.
- Learn how variables are measured..

## Lesson Outline

- Variables in Statistics
- Quantitative and Qualitative Variables
- Scales of Measurement
- The Nominal Scale
- The Ordinal Scale
- The Interval and Ratio Scales
- The Difference Between Ratio and Interval Scales
- Common Examples of Interval Scales
- Discrete and Continuous Variables
- Real Limits
- Next steps
- Takeaways

Get started for free

No credit card required.

**Already have an account?** Sign in →

By creating an account you agree to accept our terms of use and privacy policy.