A random variable names a numerical outcome of chance. Its distribution (pmf for discrete cases) says how probability mass sits on those numbers - Bernoulli, binomial, and uniform as first citizens.
Core ~21 minDeep study ~62 minWhat does a pmf guarantee?When is binomial the right model?
Probability weights outcomes. Soon you need a cleaner habit: name a number produced by chance - profit, count, indicator of success - and describe how that number is distributed. Without that habit, every problem reinvents a new sample-space essay.
Jacob Bernoulli (1654-1705), in Ars Conjectandi, pushed the art of conjecture toward repeated trials and limit laws; MacTutor sketches the career and the posthumous publication path. Steal the ethic: repeated chance experiments are objects you can name, count, and bound. The Bernoulli trial (success/failure with fixed p) is the seed crystal for the binomial count.
For a modern rereader, this chapter inserts between raw chance and Bayes/expectation. Discrete random variables and their pmfs are the portable language.
First principles
A random variableX assigns a real number to each outcome in a sample space. Discrete X takes a countable set of values. Its probability mass function (pmf) is
pX(x)=P(X=x),
with pX(x)≥0 and ∑xpX(x)=1.
Three first citizens:
Bernoulli(p):X∈{0,1} with P(X=1)=p. One trial's success bit.
Binomial(n,p): number of successes in n independent Bernoulli(p) trials:
P(X=k)=(kn)pk(1−p)n−k,k=0,…,n.
Discrete uniform on a finite set: equal mass on each listed value (fair die: 1/6 each).
Continuous distributions (densities) wait for later depth; the discrete pmf picture already carries enormous applied weight.
Worked intuition
A random variable is a numerical nickname for chance. The pmf is the histogram you would approach with infinite independent repeats (under the model).
Bernoulli is a coin with probability p of heads, coded 1. Binomial is "how many heads in n flips" when flips are independent and identically biased. Uniform is "no favorite among listed tickets."
If trials are not independent, or p drifts, binomial is the wrong poem. Models are claims.
Algebrica's discrete RV, Bernoulli, binomial, and uniform pages are the formal companions with careful definitions.
Common confusions
Random variable as "unknown constant." It is a function of outcomes. After the experiment, you see a realization; before, you hold a distribution.
pmf values as outcomes.pX(3)=0.2 is a probability, not the claim that X somehow equals 0.2.
Binomial without independence. The counting formula assumes independent trials with shared p. Clustered defects need another model.
Uniform means "I know nothing" in every sense. Discrete uniform is a specific equal-weight claim on a listed set. Continuous uniform and discrete uniform differ. Ignorance can sometimes motivate uniform priors; that is a modeling choice, not a theorem of nature.
Bernoulli only for fair coins.p can be any value in [0,1].
Distribution as destiny of one trial. The pmf organizes long-run frequencies or coherent weights; a single draw is still a single draw.
History & stories
Jacob Bernoulli's Ars Conjectandi is a founding text for moving probability toward general conjecture and limit theorems. MacTutor is the short biography. Later Laplacean classical probability and Kolmogorov's axioms reshape foundations; this chapter stays with discrete named variables and their masses.
Real world
Quality control counts defective items in a batch (binomial under i.i.d. assumptions). A/B tests tally conversions. Board games lean on uniform dice until the dice are worn.
Anytime you replace a verbal outcome ("success") with a number and a weight table, you are here.
Open when you want the machine-learning connection. Skip freely.
Field notes, extra examples, and glossary live here when you want more than the core path.
Carry this forward
Distributions make chance numerical and portable.
Bernoulli/binomial/uniform are the starter kit.
Next: update beliefs with conditioning and Bayes.
Read more
Go deeper when curiosity hits - videos, essays, and primary trails.