MATH 1040 - Introduction to Statistics

Lesson 1.1 Variables

Reading

Reading sections are from the Introductory Statistics Textbook

Lesson

We begin by looking at populations.

Populations can be difficult to measure as every person or item in the population must be included. This is frequently impossible to do. So, we instead take a sample.

Samples are much easier to measure. We then take the results of our sample to infer information about the population. The topic of inference will be discussed after the midterm this semester.

All variables can be identified as one of two types:

Quantitative (or Numerical) Qualitative (or Categorical)

Deals with numbers

  • Can take an average, and the average has meaning
  • Can do other mathematics

Deals with categories

  • Words
  • Levels
  • Identification
    • Can be numbers, but an average is meaningless

Examples:

  • GPA
  • Age
  • Weight
  • Height
  • Number of pets
  • Distances
  • Time (elapsed time: 25 seconds, 5 months, 42 years)

Examples:

  • Favorite ice cream flavor (Vanilla, Chocolate, Strawberry)
  • Grade Level (Freshman, Sophomore, Junior, Senior)
  • Grade Level (9, 10, 11, 12, 13+)
  • Phone number
  • ZIP Code
  • Student ID
  • Date (referenced time: January, 6th century, 2024) 

Examples

You want to collect data on the cell phone networks most commonly used among Snow College students. You collect the network names from 100 students. What type of variable is this?

You want to study our dependence on computers. You ask Snow College students how many computers are used in their houses. What type of variable is this?

What regions of Utah are most represented by Snow College students? You ask students for their ZIP codes. What type of variable is this?

Practice

Here are a few variables. Determine if they are Quantitative or Categorical.

  1. Age
    • After answering on your own, check the
  2. Eye color
    • After answering on your own, check the
  3. Value of a house
    • After answering on your own, check the
  4. GPA
    • After answering on your own, check the
  5. Pain Level (No pain, Little pain, Moderate pain, Strong pain, Intense pain)
    • After answering on your own, check the
  6. Phone number
    • After answering on your own, check the
## Problem 1.1.1 1. What type of variable is the "Age" variable? This is a number, and finding the average age makes sense, so this is a __Quantitative__ variable. *Note*: It is often possible to take a Quantitative variable and use it to categorize your sample. For example, we can use the age to group people by age range: (Babies are ages 0-1, Toddlers ages 2-3, Children ages 4-8, ...). In this case, the age is used as a __Categorical__ variable.
## Problem 1.1.2 2. What type of variable is the "Eye Color" variable? It is not a number. Instead, people are grouped by the color of their eyes {Blue, Brown, Green, Hazel, ...}. So, this is a __Categorical__ variable.
## Problem 1.1.3 3. What type of variable is the "Value of a house"? This is a number, and finding an average value of a house makes sense. So, this is a __Quantitative__ variable.
## Problem 1.1.4 4. What type of variable is a student's "GPA"? This is a number, and finding the average GPA makes sense. So, this is a __Quantitative__ variable. *Note*: The GPA is often used to group students as {"A-student", "B-student", ...} and to determine if students are in a certain group (such as the honor role). * In this case, the GPA is still a Quantitative variable * The GPA is used to create another variable that is Categorical
## Problem 1.1.5 5. What type of variable is a patient's "pain level"? The pain level groups the patients into groups based on the amount of pain they report (no pain, low pain, etc.). So, this is a __Categorical__ variable.
## Problem 1.1.6 6. What type of variable is a person's "phone number"? A phone number is a number, but taking the average makes no sense. A phone number is really an identification number as you want to identify the person you are calling. * Loosely speaking, you can also use the phone number to group people by area code So, the phone number is a __Categorical__ variable.