4.2 Types of variables (2024)

Table of contents

Text begins

Topic navigation

  • 4 Data exploration
    • 4.1 Data exploration tools
    • 4.2 Types of variables
    • 4.3 Frequency distribution
    • 4.4 Measures of central tendency
    • 4.5 Measures of dispersion
    • 4.6 Exercises
    • 4.7 Answers

A variable is a characteristic that can be measured and that can assume different values. Height, age, income, province or country of birth, grades obtained at school and type of housing are all examples of variables. Variables may be classified into two main categories: categorical and numeric. Each category is then classified in two subcategories: nominal or ordinal for categorical variables, discrete or continuous for numeric variables. These types are briefly outlined in this section.

Categorical variables

A categorical variable (also called qualitative variable) refers to a characteristic that can’t be quantifiable. Categorical variables can be either nominal or ordinal.

Nominal variables

Anominal variableis one that describes a name, label or category without natural order. Sex and type of dwelling are examples of nominal variables. In Table4.2.1, the variable “mode of transportation for travel to work” is also nominal.



Table4.2.1
Method of travel to work for Canadians
Table summary
This table displays the results of Method of travel to work for Canadians. The information is grouped by Mode of transportation fortravel to work (appearing as row headers), Number of people (appearing as column headers).
Mode of transportation fortravel to work Number of people
Car, truck, van as driver 9,929,470
Car, truck, van as passenger 923,975
Public transit 1,406,585
Walked 881,085
Bicycle 162,910
Other methods 146,835

Ordinal variables

Anordinal variableis a variable whose values are defined by an order relation between the different categories. In Table4.2.2, the variable “behaviour” is ordinal because the category “Excellent” is better than the category “Very good,” which is better than the category “Good,” etc. There is some natural ordering, but it is limited since we do not know by how much “Excellent” behaviour is better than “Very good” behaviour.



Table4.2.2
Student behaviour ranking
Table summary
This table displays the results of Student behaviour ranking. The information is grouped by Behaviour (appearing as row headers), Number of students (appearing as column headers).
Behaviour Number of students
Excellent 5
Very good 12
Good 10
Bad 2
Very bad 1

It is important to note that even if categorical variables are not quantifiable, they can appear as numbers in a data set. Correspondence between these numbers and the categories is established during data coding. To be able to identify the type of variable, it is important to have access to the metadata (the data about the data) that should include the code set used for each categorical variable. For instance, categories used in Table4.2.2 could appear as a number from 1 to 5: 1 for “very bad,” 2 for “bad,” 3 for “good,” 4 for “very good” and 5 for “excellent.”

Numeric variables

Anumeric variable (also called quantitative variable) is a quantifiable characteristic whose values are numbers (except numbers which are codes standing up for categories). Numeric variables may be either continuous or discrete.

Continuous variables

A variable is said to be continuous if it can assume an infinite number of real values within a given interval. For instance, consider the height of a student. The height can’t take any values. It can’t be negative and it can’t be higher than three metres. But between 0 and 3, the number of possible values is theoretically infinite. A student may be 1.6321748755 …metres tall. In practice, the methods used and the accuracy of the measurement instrument will restrict the precision of the variable. The reported height would be rounded to the nearest centimetre, so it would be 1.63metres. The age is another example of a continuous variable that is typically rounded down.

Discrete variables

As opposed to a continuous variable, adiscrete variablecan assume only a finite number of real values within a given interval. An example of a discrete variable would be the score given by a judge to a gymnast in competition: the range is 0to10 and the score is always given to one decimal (e.g. a score of 8.5). You can enumerate all possible values (0, 0.1, 0.2…) and see that the number of possible values is finite: it is 101! Another example of a discrete variable is the number of people in a household for a household of size20 or less. The number of possible values is 20, because it’s not possible for a household to include a number of people that would be a fraction of an integer like 2.27 for instance.



Table of contents

  • Statistics: Power from Data! - Main page
  • 1 Data, statistical information and statistics
  • 2 Sources of data
  • 3 Data gathering and processing
  • 4 Data exploration
  • 5 Data visualization
  • Bibliography
  • Glossary
Date modified:
4.2 Types of variables (2024)

FAQs

4.2 Types of variables? ›

Variables may be classified into two main categories: categorical and numeric. Each category is then classified in two subcategories: nominal or ordinal for categorical variables, discrete or continuous

continuous
A continuous variable is a variable whose value is obtained by measuring, i.e., one which can take on an uncountable set of values. For example, a variable over a non-empty range of the real numbers is continuous, if it can take on any value in that range.
https://en.wikipedia.org › Continuous_or_discrete_variable
for numeric variables.

What are the 4 types of variables in statistics? ›

You can see that one way to look at variables is to divide them into four different categories ( nominal, ordinal, interval and ratio). These refer to the levels of measure associated with the variables.

What are all 3 types of variables? ›

An experiment usually has three kinds of variables: independent, dependent, and controlled. The independent variable is the one that is changed by the scientist. To insure a fair test, a good experiment has only ONE independent variable.

What are the 7 types of variables? ›

The main types of variables include: independent, dependent, qualitative, quantitative, discrete and continuous. A variable is independent if it may vary freely and does not depend upon changes in other variables. It is usually denoted by x . A variable is dependent if it varies according to changes in other variables.

What are the 4 types of variables in coding? ›

Types of Variables
  • INTEGERS. An integer is a whole number. ...
  • FLOATS. Some languages make you distinguish between integers and numbers with decimals and this is where floats come in. ...
  • BOOLEAN. A Boolean can only have one of two values: either True or False. ...
  • STRINGS. ...
  • LISTS AND ARRAYS.
Jan 22, 2018

What are the 4 levels of variables? ›

Statisticians often refer to the "levels of measurement" of a variable, a measure, or a scale to distinguish between measured variables that have different properties. There are four basic levels: nominal, ordinal, interval, and ratio.

What are the 4 variables in research? ›

The five types of variables include independent variables, dependent variables, categorical variables, continuous variables, and confounding variables. These categories not only facilitate a clearer understanding of the data but also guide the formulation of hypotheses and research methodologies.

What are 3 examples variables? ›

There are three main variables: independent variable, dependent variable and controlled variables. Example: a car going down different surfaces. Independent variable: the surface of the slope rug, bubble wrap and wood. Dependent variable: the time it takes for the car to go down the slope.

What are the 3 variables in statistics? ›

There are three types of categorical variables: binary, nominal, and ordinal variables. What does the data represent? Yes or no outcomes.

What are the three basic variables? ›

A properly designed experiment usually has three kinds of variables: independent, dependent, and controlled.

What are the 10 types of variables in research? ›

10 types of variables
  • Independent variables.
  • Dependent variables.
  • Quantitative variables.
  • Qualitative variables.
  • Intervening variables.
  • Moderating variables.
  • Extraneous variables.
  • Confounding variables.
Oct 15, 2023

What are the big five variables? ›

The five-factor model (FFM) is a widely accepted construct describing personality variation along five dimensions (i.e., the Big Five): Extraversion, Openness, Conscientiousness, Neuroticism, and Agreeableness.

What are the 4 variables in science? ›

There are three main types of variables in a scientific experiment: independent variables, which can be controlled or manipulated; dependent variables, which (we hope) are affected by our changes to the independent variables; and control variables, which must be held constant to ensure that we know that it's our ...

What are the 4 variables in Python? ›

Python defines four types of variables: local, global, instance, and class variables. Local variables are created within functions and can only be accessed there. Global variables are defined outside of any function and can be used throughout the program.

What are the five data types? ›

Data types
  • String (or str or text). Used for a combination of any characters that appear on a keyboard, such as letters, numbers and symbols.
  • Character (or char). Used for single letters.
  • Integer (or int). Used for whole numbers.
  • Float (or Real). ...
  • Boolean (or bool).

What are four data types? ›

4 Types Of Data- Nominal, Ordinal, Discrete And Continuous.

What are the 4 variables in an experiment? ›

A variable is any factor, trait, or condition that can exist in differing amounts or types. An experiment usually has three kinds of variables: independent, dependent, and controlled.

What are 4 independent variables? ›

In this sense, some common independent variables are time, space, density, mass, fluid flow rate, and previous values of some observed value of interest (e.g. human population size) to predict future values (the dependent variable).

What are 5 examples of variables in statistics? ›

Age, sex, business income and expenses, country of birth, capital expenditure, class grades, eye colour and vehicle type are examples of variables. It is called a variable because the value may vary between data units in a population, and may change in value over time.

What are the 5 variable statistics? ›

A summary consists of five values: the most extreme values in the data set (the maximum and minimum values), the lower and upper quartiles, and the median. These values are presented together and ordered from lowest to highest: minimum value, lower quartile (Q1), median value (Q2), upper quartile (Q3), maximum value.

Top Articles
Earned Income Tax Credit Calculator - EIC
Master credit card payments: Step-by-step guide for businesses | Stripe
Radikale Landküche am Landgut Schönwalde
Walgreens Pharmqcy
Ffxiv Shelfeye Reaver
Plaza Nails Clifton
Mate Me If You May Sapir Englard Pdf
Free Atm For Emerald Card Near Me
Unitedhealthcare Hwp
oklahoma city for sale "new tulsa" - craigslist
Localfedex.com
PGA of America leaving Palm Beach Gardens for Frisco, Texas
Camstreams Download
The Binding of Isaac
Oc Craiglsit
How Much Is Tj Maxx Starting Pay
National Weather Service Denver Co Forecast
Northern Whooping Crane Festival highlights conservation and collaboration in Fort Smith, N.W.T. | CBC News
Craiglist Tulsa Ok
Voy Boards Miss America
Axe Throwing Milford Nh
97226 Zip Code
Wemod Vampire Survivors
Gilchrist Verband - Lumedis - Ihre Schulterspezialisten
Meta Carevr
Marokko houdt honderden mensen tegen die illegaal grens met Spaanse stad Ceuta wilden oversteken
Jersey Shore Subreddit
How To Improve Your Pilates C-Curve
L'alternativa - co*cktail Bar On The Pier
Plato's Closet Mansfield Ohio
Microsoftlicentiespecialist.nl - Microcenter - ICT voor het MKB
Drabcoplex Fishing Lure
Usf Football Wiki
Leatherwall Ll Classifieds
Dr. John Mathews Jr., MD – Fairfax, VA | Internal Medicine on Doximity
Ticketmaster Lion King Chicago
The best Verizon phones for 2024
Easy Pigs in a Blanket Recipe - Emmandi's Kitchen
Noaa Marine Weather Forecast By Zone
Ramsey County Recordease
Hireright Applicant Center Login
Union Corners Obgyn
Stewartville Star Obituaries
Pa Legion Baseball
Enr 2100
Doelpuntenteller Robert Mühren eindigt op 38: "Afsluiten in stijl toch?"
Gelato 47 Allbud
Walmart Front Door Wreaths
18443168434
Provincial Freeman (Toronto and Chatham, ON: Mary Ann Shadd Cary (October 9, 1823 – June 5, 1893)), November 3, 1855, p. 1
Electronics coupons, offers & promotions | The Los Angeles Times
Latest Posts
Article information

Author: Frankie Dare

Last Updated:

Views: 5787

Rating: 4.2 / 5 (73 voted)

Reviews: 88% of readers found this page helpful

Author information

Name: Frankie Dare

Birthday: 2000-01-27

Address: Suite 313 45115 Caridad Freeway, Port Barabaraville, MS 66713

Phone: +3769542039359

Job: Sales Manager

Hobby: Baton twirling, Stand-up comedy, Leather crafting, Rugby, tabletop games, Jigsaw puzzles, Air sports

Introduction: My name is Frankie Dare, I am a funny, beautiful, proud, fair, pleasant, cheerful, enthusiastic person who loves writing and wants to share my knowledge and understanding with you.