Continuous or discrete variable explained
In mathematics and statistics, a quantitative variable may be continuous or discrete if they are typically obtained by measuring or counting, respectively.[1] If it can take on two particular real values such that it can also take on all real values between them (including values that are arbitrarily or infinitesimally close together), the variable is continuous in that interval.[2] If it can take on a value such that there is a non-infinitesimal gap on each side of it containing no values that the variable can take on, then it is discrete around that value.[3] In some contexts, a variable can be discrete in some ranges of the number line and continuous in others.
Continuous variable
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. The reason is that any range of real numbers between
and
with
is uncountable, with infinitely many values within the range.
[4] Methods of calculus are often used in problems in which the variables are continuous, for example in continuous optimization problems.[5]
In statistical theory, the probability distributions of continuous variables can be expressed in terms of probability density functions.[6]
In continuous-time dynamics, the variable time is treated as continuous, and the equation describing the evolution of some variable over time is a differential equation.[7] The instantaneous rate of change is a well-defined concept that takes the ratio of the change in the dependent variable to the independent variable at a specific instant.
Discrete variable
In contrast, a variable is a discrete variable if and only if there exists a one-to-one correspondence between this variable and a subset of
, the set of
natural numbers.
[8] In other words, a discrete variable over a particular interval of real values is one for which, for any value in the range that the variable is permitted to take on, there is a positive minimum distance to the nearest other permissible value. The value of a discrete variable can be obtained by counting, and the number of permitted values is either finite or
countably infinite. Common examples are variables that must be
integers, non-negative integers, positive integers, or only the integers 0 and 1.
[9] Methods of calculus do not readily lend themselves to problems involving discrete variables. Especially in multivariable calculus, many models rely on the assumption of continuity.[10] Examples of problems involving discrete variables include integer programming.
In statistics, the probability distributions of discrete variables can be expressed in terms of probability mass functions.
In discrete time dynamics, the variable time is treated as discrete, and the equation of evolution of some variable over time is called a difference equation.[11] For certain discrete-time dynamical systems, the system response can be modelled by solving the difference equation for an analytical solution.
In econometrics and more generally in regression analysis, sometimes some of the variables being empirically related to each other are 0-1 variables, being permitted to take on only those two values.[12] The purpose of the discrete values of 0 and 1 is to use the dummy variable as a ‘switch’ that can ‘turn on’ and ‘turn off’ by assigning the two values to different parameters in an equation. A variable of this type is called a dummy variable. If the dependent variable is a dummy variable, then logistic regression or probit regression is commonly employed. In the case of regression analysis, a dummy variable can be used to represent subgroups of the sample in a study (e.g. the value 0 corresponding to a constituent of the control group).[13]
Mixture of continuous and discrete variables
A mixed multivariate model can contain both discrete and continuous variables. For instance, a simple mixed multivariate model could have a discrete variable
, which only takes on values 0 or 1, and a continuous variable
.
[14] An example of a mixed model could be a research study on the risk of psychological disorders based on one binary measure of psychiatric symptoms and one continuous measure of cognitive performance.
[15] Mixed models may also involve a single variable that is discrete over some range of the number line and continuous at another range.
In probability theory and statistics, the probability distribution of a mixed random variable consists of both discrete and continuous components. A mixed random variable does not have a cumulative distribution function that is discrete or everywhere-continuous. An example of a mixed type random variable is the probability of wait time in a queue. The likelihood of a customer experiencing a zero wait time is discrete, while non-zero wait times are evaluated on a continuous time scale.[16]
See also
Notes and References
- Ali . Zulfiqar . Bhaskar . S. Bala . Basic statistical tools in research and data analysis . Indian Journal of Anaesthesia . September 2016 . 60 . 9 . 662–669 . 10.4103/0019-5049.190623. free. 5037948 .
- Kaliyadan . Feroze . Kulkarni . Vinay . Types of Variables, Descriptive Statistics, and Sample Size . Indian Dermatology Online Journal . January 2019 . 10 . 1 . 82–86 . 10.4103/idoj.IDOJ_468_18 . 30775310 . 6362742 . free .
- K.D. Joshi, Foundations of Discrete Mathematics, 1989, New Age International Limited, https://books.google.com/books?id=RM1D3mFw2u0C&dq=continuous+discrete+variable+math&pg=PA7, page 7.
- Brzychczy . Stanisaw . Gorniewicz . Lech . Continuous and discrete models of neural systems in infinite-dimensional abstract spaces . Neurocomputing . 2011 . 74 . 17 . 2711–2715 . 10.1016/j.neucom.2010.11.005.
- Book: Griva . Igor . Linear and nonlinear optimization . Nash . Stephen . Sofer . Ariela. Ariela Sofer . Society for Industrial and Applied Mathematics . 2009 . 978-0-89871-661-0 . 2nd . Philadelphia . 7 . en . 236082842.
- Dekking . Frederik Michel . Kraaikamp . Cornelis . Lopuhaä . Hendrik Paul . Meester . Ludolf Erwin . 2005 . A Modern Introduction to Probability and Statistics . Springer Texts in Statistics . en . 10.1007/1-84628-168-7 . 978-1-85233-896-1 . 1431-875X.
- Poyton . A. A. . Varziri . Mohammad Saeed . McAuley . Kimberley B. . MclellanPat James . Pat James . Ramsay . James O. . Parameter estimation in continuous-time dynamic models using principal differential analysis . Computers & Chemical Engineering . February 15, 2006 . 30 . 4 . 698–708 . 10.1016/j.compchemeng.2005.11.008.
- Book: Odifreddi . Piergiorgio . Classical Recursion Theory: The Theory of Functions and Sets of Natural Numbers . February 18, 1992 . North Holland Publishing Company . 978-0444894830 . 18.
- Book: van Douwen . Eric . Handbook of Set-Theoretic Topology . 1984 . Elsevier . North Holland . 978-0-444-86580-9 . 113–167.
- Book: Clogg . Clifford C. . Shockey . James W. . Handbook of Multivariate Experimental Psychology . 1988 . Springer Publishing Company . Boston, Massachusetts . 978-1-4613-0893-5 . 337–365.
- Book: Thyagarajan . K.S. . Introduction to Digital Signal Processing Using MATLAB with Application to Digital Communications . 2019 . Springer Publishing Company . 978-3319760285 . 21–63 . 1.
- Miller . Jerry L.L. . Erickson . Maynard L. . On Dummy Variable Regression Analysis . Sociological Methods & Research . May 1974 . 2 . 4 . 395–519 . 10.1177/004912417400200402.
- Book: Hardy . Melissa A. . Regression with Dummy Variables (Quantitative Applications in the Social Sciences) . February 25, 1993 . Sage Publications, Inc. . Newbury Park . 0803951280 . v . 1st.
- Olkin . Ingram . Tate . Robert . Multivariate Correlation Models with Mixed Discrete and Continuous Variables . The Annals of Mathematical Statistics . June 1961 . 32 . 2 . 448–465 . 10.1214/aoms/1177705052. free .
- Fitzmaurice . Garrett M. . Laird . Nan M. . Regression Models for Mixed Discrete and Continuous Responses with Potentially Missing Values . Biometrics . March 1997 . 53 . 1 . 110–122 . 10.2307/2533101.
- Sharma . Shalendra D. . On a Continuous/Discrete Time Queueing System with Arrivals in Batches of Variable Size and Correlated Departures . Journal of Applied Probability . March 1975 . 12 . 1 . 115–129 . 10.2307/3212413.