New variables from old ones
The topic Continuous distributions gave us densities and CDFs for a few named families: uniform, exponential, normal. Real pipelines rarely stop at a named family. We standardize features, take the log of a latency, square an error, push a score through a sigmoid. Each time, a new random variable is built from an old one. This topic answers one question: if we know the distribution of , what is the distribution of ?
That topic already gave a hint. Switching from centimetres to metres, , made the density 100 times taller while every probability stayed put. Here we turn the hint into a general rule.
Start with a discrete , where the answer is bookkeeping. Each value carries its probability to . When several values land on the same , their probabilities add up:
The set of all with is the preimage of .
Take a fair die and . The value has two preimages, and , so . The value has one, , so . Nothing is lost and nothing is created: the probabilities of still add up to 1. They are just regrouped.