1.3.5 · D1Probability & Statistics

Foundations — Random variables (discrete and continuous)

1,845 words8 min readBack to topic

Before you can read the parent note, you need a small toolbox. Below is every symbol and idea it uses, built from absolutely nothing, each one earning its place before the next arrives.


0. What is a "chance experiment"?

Picture a physical action whose result you cannot predict for sure: flipping a coin, rolling a die, measuring the temperature outside. Each possible result is an outcome.

Figure — Random variables (discrete and continuous)

Look at the figure: the left bag holds six die faces. That bag is not numbers yet — it holds physical results. Turning those tickets into numbers is the whole job of the next symbol.

The deeper machinery of (events, how we assign chances to them) lives in Probability Space; here we only need the bag-of-tickets picture.


1. The symbol — "the chance of"

Picture it as how big a slice of a pie that something owns. The whole pie is size (it represents "some outcome definitely happens"). A slice can't be negative and can't be bigger than the whole pie — that's why .


2. The random variable — the number-making machine

Now we connect the bag of outcomes to numbers.

Figure — Random variables (discrete and continuous)

Look at the arrows in the figure: each die-face ticket on the left is sent by the machine to a number on the right. The face ⚂ goes to . The machine is fixed; the input is random, so the output is random too. That is exactly why we call a random variable.

Question: In " = number of dots on a die", is the number 4 or the mapping rule?
The mapping rule (the machine); 4 is one possible output value .

3. "Countable" vs "an interval" — the discrete/continuous split

The parent splits every RV into two families. The dividing word is countable.

Figure — Random variables (discrete and continuous)

Look at the two number lines in the figure. Top: separated dots you can point at one at a time — that is a discrete RV. Bottom: a solid filled bar with no gaps — that is a continuous RV. This picture is the reason discrete RVs use sums () and continuous ones use integrals (): you add up dots, but you sweep across a bar.


4. The summation symbol — "add these all up"

Picture a checkout receipt: each line is one item's price ; is the total at the bottom.

Why this tool and not another? Discrete outputs are separate dots (Section 3). To collect their chances you add them one dot at a time — which is precisely what does. No other operation fits separated points.


5. The integral — "add up something spread continuously"

For continuous RVs there are no dots to add; chance is smeared along a bar. We need a tool that adds up a smear.

Figure — Random variables (discrete and continuous)

Look at the shaded region in the figure: each thin vertical strip has height and tiny width , so its area is — a sliver of chance. The integral glues all slivers from to into one total area = one probability.

Why this tool and not ? You cannot list the points of a solid bar (Section 3), so summing dot-by-dot is impossible. The integral is the only way to total a continuous smear.


6. Weighting: what "expected value" secretly is

The parent's headline result is the expected value (a long-run average). The idea underneath is weighted average.

Here the weights are the chances (they already sum to by Section 4). So is nothing exotic: each output value pulled by its own chance. Big-chance values pull the average harder — exactly like heavier weights tilting a see-saw further. The full treatment lives in Expectation and Variance.


7. The stray symbols you'll meet

A quick round-up so nothing on the parent page is a surprise.

Reveal check: what does equal?
.

How these foundations feed the topic

Chance experiment and sample space Omega

Probability P as pie slices

Random variable X maps outcomes to numbers

Countable vs interval split

Discrete: use Sum

Continuous: use Integral

Normalization total equals 1

Weighted average gives Expected value

Random variables discrete and continuous

Once these blocks are solid, the parent note's PMFs, PDFs, and formulas are just these tools snapped together. The named distributions branch off into Bernoulli and Categorical Distributions and the Gaussian Distribution, and the averaging tool grows into Expectation and Variance.


Equipment checklist

Say each answer aloud before revealing. If any stumps you, reread its section.

What is the sample space in one phrase?
The bag holding every possible outcome of the experiment.
What is a random variable, really?
A fixed rule (function) that turns each outcome into a real number.
Difference between and ?
is the number-making machine; is one specific number it can output.
Why must all the chances add (or integrate) to exactly ?
Because exactly one outcome always happens, so the whole pie is covered.
When do we use and when do we use ?
for discrete separated dots; for continuous smeared intervals.
Why is for a continuous RV?
A single point has zero width, and chance only lives across a width.
What does the do in ?
Supplies the width that converts density (chance per unit) into actual chance.
Expected value in plain words?
A weighted average of every output value, each weighted by its own chance.
What are and ?
is the mean/balance point; is the variance/spread width.
What does count?
The number of ways to choose items out of .