ArticleslgStudy

mathematics

Continuous or discrete variable

Continuous or discrete variable is a mathematics topic covered in the lgStudy science library. This page brings together a partial reference excerpt, illustrations, worked examples, real-world applications and a short study plan, so you can understand Continuous or discrete variable rather than just read about it. In short: In mathematics and statistics, a quantitative variable may be continuous or discrete. If it can take on two real values and all the values between them, the variable is continuous in that interval.

Continuous or discrete variable — main illustration
Continuous or discrete variable — illustration

Key takeaways

  • Continuous or discrete variable belongs to mathematics; place it in that map before memorising details.
  • Learn the definition first, then one example that makes the definition concrete.
  • Connect Continuous or discrete variable to a quantity you can measure, compute or draw — that is where exam questions come from.
  • Reproduce the core statement of Continuous or discrete variable from memory before moving on to harder problems.

Reference excerpt

In mathematics and statistics, a quantitative variable may be continuous or discrete. If it can take on two real values and all the values between them, the variable is continuous in that interval. 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. In some contexts, a variable can be discrete in some ranges of the number line and continuous in others. In statistics, continuous and discrete variables are distinct statistical data types which are described with different probability distributions.

Continuous variable A continuous variable is a variable such that there are possible values between any two 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. Methods of calculus are often used in problems in which the variables are continuous, for example in continuous optimization problems. In statistical theory, the probability distributions of continuous variables can be expressed in terms of probability density functions. 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. 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. 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 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. 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. 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. 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. 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).

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 x, which only takes on values 0 or 1, and a continuous variable y. 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. 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. In physics (particularly quantum mechanics, where this sort of distribution often arises), Dirac delta functions are often used to treat continuous and discrete components in a unified manner. For example, the previous example might be described by a probability density p(t)=αδ(t)+g(t), such that P(t>0)=∫0∞g(t)=1−α, and P(t=0)=α.

See also

References

Illustrations

Continuous or discrete variable: 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.
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.
Continuous or discrete variable illustration
Continuous or discrete variable: This is an image of vials with different amounts of liquid. A continuous variable could be the volume of liquid in the vials. A discrete variable could be the number of vials.
This is an image of vials with different amounts of liquid. A continuous variable could be the volume of liquid in the vials. A discrete variable could be the number of vials.

Worked examples

Example 1 — a first encounter with Continuous or discrete variable

Start with the simplest possible case. Write down what Continuous or discrete variable claims or describes in one sentence, then invent the smallest concrete situation in which that sentence is true. In mathematics, the smallest case is usually a single object, a single equation or a single measurement. Check that every symbol or term in your sentence has a meaning in that case.

Example 2 — changing one variable

Take the situation from Example 1 and change exactly one quantity: double it, halve it, or set it to zero. Predict what should happen to Continuous or discrete variable before you calculate. Comparing your prediction with the result is the fastest way to find out whether you understand the idea or only the words.

Example 3 — an exam-style question

Typical questions about Continuous or discrete variable ask you to (a) state it precisely, (b) apply it to given data, and (c) explain a limitation. Practise writing all three answers in under five minutes; the third part is what separates a full-mark answer from an average one.

Applications of Continuous or discrete variable

In research
Continuous or discrete variable appears in mathematics research whenever the underlying quantities have to be modelled precisely. Papers usually cite it as a starting assumption and then explore where it breaks down.
In technology and industry
Engineering practice reuses Continuous or discrete variable in design rules, simulations and safety margins. Knowing the idea lets you read a specification sheet and understand why the numbers look the way they do.
In the classroom
Continuous or discrete variable is common in secondary-school and first-year university syllabi. It links to neighbouring topics Mathematical terminology, Statistical data types, so understanding it makes those chapters shorter.
In everyday life
Look for Continuous or discrete variable outside the textbook — in sport, cooking, traffic, electronics or the sky above you. An example you found yourself is remembered far longer than one you were given.
Ask Teacher Smith questions about this articleOpens your AI tutor with a question about “Continuous or discrete variable” →

How to study Continuous or discrete variable in 20 minutes

  1. Read the reference excerpt below once, without taking notes.
  2. Close the page and write down what Continuous or discrete variable means in your own words.
  3. Compare your version with the excerpt and mark what you missed.
  4. Work through the three examples above with pen and paper.
  5. Explain Continuous or discrete variable out loud to somebody else — or to Teacher Smith in the lgStudy chat.

Frequently asked questions

What is Continuous or discrete variable in simple terms?

In mathematics and statistics, a quantitative variable may be continuous or discrete. If it can take on two real values and all the values between them, the variable is continuous in that interval.

Why does Continuous or discrete variable matter?

Because it connects several mathematics ideas at once: it gives you a definition you can apply, a quantity you can calculate, and a way to check whether a result is plausible.

How should I study Continuous or discrete variable?

Read the excerpt, restate it from memory, then work through the examples and applications listed on this page. The five-step study plan above takes about twenty minutes.

What does this page cover?

It gives you a compact reference excerpt plus original lgStudy explanations, examples, applications and study material on Continuous or discrete variable.

Tags

  • Mathematical terminology
  • Statistical data types

Keep exploring