Visual Tools
Calculators
Tables
Mathematical Keyboard
Converters
Other Tools


Random Variables






Random Variables: Turning Outcomes into Numbers


Probability begins with events, but many real questions are numerical:
how many times something happens, how long it lasts, or how large a value turns out to be.

Random variables make this transition possible.
They connect random experiments to numbers, allowing probability to describe counts,
measurements, and quantities in a precise and consistent way.

Once randomness is expressed numerically, probability can move forward — toward
distributions, averages, variability, and comparison of outcomes.

Key Terms

Random Variable— a function X:Ω→RX: \Omega \to \mathbb{R}
Discrete Random Variable— a random variable with countable range
Continuous Random Variable— a random variable taking values in an interval
Function of a Random Variable— a new variable Y=g(X)Y = g(X)
Sample Space— the domain Ω\Omega of any random variable
Probability Mass Function— pX(x)=P(X=x)p_X(x) = P(X = x), distribution of a discrete variable
Probability Density Function— fX(x)f_X(x), distribution of a continuous variable
Cumulative Distribution Function— FX(x)=P(X≤x)F_X(x) = P(X \leq x)

See All Probability Definitions →


From Outcomes to Numerical Values

You already turn outcomes into numbers without thinking about it.
Random experiments produce outcomes, not numbers.
A coin toss results in heads or tails, a dice roll produces faces, and an experiment
ends in one of many possible outcomes.
Many probability questions, however, are not about the outcomes themselves but about
numerical results derived from them.
Counting successes, summing values, or recording measurements all require assigning
numbers to outcomes.
The same move appears in coins, dice, games and measurements.
In each case the experiment ends in an outcome, and a fixed rule reads a number off it.
experimentan outcomethe number you care about
three coin tossesHTHheads: 2
two dice(3, 5)sum: 8
a game (win 10 dollars at 0.1, else lose 1)a losswinnings: −1
a light bulbit fails after 812.4 hourslifetime: 812.4
Take the coins in full. Every one of the eight outcomes of three tosses gets its count of heads.
outcomeheadsoutcomeheads
HHH3HTT1
HHT2THT1
HTH2TTH1
THH2TTT0
TTTH: 0, T: 3P = 1/8TTHH: 1, T: 2P = 1/8THTH: 1, T: 2P = 1/8THHH: 2, T: 1P = 1/8HTTH: 1, T: 2P = 1/8HTHH: 2, T: 1P = 1/8HHTH: 2, T: 1P = 1/8HHHH: 3, T: 0P = 1/8
Three tosses labelled by the number of heads

The outcomes are sequences of heads and tails, not numbers; the labels attach a number to each cell, the count of heads, and that assignment is a random variable. Eight outcomes collapse to four numerical values. Select a value and see which outcomes it collects on the coin toss sample space explorer.

What they share is a rule that gives every outcome exactly one number.
Counting heads, adding the faces, paying out the winnings, reading the lifetime: each is a rule that takes any outcome and returns a single real number. The outcomes differ — sequences, pairs, events, times — and the rule always has the same shape. Several outcomes may get the same number (three outcomes have 22 heads), but no outcome gets two.
The definition
A random variable is a rule that assigns a real number to each outcome of a random experiment — a function from the sample space to the real numbers.
Here XX = number of heads sends HHT to 22 and TTT to 00. The next section states the definition in full.
A random variable is a function — neither random nor a variable in the usual sense.
The rule itself is fixed: HHT always gives 22. What is random is which outcome the experiment produces, and so which number comes out. The name is old; "random function of the outcome" would describe it better. A random variable performs exactly this role: it assigns a numerical value to each
possible outcome of a random experiment, making quantitative probability analysis
possible.
What the name buys: one set of tools for coins, dice, games and bulbs alike.
With the outcomes replaced by numbers, the same questions can be asked of every experiment.
once it has a name, Xyou can ask
the probability of a valueP(X = 2) = 3/8: three of the eight outcomes
its distributionthe probability of every value at once
its expected valueE[X] = 1.5 heads in the long run
its variancehow far X typically strays from 1.5
The rest of the page gives the formal definition, the types of random variables, how probabilities attach to them, why they matter, examples and notation.
The definition makes this assignment precise.

What a Random Variable Is


A random variable is a mathematical construct that represents the numerical outcome of a random experiment or event. It acts as a function that assigns real numbers to each possible outcome of the experiment, with the understanding that multiple outcomes may result in the same value. The randomness associated with a random variable stems from the unpredictable nature of the underlying event, rather than the variable itself.


Description


Did you know: Same distribution, never equal
On a die, the face on top, XX, and the face underneath, YY, both take the values 11 to 66 with probability 16\frac{1}{6} each, so they have the same distribution. Yet X=YX = Y never happens: opposite faces add up to 77, so Y=7−XY = 7 - X, and X=YX = Y would need X=3.5X = 3.5.

Random variables provide a means to quantify and manipulate probabilities using mathematical tools such as calculus. They offer a flexible and powerful framework for modeling various real-world phenomena that exhibit randomness. For example, consider rolling a six-sided die: the outcome of this event can be represented by a random variable X, which takes on values ranging from 1 to 6 with equal probability.

Random variables are essential in probability theory and statistics, as they allow for the development of probability distributions, such as the binomial distribution, normal distribution, and Poisson distribution. These distributions describe the likelihood of various outcomes occurring and provide important insights into the behavior of random events.

One can also define continuous random variables to represent outcomes that can take on an infinite number of values within a given range. For instance, the height of adult humans or the lifetime of a light bulb may be modeled as continuous random variables.

In summary, a random variable is a powerful mathematical tool for representing and analyzing the outcomes of random events using probabilistic methods. By assigning real numbers to each possible outcome of an experiment, we can study probability distributions, make predictions, and optimize decisions in various fields, including finance, engineering, economics, and science.
Three tosses: X = number of heads maps the 8 outcomes to 0, 1, 2, 3 with masses 1/8, 3/8, 3/8, 1/8ΩHHHHHTHTHTHHHTTTHTTTHTTT1/83/83/81/80123X = headseach outcome carries 1/8; the stacks are the PMF of XA random variable sends outcomes to numbers
Number of heads as a map

The sample space of three tosses has 8 equally likely outcomes, shown in the box. The random variable X = number of heads assigns each one a number: HHH goes to 3, the three outcomes with two heads go to 2, and so on. Each arrow drops one block of probability 1/8 on its value, so the stacks show the distribution of X: 1/8, 3/8, 3/8, 1/8 on 0, 1, 2, 3.

The outcomes stay where they are; X only reads a number off each one.

Types of Random Variables


Random variables are commonly classified according to the kinds of values they can take.

Discrete Random Variables


A discrete random variable takes isolated, countable values.
These values can be listed individually, even if the list is infinite.

Discrete random variables typically arise from counting processes, such as the number
of successes in repeated trials or the outcome of a dice roll.

Pitfall: Calling an unbounded count continuous
Calling the number of tosses until the first head continuous, because its values never stop, would make P(X=1)=0P(X = 1) = 0. The values are isolated and can be listed, so XX is discrete: P(X=k)=(12)kP(X = k) = \left(\frac{1}{2}\right)^k, and P(X=1)=12P(X = 1) = \frac{1}{2}.

Some counting processes have no largest value. Tossing a coin until the first head appears can take 11 toss, 22 tosses, 33 tosses, or any larger whole number of tosses.

Continuous Random Variables


A continuous random variable takes values from intervals of real numbers.
Its possible values form a continuum rather than separate points.

Continuous random variables usually arise from measurement, such as time, length,
weight, or temperature.

Pitfall: Reading the density as a probability
Taking fX(x)f_X(x) as P(X=x)P(X = x) fails for XX uniform on [0,0.5][0, 0.5]: there fX(x)=2f_X(x) = 2, more than any probability can be. Each single value has P(X=x)=0P(X = x) = 0; intervals get areas, such as P(0≤X≤0.25)=0.5P(0 \le X \le 0.25) = 0.5.

Because the values form a continuum, a continuous variable is not described by listing a probability for each value. Its distribution is given by a density fX(x)f_X(x), and probabilities are areas under that curve: P(a≤X≤b)=∫abfX(x) dxP(a \le X \le b) = \int_a^b f_X(x)\,dx.
DownloadPNG2×PDF
Layout
AttributeDiscrete random variableContinuous random variable
Rangea countable set of isolated valuesan interval (or union of intervals) of real numbers
Listabilityvalues can be listed individually, even if infinitely manyvalues form a continuum and cannot be listed point by point
Typical sourcecounting processes (successes, occurrences, items)measurement (time, length, weight, temperature)
Example ranges{0, 1, 2, …}; {1, 2, 3, 4, 5, 6}[0, ∞); [0, 1]; (−∞, ∞)
Probability functionprobability mass function pX_{X}(x) = P(X = x)probability density function fX_{X}(x)
Example variablesnumber of heads, face value of a die, indicator of an eventtime until arrival, height, weight, temperature
Types of Random VariablesLearn Math Class
0.000.080.160.240.320.40-4-3.0-2.0-1.0-0.01.02.03.04.0xf(x)
Normal density: a continuous random variable

A continuous random variable spreads its probability along the line, so it is described by a density curve and the probability of any exact value is zero; a discrete variable would be described by separate bars instead. The area under this bell is 1. Toggle between the density and its CDF on the PDF visualizer.

Probability statements about such variables are written next.

Random Variables and Probability Statements


Once outcomes are represented numerically, probability statements can be written in
terms of random variables.

Instead of describing events directly, we describe conditions on numerical values,
such as a variable equaling a value or falling within an interval.
This allows probabilities to be written in forms like the probability that a random
variable takes a specific value or lies between two bounds.

Rewriting events in this way makes probability expressions easier to analyze and
prepares the ground for probability functions and distributions introduced later.

Pitfall: Confusing less than with at most
For a fair die, reading P(X<3)P(X < 3) as P(X≤3)=36=12P(X \le 3) = \frac{3}{6} = \frac{1}{2} wrongly includes the face 33. The condition X<3X < 3 collects only the faces 11 and 22, so P(X<3)=26=13P(X < 3) = \frac{2}{6} = \frac{1}{3}.

For a fair die roll XX, the statement X≤3X \le 3 collects the faces 11, 22 and 33, and the statement 2≤X≤52 \le X \le 5 collects the faces 22, 33, 44 and 55. Each condition picks out a set of outcomes, and the probability of the statement is the probability of that set.
0.00.20.40.60.81.0012345678910Value (k)Cumulative Probability F(k)
Binomial CDF, n = 10, p = 0.5: the statement X ≤ k

A statement such as X ≤ k is an event, and its probability is read straight off the CDF as the height of the step at k. Statements such as X = k or a < X ≤ b are differences of such heights. Read these probabilities from the staircase on the discrete CDF explorer.

Why this numerical language matters is the next question.
Every condition on a random variable names a set of outcomes, and its probability is the probability of that set.

Why Random Variables Matter


Random variables are the link that allows probability to move beyond describing events
and toward analyzing quantities.

They make it possible to summarize randomness using numbers, compare outcomes across
experiments, and study patterns in uncertain situations.
Concepts such as averages, spread, dependence, and long-term behavior all rely on
random variables.

Without random variables, probability would remain purely event-based and could not
support distributions, expectation, variance, or any of the tools used in modern
probability and statistics.

Common Examples of Random Variables


Random variables appear naturally whenever outcomes are counted or measured.

A coin-toss experiment may define a random variable as the number of heads obtained.
Rolling dice can produce a random variable equal to the face value or the sum of
multiple rolls.
In measurement-based experiments, a random variable may represent time, distance,
weight, or temperature.

Pitfall: Treating the values as equally likely
Giving each of the 1111 sums of two dice the probability 111\frac{1}{11} makes P(X=7)=111P(X = 7) = \frac{1}{11}. Six of the 3636 pairs give a sum of 77, so P(X=7)=636=16P(X = 7) = \frac{6}{36} = \frac{1}{6}, while P(X=2)=136P(X = 2) = \frac{1}{36}.

The sum of two dice is a case where several outcomes share one value. The experiment has 3636 equally likely ordered pairs of faces, and the random variable sends them to only 1111 possible sums, from 22 to 1212.

In many models, simple indicator variables are used, taking the value 1 when an event
occurs and 0 when it does not.


Random Variable Notation

Notation

Random Variable Notation

Three marks make a random variable usable: the signature that reveals it is a function, the braces that turn its values into events, and the tilde that names the distribution it follows. All of them are catalogued among the probability symbols.
The capital-versus-lowercase convention — XX for the variable, xx for a value it takes — is owned by the probability function, along with P(⋅)P(\cdot), p(x)p(x) and f(x)f(x); the sample space Ω\Omega and its outcomes ω\omega by sample space notation.
X:Ω→RX : \Omega \to \mathbb{R}
X maps the sample space to the real numbers
The signature exposes what a random variable really is — not a variable at all, but a function assigning a number to every outcome. The arrow signature is ordinary function notation, applied to the sample space as domain.
CasesWritten out, X(ω)X(\omega) names the value at a particular outcome — the spelling that makes formulas like E[X]=∑X(ω)P(ω)E[X] = \sum X(\omega)P(\omega) readable; everyday work suppresses the argument and writes just XX.
Do not confuseAn unknown to solve for. Algebra's xx waits for a value; a random variable already is the rule — there is nothing to solve, only outcomes to feed it.
{X≤x}\{X \le x\}
the event that X is at most x
Braces turn a condition on the variable into an event — a subset of the sample space, exactly the kind of object the probability operator P(⋅)P(\cdot) can measure. This is why P(X≤x)P(X \le x) is well-formed: the inequality names a set, not a number.
CasesThe braces are routinely dropped inside PP — P(X≤x)P(X \le x) rather than P({X≤x})P(\{X \le x\}) — and the same shorthand covers {X=x}\{X = x\}, {X>3}\{X > 3\}, {a≤X≤b}\{a \le X \le b\}; the cdf is built entirely from the ≤\le form.
Do not confuseAn algebraic inequality to solve. {X≤x}\{X \le x\} is not a constraint on xx — it collects the outcomes where the variable lands at or below xx, which is a set, and the probability of that set is what follows.
X∼Bin(n,p)X \sim \text{Bin}(n, p)
X is distributed as; X follows
The tilde declares which distribution governs a variable, with the parameters in parentheses — X∼Bin(n,p)X \sim \text{Bin}(n, p), X∼N(μ,σ2)X \sim N(\mu, \sigma^2). One symbol replaces a paragraph: it fixes the whole probability function at once.
CasesParameter conventions vary by family and must be read from the source — the normal is written N(μ,σ2)N(\mu, \sigma^2) with a variance in most texts but N(μ,σ)N(\mu, \sigma) with a standard deviation in some software; the distributions pages state each convention explicitly.
Do not confuseEquality or approximation. The tilde does not say XX equals anything — it names a law, and elsewhere the same glyph means "approximately" or "asymptotically equal", which is why X∼N(0,1)X \sim N(0,1) and f(n)∼g(n)f(n) \sim g(n) are unrelated statements.
DownloadPNG2×PDF
Notation · Cheat sheet
Random Variable Notation at a Glance
The marks from the notation cards across the random-variable pages: how each is read and what it means. Every group links to the full card on its page.
Random variablesThis page
X:Ω→RX : \Omega \to \mathbb{R}
X maps outcomes to numbers
A random variable is a function, not a variable.
{X≤x}\{X \le x\}
the event that X is at most x
Braces turn a condition into an event.
X∼Bin(n,p)X \sim \text{Bin}(n, p)
X is distributed as
Names the distribution and its parameters.
Probability functions
XX vs xx
the variable; a value
Capital for the random variable, lowercase for a number it takes.
P(⋅)P(\cdot)
the probability of
Takes an event, returns a number in [0,1][0, 1].
p(x)p(x) vs f(x)f(x)
mass; density
pp is a chance (discrete); ff is a rate (continuous).
PMF
{x:pX(x)>0}\{x : p_X(x) > 0\}
the support of X
Every value that carries probability.
∑xpX(x)=1\sum_{x} p_X(x) = 1
the masses add to one
The sum runs over the support, not from a start to an end.
PDF
fX(x)f_X(x)
the density of X at x
A density, not a probability; it can exceed 11.
P(a≤X≤b)P(a \le X \le b)
X between a and b
The integral ∫abfX(x) dx\int_a^b f_X(x)\,dx.
P(X=a)=0P(X = a) = 0
a single point
For a continuous variable, always zero.
CDF
FX(x)F_X(x)
the CDF of X at x
Equals P(X≤x)P(X \le x): everything up to and including xx.
F(b)−F(a)F(b) - F(a)
F of b minus F of a
Equals P(a<X≤b)P(a < X \le b).
Indicators
IA,  1AI_A, \; \mathbf{1}_A
the indicator of A
11 if AA happens, 00 if not.
1{X≤x}\mathbf{1}\{X \le x\}
one if the condition holds
The brace form takes a statement instead of an event.
N=∑IAiN = \sum I_{A_i}
a count of events
How many of the AiA_i happened.
Same marks, different job
PP vs ppCapital PP takes an event; lowercase pp is a mass function of a value.
FF vs ffCapital FF accumulates (the CDF); lowercase ff is the density.
∼\simIs distributed as; in linear algebra, row-equivalent or similar.
{X≤x}\{X \le x\}An event, not a set of numbers.
Random Variable Notation at a Glance·/probability/random-variablesLearn Math Class

What Comes Next


Once randomness is represented numerically, probability can be described using
functions that assign probabilities to values or intervals.

Random variables lead directly to probability distributions and to tools that summarize
and analyze their behavior, such as expectation and variance.
They also make it possible to study relationships between multiple quantities in joint
and conditional settings.

The next pages build on this idea by introducing probability distributions and the
functions used to describe them.

Random Variables at a Glance


The page has shown that random variables turn outcomes into numbers, that they come in discrete and continuous flavors, and that a small set of notational conventions makes probability statements precise and unambiguous. The table below collects these threads into a single reference card, with each row pairing an aspect of random variables with its formal statement and a concrete example or symbol illustrating it.
DownloadPNG2×PDF
Layout
AspectStatementExample or symbol
What a random variable isa function X: Ω → ℝ that assigns a real number to each outcome of an experimentrolling a die: X(face) = the face number
Where the randomness liesin the underlying experiment; the variable itself is a fixed rulethe flip of a coin is random; labeling H = 1, T = 0 is fixed
Discrete typerange is a countable set of isolated valuesX ∈ {1, 2, 3, 4, 5, 6}
Continuous typerange is an interval of real numbersX ∈ [0, ∞) for time until an event
Notation for the rulecapital letter, referring to the entire assignmentX, Y, Z
Notation for a valuelowercase letter, referring to a specific result after the experimentx, y, z — e.g. “X = 4” means the die landed on 4
Probability statementsevents rewritten as conditions on the variable's valueP(X = x), P(X ≤ x), P(a ≤ X ≤ b)
Indicator variablea special binary random variable marking whether an event occurs1A_{A} = 1 if A occurs, 0 otherwise
What random variables enablea numerical framework for analyzing randomnessdistributions, expectation, variance, comparison across experiments
Random Variables at a GlanceLearn Math Class

Common Pitfalls

Each of the four mistakes below is marked where it happens in the sections above; here each is worked through in full, with the wrong and the right working side by side.
DownloadPNG2×PDF
1Calling an unbounded count continuous
A variable whose values have no upper limit is classed as continuous, because its list of values never ends. Having infinitely many values is taken to mean having a continuum of values.
Start
XX is the number of tosses of a fair coin until the first head.
Wrong turn
Error here
Its values 1,2,3,…1, 2, 3, \ldots never end, so XX is treated as continuous, and every single value gets probability 00:
P(X=1)=0P(X = 1) = 0
Right path
The values are isolated whole numbers that can be listed one by one, so XX is discrete. The first head comes on toss kk when the first k−1k - 1 tosses are tails and toss kk is a head:
P(X=k)=(12)k−1⋅12=(12)kP(X = k) = \left(\frac{1}{2}\right)^{k-1} \cdot \frac{1}{2} = \left(\frac{1}{2}\right)^k
So P(X=1)=12P(X = 1) = \frac{1}{2}, P(X=2)=14P(X = 2) = \frac{1}{4}, and the probabilities over all kk add up to 11.
Why it happensIn everyday speech "infinite" and "continuous" both suggest something endless. The difference is between a list that goes on, which is countable, and an interval that has no gaps.
How to checkAsk whether the variable can take values between two neighbouring ones. Between 22 and 33 tosses there is nothing the count can take, while a waiting time in seconds can take every value between 22 and 33.
2Reading the density as a probability
For a continuous variable, the value of the density fX(x)f_X(x) at a point is read as the probability P(X=x)P(X = x), in the same way as a value of a probability mass function.
Wrong turn
Error here
XX is uniform on [0,0.5][0, 0.5], so fX(x)=2f_X(x) = 2 on that interval, and
P(X=0.25)=fX(0.25)=2P(X = 0.25) = f_X(0.25) = 2
A "probability" larger than 11.
Right path
Probabilities of a continuous variable are areas under the density. A single value has probability 00, and an interval gets the area above it:
P(X=0.25)=0,P(X = 0.25) = 0,

P(0≤X≤0.25)=∫00.252 dxP(0 \le X \le 0.25) = \int_0^{0.25} 2 \, dx

=0.5= 0.5
Why it happensFor a discrete variable the value pX(x)p_X(x) is a probability, and the density fX(x)f_X(x) is written in the same way, so it is read in the same way.
How to checkA probability is never above 11, but a density can be. The whole area under this density is 2⋅0.5=12 \cdot 0.5 = 1, as it must be, even though the curve itself stands at height 22.
3Confusing less than with at most
For a discrete variable, the strict condition X<aX < a is treated as if it were X≤aX \le a, or the other way round, so the boundary value is counted when it should not be, or left out when it belongs.
Wrong turn
Error here
XX is the result of a fair die roll.
P(X<3)=P(X≤3)=36=12P(X < 3) = P(X \le 3) = \frac{3}{6} = \frac{1}{2}
Right path
X<3X < 3 collects only the faces 11 and 22.
P(X<3)=26=13P(X < 3) = \frac{2}{6} = \frac{1}{3}
The two probabilities differ by the probability of the boundary value: P(X≤3)−P(X<3)=P(X=3)=16P(X \le 3) - P(X < 3) = P(X = 3) = \frac{1}{6}.
Why it happensFor a continuous variable the two conditions have the same probability, because a single value has probability 00. The habit is then carried over to discrete variables, where a single value can carry real probability.
How to checkList the values the condition collects and ask whether the boundary value is among them. For X<3X < 3 on a die the list is 1,21, 2; for X≤3X \le 3 it is 1,2,31, 2, 3.
4Treating the values as equally likely
The outcomes of the experiment are equally likely, and the values of the random variable are assumed to be equally likely as well. But several outcomes can share one value, and then the values carry different probabilities.
Start
XX is the sum of two fair dice.
Wrong turn
Error here
It takes the 1111 values 2,3,…,122, 3, \ldots, 12, each given the same probability:
P(X=7)=111P(X = 7) = \frac{1}{11}
Right path
The equally likely outcomes are the 3636 ordered pairs of faces. Six of them give a sum of 77: (1,6)(1, 6), (2,5)(2, 5), (3,4)(3, 4), (4,3)(4, 3), (5,2)(5, 2) and (6,1)(6, 1).
P(X=7)=636=16P(X = 7) = \frac{6}{36} = \frac{1}{6}
Only (1,1)(1, 1) gives a sum of 22, so P(X=2)=136P(X = 2) = \frac{1}{36}.
Why it happensFor a single die the value and the outcome are the same thing, so equally likely outcomes do give equally likely values. A sum merges several outcomes into one value, and that link breaks.
How to checkCount the outcomes behind each value. For the sum of two dice the counts are 1,2,3,4,5,6,5,4,3,2,11, 2, 3, 4, 5, 6, 5, 4, 3, 2, 1, which add up to 3636; equal probabilities would need equal counts.
Common pitfalls with random variables·/probability/random-variablesLearn Math Class
Each slip misreads what kind of variable it is or what its values carry. A variable is discrete when its values can be listed, even endlessly; a density value is not a probability; for a discrete variable X<aX < a and X≤aX \le a differ by the value aa; and the values of a variable are not equally likely just because the outcomes are. Listing the values a condition collects, or counting the outcomes behind each value, catches each slip.

Skills You Should Learn

Each skill opens its step-by-step method page.
Random variable methods

Random Variables FAQ

Why is a random variable called a variable if it's a function?

+
The name is historical and misleading. The signature X : Ω → ℝ says what it really is: a function assigning a number to every outcome. Written in full, X(ω) is the value at a particular outcome; everyday work drops the argument and writes just X. It is not an unknown waiting to be solved for — the rule already exists, and outcomes get fed into it.Read more →

What does P(X ≤ x) actually mean?

+
It is the probability of a set. The condition X ≤ x collects every outcome where the variable lands at or below x, and that collection is an event — a subset of the sample space, which is the only kind of thing P can measure. Written strictly it is P({X ≤ x}); the braces are dropped by convention. It is not an inequality to solve.Read more →

What does the ~ symbol mean in X ~ N(μ, σ²)?

+
It reads “is distributed as” — the variable follows that distribution, with the parameters in parentheses. One symbol replaces a paragraph, fixing the entire probability function at once. It does not assert equality or approximation: X ~ N(0,1) names a law, whereas the same glyph in f(n) ~ g(n) means asymptotically equal.Read more →

What are the parameters in a distribution declaration?

+
Whatever the family specifies, in the order that family fixes — and the notation does not say what they mean. Bin(n, p) takes trials then success probability; Exp(λ) takes a rate; N(μ, σ²) takes a centre then a spread. The conventions vary by family and by author, so the distributions pages state each one explicitly.Read more →

Can two random variables have the same distribution but never be equal?

+
Yes. On a die, let XX be the face on top and YY the face underneath. Both take the values 11 to 66 with probability 16\frac{1}{6} each, so they have the same distribution. But opposite faces add up to 77, so Y=7−XY = 7 - X, and X=YX = Y would need X=3.5X = 3.5, which never happens. A distribution records how likely each value is, not which outcome produces it.Read more →

Is a random variable with infinitely many values continuous?

+
Not necessarily; what matters is whether the values are isolated or fill an interval. The number of tosses of a fair coin until the first head can be 1,2,3,…1, 2, 3, \ldots with no upper limit, yet its values can be listed one by one, so it is discrete, with P(X=k)=(12)kP(X = k) = \left(\frac{1}{2}\right)^k. A waiting time in seconds is continuous because it can take every value between 22 and 33.Read more →