Visual Tools
Calculators
Tables
Mathematical Keyboard
Converters
Other Tools

Random Variable Methods: Expected Value, Variance, CDFs and Bounds

Every computation with a random variable on one page, from expected value and variance to CDFs, indicator variables, tail bounds and the central limit theorem. Each method links to the rules it uses and to the random variables lesson.

Level
I

Single-rule moves

Atomic · one rule, applied once
E[X+Y]

How to find the expected value of a sum

Linearity of expectation
Atomic
Recognize
The variable is a sum or a linear combination of variables whose means you know: X+YX + Y, 3X−2Y+53X - 2Y + 5, the total of nn dice. It holds whether or not the variables are independent.
steps
1. Write the variable as a sum of simpler pieces, each multiplied by a constant.
2. Replace each piece by its mean, keep the constants, and add.
Statement
E[aX+bY+c]=a E[X]+b E[Y]+cE[aX + bY + c] = a\,E[X] + b\,E[Y] + c
worked example
E[X]=4, E[Y]=1:E[3X−2Y+5]=3⋅4−2⋅1+5=15E[X] = 4,\ E[Y] = 1:\quad E[3X - 2Y + 5] = 3 \cdot 4 - 2 \cdot 1 + 5 = 15
II

Means, spreads, CDFs and bounds

Composite · each opens its own page
How to find the expected value of a random variableWeight every value by its probability and add; for a density, integrate xf(x)x f(x) instead.uses: pmf · pdf · weighted averageComposite4 steps · 3 examplesHow to find the variance of a random variableFind the mean, then the mean of the square, and subtract: E[X2]−(E[X])2E[X^2] - (E[X])^2.uses: expected value · computational formula · linear transformComposite4 steps · 3 examplesHow to find the standard deviation of a random variableFind the variance first, then take its square root; the result is in the units of XX.uses: variance · square root · linear transformComposite3 steps · 3 examplesHow to find the covariance and correlation of two random variablesCompute E[XY]−E[X]E[Y]E[XY] - E[X]E[Y] from the joint table, then divide by σXσY\sigma_X \sigma_Y for the correlation.uses: joint distribution · expected value · standard deviationComposite5 steps · 3 examplesHow to find the CDF from a PMFSort the values, keep a running total of the probabilities, and write the step function.uses: pmf · running sum · step functionComposite4 steps · 3 examplesHow to find the CDF from a PDFIntegrate the density from the left end of the support up to xx, and add the flat pieces outside.uses: pdf · definite integral · piecewise functionComposite4 steps · 3 examplesHow to find the median and mode of a distributionThe median is where the CDF reaches one half; the mode is the peak of the pmf or pdf.uses: cdf · pmf · pdf · maximumComposite4 steps · 3 examplesHow to find an expected count with indicator variablesWrite the count as a sum of 0-1 indicators, use E[I]=P(A)E[I] = P(A), and add by linearity.uses: indicator variables · linearity of expectationComposite4 steps · 3 examplesHow to bound a probability with Markov's inequalityFor a nonnegative variable, bound the upper tail by the mean: P(X≥a)≤E[X]/aP(X \geq a) \leq E[X]/a.uses: expected value · tail boundComposite4 steps · 3 examplesHow to bound a probability with Chebyshev's inequalityMeasure the distance from the mean in standard deviations, then bound: P(∣X−μ∣≥kσ)≤1/k2P(|X - \mu| \geq k\sigma) \leq 1/k^2.uses: mean · standard deviation · tail boundComposite4 steps · 3 examplesHow to approximate a probability with the central limit theoremScale the mean and SD to the sum or the average of nn terms, standardize, and read Φ(z)\Phi(z).uses: mean · standard deviation · normal distribution · z-scoreComposite5 steps · 3 examples