ArticleslgStudy

mathematics

Random variable

Random 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 Random variable rather than just read about it. In short: A random variable (also called random quantity, aleatory variable, or stochastic variable) is a mathematical formalization of a quantity or object which depends on random events. The term 'random variable' in its mathematical definition refers to neither randomness nor variability but instead is a mathematical function in which the domain is the set of possible outcomes in a sample space (e.g. the set { H , T } {\di…

Random variable — main illustration
Random variable — illustration

Key takeaways

  • Random 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 Random variable to a quantity you can measure, compute or draw — that is where exam questions come from.
  • Reproduce the core statement of Random variable from memory before moving on to harder problems.

Reference excerpt

A random variable (also called random quantity, aleatory variable, or stochastic variable) is a mathematical formalization of a quantity or object which depends on random events. The term 'random variable' in its mathematical definition refers to neither randomness nor variability but instead is a mathematical function in which

the domain is the set of possible outcomes in a sample space (e.g. the set { H , T } {\displaystyle \{H,T\}} (which are the possible upper sides of a flipped coin heads H {\displaystyle H} or tails T {\displaystyle T} as the result from tossing a coin); and the range is a measurable space (e.g. corresponding to the domain above, the range might be the set { − 1 , 1 } {\displaystyle \{-1,1\}} if say heads H {\displaystyle H} mapped to −1 and T {\displaystyle T} mapped to 1). Typically, the range of a random variable is a subset of the real numbers.

Informally, randomness typically represents some fundamental element of chance, such as in the roll of a die; it may also represent uncertainty, such as measurement error. However, the interpretation of probability is philosophically complicated, and even in specific cases is not always straightforward. The purely mathematical analysis of random variables is independent of such interpretational difficulties, and can be based upon a rigorous axiomatic setup. In the formal mathematical language of measure theory, a random variable is defined as a measurable function from a probability measure space (called the sample space) to a measurable space. This allows consideration of the pushforward measure, which is called the distribution of the random variable; the distribution is thus a probability measure on the set of all possible values of the random variable. It is possible for two random variables to have identical distributions but to differ in significant ways; for instance, they may be independent. It is common to consider the special cases of discrete random variables and absolutely continuous random variables, corresponding to whether a random variable is valued in a countable subset or in an interval of real numbers. There are other important possibilities, especially in the theory of stochastic processes, wherein it is natural to consider random sequences or random functions. Sometimes a random variable is taken to be automatically valued in the real numbers, with more general random quantities instead being called random elements. A random variate is a particular outcome or realization of a random variable. According to George Mackey, Pafnuty Chebyshev was the first person "to think systematically in terms of random variables".

Definition A random variable X {\displaystyle X} is a measurable function X : Ω → E {\displaystyle X\colon \Omega \to E} from a sample space Ω {\displaystyle \Omega } as a set of possible outcomes to a measurable space E {\displaystyle E} . For the measurability of X {\displaystyle X} to be meaningful, the sample space Ω {\displaystyle \Omega } needs to belong to a probability triple ( Ω , F , P ) {\displaystyle (\Omega ,{\mathcal {F}},\operatorname {P} )} (see the measure-theoretic definition). A random variable is often denoted by capital Roman letters such as X , Y , Z , T {\displaystyle X,Y,Z,T} . The probability that X {\displaystyle X} takes on a value in a measurable set S ⊆ E {\displaystyle S\subseteq E} is written as

P ⁡ ( X ∈ S ) = P ⁡ ( { ω ∈ Ω ∣ X ( ω ) ∈ S } ) {\displaystyle \operatorname {P} (X\in S)=\operatorname {P} (\{\omega \in \Omega \mid X(\omega )\in S\})} .

Standard case In many cases, X {\displaystyle X} is real-valued, i.e. E = R {\displaystyle E=\mathbb {R} } . In some contexts, the term random element (see extensions) is used to denote a random variable not of this form. When the image (or range) of X {\displaystyle X} is finite or countably infinite, the random variable is called a discrete random variable and its distribution is a discrete probability distribution, i.e. can be described by a probability mass function that assigns a probability to each value in the image of X {\displaystyle X} . If the image is uncountably infinite (usually an interval) then X {\displaystyle X} is called a continuous random variable. In the special case that it is absolutely continuous, its distribution can be described by a probability density function, which assigns probabilities to intervals; in particular, each individual point must necessarily have probability zero for an absolutely continuous random variable. Not all continuous random variables are absolutely continuous. Any random variable can be described by its cumulative distribution function, which describes the probability that the random variable will be less than or equal to a certain value.

… excerpt ends here. Continue reading the full article.

Illustrations

Random variable illustration
Random variable: This graph shows how a random variable is a function from all possible outcomes to real values. It also shows how a random variable is used for defining probability mass functions.
This graph shows how a random variable is a function from all possible outcomes to real values. It also shows how a random variable is used for defining probability mass functions.
Random variable: If the sample space is the set of possible numbers rolled on two dice, and the random variable of interest is the sum S of the numbers on the two dice, then S is a discrete random variable whose distribution is described by the probability mass function plotted as the height of picture columns here.
If the sample space is the set of possible numbers rolled on two dice, and the random variable of interest is the sum S of the numbers on the two dice, then S is a discrete random variable whose distribution is described by the probability mass function plotted as the height of picture columns here.

Worked examples

Example 1 — a first encounter with Random variable

Start with the simplest possible case. Write down what Random 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 Random 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 Random 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 Random variable

In research
Random 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 Random 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
Random variable is common in secondary-school and first-year university syllabi. It links to neighbouring topics Statistical randomness, so understanding it makes those chapters shorter.
In everyday life
Look for Random 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 “Random variable” →

Affiliate

Preply — study more efficiently by working with a personal tutor. 50% off.

How to study Random variable in 20 minutes

  1. Read the reference excerpt below once, without taking notes.
  2. Close the page and write down what Random 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 Random variable out loud to somebody else — or to Teacher Smith in the lgStudy chat.

Frequently asked questions

What is Random variable in simple terms?

A random variable (also called random quantity, aleatory variable, or stochastic variable) is a mathematical formalization of a quantity or object which depends on random events. The term 'random variable' in its mathematical definition refers to neither randomness nor variability but instead is a…

Why does Random 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 Random 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 Random variable.

Tags

  • Statistical randomness

Keep exploring