Social Media Means
Photo by Diana Agapova Pexels Logo Photo: Diana Agapova

What is a variable in statistics?

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.

Who is the king of social media marketing?
Who is the king of social media marketing?

The latest statistics show that Facebook continues to reign strong as the king of social media, with 2.93 billion active users in 2022. Nov 1, 2022

Read More »
Why is everyone getting off Facebook?
Why is everyone getting off Facebook?

Many of those who delete Facebook speak of widely recognised reasons for leaving the platform: concerns with its echo chamber effects, avoiding...

Read More »

Text begins

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

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

Table 4.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 for travel to work (appearing as row headers), Number of people (appearing as column headers). Mode of transportation for travel 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

An ordinal variable is a variable whose values are defined by an order relation between the different categories. In Table 4.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.

Table 4.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 Table 4.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

What are the new upcoming social media platforms?
What are the new upcoming social media platforms?

10 New Social Media Platforms & Apps TikTok. TikTok has quickly become a major player with its detailed algorithms and unique content creation...

Read More »
What exactly does a marketer do?
What exactly does a marketer do?

Marketers are responsible for promoting a company and the product and services it sells. People who work in marketing typically organize and...

Read More »

A numeric 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.63 metres. The age is another example of a continuous variable that is typically rounded down.

Discrete variables

As opposed to a continuous variable, a discrete variable can 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 0 to 10 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 size 20 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.

Is 1m subscribers a lot?
Is 1m subscribers a lot?

Surpassing the 1 million subscriber mark on YouTube is a huge milestone, and, in practical terms, it often means a creator can earn a full-time...

Read More »
Is it hard to get a job as a digital marketer?
Is it hard to get a job as a digital marketer?

Getting hired in Digital Marketing should be easy. There are more open job postings than qualified candidates. With more demand for skills than...

Read More »
What are unique jobs that pay well?
What are unique jobs that pay well?

With that in mind, here are 15 weird jobs that pay weirdly well, too. Elevator inspector. ... Nuclear power reactor operator. ... Sommelier. ......

Read More »
How many K is a 5K?
How many K is a 5K?

5 kilometers A 5K race is 5 kilometers, or 3.1 miles, long. This distance is a favorite among new and experienced runners alike. Jun 2, 2022

Read More »