Common Tricks

Useful first moves for probability problems: draw the support, condition, use a CDF, exploit symmetry, and choose the right transform.

Draft — not yet reviewed by the site owner.

Prerequisites: Introduction to Probability, Random Variables.

Many probability problems become simpler once you choose the right first move. This note is a short guide to recognizing those moves. It focuses on the probability tools that support statistics; each linked article develops the idea more carefully.

Before calculating, ask what the answer represents. Is it a probability, a density, an average, or a limiting distribution? Then write down what values the random variables can actually take. These two checks catch many errors before the algebra starts.

Draw the region before integrating

Cue: You are given a joint density with conditions such as 0<y<x<10<y<x<1, or asked for P(2X+Y<1)P(2X+Y<1).

Sketch the allowed (x,y)(x,y) points and shade the event you want. A double integral is just adding density over that shaded area. The bounds then come from the picture rather than from guesswork. If the density contains an unknown constant cc, first use the fact that its integral over the whole support must be 1.

For example, a constant density on the triangle 0<y<x<10<y<x<1 must equal 2: the triangle has area 1/21/2. A square’s bounds would give the wrong answer. See joint distributions for a pictured example and the difference between joint and marginal densities.

Check independence before splitting a calculation

Cue: An expectation contains a product, or a joint density looks like two factors.

If XX and YY are independent and their expectations exist, E[XY]=E[X]E[Y]E[XY]=E[X]E[Y]. For continuous variables, a joint density factors as fX(x)fY(y)f_X(x)f_Y(y) on the whole product of their supports. The support matters: a density on 0<y<x<10<y<x<1 cannot describe independent continuous variables with positive densities throughout that triangle, because knowing X=xX=x limits the possible values of YY.

Independence is a claim to check, not a convenience to assume. Once checked, it can turn a two-variable integral into two one-variable integrals. See independence and joint distributions.

Condition on the part that makes the problem simple

Cue: A parameter, group, count, or environment is random, but the problem becomes familiar when its value is fixed.

Work inside each group first, then average over groups. If a fair coin chooses a Poisson mean of either 1 or 3, the conditional means are 1 and 3. The overall mean is therefore (1+3)/2=2(1+3)/2=2. For the variance, the law of total variance adds the average within-group variance, 2, to the variance of the two group means, 1. The result is 3.

This avoids finding the entire mixture distribution just to get its mean or variance. In symbols, for an outcome YY and information XX, use E[Y]=E[E[Y∣X]]E[Y]=E[E[Y\mid X]] and Var⁡(Y)=E[Var⁡(Y∣X)]+Var⁡(E[Y∣X])\operatorname{Var}(Y)=E[\operatorname{Var}(Y\mid X)]+\operatorname{Var}(E[Y\mid X]) when the required moments exist. See conditional distributions for how to find the within-group law.

Turn a transformation into an event

Cue: You know the distribution of XX and need the distribution of Y=g(X)Y=g(X).

Start with the cumulative distribution function (CDF): FY(y)=P(g(X)≤y)F_Y(y)=P(g(X)\le y). Translate that event into a range of XX values. This works even when several XX values lead to the same YY, as with Y=X2Y=X^2. Only after finding the CDF should you differentiate to get a density, if one exists. See transformations of random variables.

For a nonnegative XX, a related event trick gives the tail formula E[X]=∫0∞P(X>t) dtE[X]=\int_0^\infty P(X>t)\,dt when the mean is finite (the equality also holds with both sides infinite). Think of each outcome X=xX=x as a strip of width xx; averaging strip widths is the same as stacking their contributions at every height tt. For a uniform XX on (0,1)(0,1), P(X>t)=1−tP(X>t)=1-t for 0<t<10<t<1, so E[X]=∫01(1−t) dt=1/2E[X]=\int_0^1(1-t)\,dt=1/2.

For a maximum or minimum, ask about everyone

Cue: The problem asks about the largest, smallest, or kth smallest observation.

“The maximum is at most xx” means every observation is at most xx. For nn independent observations with the same CDF FF, this gives P(max⁡iXi≤x)=F(x)nP(\max_i X_i\le x)=F(x)^n. For a minimum, start with the opposite event: “the minimum is above xx” means everyone is above xx, so P(min⁡iXi≤x)=1−[1−F(x)]nP(\min_i X_i\le x)=1-[1-F(x)]^n.

For the kth smallest, “at most xx” means at least kk observations fall below the threshold; this becomes a binomial count. See order statistics. The powers above require independence and identical distributions.

Use symmetry, and remember sorting does not change a sum

Cue: Several independent, identically distributed (iid) continuous variables are ordered, or a sum contains sorted observations X(1),…,X(n)X_{(1)},\ldots,X_{(n)}.

With iid continuous variables, ties have probability zero and all n!n! possible rankings are equally likely. Thus P(X1<X2<X3)=1/6P(X_1<X_2<X_3)=1/6 without integrating a three-dimensional density. This shortcut fails if the variables have different distributions or ties can occur.

Sorting only rearranges values: X(1)+⋯+X(n)=X1+⋯+XnX_{(1)}+\cdots+X_{(n)}=X_1+\cdots+X_n for every sample. If the question is about the sum, you may not need any order-statistic density at all. See order statistics and independence.

Use a transform for a random sum

Cue: The number of terms in a sum is random, or you need the distribution of a sum of independent variables.

A probability generating function (PGF) stores the probabilities of a nonnegative integer count XX in GX(t)=E[tX]G_X(t)=E[t^X]. An independent sum turns into a product of PGFs. If a count NN is independent of iid counts X1,X2,…X_1,X_2,\ldots, the sum SN=X1+⋯+XNS_N=X_1+\cdots+X_N has GSN(t)=GN(GX(t))G_{S_N}(t)=G_N(G_X(t)). The inner function handles one item; the outer one handles how many items there are.

Use a moment generating or characteristic function when the summands are not counts. Before multiplying transforms, check the independence assumptions and whether the chosen transform exists where you need it.

For limits, ask what is actually getting close

Cue: A problem asks whether random variables converge.

Matching distributions is weaker than matching outcomes on the same run. Let XnX_n and YY be independent uniform (0,1)(0,1) variables for every nn. Every XnX_n has exactly the same distribution as YY, yet P(∣Xn−Y∣>1/2)=1/4P(|X_n-Y|>1/2)=1/4 for every nn. So XnX_n converges in distribution to YY, but not in probability to this YY.

To show convergence of a maximum toward an endpoint, use its CDF. For iid uniform (0,1)(0,1) observations, P(max⁡i≤nXi≤1−ε)=(1−ε)n→0P(\max_{i\le n}X_i\le 1-\varepsilon)=(1-\varepsilon)^n\to0 for 0<ε<10<\varepsilon<1. This proves convergence in probability to 1. See modes of convergence for the different definitions and order statistics for the maximum formula.

Further reading