Quantitative and Qualitative Variables in Statistics

A variable in statistics could be a name, number, quantity or a characteristic. Height, eye colour, goals, weight, sex, or type are all variables. The values of these variables change and therefore the name. A child’s height can vary between the ages of 5 to 12 and different children in the same age group can be of different heights. This is an instance of a variable.

Variables can be distinguished into quantitative and qualitative variables.

Quantitative or numeric variables are measurable. They can be counted or quantified. Some examples are:

  1. Height of a child
  2. Number of marks obtained in a test
  3. Price of tickets on various bus routes
  4. Age of a respondent
  5. Number of hours worked

Qualitative variables are not measurable and cannot be counted or quantified. Some examples are:

  1. Which country were you born in?
  2. What is the color of your hair?
  3. Do you work from home or at the office?
  4. Which industry do you work in?
  5. Was the exam easy or hard?

Qualitative variables help us better understand the story behind the measurables. They answer questions about qualitative preferences.

Take a look at this table. Observe the data labels. In this table, ID, name, class and gender are all qualitative variables. The number of marks obtained is quantitative data.

It is important to categorize variables into quantitative and qualitative variables. Both these variables are important while collecting data from a population.

Quantitative variables can further be segregated into discrete and continuous variables. Discrete variables have finite options while continuous variables have infinite options. The number of children in a class is an example of a discrete variable while the height of the children in the class could be a continuous variable. The children’s height may be approximated to the closest whole number, when in fact they could be 4 ft, 4 ft 1 inch, 4 ft 3 inches and so on.

Qualitative variables are segregated into nominal and ordinal variables.

Nominal variables do not have an ordering but allow for category assigning. Color of your hair or eyes is an example where no ordering is possible. Each response is distinct from the other. Ordinal variables on the other hand have an order of categorisation. Is the weather in Bangalore poor, good or great? In this question the responses can be categorized and have an in-built order in this case the quality of the weather.

In reading, understanding and interpreting both quantitative and qualitative variables the study under question becomes richer in meaning, and with better outcomes.

Data Science in Finance: 9-Book Bundle

Data Science in Finance Book Bundle

Master R and Python for financial data science with our comprehensive bundle of 9 ebooks.

What's Included:

  • Getting Started with R
  • R Programming for Data Science
  • Data Visualization with R
  • Financial Time Series Analysis with R
  • Quantitative Trading Strategies with R
  • Derivatives with R
  • Credit Risk Modelling With R
  • Python for Data Science
  • Machine Learning in Finance using Python

Each book includes PDFs, explanations, instructions, data files, and R code for all examples.

Get the Bundle for $39 (Regular $57)
JOIN 30,000 DATA PROFESSIONALS

Free Guides - Getting Started with R and Python

Enter your name and email address below and we will email you the guides for R programming and Python.

Data Science in Finance: 9-Book Bundle

Data Science in Finance Book Bundle

Master R and Python for financial data science with our comprehensive bundle of 9 ebooks.

What's Included:

  • Getting Started with R
  • R Programming for Data Science
  • Data Visualization with R
  • Financial Time Series Analysis with R
  • Quantitative Trading Strategies with R
  • Derivatives with R
  • Credit Risk Modelling With R
  • Python for Data Science
  • Machine Learning in Finance using Python

Each book comes with PDFs, detailed explanations, step-by-step instructions, data files, and complete downloadable R code for all examples.