In mathematics and statistics, variables are usually divided into continuous variables and discrete variables. These two types of variables exhibit different characteristics in the processes we measure and count, providing us with a window into the nature of numbers. Continuous variables have an infinite range, with an infinite number of numbers between any two values, whereas discrete variables are limited to specific, discrete integer values.
Discrete variables are unique in that they must be integers and have unbridgeable gaps between adjacent possible values.
A continuous variable is a numerical value that is possible between any two values. Therefore, if the range taken is continuous over real numbers, then the variable is continuous. Many applications of continuous variables involve calculus, especially in continuous optimization problems. For example, the variable time is often treated as continuous and its evolution can be described using differential equations. This variability also makes the concept of instantaneous rate of change meaningful at a specific time.
Probability distributions of continuous variables can be expressed through probability density functions, which allows mathematicians and scientists to better understand and predict the behavior of these variables.
The opposite of continuous variables is discrete variables, which are variables that have a one-to-one correspondence with the set of natural numbers. This means that the discrete variable has a positive minimum distance within a specific range of real numbers, so that no other value can exist between two legal values. This allows discrete variables to be only integers and cannot take on non-integer values, such as 0, 1, 2, or larger numbers.
The range of count-based discrete variables can be finite or countably infinite. These variables play a key role in many practical applications, especially in probabilistic statistics. For example, in integer programming problems, all variables must be integers. Therefore, discrete variables are analyzed and treated in a very different way than continuous variables.
In statistics, the probability distribution of discrete variables can be described by the probability mass function, which provides a standard framework for data analysis.
Sometimes, mixed variable models contain both continuous and discrete types of variables. For example, in a mental health study, a researcher might use a discrete variable that takes only values 0 and 1 and a continuous cognitive performance variable. This mixed model enables a more comprehensive analysis of factors affecting mental health.
In probability theory and statistics, probability distributions of mixed random variables also contain discrete and continuous components. This shows that the behavior of mixed random variables is neither completely discrete nor completely continuous, forming a unique analytical framework.
For example, in a queuing problem, a customer's zero waiting time is discrete, while non-zero waiting times are evaluated on a continuous time scale.
Of course, discrete and continuous variables each have unique properties and play important roles in the world around us. However, thinking about the nature of these numbers and variables makes people question: Where do the numbers come from in our daily lives? Are they really limited to integers?