๐

ย >ย

๐ย

ย >ย

๐

# 1.2 The Language of Variation: Variables

5 min readโขdecember 28, 2022

L

Lusine Ghazaryan

Jed Quiaoit

265ย resources
See Units

## Types of Variables

Before taking you on the journey of learning, statistics, let's make some sense of data.ย ๐ค
Data is actually in plural form; it contains information about individuals or units that have characteristics, also called variables. The values that variables assume are called data. Since the variables can be categorical or quantitative, data can also be divided into categorical and quantitative. ๐ฆ
When the variable assumes values that are attributes, we call the variable categorical, and data as categoricalโfor example, the colors of cars, names of states, districts, countries. The values for colors of cars may stretch from white to black, any possible color you may see on the street. Then it makes sense to group those values and compare them.ย
When we measure a characteristic that results in numerical values, then we deal with quantitative variables and subsequently with quantitative dataโfor example, the number of days, the price of the product, the age of the individuals. The quantitative data divided further into two types: discrete and continuous.
Recall your algebra class when we called discrete to those numbers that were whole and continuous to those numbers that come in the intervals. The price, weight, age are continuous because it can assume numbers in intervals. When data assumed are numbers, then it makes sense to find an average.ย
The variables can be measured at different levels: nominal, ordinal, interval, and ratio. The qualitative variables are nominal and ordinal. The difference between the two is that ordinal has some order between qualitative data, but nominal has not. For example, the satisfaction level of customers can be ranked by some order from most to least.ย  The difference between interval and ratio is that interval level measurement ranks data, but there is no meaningful 0, whereas the ratio has 0 in its meaning.
The variables change from one individual to another, and so data change over time. If we ask the same question to different people weโll get different answers. Statistics tools will help us notice the relationships and varied patterns among individuals. This variability makes the study of statistics more interesting.ย โญ

### Key Vocabulary

• Individuals
• Variable
• Data
• Categorical Variable
• Quantitative Variable
• Distribution

## Going Deeper: Categorical vs. Quantitative Variables

Earlier, we established that variables refer to characteristics that change from one individual to another: age group, dominant hand, height, you name it! In statistics, one of the ways variables can be classified is between categorical or quantitative. Let's build upon the definitions we introduced earlier.
• Categorical variables are variables that can be placed into categories or groups. These variables do not have a numerical value and cannot be ordered or ranked. Examples: gender, race, and marital status. ๐ซต
• Quantitative variables are variables that can be measured or counted and have a numerical value. These variables can be either continuous or discrete. Continuous quantitative variables can take on any value within a given range, such as height or weight. Discrete quantitative variables can only take on certain values, such as the number of children in a household or the number of times a person has been hospitalized. ๐ข
It is important to correctly identify the type of variables in a study because different statistical techniques are appropriate for analyzing data from different types of variables. For example, t-tests are commonly used to analyze data from continuous quantitative variables, while chi-square tests are commonly used to analyze data from categorical variables. Don't worry about the tests for now! We'll talk more about them later in Units 6 to 9 of this course.
Still confused? Here's a list of categorical variables:
1. Gender (male or female)
2. Race (white, black, Hispanic, etc.)
3. Marital status (single, married, etc.)
4. Employment status (employed, unemployed, self-employed, etc.)
5. Education level (high school, associate's degree, bachelor's degree, etc.)
6. Political party (Republican, Democrat, Independent, etc.)
7. Religion (Christian, Muslim, Hindu, etc.)
8. Eye color (blue, brown, green, etc.)
9. Hair color (blonde, brunette, red, etc.)
10. Birthplace (United States, Canada, Mexico, etc.)
What about quantitative variables? Here's a list of some of them:
1. Age (8, 16, 34, etc.)
2. Height (180 cm, 5'2", 2 meters, etc.)
3. Weight
4. Income
5. Body mass index (BMI)
6. Blood pressure
7. Heart rate
8. Hours of sleep (a controversial one for teens)
9. Distance traveled
10. Number of siblings

## Example Question

Let's dive even deeper by look at this example to see how well we can make a distinction between the two types of variables and data. In the example below we can learn more about variables. ๐
Transportation Safety
The chart shows the number of job-related injuries in each of the transportation industries in 1998.
Industry ย  ย  ย  ย  ย  ย  ย  Number of injuries
Railroad ย  ย  ย  ย  ย  ย  ย  ย  ย  ย  4520ย ย
Intercity bus ย  ย  ย  ย  ย  ย  ย  5100ย ย
Subwayย  ย  ย  ย  ย  ย  ย  ย  ย  ย  ย  6850
Trucking ย  ย  ย  ย  ย  ย  ย  ย  ย  ย  7144
Airlineย  ย  ย  ย  ย  ย  ย  ย  ย  ย  ย  ย  9950
1. What are the variables that we are studying?
Looking at the table, we can see that we have two variables; type of industry and number of injuries.
2. Categorize each variable as quantitative or qualitative.
The type of industry, of course, is a qualitative variable, as the values are names for transportation. At the same time, the number of job-related injuries is quantitative, as the values are numbers.
3. Categorize each quantitative variable as discrete or continuous.
The number of job-related injuries is discrete.
4. Identify the level of measurement for each variable.
The type of industry is nominal, and the number of job-related injuries is a ratio.ย
5. The railroad is shown as the safest transportation industry. Does that mean railroads have fewer accidents than the other industries? Explain.
This question makes you think about what the number means to you. The railroads do show fewer job-related injuries; however, there may be other things to consider. For example, railroads employ fewer people than the other transportation industries in the study.
6. From the information given, comment on the relationship between the variables.ย
We can see that the railroads have the fewest job-related injuries. In contrast, the airline industry has the most job-related injuries (more than twice those of the railroad industry). The numbers of job-related injuries in the subway and trucking industries are fairly comparable.ย
Bottom line: always look at data and see what you can see behind, how they are related, and how they compare to each other.
๐ฅ Watch: AP Stats - Unit 1 Streams
Browse Study Guides By Unit
๐Unit 1 โ Exploring One-Variable Data
โ๏ธUnit 2 โ Exploring Two-Variable Data
๐Unit 3 โ Collecting Data
๐ฒUnit 4 โ Probability, Random Variables, & Probability Distributions
๐Unit 5 โ Sampling Distributions
โ๏ธUnit 6 โ Proportions
๐ผUnit 7 โ Means
โณ๏ธUnit 8 โ Chi-Squares
๐Unit 9 โ Slopes
โ๏ธFree Response Questions (FRQs)
๐Big Reviews: Finals & Exam Prep