Probability and Statistics
Rolling the dice…
Initializing Sorting Algorithms...
Sorting
Trees
Graphs
Preparing interactive visualizations...
Probability and Statistics
Rolling the dice…
A random variable attaches a number to every outcome. Its expected value is where the distribution balances; its variance says how far the weight sits from that point.
A fair die is a random variable X taking the values 1 to 6, each with probability 1/6. Picture each probability as a weight standing on a beam at its value.
Each term x·p(x) is a weight times its distance from 0 — the beam's turning force. The balance point is where the forces on the two sides cancel.