Continuous or discrete variable

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.

Variables can be divided into two main categories: qualitative (categorical) and quantitative (numerical). Continuous and discrete variables are subcategories of quantitative variables. Note that this schematic is not exhaustive in terms of the types of variables.
  1. ^ Ali, Zulfiqar; Bhaskar, S. Bala (September 2016). "Basic statistical tools in research and data analysis". Indian Journal of Anaesthesia. 60 (9): 662–669. doi:10.4103/0019-5049.190623. PMC 5037948. PMID 27729694.
  2. ^ Kaliyadan, Feroze; Kulkarni, Vinay (January 2019). "Types of Variables, Descriptive Statistics, and Sample Size". Indian Dermatology Online Journal. 10 (1): 82–86. doi:10.4103/idoj.IDOJ_468_18. PMC 6362742. PMID 30775310.
  3. ^ K.D. Joshi, Foundations of Discrete Mathematics, 1989, New Age International Limited, [1], page 7.