Types of Variables - Definitions and Easy Examples
Types of Variables - Definitions and Easy Examples
Date published November 21, 2019 by Rebecca Bevans. Date updated: May 20, 2020
Example
If you want to test whether some plant species are more salt-tolerant than others,
some key variables you might measure include the amount of salt you add to the
water, the species of plants being studied, and variables related to plant health like
growth and wilting.
You need to know which types of variables you are working with in order to choose
appropriate statistical tests and interpret the results of your study.
You can usually identify the type of variable by asking two questions:
Table of contents
Quantitative variables
When you collect quantitative data, the numbers you record represent real amounts that
can be added, subtracted, divided, etc. There are two types of quantitative variables:
discrete and continuous.
Examples:
Number of students in a class
Number of different tree species in a forest
Examples:
Distance
Volume
Age
Categorical variables
Categorical variables represent groupings of some kind. They are sometimes recorded as
numbers, but the numbers represent categories rather than actual amounts of things.
There are three types of categorical variables: binary, nominal, and ordinal variables.
Binary vs nominal vs ordinal variables
Examples:
Heads/tails in a coin flip
Win/lose in a football game
Nominal variables
What does the data represent?: Groups with no rank or order between them.
Examples:
Species names
Colors
Brands
Ordinal variables
What does the data represent?: Groups that are ranked in a specific order.
Examples:
Finishing place in a race
Rating scale responses in a survey*
*Note that sometimes a variable can work as more than one type! An ordinal variable can
also be used as a quantitative variable if the scale is numeric and doesn’t need to be kept
as discrete integers. For example, star ratings on product reviews are ordinal (1 to 5 stars),
but the average star rating is quantitative.
To gather information about plant responses over time, you can fill out the same data
sheet every few days until the end of the experiment. This example sheet is color-coded
according to the type of variable: nominal, continuous, ordinal, and binary.
Parts of the experiment: Independent vs dependent
variables
Experiments are usually designed to find out what effect one variable has on another – in
our example, the effect of salt addition on plant growth.
You manipulate the independent variable (the one you think might be the cause) and
then measure the dependent variable (the one you think might be the effect) to find out
what this effect might be.
You will probably also have variables that you hold constant (control variables) in order to
focus on your experimental treatment.
Example (salt tolerance experiment): The amount of salt added to each plant’s water.
Example (salt tolerance experiment): Any measurement of plant health and growth: in this case,
plant height and wilting.
Control variables
Example (salt tolerance experiment): The temperature and light in the room the plants are kept
in, and the volume of water given to each plant.
The other variables in the sheet can’t be classified as independent or dependent, but they
do contain data that you will need in order to interpret your dependent and independent
variables.
However, there might be cases where one variable clearly precedes the other (for example,
rainfall leads to mud, rather than the other way around). In these cases you may call the
preceding variable (i.e. the rainfall) the predictor variable and the following variable (i.e.
the mud) the outcome variable.
But there are many other ways of describing variables that help with interpreting your
results. Some useful types of variable are listed below.
Confounding variables
Definition: A variable that hides the true effect of another variable in your experiment. This can
happen when another variable is closely related to a variable you are interested in, but you haven’t
controlled it in your experiment.
Example (salt tolerance experiment): Pot size and soil type might affect plant survival as much
or more than salt additions. In an experiment you would control these potential confounders by
holding them constant.
Latent variables
Definition: A variable that can’t be directly measured, but that you represent via a proxy.
Example (salt tolerance experiment): Salt tolerance in plants cannot be measured directly, but
can be inferred from measurements of plant health in our salt-addition experiment.
Composite variables
Example (salt tolerance experiment): The three plant health variables could be combined into a
single plant-health score to make it easier to present your findings.
92 15
6
Rebecca Bevans
Rebecca is working on her PhD in soil ecology and spends her free time writing. She's very
happy to be able to nerd out about statistics with all of you.
63
certain assumptions.
67
New
6 comments
Hi, what is the difference between independent variable and moderating variable?
Can we put in this way, Plant species as independent and Salt Added as moderating
variable? Since different plant species gives out different outcome in the
dependent variable section. Is it appropriate to say that plant species is an
independent variable too?
Thank you.
Reply
Reply
Hi John,
Reply
There are very useful details and easy to understand and well organized.
I would like to know more about moderate variable and how is it affected for the
data analysis.
Reply
Good
Reply
Reply
Name
Email
Comment
Add comment
Scribbr
Our editors
Jobs
FAQ
Partners
Sitemap
Our services
Plagiarism Checker
Proofreading & Editing
APA Citation Generator
MLA Citation Generator
Knowledge Base
Contact
[email protected]
+1 (510) 822-8066
9.8
Terms of use
Privacy Policy
Happiness Guarantee