Transformations of Random Variables, Beta and Gamma

Many probability questions ask for the distribution of a quantity built from other random variables: a measurement converted to new units, a sum of waiting times, a ratio, or the largest value in a sample. This material shows how to find such distributions with the CDF method, the change-of-variables formula and the Jacobian in one and two dimensions, and with convolutions for sums of independent random variables. It then develops two families that appear throughout statistics: the beta distribution for proportions and unknown probabilities, and the gamma distribution for waiting times. You will connect the two through the bank–post office result and finish with order statistics, the distributions of the minimum, the maximum and every ranked value of a sample.

IntermediateLesson 6 of 9 in Probability Theory Course

What you will learn

  1. Derive the PMF, CDF or PDF of a function of one or two random variables with the CDF method, the change-of-variables formula and the Jacobian, and keep track of where the new variables can take values.
    • Find distributions with the CDF method
      Turn a question about Y=g(X) into a question about X: add probabilities in the discrete case, and work through the CDF in the continuous case.
    • Apply the one-dimensional change-of-variables formula
      Use the change-of-variables formula for a strictly monotone, differentiable function, include the absolute derivative and the support, and check the result.
    • Transform a pair of random variables with the Jacobian
      Find the joint PDF of two new random variables defined from two old ones, using the Jacobian determinant and the image of the original support.
    • Use auxiliary variables, polar coordinates and factorization
      Find the distribution of one function of two random variables by adding a helper variable and integrating it out, use polar coordinates for normal pairs, and recognize independence from a factored joint PDF.
  2. Compute the distribution of a sum of independent random variables with convolution sums and integrals, and use known families and moment generating functions as shortcuts.
    • Convolve discrete distributions
      Find the PMF of a sum of independent discrete random variables by adding up every way to reach each total.
    • Convolve continuous distributions
      Compute the PDF of a sum or difference of independent continuous random variables with the convolution integral, taking its limits from the supports.
    • Recognize sums that stay in a named family
      Use known results and moment generating functions to identify the distribution of a sum without a full convolution, and check the conditions each result needs.
  3. Use the beta family on (0,1): its density, shapes, moments and integrals, and its role as a distribution for an unknown probability that is updated with binomial data.
    • Describe the beta distribution and use beta integrals
      State the beta PDF, read its shape from the parameters, compute its mean and variance, and evaluate integrals by recognizing beta functions.
    • Use the beta as a distribution for an unknown probability
      Treat an unknown success probability as random, update a beta distribution after binomial data, and interpret its parameters as prior counts.
  4. Use the gamma function and the gamma family, model waiting times in a Poisson process, and connect gamma and beta variables through the bank–post office result.
    • Use the gamma function and the gamma distribution
      Evaluate gamma functions and gamma integrals, state the gamma PDF in the rate form, and compute its moments, scalings and sums.
    • Model waiting times in a Poisson process
      Describe arrival times in a Poisson process with gamma distributions, link waiting times to Poisson counts, and fit a gamma model from a mean and variance.
    • Connect the beta and gamma distributions
      Derive the bank–post office result with the Jacobian, and use it to find the beta normalizing constant, the beta mean and other links between the two families.
  5. Find the distributions of the minimum, the maximum and any ranked value of a sample, and recognize beta and exponential patterns in them.
    • Find the distribution of the minimum and the maximum
      Derive the CDF and PDF of the smallest and largest of several random variables, and apply them to lifetimes and reliability.
    • Find the distribution of any ranked value
      Derive the CDF and PDF of the j-th order statistic, show that uniform order statistics are beta, and use joint densities of order statistics.

Transformations of Random Variables study guide

5 chapters

1

Find the distribution of a transformed random variable

Transformed quantities include squares, logarithms, sums and ratios. Their distributions depend on which original values lead to each new value and on how the transformation changes interval lengths or areas. Begin with events and the CDF, then use inverse derivatives and Jacobians for densities. Tracking the new support also reveals when transformed variables are independent, and when an apparently simple density still hides dependence.

1.1 Find distributions with the CDF method

A transformation applies a fixed function to a random value. If Y=g(X), its distribution tells us the possible values of Y and how probability is assigned to them. The support is part of the answer, whether we give a PMF, a CDF or a density.

Add probabilities that land on the same value

For discrete variables, collect every input that produces the desired output:

P(Y=y)=∑x:g(x)=yP(X=x).

If X is equally likely to be −2,−1,0,1,2 and Y=X2, then Y takes values 0, 1 and 4. Only X=0 gives 0, so its probability is 1/5. Both −1 and 1 give 1, and both −2 and 2 give 4. The last two probabilities are each 2/5. The transformed outcomes need not be equally likely even when the original ones are.

Rewrite an event before calculating

The CDF method starts with FY(y)=P(g(X)≤y). Find the output range, solve this inequality for the original variable, and calculate the probability. Differentiate only when the transformed variable has a density.

For U∼Unif(0,1) and Y=−ln⁡U, the output is positive. For y>0,

P(−ln⁡U≤y)=P(U≥e−y)=1−e−y.

The inequality reverses because the transformation decreases. Thus FY(y)=0 for y≤0 and 1−e−y for y>0. Differentiation gives fY(y)=e−y on y>0: an exponential distribution with rate 1.

A function can have several input values for one output. For X∼Unif(−1,1) and Y=X2, the event for 0≤y≤1 is

−y≤X≤y.

Its interval length is 2y, while the original interval has length 2. Therefore FY(y)=y on this range, with CDF 0 below 0 and 1 above 1. Its density is 1/(2y) on 0<y<1. Using only X≤y would wrongly include very negative values whose squares exceed y.

A normal square and a point mass

For Z∼N(0,1), the same event gives

FZ2(y)=2Φ(y)−1,y>0.

Here Φ and φ are the standard normal CDF and PDF. The chain rule gives

fZ2(y)=φ(y)y=e−y/22πy.

This is chi-square with one degree of freedom, also Gamma(1/2,1/2) in shape–rate notation.

A continuous input can also produce a discrete output. If X∼Unif(−1,1) and Y is 1 when X>0 and 0 otherwise, each output has probability 1/2. Its CDF jumps by 1/2 at 0 and at 1. Differentiating between these jumps would miss all the probability.

For an expectation alone, LOTUS often saves work: E[g(X)]=∫g(x)fX(x) dx, with a sum in the discrete case. Generally E[g(X)]≠g(E[X]). For the logarithmic example, these are 1 and ln⁡2, respectively.

Key Takeaways

  • The CDF method begins with the event g(X)≤y.
  • All input values that produce the same output contribute probability.
  • State the support and complete the CDF outside it.
  • A continuous input can produce jumps in the output CDF.
  • LOTUS computes expectations without first finding a transformed distribution.

1.2 Apply the one-dimensional change-of-variables formula

A smooth, one-to-one transformation changes interval lengths while preserving their probability. The density must adjust to that change. Solving for the old variable in terms of the new one makes the adjustment visible.

Use the derivative of the inverse

Let Y=g(X), where g is differentiable and strictly monotone on the support of X, with nonzero derivative. Write x=g−1(y). Then

fY(y)=fX(g−1(y))∣dxdy∣

on the image of the original support, and zero elsewhere. A short output interval of length dy corresponds to an input interval of length about ∣dx/dy∣ dy. Multiplying by the input density preserves its probability.

For increasing g, the CDF is FX(g−1(y)). For decreasing g, it is 1−FX(g−1(y)). Differentiating explains the absolute value: the minus sign in the second case cancels the negative inverse derivative. A density cannot become negative just because a transformation reverses direction.

The practical sequence is: find the output range, invert the transformation, differentiate the inverse, substitute, and check the total area. The final expression must contain only the new variable and fixed parameters.

Convert a waiting time

Suppose X∼Expo(2) measures hours, and Y=60X measures minutes. The inverse is x=y/60, so dx/dy=1/60. Hence

fY(y)=2e−2y/60160=130e−y/30,y>0.

This has rate 1/30 per minute and mean 30 minutes. Substitution into the old density without the derivative would give a function with area 60. In general, for Y=a+bX with b≠0,

fY(y)=1∣b∣fX(y−ab).

Applying this to Y=μ+σZ, with Z∼N(0,1) and σ>0, gives the N(μ,σ2) density.

Logarithms and reciprocals

For Y=eZ with Z∼N(0,1), the inverse is z=ln⁡y and the inverse derivative is 1/y. Thus

fY(y)=1y2πexp⁡(−(ln⁡y)22),y>0.

This is a log-normal variable: its logarithm is normal. Its mean is e1/2, about 1.649, even though exponentiating the normal mean gives 1.

For X∼Unif(0,1) and Y=1/X, the output range is y>1. Now x=1/y and dx/dy=−1/y2, giving fY(y)=1/y2 on that range. Its area is 1, but its mean is infinite because ∫1∞y/y2 dy diverges. A valid density need not have a finite mean.

Add inverse branches

When a transformation is one-to-one only on separate pieces, sum a contribution for every valid root:

fY(y)=∑kfX(xk(y))∣xk′(y)∣.

For Y=Z2, both z=y and z=−y contribute. Each contributes φ(y)/(2y), giving the chi-square density. Using just one branch loses half its probability. The factor in every branch is the inverse derivative, not the forward derivative.

Key Takeaways

  • Use ∣dx/dy∣ after solving for the original variable.
  • Transform the support along with the density.
  • A decreasing transformation still produces a nonnegative density.
  • Add all valid inverse branches for a piecewise monotone transformation.
  • The integral of a proposed PDF must equal 1.
  • A reciprocal can have a valid PDF and an infinite mean.

1.3 Transform a pair of random variables with the Jacobian

Transforming a pair of variables changes areas as well as coordinates. The Jacobian determinant supplies the area correction. The region where the new pair can occur must be derived separately from the density formula.

Find the inverse and the area factor

Suppose (U,V)=g(X,Y) is one-to-one on the original support, has continuous partial derivatives and a nonzero Jacobian determinant. Solve for x=x(u,v) and y=y(u,v). The new joint density is

fU,V(u,v)=fX,Y(x(u,v),y(u,v))∣det⁡∂(x,y)∂(u,v)∣.

The matrix inside the determinant is

(xuxvyuyv).

Its determinant is xuyv−xvyu. The absolute value converts a small area in the new coordinates to its corresponding old area. If it is easier to differentiate the forward map, take the reciprocal of that absolute determinant, then express the result in the new variables.

Work through a normal pair

Let X,Y be independent standard normals and define U=X+Y and V=X−Y. Adding and subtracting the equations gives

x=(u+v)/2,y=(u−v)/2.

The inverse determinant is −1/2, so the area factor is 1/2. Since x2+y2=(u2+v2)/2,

fU,V(u,v)=14πe−(u2+v2)/4.

Every real pair (u,v) is possible. On this whole-plane support, the expression is a product of two N(0,2) densities, so U and V are independent. Their variances are 2, matching the sum of the original variances.

For a general invertible linear map represented by a matrix A, the density multiplier is 1/∣det⁡A∣. Here the forward matrix has rows (1,1) and (1,−1), with determinant −2. Its reciprocal gives the same factor.

Transform every support constraint

Now take independent X,Y∼Unif(0,1) and use the same sum and difference. The inverse and area factor stay the same, but the support changes the conclusion. The original constraints become

0<u+v<2,0<u−v<2.

Equivalently, 0<u<2 and ∣v∣<min⁡(u,2−u). This is a tilted square of area 2. The joint density is 1/2 inside it and zero outside, so its total probability is 1.

The density is constant within that region, yet the variables are dependent. If U=0.1, the difference must lie between −0.1 and 0.1; if U=1, much larger differences are possible. The allowed values of one variable depend on the other.

Here Cov⁡(U,V)=Var⁡(X)−Var⁡(Y)=0. Zero covariance therefore does not establish independence. Factoring only the nonzero part of a density ignores the constraint that caused the dependence.

A map such as (X,Y)↦(X2,Y2) is not one-to-one when both signs occur. One inverse branch is insufficient; split the domain into valid branches before applying the formula.

Key Takeaways

  • The joint density uses the absolute inverse Jacobian determinant.
  • For a linear map A, the multiplier is 1/∣det⁡A∣.
  • Translate every original support constraint.
  • A constant density on a tilted square can describe dependent variables.
  • Zero covariance alone does not establish independence.

1.4 Use auxiliary variables, polar coordinates and factorization

A single function of two variables usually discards information. Adding an auxiliary variable can make the transformation invertible. After finding the joint density, integrate the helper out over the region allowed by the support.

Add a helper to recover both inputs

For T=X+Y, choose W=X. The inverse is x=w and y=t−w, with absolute determinant 1. Therefore

fT(t)=∫fX,Y(w,t−w) dw.

The limits include only values of w compatible with both original variables. Independence is not needed for this joint-density formula; it is needed to replace the joint density by a product of marginals.

For a product T=XY of independent Unif(0,1) variables, again choose W=X. Then x=w and y=t/w. The absolute determinant is 1/w because w>0. The constraints are 0<w<1 and 0<t/w<1, which together give 0<t<1 and t<w<1. Consequently,

fT(t)=∫t11w dw=−ln⁡t,0<t<1.

Integrating from 0 would include impossible pairs and would diverge. Integrating the resulting density gives FT(t)=t−tln⁡t on this interval. For example, P(T≤1/2)=(1+ln⁡2)/2≈0.847. Products near zero can arise in many ways, which explains the density's rise near zero.

Use radius and angle for a normal pair

For independent standard normals, the joint density depends on x2+y2. Set

x=rcos⁡θ,y=rsin⁡θ,

with r>0 and 0≤θ<2π. This angular interval avoids counting each point repeatedly; the origin has probability zero. The inverse Jacobian factor is r, giving

fR,Θ(r,θ)=12π re−r2/2.

The support is a product of the radius interval and the angle interval. Each displayed factor integrates to 1 on its own interval. Thus the angle is uniform, the radius has the Rayleigh density re−r2/2, and radius and angle are independent. Forgetting the factor r would lose the area correction.

Also P(R2>s)=e−s/2 for s>0, so R2∼Expo(1/2) with mean 2. The radius itself is not exponential.

Reverse the construction to simulate normals

Take independent U1,U2∼Unif(0,1). Set Θ=2πU1 and R=−2ln⁡U2, then form X=Rcos⁡Θ and Y=Rsin⁡Θ. This Box–Muller method reproduces the independent radius and angle above, so its two outputs are independent standard normals.

Factorization proves independence only for the full density, including its support. An expression a(u)b(v) on a triangle still has a coupled restriction. On a product support, nonnegative factors can be normalized separately to obtain marginal densities. A useful helper also needs to preserve information: choosing W=X2 can fail when the sign of X is needed to invert the map.

Key Takeaways

  • Choose a helper that makes the transformation invertible.
  • Marginalize using limits obtained from the transformed support.
  • Polar coordinates contribute a Jacobian factor r.
  • For two independent standard normals, radius and angle are independent.
  • Box–Muller reverses the polar construction.
  • Factorization must include the support.
2

Find the distribution of a sum with convolutions

A total can arise from many pairs of component values. Convolution combines those possibilities, using sums for discrete variables and integrals for continuous ones. The supports decide which pairs contribute at each total. Some independent sums stay in familiar families, offering shortcuts through known results or moment generating functions. Conditions such as a common binomial probability or gamma rate decide whether those shortcuts apply.

2.1 Convolve discrete distributions

A sum can reach one total through several pairs of outcomes. Discrete convolution adds the probabilities of all those pairs. Independence lets us calculate each pair's probability by multiplying its two marginal probabilities.

Partition a total into disjoint pairs

For T=X+Y and independent discrete variables,

P(T=t)=∑xP(X=x)P(Y=t−x).

Once x and the total t are fixed, the second variable must equal t−x. Different values of x give disjoint events, so their probabilities add. Without independence, use P(X=x,Y=t−x) inside the sum instead of a product.

For two fair six-sided dice, a total of 4 comes from (1,3), (2,2) and (3,1). Each pair has probability 1/36, giving P(T=4)=1/12. A total of 7 has six possible pairs and probability 1/6. The probabilities increase toward 7, then decrease:

P(T=t)=6−∣t−7∣36,t=2,…,12.

The sum is not uniform even though each die is uniform. There is just one way to make 2 and six ways to make 7.

Restrict the summation index

If X ranges from 0 to m and Y from 0 to n, the index must satisfy both 0≤x≤m and 0≤t−x≤n. Hence

max⁡(0,t−n)≤x≤min⁡(m,t).

As an example, let independent X and Y be uniform on {0,1,2} and {0,1,2,3}. At total 4, the valid pairs are (1,3) and (2,2). Each has probability 1/12, so P(T=4)=1/6. An index of 0 would require Y=4, outside its support. Summing over all integers is also valid when probabilities outside the support are explicitly zero.

Derive the Poisson sum rule

Let X∼Pois(λ1) and Y∼Pois(λ2) independently. For an integer n≥0, convolution gives

P(T=n)=e−(λ1+λ2)∑k=0nλ1kλ2n−kk!(n−k)!.

Multiply and divide by n! to recognize a binomial expansion:

P(T=n)=e−(λ1+λ2)n!∑k=0n(nk)λ1kλ2n−k=e−(λ1+λ2)(λ1+λ2)nn!.

Thus T∼Pois(λ1+λ2). Independent hourly email and call counts with means 2 and 3 give a total with mean 5. Its probability of zero is e−5≈0.0067, and its probability of exactly five is e−555/5!≈0.175.

Adding PMFs point by point does not describe adding random variables: it does not enumerate pairs. Nor can a variable be treated as an independent copy of itself. If X∼Bern(1/2), then X+X=2X takes only 0 and 2. Two independent copies can sum to 1, with probability 1/2.

Key Takeaways

  • For each total, add the probabilities of every valid pair.
  • Independence turns joint probabilities into products.
  • The support determines which indices contribute.
  • Independent Poisson counts add their parameters.
  • Twice one random variable differs from a sum of independent copies.

2.2 Convolve continuous distributions

For continuous variables, convolution integrates over all the ways two values can make a fixed total. Its most important setup step is finding where both density factors are nonzero. These overlap limits often change as the total moves.

Derive and use the integral

For independent continuous X,Y and T=X+Y,

fT(t)=∫−∞∞fX(x)fY(t−x) dx.

Conditioning on X=x gives P(T≤t∣X=x)=FY(t−x). Average this over X, then differentiate with respect to t to obtain the integral. Equivalently, the transformation T=X+Y,W=X has inverse Jacobian factor 1.

Write both supports first. For each fixed t, solve their inequalities for x. Split the possible totals wherever the overlap changes. Only then integrate. With dependent variables, the corresponding integrand is the joint density fX,Y(x,t−x).

Add two uniforms

For independent X,Y∼Unif(0,1), the restrictions 0<x<1 and 0<t−x<1 give

max⁡(0,t−1)<x<min⁡(1,t).

The integrand is 1 over that overlap. When 0<t<1, the interval runs from 0 to t, so fT(t)=t. When 1<t<2, it runs from t−1 to 1, so fT(t)=2−t. The density is zero elsewhere.

The graph is a triangle: extreme totals come from short overlap intervals, and middle totals from long ones. Its area is 1. For example, P(T≤1/2)=∫01/2t dt=1/8. Also P(T≤1.5)=1−(0.5)2/2=0.875. Integrating from 0 to 1 for every total would give a false constant density on an interval of length 2.

Add two exponential waits

If X,Y are independent Expo(λ) variables, positive inputs require 0<x<t. For t>0,

fT(t)=∫0tλe−λxλe−λ(t−x) dx=λ2te−λt.

This is Gamma(2,λ). Integration gives the survival probability P(T>t)=e−λt(1+λt). Two independent batteries used one after the other, each with mean lifetime 1000 hours, give rate 0.001 per hour and total mean 2000 hours. The probability that their total exceeds 2000 hours is 3e−2≈0.406. A sum of two exponential waits is not itself exponential.

Subtract independent variables

For D=X−Y, the second input must equal x−d, giving

fD(d)=∫fX(x)fY(x−d) dx.

For independent exponentials with the same rate and d>0, the overlap is x>d. Integration gives fD(d)=(λ/2)e−λd. Symmetry between X and Y then yields

fD(d)=λ2e−λ∣d∣,−∞<d<∞.

This is the Laplace density. The difference can be negative even though both inputs are positive; its support must include both signs.

Key Takeaways

  • Continuous convolution integrates the product of shifted densities.
  • Solve both support restrictions before integrating.
  • Two independent unit uniforms have a triangular sum density.
  • Two independent equal-rate exponentials sum to a shape-2 gamma.
  • For a difference, use fY(x−d) and recheck the limits.
  • Dependent inputs require their joint density in the integral.

2.3 Recognize sums that stay in a named family

A named family can turn a long convolution into a short identification. Each shortcut has conditions. Check those conditions before adding parameters, and check the resulting mean and variance afterward.

Multiply moment generating functions

The moment generating function, or MGF, is MX(t)=E[etX]. For independent variables,

MX+Y(t)=E[etXetY]=MX(t)MY(t).

When these functions are finite on an open interval around zero, the MGF determines the distribution. Recognizing the product as a known MGF identifies the sum. For example, an exponential with rate λ has MGF λ/(λ−t) for t<λ. Multiplying n independent copies gives [λ/(λ−t)]n, the MGF of Gamma(n,λ).

Know which parameters add

All the following rules assume independence.

InputsDistribution of the sumAdditional condition
PoissonPoisson with the sum of the parametersNone
BinomialBinomial with the sum of the trial countsSame success probability
NormalNormal with the sum of the means and variancesNone
GammaGamma with the sum of the shapesSame rate
Chi-squareChi-square with the sum of the degrees of freedomNone

For independent normal lengths N(50,0.32) mm and N(30,0.42) mm, the total is N(80,0.25) mm. Its standard deviation is 0.09+0.16=0.5 mm, not 0.7 mm. The probability of exceeding 81 mm becomes P(Z>2)≈0.0228 after standardizing.

Check a tempting shortcut

Independent Bernoulli variables with probabilities 0.2 and 0.8 have a sum with mean 1 and variance 0.16+0.16=0.32. A Bin(2,0.5) variable has the same mean but variance 0.5, so the sum cannot have that binomial distribution. Equal average success probability is insufficient; the trial probabilities must match.

Likewise, independent gamma variables with different rates do not combine by adding shapes and retaining one rate. Their MGFs have different denominators and do not collapse to the common-rate form.

Normal marginal distributions alone are insufficient when independence is absent. Take X∼N(0,1) and an independent random sign S with equally likely values −1 and 1. Then Y=SX is also standard normal, but X+Y=0 with probability 1/2. That sum has a point mass and is not normal.

Separate scaling from independent addition

For one standard normal X, 2X∼N(0,4). The sum of two independent standard normals is N(0,2). Scaling multiplies variance by the square of the multiplier; independent addition adds variances. Similarly, doubling a Poisson variable gives only even values, so it is not Poisson.

Means always add when they exist, even under dependence. For finite variances,

Var⁡(X+Y)=Var⁡(X)+Var⁡(Y)+2Cov⁡(X,Y).

Zero covariance is enough for variance addition, while the named-family rules above use independence. Matching moments can reject a false candidate, but matching just the mean and variance does not identify a distribution.

Key Takeaways

  • MGFs multiply for independent sums and identify distributions when finite near zero.
  • Binomial sums need a common success probability.
  • Gamma sums need a common rate.
  • For independent normal sums, add variances before taking a square root.
  • Scaling one variable changes its variance differently from summing independent copies.
  • Moment checks can reject a proposed distribution.
3

Model proportions and unknown probabilities with the beta distribution

Proportions and probabilities lie between zero and one, but their uncertainty can have many shapes. The beta family can be flat, concentrated in the middle or high near the endpoints. Its integrals and moments are manageable through the beta function. A beta distribution can also describe an unknown success probability, allowing binomial observations to update that uncertainty through simple changes to its two parameters.

3.1 Describe the beta distribution and use beta integrals

A beta variable lies between 0 and 1, making the family useful for proportions and uncertain probabilities. Its two positive shape parameters control how the density behaves near the two ends of that interval.

Read the density and its shape

For a,b>0, the distribution Beta(a,b) has density

f(x)=xa−1(1−x)b−1B(a,b),0<x<1,

and zero elsewhere. The beta function B(a,b)=∫01xa−1(1−x)b−1 dx supplies the normalizing constant. The parameters need not be integers.

When a=b, the density is symmetric around 1/2. It is uniform for a=b=1, has a central hump for equal parameters above 1, and has a U shape for equal parameters below 1. A parameter below 1 makes the density unbounded at its associated endpoint: a at 0 and b at 1. This remains compatible with a finite total area. If a>b, the mean exceeds 1/2; if a<b, it is below 1/2.

The moments are

E[X]=aa+b,Var⁡(X)=ab(a+b)2(a+b+1).

Writing the variance as μ(1−μ)/(a+b+1) shows that, at a fixed mean μ, a larger parameter sum means greater concentration. For instance, Beta(2,8) and Beta(20,80) both have mean 0.2, but their variances are about 0.0145 and 0.0016. When both parameters exceed 1, the mode is (a−1)/(a+b−2); this interior-mode formula does not apply to a U-shaped beta.

Normalize and integrate an example

The beta–gamma identity is

B(a,b)=Γ(a)Γ(b)Γ(a+b).

For positive integers it becomes (a−1)!(b−1)!/(a+b−1)!. Thus B(2,3)=1/12 and a Beta(2,3) variable has density 12x(1−x)2. Its mean is 2/5, variance 1/25 and mode 1/3. The exponents are one less than the parameters.

For a probability, integrate over the requested interval:

P(X<1/2)=12∫01/2(x−2x2+x3) dx=11/16.

The normalizing beta function integrates over the whole interval; it does not by itself give this partial-interval probability.

Recognize powers instead of expanding them

An integral ∫01xc(1−x)d dx equals B(c+1,d+1) when c,d>−1. For example,

∫01x3(1−x)2 dx=B(4,3)=3!2!6!=160.

Moments use the same recognition: E[Xk]=B(a+k,b)/B(a,b) when the integral exists. For Beta(2,3), this gives E[X2]=1/5, confirming 1/5−(2/5)2=1/25.

Reflection swaps the two parameters: if X∼Beta(a,b), then 1−X∼Beta(b,a). Substituting x=1−y exchanges the powers of x and 1−x, with inverse derivative of absolute value 1.

Key Takeaways

  • The beta density has exponents a−1 and b−1 on 0<x<1.
  • The mean is a/(a+b).
  • At a fixed mean, increasing a+b reduces the variance.
  • Recognize beta integrals by adding 1 to each exponent.
  • Reflecting a beta variable swaps its parameters.

3.2 Use the beta as a distribution for an unknown probability

An unknown success probability can be represented by a distribution on 0<p<1. The beta family expresses uncertainty about that fixed probability. Observations change the distribution describing our uncertainty; they do not require the underlying probability to change after every trial.

Separate the probability from the count

Given p, suppose X∣p∼Bin(n,p). The count X is discrete, while p is the unknown parameter. A prior distribution describes uncertainty before these observations. A posterior describes it after the observations.

If the prior is Beta(a,b) and the observed count is k, multiply the likelihood by the prior density:

pk(1−p)n−k pa−1(1−p)b−1=pa+k−1(1−p)b+n−k−1.

Factors independent of p are absorbed into normalization. The remaining expression is a beta kernel, so

p∣X=k∼Beta(a+k,b+n−k).

Successes add to the first parameter; failures add to the second. This return to the same family is conjugacy. The second parameter receives n−k, not the entire trial count n.

Interpret the posterior mean

A uniform Beta(1,1) prior and 7 successes in 10 trials give Beta(8,4). Its mean is 8/12=2/3, between the prior mean 0.5 and the observed fraction 0.7. A Beta(2,2) prior with the same observations gives Beta(9,5) and mean 9/14≈0.643. Its larger initial parameter sum puts more weight on 0.5.

For n>0, the general posterior mean can be written

a+ka+b+n=a+ba+b+naa+b+na+b+nkn.

The weights are nonnegative and add to 1. The parameter sum a+b acts as a prior sample size in this weighted-average interpretation. As the amount of data grows, the observed proportion receives more weight. The parameters need not be literal historical counts or whole numbers.

Updating in stages gives the same answer as pooling the observations. Starting at Beta(1,1), 3 successes and 1 failure give Beta(4,2). A further 4 successes and 2 failures give Beta(8,4). The final parameters reflect all 7 successes and all 3 failures.

Explain a uniform distribution of counts

In Bayes' billiards, the first ball lands at a uniform position p in [0,1]. Each of n later independent uniform balls lies to its left with probability p. Conditional on p, that left-hand count is binomial.

Across all possible first-ball positions, the first ball is equally likely to occupy any of the n+1 ranks. Its rank minus 1 is the number of later balls to its left. Therefore every count k=0,…,n has probability 1/(n+1). The integral confirms it:

∫01(nk)pk(1−p)n−k dp=(nk)B(k+1,n−k+1)=1n+1.

This is a marginal distribution over counts after averaging over p. For a fixed known p, the binomial counts are generally not equally likely.

Key Takeaways

  • A beta prior describes uncertainty about a fixed unknown probability.
  • Add successes to the first parameter and failures to the second.
  • The posterior mean weights the prior mean and observed proportion.
  • Updating in stages and updating with pooled counts agree.
  • Bayes’ billiards gives uniform marginal counts under a uniform prior.
4

Work with the gamma distribution and its link to the beta

Positive waiting times connect the gamma function, exponential gaps and Poisson counts. Shape and rate determine the gamma density and its moments; scale expresses the same family with a reciprocal parameter. Independent gamma variables with a common rate give a further link: their total is gamma, their share is beta, and total and share are independent. A Jacobian derivation explains both the beta normalizer and this independence.

4.1 Use the gamma function and the gamma distribution

The gamma family models positive quantities and includes exponential and chi-square distributions. Its shape can be any positive real number. A second parameter sets the rate, so its meaning must stay explicit when comparing formulas or software.

Extend factorials with the gamma function

For a>0,

Γ(a)=∫0∞xa−1e−x dx.

Integration by parts gives Γ(a+1)=aΓ(a). Since Γ(1)=1, positive integers satisfy Γ(n)=(n−1)!. In particular, Γ(5)=24, not 120. Also Γ(1/2)=π, so Γ(5/2)=(3/2)(1/2)π=3π/4.

Substituting u=λx gives a useful integral:

∫0∞xa−1e−λx dx=Γ(a)λa.

For example, ∫0∞x4e−2x dx=Γ(5)/25=3/4. Match the power to a−1 before using the formula.

Use the shape–rate density

For shape a>0 and rate λ>0,

fY(y)=λaΓ(a)ya−1e−λy,y>0.

Its mean is a/λ and variance is a/λ2. Shape 1 gives Expo(λ). Below shape 1, the density is unbounded near zero and decreases; at shape 1 it decreases from a finite value. Above shape 1, it rises to a peak at (a−1)/λ and then falls. Larger shapes reduce the right skew.

Multiplying the density by yc and recognizing a gamma integral yields

E[Yc]=Γ(a+c)Γ(a)λc,c>−a.

For Y∼Gamma(3,2), the mean is 1.5, the variance is 0.75 and E[Y2]=Γ(5)/(Γ(3)22)=3. For a>1, the same formula gives E[1/Y]=λ/(a−1); the reciprocal mean is not generally the reciprocal of the mean.

Keep rate and scale distinct

The scale is θ=1/λ. In scale notation the density has denominator Γ(a)θa and exponential factor e−y/θ.

ConventionMeanVariance
Shape a, rate λa/λa/λ2
Shape a, scale θaθaθ2

Thus shape 3 and second parameter 2 mean 1.5 under a rate convention and 6 under a scale convention. R's dgamma accepts rate or scale; SciPy's stats.gamma uses scale.

For c>0, scaling a shape–rate gamma gives cY∼Gamma(a,λ/c). Converting hours to minutes multiplies the time by 60 and divides its rate by 60.

Recognize sums and chi-square

The MGF is [λ/(λ−t)]a for t<λ. Independent gamma variables with a common rate therefore add their shapes. The sum of squares of n independent standard normals is χn2=Gamma(n/2,1/2), with mean n and variance 2n.

Key Takeaways

  • The gamma recurrence gives Γ(n)=(n−1)!.
  • Match a gamma integral’s power to a−1.
  • A shape–rate gamma has mean a/λ and variance a/λ2.
  • Scale equals the reciprocal of rate.
  • Positive scaling divides the rate by the multiplier.
  • Independent common-rate gamma variables add their shapes.
  • Chi-square with n degrees of freedom is Gamma(n/2,1/2).

4.2 Model waiting times in a Poisson process

Counts and waiting times describe the same arrival process from different directions. A Poisson count asks how many events have happened by a time. A gamma waiting time asks when a specified event occurs.

Build an arrival time from gaps

A Poisson process with rate λ has Pois(λt) counts in every interval of length t and independent counts in disjoint intervals. The gaps between consecutive arrivals are independent Expo(λ) variables.

Starting at time zero, the time Tn of the n-th arrival is the sum of n gaps. Thus

Tn∼Gamma(n,λ),fTn(t)=λntn−1e−λt(n−1)!,t>0.

Its mean is n/λ and variance n/λ2. The first arrival is exponential. Later arrival times are gamma with an integer shape, also called Erlang distributions.

Translate a time event into a count event

The event Tn>t means the n-th arrival has not happened by time t. Equivalently, fewer than n arrivals have occurred:

{Tn>t}={N(t)<n}.

Consequently,

P(Tn>t)=e−λt∑k=0n−1(λt)kk!.

The final count is n−1. Including n would count cases where the required arrival has already occurred. For the complementary event Tn≤t, use N(t)≥n.

Suppose customers arrive at rate 3 per hour. The second arrival has mean 2/3 hour, or 40 minutes, and standard deviation 2/3 hour, about 28 minutes. The probability it occurs after one hour is

P(T2>1)=P(N(1)≤1)=e−3(1+3)=4e−3≈0.199.

For the third arrival within half an hour, the count mean is 3(0.5)=1.5. Therefore

P(T3≤0.5)=1−e−1.5(1+1.5+1.52/2)≈0.191.

The process rate stays 3 per hour; the count parameter changes to rate times interval length.

Distinguish a total wait from a single gap

For n≥2, Tn is not exponential or memoryless. Several arrivals are needed, so its density starts at zero. An exponential with the same mean n/λ would have variance n2/λ2, which is larger than the actual n/λ2.

Waiting for a1 arrivals and then a2 more explains why independent integer-shape gamma waits with a common rate add their shapes. The total waits for a1+a2 arrivals in the same process.

Match a positive model to moments

A gamma with a noninteger shape remains a valid distribution, although its shape is not an arrival count. For a positive mean m and variance v, solve m=a/λ and v=a/λ2 to get

a=m2/v,λ=m/v.

For m=10 and v=25, the matching parameters are shape 4 and rate 0.4. The mean is measured in the original unit, the variance in its square, and the rate in the reciprocal unit.

Key Takeaways

  • The n-th Poisson arrival time is Gamma(n,λ).
  • Use Tn>t exactly when N(t)<n.
  • The Poisson count parameter is λt.
  • Arrival times after the first are not memoryless.
  • Moment matching gives shape m2/v and rate m/v.

4.3 Connect the beta and gamma distributions

Two independent gamma variables with a common rate contain two kinds of information: their total and the fraction contributed by one component. Transforming to these coordinates reveals the beta distribution and an independence result.

Transform total and share together

Let X∼Gamma(a,λ) and Y∼Gamma(b,λ) independently. Define T=X+Y and W=X/(X+Y). Their inverse map is

x=tw,y=t(1−w),t>0,0<w<1.

The inverse Jacobian matrix has rows (w,t) and (1−w,−t). Its determinant is −t, so the density multiplier is t. Substituting into the product of the original gamma densities gives

fT,W(t,w)=λa+bΓ(a)Γ(b)ta+b−1e−λtwa−1(1−w)b−1.

The extra power of t comes from the Jacobian. Without it, the candidate total would have the wrong shape.

Factor the density on its full support

Insert Γ(a+b) in the numerator and denominator to separate the expression:

fT,W(t,w)=[λa+bta+b−1e−λtΓ(a+b)][Γ(a+b)wa−1(1−w)b−1Γ(a)Γ(b)].

The first factor is the Gamma(a+b,λ) density. The support is the product (0,∞)×(0,1), so the second factor is the marginal density of W and the two variables are independent. Normalizing that second factor proves

B(a,b)=Γ(a)Γ(b)Γ(a+b),W∼Beta(a,b).

This is the bank–post office result. The common rate cancels from the fraction's distribution.

Use independence to find a mean

Since X=TW and T,W are independent,

a/λ=E[X]=E[T]E[W]=((a+b)/λ)E[W].

Hence E[W]=a/(a+b). Dividing two expectations is not a general rule for the expectation of a ratio; the independence of total and share justifies it here.

For independent waits X∼Gamma(2,0.2) minutes and Y∼Gamma(3,0.2) minutes, the total is Gamma(5,0.2) with mean 25 minutes. The fraction spent in the first wait is Beta(2,3), with mean 0.4 and variance 0.04. Learning the total does not change the fraction's distribution. The first wait and the total themselves are dependent.

Recognize special cases and limits

Two independent equal-rate exponentials give a uniform share and a shape-2 gamma total. Two independent standard-normal squares each have shape 1/2 and rate 1/2, so their first-square share is Beta(1/2,1/2), the arcsine distribution. Its beta normalizer is B(1/2,1/2)=π.

The construction also simulates a beta variable: generate independent common-rate gammas with the desired shapes and divide the first by their sum. Different rates introduce a term coupling total and share, so the beta result and total–share independence no longer hold.

Key Takeaways

  • Independent common-rate gammas give a gamma total and a beta share.
  • Total and share are independent.
  • The inverse Jacobian factor for total and share is t.
  • Normalization proves the beta–gamma identity.
  • Total–share independence yields the beta mean.
  • The result requires both independence and a common rate.
5

Find the distributions of order statistics

The smallest, largest and middle observations have distributions created by sorting a sample. Threshold events for these ranks become statements about all observations or about a binomial count. Those statements yield CDFs and densities, connect uniform ranks to beta distributions, and describe first and last failures. Joint densities and exponential gaps let you study ranges and system lifetimes without treating the sorted observations as independent.

5.1 Find the distribution of the minimum and the maximum

Order statistics are the values of a sample sorted from smallest to largest. Write them as X(1)≤⋯≤X(n). Sorting creates dependence: knowing a minimum restricts every other ranked value. For an i.i.d. continuous sample, ties have probability zero.

Start with an event about every observation

The maximum is at most x exactly when all observations are at most x. If their common CDF is F, independence gives

FX(n)(x)=F(x)n.

For the minimum, it is simpler to begin with survival: the minimum exceeds x exactly when every observation does. Hence

FX(1)(x)=1−(1−F(x))n.

For independent observations with different distributions, multiply their individual CDFs for a maximum and their individual survival functions for a minimum. Identical distributions are not needed for those product rules; independence is.

If the common distribution has density f, differentiate to get

fX(n)(x)=nF(x)n−1f(x),fX(1)(x)=n(1−F(x))n−1f(x).

A PDF is not a probability of being below a threshold. Raising f(x) to a power does not give the maximum's density.

Apply the uniform and discrete formulas

For n independent Unif(0,1) observations, the maximum has CDF xn on 0<x<1 and mean n/(n+1). The minimum has CDF 1−(1−x)n and mean 1/(n+1). With four observations, the probability the maximum is at most 0.9 is 0.94=0.6561, and its mean is 0.8.

CDF products also work for discrete variables, where ties can occur. For two independent fair dice, the probability the maximum is at most 4 is (4/6)2. To get exactly 4, subtract the probability that it is at most 3:

P(max⁡=4)=1636−936=736.
Model the first and last failures

Independent exponential lifetimes with rates λi give minimum survival ∏ie−λit=e−(∑iλi)t. Thus the first failure is exponential with the sum of the rates. Component i is first with probability λi/∑jλj.

For three independent components each with mean lifetime 5 years, a series system stops at the first failure. Its rate is 0.6 per year and mean 5/3 years. A parallel system works until the last failure. Its probability of lasting beyond 10 years is

1−(1−e−2)3≈0.354.

The same components produce different system lifetimes because the operating rule selects a different order statistic.

Use exponential gaps for the maximum's mean

For n independent Expo(λ) lifetimes, the first failure gap has rate nλ. Memorylessness leaves n−1 fresh exponential waits, so the next gap has rate (n−1)λ. The successive gaps are independent, down to a final rate λ. Adding their means gives

E[X(n)]=1λ(1+12+⋯+1n).

For the three-component parallel system this is 5(1+1/2+1/3)=55/6 years. Adding these gap means does not require treating the ranked lifetimes themselves as independent.

Key Takeaways

  • Maximum CDFs multiply under independence.
  • Minimum survival functions multiply under independence.
  • Differentiate a CDF to obtain an extreme-value density.
  • Discrete point probabilities come from CDF differences.
  • Independent exponential minimum rates add.
  • Independent exponential gaps give the maximum’s mean.

5.2 Find the distribution of any ranked value

An interior order statistic asks how a value ranks within the whole sample. Its distribution follows by counting how many observations fall below a threshold. This connects order statistics to binomial counts and, for uniform samples, to beta densities.

Turn a rank event into a count event

For an i.i.d. sample of size n with CDF F, the event X(j)≤x means at least j observations are at most x. That count is Bin(n,F(x)), so

P(X(j)≤x)=∑k=jn(nk)F(x)k(1−F(x))n−k.

The tail starts at j, not at j−1. With fewer than j observations below the threshold, the j-th smallest must still lie above it.

For a continuous sample, the density is

fX(j)(x)=n(n−1j−1)f(x)F(x)j−1(1−F(x))n−j.

To see the coefficient, choose the observation in a tiny interval near x in n ways. Choose which j−1 of the remaining observations fall below it in (n−1j−1) ways. The others fall above it. The small-interval probability contributes f(x) dx.

Identify uniform ranks as beta

For U1,…,Un independent Unif(0,1) variables, F(x)=x and f(x)=1 inside the support. Therefore

U(j)∼Beta(j,n−j+1),E[U(j)]=jn+1.

The parameters sum to n+1. The sample points split [0,1] into n+1 gaps, each with expected length 1/(n+1). The expected j-th position is the sum of the first j gap lengths.

The median of five uniform observations is U(3)∼Beta(3,3). It has density 30x2(1−x)2, mean 1/2 and variance 1/28. For a threshold of 1/4, the binomial tail gives

P(U(3)<1/4)=∑k=35(5k)(1/4)k(3/4)5−k=106/1024≈0.104.

The median being below a quarter needs at least three sample values there, not merely one.

Transfer the result through a continuous CDF

For a continuous CDF F, the probability integral transform makes the values F(Xi) independent uniforms. Applying the same nondecreasing function preserves their order, giving

F(X(j))∼Beta(j,n−j+1).

For any continuous population with median m, the sample minimum and maximum enclose m unless all observations fall on the same side. That probability is 1−2(1/2)n, or 0.9375 when n=5.

Work with more than one ranked value

The full ordered sample has joint density n!∏if(xi) on x1<⋯<xn. The factor counts the original orderings. For n≥2, the minimum and maximum have joint density

n(n−1)f(x)f(y)[F(y)−F(x)]n−2,x<y.

For uniforms the range U(n)−U(1) is Beta(n−1,2) with mean (n−1)/(n+1). These joint densities retain ordering restrictions; multiplying the separate marginal densities would incorrectly treat the ranks as independent.

Key Takeaways

  • A rank threshold is a binomial tail event.
  • The density coefficient counts the choices of observations below and at the rank.
  • Uniform rank j has parameters j,n−j+1.
  • A continuous CDF maps ranked observations to beta variables.
  • Joint order-statistic densities include ordering constraints.
  • The uniform sample range is Beta(n−1,2) for n≥2.

Transformations of Random Variables examples

5 Walkthroughs

1

Find a distribution after changing variables

20 steps
Work through events, inverse derivatives, Jacobians, helper variables, and polar coordinates.
  1. 1
    IntroductionKeep probability while changing coordinates

    A transformation changes the values you observe, but the probabilities still come from the original variables. Begin by asking which inputs can produce each output.

    For a single output, rewrite a CDF event or use an inverse derivative. For a pair, correct areas with a Jacobian. In both cases, the output support is part of the distribution.

  2. 2
    ExampleCollect inputs with the same square

    Suppose X is equally likely to be −2,−1,0,1,2 and set Y=X2. The possible outputs are 0, 1 and 4.

    The output 0 comes from one input, while 1 and 4 each come from two inputs. Their probabilities are 1/5,2/5,2/5. Transforming the values does not make the new outcomes equally likely; add every original probability that lands on the same output.

  3. 3
    ExampleRewrite a continuous square event

    Now let X∼Unif(−1,1) and Y=X2. The output lies between 0 and 1. For a threshold within that range,

    Y≤y⟺−y≤X≤y.

    The allowed interval has length 2y inside an input interval of length 2. Thus FY(y)=y. Both ends of the input interval matter because both signs can have a large square.

  4. 4
    ExampleFinish the CDF, then differentiate

    Complete the square's CDF with 0 below 0 and 1 above 1. Inside the range, differentiating y gives

    fY(y)=12y,0<y<1.

    The density increases without bound near zero, but its integral is 1. A density is a height, so an unbounded height at an endpoint can still enclose finite probability.

  5. 5
    ChallengeCan a continuous input give two outputs?

    Let U∼Unif(0,1). Set Y=1 when U>0.7 and Y=0 otherwise. What does the CDF look like?

    ---reveal---

    It jumps from 0 to 0.7 at 0 and from 0.7 to 1 at 1. The jump heights are the probabilities of the two outputs. Although the input is continuous, the output is Bernoulli with success probability 0.3; differentiating between jumps would miss both point masses.

  6. 6
    ExplanationCorrect the changed interval length

    For a differentiable strictly monotone transformation Y=g(X) with nonzero derivative, solve for x=g−1(y). Then use

    fY(y)=fX(x)∣dxdy∣.

    The inverse derivative tells how much input interval corresponds to one unit of output interval. Its absolute value keeps the density positive for decreasing maps. Write the formula only on the transformed support.

  7. 7
    ExampleConvert hours into minutes

    Let X∼Expo(2) measure hours and Y=60X measure minutes. Solving gives x=y/60 and derivative 1/60.

    Substitution and the derivative together give fY(y)=2e−2y/60/60=e−y/30/30 for y>0. This is rate 1/30 per minute and mean 30 minutes. Leaving out the derivative would make the density's area 60.

  8. 8
    ChallengeCount the branches that remain valid

    If X∼Unif(−2,1) and Y=X2, how many inverse branches contribute at y=1/4 and at y=9/4?

    ---reveal---

    At 1/4, both roots −1/2 and 1/2 lie in the input support. At 9/4, only −3/2 lies there; 3/2 is too large. Each valid root contributes 1/(6y), so the density changes formula when the positive branch leaves the support.

  9. 9
    ExampleInvert sum and difference

    For independent standard normals X,Y, define U=X+Y and V=X−Y. Adding the equations gives x=(u+v)/2; subtracting gives y=(u−v)/2.

    The inverse derivative matrix has rows (1/2,1/2) and (1/2,−1/2). Its determinant is −1/2, so the density multiplier is 1/2. The forward determinant would be −2 and must be inverted.

  10. 10
    ExampleSubstitute and factor the normal density

    The squared inputs satisfy x2+y2=(u2+v2)/2. Substituting into the original joint normal density and multiplying by 1/2 gives

    fU,V(u,v)=14πe−(u2+v2)/4.

    Its support is the whole plane. The formula factors into two N(0,2) densities on that product support, proving that the sum and difference are independent.

  11. 11
    Key InsightWatch the support change the answer

    Use the same map with independent unit uniforms. Its inverse factor is still 1/2, but the support is now

    0<u<2,∣v∣<min⁡(u,2−u).

    This is a tilted square. When the sum is close to zero, the difference must also be close to zero, so the outputs are dependent. Their covariance is zero, showing why zero covariance alone cannot establish independence.

  12. 12
    ChallengeChoose the density multiplier

    An invertible linear map is U=2X+Y,V=X+2Y. What multiplies the original density after evaluating it at the inverse image?

    ---reveal---

    The forward matrix determinant is 2(2)−1(1)=3, so the multiplier is 1/3. The density compensates for threefold area expansion. You must also transform the support; the determinant alone does not tell which output pairs can occur.

  13. 13
    ExampleKeep one input as a helper

    To find the product T=XY for independent unit uniforms, add W=X. Now both inputs are recoverable:

    x=w,y=t/w.

    The inverse determinant is −1/w, so the factor is 1/w on the positive support. The original joint density is 1, making the transformed joint density 1/w wherever these reconstructed inputs both lie in (0,1).

  14. 14
    ExampleIntegrate over the allowed helper values

    The reconstructed inputs require 0<w<1 and 0<t/w<1. For positive w these combine into 0<t<1 and t<w<1.

    Therefore fT(t)=∫t1dw/w=−ln⁡t. The lower limit depends on the target value. Integrating from zero would include values that force y=t/w>1 and would produce a divergent integral instead of a PDF.

  15. 15
    ExplanationUse radius and angle for circular symmetry

    For independent standard normals, write x=rcos⁡θ,y=rsin⁡θ with r>0 and 0≤θ<2π. The original exponent becomes −r2/2.

    The area correction is r, so fR,Θ(r,θ)=re−r2/2/(2π). A small angular interval sweeps more area farther from the origin; the Jacobian records that increase.

  16. 16
    ConnectionSeparate angle from squared radius

    The polar density factors on a product support. The angle is uniform on [0,2π), and the radius has density re−r2/2 for r>0, independently.

    Its tail is P(R>r)=e−r2/2. Thus P(R2>s)=e−s/2: the squared radius is exponential with rate 1/2. This is also chi-square with two degrees of freedom.

  17. 17
    ConnectionReverse the construction with Box–Muller

    Generate independent unit uniforms U1,U2. Set Θ=2πU1 and R=−2ln⁡U2, then output Rcos⁡Θ and Rsin⁡Θ.

    The logarithm produces the exponential squared radius, and the square root produces the radius. Independence of the two uniforms gives independent radius and angle. The resulting Cartesian outputs are independent standard normals.

  18. 18
    ChallengeCheck a claimed factorization

    A joint density equals 2u for 0<v<u<1 and zero elsewhere. Does the expression's lack of v prove independence?

    ---reveal---

    No. Given u, the allowed values satisfy 0<v<u. The full density includes that coupled support, which cannot factor into one function of u times one of v. A formula that looks separable only inside a triangle is insufficient.

  19. 19
    ChallengeCombine a product transformation with a CDF

    For the product of independent unit uniforms, use fT(t)=−ln⁡t to find P(T≤a) for 0<a<1.

    ---reveal---

    Integration gives FT(a)=a−aln⁡a, since tln⁡t→0 at zero. The inverse-map calculation supplied the density and its support; integrating only over the requested output interval supplies the probability. At a=1 the expression reaches 1, consistent with the full support.

  20. 20
    RecapChoose the calculation that matches the output

    Use CDF events to collect inputs, inverse derivatives to correct lengths, and inverse Jacobians to correct areas. A helper variable restores enough information to invert a map before marginalization. Every calculation carries its transformed support, including any restriction needed when testing independence.

2

Build sums from compatible inputs

14 steps
Use discrete and continuous convolution, then recognize named-family shortcuts.

Save this lesson to follow every Walkthrough step by step.

  1. 1
    IntroductionA total has many possible decompositions
  2. 2
    ExampleList the pairs for one total
  3. 3
    ExampleRecognize the Poisson expansion
  4. 4
    ChallengeDistinguish doubling from convolution
  5. 5
    ExplanationFind the continuous overlap
  6. 6
    ExampleIntegrate the two pieces
  7. 7
    ExampleAdd exponential waits
  8. 8
    ConnectionAllow negative differences
  9. 9
    ChallengeFind an overlap for unequal uniforms
  10. 10
    ExplanationMultiply MGFs to identify the sum
  11. 11
    ExampleAdd variances before taking a square root
  12. 12
    TipMatch the conditions before the parameters
  13. 13
    ChallengeAlign rates before adding
  14. 14
    RecapLet the support and conditions guide the work
3

Read beta shapes and update an unknown probability

11 steps
Connect beta powers, moments, and binomial evidence.

Save this lesson to follow every Walkthrough step by step.

  1. 1
    IntroductionUse a flexible family between zero and one
  2. 2
    ExplanationRead shapes from the powers
  3. 3
    Key InsightSee what each parameter changes
  4. 4
    ExampleNormalize a beta density
  5. 5
    ExampleUse beta integrals for moments
  6. 6
    ChallengeCompare mean and concentration
  7. 7
    ExplanationMultiply uncertainty by evidence
  8. 8
    ExampleUpdate success and failure counts
  9. 9
    Key InsightInterpret the weights
  10. 10
    ChallengeConnect a count, an update, and a rank
  11. 11
    RecapKeep the two kinds of uncertainty distinct
4

Connect gamma waits to beta shares

17 steps
Work from gamma integrals through Poisson arrivals to independent totals and shares.

Save this lesson to follow every Walkthrough step by step.

  1. 1
    IntroductionConnect positive values, arrivals, and shares
  2. 2
    ExplanationApply the gamma recurrence
  3. 3
    ExplanationRecognize a gamma integral and density
  4. 4
    ExampleFind moments without a new integral
  5. 5
    TipCheck whether a parameter is rate or scale
  6. 6
    ChallengeUse the rate convention in a new unit
  7. 7
    ExplanationBuild arrival times from exponential gaps
  8. 8
    ExampleRead a wait as a count event
  9. 9
    ChallengeChoose the correct count tail
  10. 10
    ConnectionFit a gamma beyond integer arrival counts
  11. 11
    ExampleRecover the original values from total and share
  12. 12
    ExampleSee the density separate
  13. 13
    Key InsightDerive the normalizer and mean
  14. 14
    ExampleInterpret the bank–post office waits
  15. 15
    ChallengeUse a fixed total
  16. 16
    ChallengeConnect normal squares to a beta share
  17. 17
    RecapRead each parameter through its role
5

Find probabilities for sorted samples

15 steps
Derive extreme and interior ranks, then connect uniform ranges and exponential gaps.

Save this lesson to follow every Walkthrough step by step.

  1. 1
    IntroductionSorting changes the distributions
  2. 2
    ExplanationMake the maximum event about everyone
  3. 3
    ExampleDifferentiate the extreme CDFs
  4. 4
    ConnectionUse CDF differences for discrete extremes
  5. 5
    ChallengeChoose the lifetime selected by the system
  6. 6
    Key InsightAdd exponential spacings
  7. 7
    ExplanationTurn an interior rank into a binomial count
  8. 8
    ExplanationCount the density coefficient
  9. 9
    ConnectionIdentify the beta law of a uniform rank
  10. 10
    ExampleCalculate a median probability
  11. 11
    ChallengeRecover a missing beta parameter
  12. 12
    ConnectionTransform ranks with a continuous CDF
  13. 13
    ExplanationKeep joint ordering restrictions
  14. 14
    ChallengeCompare a range with a maximum
  15. 15
    RecapTranslate a rank into a sample event

Transformations of Random Variables practice questions

50 Practice Questions in 5 sets

Set 1: Transform values, combine counts, and read distributions10 Practice Questions

Question 1 of 10

An integer-valued variable has probabilities P(X=−3)=0.2, P(X=−1)=0.3 and P(X=1)=0.5. If Y=X2, what is P(Y=1)?
  1. 0.3
  2. 0.8
  3. 0.5
  4. 0.6
Show answerHide answer
Answer: B
Both inputs X=−1 and X=1 produce Y=1. Their disjoint probabilities add to 0.3+0.5=0.8. Keeping only the positive root would give 0.5 and omit the probability contributed by the negative input; squaring changes the values, not their probabilities.

Question 2 of 10

Arrivals follow a Poisson process at rate 4 per hour. What is the probability that the second arrival occurs after 30 minutes?
  1. 3e−2
  2. e−2
  3. 5e−2
  4. 1−3e−2
Show answerHide answer
Answer: A
In half an hour the count has mean 4(0.5)=2. The second arrival is later exactly when the count is 0 or 1, giving e−2(1+2). Using only e−2 counts zero arrivals and leaves out the equally relevant case in which exactly one arrival has occurred.

Question 3 of 10

A fixed success probability has prior p∼Beta(2,5). After 6 successes in 9 conditionally independent Bernoulli trials, what is the posterior mean of p?
  1. 2/3
  2. 8/19
  3. 2/7
  4. 1/2
Show answerHide answer
Answer: D
The data contain 6 successes and 3 failures, giving posterior Beta(8,8). Its mean is 8/16=1/2. The observed proportion 2/3 ignores the prior, while 8/19 comes from adding all 9 trials to the second parameter instead of adding only the 3 failures.

Question 4 of 10

Let Y have gamma shape 5 and rate 2. What is Var⁡(Y)?
  1. 5/2
  2. 10
  3. 5/4
  4. 20
Show answerHide answer
Answer: C
A gamma variable with shape a and rate λ has variance a/λ2. Thus the variance is 5/22=5/4. The value 5/2 is its mean, while 20 would be the variance if the second parameter were a scale of 2; the question specifies a rate.

Question 5 of 10

Let X∼Unif(0,1) and Y=5X+2. What is the PDF of Y?
  1. fY(y)=1 for 2<y<7, zero elsewhere.
  2. fY(y)=5 for 2<y<7, zero elsewhere.
  3. fY(y)=1/5 for 0<y<5, zero elsewhere.
  4. fY(y)=1/5 for 2<y<7, zero elsewhere.
Show answerHide answer
Answer: D
The transformation maps the input interval to (2,7) and has inverse derivative 1/5. Multiplying the original density by that factor gives a uniform density with total area 1. Leaving the height at 1 preserves the old height while stretching its interval fivefold, producing area 5.

Question 6 of 10

Let X∼Unif(−2,3) and Y=max⁡(0,X). What are P(Y=0) and fY(y) for 0<y<3?
  1. P(Y=0)=2/5; fY(y)=1/5 on 0<y<3.
  2. P(Y=0)=0; fY(y)=1/3 on 0<y<3.
  3. P(Y=0)=2/5; fY(y)=1/3 on 0<y<3.
  4. P(Y=0)=3/5; fY(y)=1/5 on 0<y<3.
Show answerHide answer
Answer: A
The whole input interval [−2,0] collapses to 0, producing mass 2/5. Positive inputs retain density 1/5, whose area on (0,3) is 3/5. Raising that density to 1/3 would normalize the continuous part to 1 and then add the point mass again, giving total probability greater than 1.

Question 7 of 10

Independent variables satisfy X∼Bern(0.4) and Y∼Bern(0.7). What is P(X+Y=1)?
  1. 0.28
  2. 0.82
  3. 0.54
  4. 0.46
Show answerHide answer
Answer: C
A total of 1 comes from (X,Y)=(1,0) or (0,1). Independence gives 0.4(0.3)+0.6(0.7)=0.54. The value 0.28 multiplies the two success probabilities, which describes a total of 2; it does not count either way of getting exactly one success.

Question 8 of 10

Independent errors satisfy X∼N(2,9) and Y∼N(−1,16), with variances as second parameters. What is the distribution of X+Y?
  1. N(1,49)
  2. N(1,25)
  3. N(3,25)
  4. N(1,7)
Show answerHide answer
Answer: B
Independent normal variables have a normal sum with added means and variances. Here the mean is 2−1=1 and the variance is 9+16=25. Adding standard deviations gives 3+4=7, whose square is 49, but standard deviations do not add for independent errors.

Question 9 of 10

A density is proportional to x3(1−x)5 on 0<x<1. What beta distribution does it describe?
  1. Beta(4,6)
  2. Beta(3,5)
  3. Beta(6,4)
  4. Beta(5,7)
Show answerHide answer
Answer: A
The beta density has powers a−1 and b−1. Matching them to 3 and 5 gives shapes 4 and 6, respectively. Reading the exponents directly as the shapes would give a different density, proportional to x2(1−x)4, so it would not match the stated model.

Question 10 of 10

An i.i.d. sample is drawn from Unif(0,1). Its maximum M satisfies P(M≤1/2)=1/32. What is P(M>3/4)?
  1. 243/1024
  2. 1/4
  3. 781/1024
  4. 175/256
Show answerHide answer
Answer: C
The maximum CDF is xn, so (1/2)n=1/32 determines n=5. Therefore P(M>3/4)=1−(3/4)5=781/1024. The value 243/1024 is the probability of the complementary event that every observation is at most three quarters; 1/4 treats the maximum as one observation.
Set 2: Track support and connect totals to ranks10 Practice Questions

Save this lesson to see every answer and practice every set.

Question 1 of 10

Let X,Y be independent Unif(0,2) variables. Define U=X+Y and V=X−Y. What is their joint PDF?
  1. 1/2 on 0<u<4, ∣v∣<min⁡(u,4−u), zero elsewhere.
  2. 1/8 on 0<u<4, −2<v<2, zero elsewhere.
  3. 1/4 on 0<u<4, ∣v∣<min⁡(u,4−u), zero elsewhere.
  4. 1/8 on 0<u<4, ∣v∣<min⁡(u,4−u), zero elsewhere.
Show answerHide answer

Save this lesson to see this answer.

Question 2 of 10

For independent X,Y∼Unif(0,1), let T=XY. What is P(T≤1/4)?
  1. 1+ln⁡44
  2. ln⁡44
  3. 14
  4. 1−1+ln⁡44
Show answerHide answer

Save this lesson to see this answer.

Question 3 of 10

The pair (X,Y) has density 2 on 0<y<x<1. Define U=X and V=Y/X. What is P(U<1/2,V<1/2)?
  1. 1/4
  2. 1/8
  3. 1/16
  4. 1/2
Show answerHide answer

Save this lesson to see this answer.

Question 4 of 10

Let X∼Unif(0,2) and Y∼Unif(0,3) independently. What is fX+Y(2.5)?
  1. 5/12
  2. 1/6
  3. 1/3
  4. 1/2
Show answerHide answer

Save this lesson to see this answer.

Question 5 of 10

Independent counts satisfy X∼Pois(1.2) and Y∼Pois(2.3). What is P(X+Y=0)?
  1. e−3.5
  2. e−2.76
  3. e−1.1
  4. 3.5e−3.5
Show answerHide answer

Save this lesson to see this answer.

Question 6 of 10

Let X∼Beta(2,6). What is E[X2]?
  1. 1/16
  2. 1/48
  3. 1/4
  4. 1/12
Show answerHide answer

Save this lesson to see this answer.

Question 7 of 10

A Poisson process has rate 0.5 per minute. What is the probability that the third arrival occurs within 4 minutes?
  1. 5e−2
  2. 1−5e−2
  3. 1−3e−2
  4. 1−e−2
Show answerHide answer

Save this lesson to see this answer.

Question 8 of 10

Independent X,Y have gamma shapes 4 and 7 with the same rate 3. What is the distribution of X/(X+Y)?
  1. Beta(4,11)
  2. Beta(7,4)
  3. Beta(4,7)
  4. Beta(3,6)
Show answerHide answer

Save this lesson to see this answer.

Question 9 of 10

Let U(4) be the fourth smallest of eight independent unit uniforms. What is its distribution?
  1. Beta(4,4)
  2. Beta(5,4)
  3. Beta(4,8)
  4. Beta(4,5)
Show answerHide answer

Save this lesson to see this answer.

Question 10 of 10

Two independent components have exponential lifetimes with rates 0.2 and 0.3 per hour. A system works while at least one component works. What is the probability it lasts beyond 2 hours?
  1. e−1
  2. e−0.4+e−0.6−e−1
  3. 1−e−0.4−e−0.6+e−1
  4. 1−e−1
Show answerHide answer

Save this lesson to see this answer.

Set 3: Choose a method and check its conditions10 Practice Questions

Save this lesson to see every answer and practice every set.

Question 1 of 10

Let X∼Unif(−1,2) and Y=X2. What is the PDF of Y?
  1. 16y for 0<y<1; 16y for 1<y<4; zero elsewhere.
  2. 13y for 0<y<1; 13y for 1<y<4; zero elsewhere.
  3. 13y for 0<y<1; 16y for 1<y<4; zero elsewhere.
  4. 16y for 0<y<1; 13y for 1<y<4; zero elsewhere.
Show answerHide answer

Save this lesson to see this answer.

Question 2 of 10

Let X,Y be independent standard normals. What is P(X2+Y2>6)?
  1. e−6
  2. e−3
  3. e−18
  4. 1−e−3
Show answerHide answer

Save this lesson to see this answer.

Question 3 of 10

Independent waits have X∼Expo(2) and Y∼Expo(5), with rates per minute. What is P(X+Y>1)?
  1. 2e−2−5e−53
  2. 1−5e−2−2e−53
  3. 10e−2−10e−53
  4. 5e−2−2e−53
Show answerHide answer

Save this lesson to see this answer.

Question 4 of 10

Independent Bernoulli variables have success probabilities 0.1 and 0.9. A learner models their sum as Bin(2,0.5) because the means agree. What variance does the actual sum have?
  1. 0.18
  2. 0.50
  3. 0.09
  4. 0.82
Show answerHide answer

Save this lesson to see this answer.

Question 5 of 10

After 5 successes in 8 conditionally independent Bernoulli trials, a beta prior becomes Beta(9,7). What was the prior mean?
  1. 9/16
  2. 5/8
  3. 1/2
  4. 4/7
Show answerHide answer

Save this lesson to see this answer.

Question 6 of 10

What is ∫01x2(1−x)3 dx?
  1. 1/12
  2. 1/20
  3. 1/120
  4. 1/60
Show answerHide answer

Save this lesson to see this answer.

Question 7 of 10

Let Y have gamma shape 4 and rate 3. What is E[1/Y]?
  1. 3/4
  2. 1
  3. 4/3
  4. 1/3
Show answerHide answer

Save this lesson to see this answer.

Question 8 of 10

A positive variable X is gamma with mean 8 minutes and variance 16 minutes squared. Define Y=X/2. What are the shape and rate of Y, measured in minutes?
  1. Shape 4, rate 1 per minute.
  2. Shape 2, rate 1/2 per minute.
  3. Shape 4, rate 1/4 per minute.
  4. Shape 8, rate 1 per minute.
Show answerHide answer

Save this lesson to see this answer.

Question 9 of 10

Let M be the median of three independent unit uniforms. What is P(M≤1/4)?
  1. 1/64
  2. 37/64
  3. 5/32
  4. 1/4
Show answerHide answer

Save this lesson to see this answer.

Question 10 of 10

Two independent exponential clocks have rates 2 and 5 per minute. What is the probability that the rate-5 clock rings first?
  1. 2/7
  2. 5/7
  3. 2/5
  4. 1/2
Show answerHide answer

Save this lesson to see this answer.

Set 4: Combine transformations, updates, and sample extremes10 Practice Questions

Save this lesson to see every answer and practice every set.

Question 1 of 10

Let Z∼N(0,1) and Y=7−3Z. What is the distribution of Y, using variance as the second parameter?
  1. N(7,3)
  2. N(7,−9)
  3. N(7,9)
  4. N(4,9)
Show answerHide answer

Save this lesson to see this answer.

Question 2 of 10

Let X∼Unif(0,2) and Y=e−X. What is FY(y) for e−2<y<1?
  1. 1+ln⁡y2
  2. −ln⁡y2
  3. 1−ln⁡y2
  4. y2
Show answerHide answer

Save this lesson to see this answer.

Question 3 of 10

The joint density of (X,Y) is 2 on x>0,y>0,x+y<1. Define T=X+Y and W=X/(X+Y). What is P(T<1/2,W>1/3)?
  1. 1/3
  2. 1/6
  3. 1/12
  4. 1/4
Show answerHide answer

Save this lesson to see this answer.

Question 4 of 10

A joint PMF assigns probabilities 0.35,0.15,0.15,0.35 to (0,0),(0,1),(1,0),(1,1), respectively. By how much does an independence-based convolution overestimate P(X+Y=1)?
  1. 0.00
  2. 0.30
  3. 0.50
  4. 0.20
Show answerHide answer

Save this lesson to see this answer.

Question 5 of 10

Independent X∼Unif(0,2) and Y∼Unif(0,4) are added. What is P(3<X+Y<5)?
  1. 1/2
  2. 3/8
  3. 7/16
  4. 9/16
Show answerHide answer

Save this lesson to see this answer.

Question 6 of 10

A success probability has prior Beta(3,2). One Bernoulli trial is observed and fails. What is the posterior distribution?
  1. Beta(3,3)
  2. Beta(4,2)
  3. Beta(4,3)
  4. Beta(2,2)
Show answerHide answer

Save this lesson to see this answer.

Question 7 of 10

Independent X,Y have gamma shapes 2 and 4 with common rate 3. Write T=X+Y. What is E[X2∣T=6]?
  1. 4
  2. 36/7
  3. 2/3
  4. 12/7
Show answerHide answer

Save this lesson to see this answer.

Question 8 of 10

Independent gamma variables X,Y have shapes 3 and 5 and common rate 2. With T=X+Y and W=X/T, what is E[TW]?
  1. 3/8
  2. 4
  3. 15/4
  4. 3/2
Show answerHide answer

Save this lesson to see this answer.

Question 9 of 10

Let R be the range of three independent unit uniforms. What is P(R>1/2)?
  1. 1/2
  2. 3/4
  3. 1/4
  4. 1/8
Show answerHide answer

Save this lesson to see this answer.

Question 10 of 10

Four components start together with independent exponential lifetimes of rate 2 per hour. What is the expected time of the second component failure?
  1. 1/6 hour.
  2. 1/4 hour.
  3. 7/24 hour.
  4. 1/8 hour.
Show answerHide answer

Save this lesson to see this answer.

Set 5: Transfer the methods to conditional and linked problems10 Practice Questions

Save this lesson to see every answer and practice every set.

Question 1 of 10

Independent X,Y∼Expo(3) have rates per second. What is P(∣X−Y∣>1)?
  1. e−3/2
  2. 1−e−3
  3. e−3
  4. 2e−3
Show answerHide answer

Save this lesson to see this answer.

Question 2 of 10

Let X∼Beta(5,2). What is the distribution of 1−X?
  1. Beta(5,2)
  2. Beta(1,3)
  3. Beta(3,1)
  4. Beta(2,5)
Show answerHide answer

Save this lesson to see this answer.

Question 3 of 10

A beta prior has mean 1/3. After 8 successes in 12 trials, the posterior mean is 5/9. What is the prior parameter sum a+b?
  1. 3
  2. 6
  3. 9
  4. 12
Show answerHide answer

Save this lesson to see this answer.

Question 4 of 10

What is Γ(7/2)?
  1. 3π/4
  2. 105π/16
  3. 15π/8
  4. 15π/4
Show answerHide answer

Save this lesson to see this answer.

Question 5 of 10

Let X,Y be independent standard normals, with radius R and angle Θ∈[0,2π). What is P(X>0,Y>0∣X2+Y2>4)?
  1. e−2/4
  2. 1/2
  3. e−2/2
  4. 1/4
Show answerHide answer

Save this lesson to see this answer.

Question 6 of 10

A variable X has density 2x on 0<x<1. Let Y=1/X. What is P(Y>2)?
  1. 1/2
  2. 1/4
  3. 3/4
  4. 1/8
Show answerHide answer

Save this lesson to see this answer.

Question 7 of 10

Independent X,Y have gamma shapes 2 and 3 and rates 6 and 2, respectively. What is E[1/(3X+Y)]?
  1. 1/2
  2. 2/5
  3. 2
  4. 1/4
Show answerHide answer

Save this lesson to see this answer.

Question 8 of 10

In a rate-2-per-hour Poisson process, exactly one arrival has occurred by hour 1. Given that information, what is the probability the third arrival occurs after hour 2?
  1. 3e−2
  2. 5e−2
  3. e−2
  4. 1−3e−2
Show answerHide answer

Save this lesson to see this answer.

Question 9 of 10

Independent X∼Expo(2) and Y∼Expo(3) define W=X/(X+Y). What is fW(w) for 0<w<1?
  1. 6/(2+w)2
  2. 6/(3−w)2
  3. 1
  4. 6w/(3−w)2
Show answerHide answer

Save this lesson to see this answer.

Question 10 of 10

For three independent unit uniforms, let m be the minimum and M the median. What is P(m>1/4,M<1/2)?
  1. 9/64
  2. 1/64
  3. 10/64
  4. 7/64
Show answerHide answer

Save this lesson to see this answer.

Stuck on your own question? Homework Help

Key Terms

69 Key Terms, each with its definition

A

Arcsine distribution
The arcsine distribution here is Beta(1/2,1/2), the share formed from two independent standard-normal squares.
The arcsine distribution is U-shaped, with high density near shares 0 and 1 even though it is symmetric.
Arrival time
An arrival time measures elapsed time from the start to a specified event; the n-th Poisson arrival has gamma shape n.
A third arrival time exceeds a threshold exactly when fewer than three events have occurred by that threshold.
Auxiliary variable
An auxiliary variable is an added helper coordinate that makes a transformation invertible before the helper is integrated out.
When transforming a product, keeping the first input as an auxiliary variable makes the second input recoverable.

B

Bank–post office result
The bank–post office result makes the total and first-component share of independent common-rate gamma variables independent.
The bank–post office result separates uncertainty about total waiting time from uncertainty about its division.
Beta distribution
A beta distribution is a continuous distribution on (0,1) whose two positive parameters control the powers at its endpoints.
A beta distribution can represent a fraction concentrated near the middle or near the ends of its possible interval.
Beta function
The beta function is B(a,b)=∫01xa−1(1−x)b−1 dx for positive parameters, normalizing a beta density.
Recognizing a beta function evaluates a polynomial-power integral without expanding every term.
Beta kernel
A beta kernel is an expression proportional to xa−1(1−x)b−1 on (0,1) before its normalizing constant is included.
Reading the powers of a beta kernel identifies the two shapes by adding 1 to each exponent.
Beta–gamma identity
The beta–gamma identity states B(a,b)=Γ(a)Γ(b)/Γ(a+b), connecting the two families’ normalizing constants.
The beta–gamma identity gives B(1/2,1/2)=π from the gamma function’s value at one half.
Binomial tail
A binomial tail adds binomial probabilities above or below a count threshold, giving an order statistic’s CDF when at least a given rank is required.
The binomial tail starting at 3 gives the chance that the third smallest observation is below a chosen cutoff.
Box–Muller method
The Box–Muller method creates two independent standard normals from two independent unit uniforms through radius and angle.
The Box–Muller method takes a square root after transforming a uniform value into a squared radius.

C

CDF method
The CDF method finds a transformed distribution by rewriting its threshold event in terms of the original random variable.
The CDF method turns X2≤y into an interval between two square roots before computing a probability.
Chi-square distribution
A chi-square distribution with n degrees of freedom is the law of the sum of squares of n independent standard normals.
The chi-square distribution is a gamma case with shape n/2 and rate 1/2, linking normal squares to waiting-time algebra.
Closure under sums
Closure under sums means that independent sums remain in a specified distribution family when the stated parameter conditions hold.
Gamma closure under sums requires a common rate, while the shapes of the independent components can differ.
Common rate
A common rate is the same rate parameter for several gamma variables, allowing their shapes to combine under independent addition.
A common rate makes the exponential term depend only on total time in the gamma total–share density.
Compatible pair
A compatible pair consists of two supported input values whose sum equals the specified total in a convolution calculation.
For a Bernoulli sum equal to 1, the compatible pairs are one success and one failure in either order.
Concentration
Concentration describes how tightly values cluster around a location; for a fixed beta mean it increases as the parameter sum grows.
Increasing both beta shapes tenfold at the same ratio raises concentration without moving the mean.
Conjugacy
Conjugacy occurs when a prior and a likelihood produce a posterior in the same distribution family as the prior.
Beta–binomial conjugacy lets the two updated shapes identify the posterior without a new normalization integral.
Continuous convolution
A continuous convolution integrates products of independent component densities over all input values compatible with a total.
Continuous convolution gives a triangular density when two independent unit-uniform values are added.
Convolution index
A convolution index labels the first component value in the sum; the second is fixed by subtracting that value from the total.
The convolution index stops where either component would leave its support, even if the total itself is possible.

D

Discrete convolution
A discrete convolution computes a sum’s PMF by adding products of independent component probabilities over compatible pairs.
A discrete convolution for a total of 3 includes every supported pair whose two values add to 3.

E

Exponential race
An exponential race compares independent exponential clocks; the first ring has rate equal to the sum of the clock rates.
In an exponential race, each clock’s winning probability is its rate divided by the total rate.
Exponential spacing
An exponential spacing is a gap between consecutive exponential order statistics; successive gap rates decrease as clocks finish.
The first exponential spacing among five equal-rate lifetimes has five times the rate of one lifetime.

G

Gamma distribution
A gamma distribution models positive values with density proportional to ya−1e−λy for shape a and rate λ.
An exponential wait is a gamma distribution with shape 1, while later Poisson arrival times have larger integer shapes.
Gamma function
The gamma function is Γ(a)=∫0∞xa−1e−x dx for a>0, extending shifted factorials to nonintegers.
The gamma function evaluates at half-integers by recurring down to Γ(1/2)=π.

I

Image of a support
The image of a support is the set of output points reached when all allowed input points pass through a transformation.
Under sum and difference, the image of a unit-square support is a tilted square in the new coordinates.
Independent copy
An independent copy has the same distribution as the original variable while its outcome is independent of the original outcome.
Adding an independent copy of a Bernoulli count can give 1, while adding that count to itself cannot.
Interarrival time
An interarrival time is the gap between consecutive events; Poisson-process gaps are independent exponentials with the process rate.
Adding three interarrival times gives the third arrival’s time measured from the start of observation.
Inverse branch
An inverse branch recovers one of several possible inputs for an output when a transformation is invertible only on separate pieces.
Squaring a value gives a positive-root inverse branch and a negative-root inverse branch when both signs occur.
Inverse function
An inverse function recovers the original input from a transformed output when the transformation is one-to-one on its domain.
For an exponential transformation, the inverse function is the logarithm, defined only for positive outputs.

J

Jacobian determinant
A Jacobian determinant gives the signed local area scale of a two-dimensional map; its absolute value supplies an area factor.
The inverse Jacobian determinant for sum and difference is negative, but the density factor is its positive magnitude.
Jacobian matrix
A Jacobian matrix collects the first partial derivatives of a vector-valued map, with one row for each output coordinate.
For a two-variable inverse map, the Jacobian matrix has derivatives of the old coordinates with respect to the new ones.
Joint density of order statistics
A joint density of order statistics describes ranked sample values together, retaining their order constraints and original permutations.
For a continuous i.i.d. sample, the joint density of order statistics is n!∏if(xi) on the ordered region.

L

Laplace distribution
A Laplace distribution has an exponential decay on each side of its center; equal-rate independent exponential differences are Laplace.
The Laplace distribution of a difference is symmetric because exchanging the two equal-rate inputs reverses its sign.
Likelihood
A likelihood treats the observed-data probability as a function of the unknown parameter, with the observations held fixed.
For a binomial count, the likelihood contributes success and failure powers to the beta posterior kernel.
Log-normal distribution
A log-normal distribution is the distribution of a positive variable whose logarithm is normally distributed.
Exponentiating a standard normal produces a log-normal variable with mean greater than the exponential of zero.
LOTUS
LOTUS, the law of the unconscious statistician, computes a function’s expectation using the original variable’s distribution.
LOTUS evaluates the mean of a squared measurement without first finding the distribution of its square.

M

Marginalization
Marginalization obtains the distribution of selected variables by summing or integrating the joint distribution over the others.
After introducing total and helper coordinates, marginalization removes the helper over its allowed values.
Memorylessness
Memorylessness means a positive waiting time’s remaining distribution is unchanged after conditioning on survival to an elapsed time.
An exponential gap has memorylessness, but the total time needed for two Poisson arrivals does not.
Mode
A mode is a location where a density reaches a peak; a beta density with both parameters above 1 has mode (a−1)/(a+b−2).
The beta mode need not equal its mean when the two shapes differ, even though both lie inside the unit interval.
Moment generating function
A moment generating function is MX(t)=E[etX]; when finite near zero, it uniquely determines a variable’s distribution.
Multiplying moment generating functions can identify an independent sum without evaluating a convolution integral.
Moment matching
Moment matching chooses model parameters to reproduce specified moments, such as a positive quantity’s mean and variance.
For a gamma model, moment matching uses shape m2/v and rate m/v from mean m and variance v.

O

Order statistic
An order statistic is an observation labeled by its rank after a sample is sorted from smallest to largest.
The second order statistic is the second smallest observation, regardless of which sample index originally produced it.
Overlap limits
The overlap limits bound the input values for which both density factors in a convolution lie within their supports.
For a large total of two bounded variables, the overlap limits narrow as fewer input pairs can reach that total.

P

Point mass
A point mass is positive probability assigned to one exact value, appearing as a jump of that height in the CDF.
An indicator of a positive normal value has a point mass of one half at 1 and another of one half at 0.
Poisson process
A Poisson process has rate-based Poisson counts in time intervals and independent counts in disjoint intervals.
In a rate-4-per-hour Poisson process, a 15-minute interval has a Poisson count with parameter 1.
Polar coordinates
Polar coordinates describe a point by its distance from the origin and its angle, with area element r dr dθ.
Polar coordinates simplify the joint standard normal density because its exponent depends only on squared radius.
Posterior distribution
A posterior distribution describes uncertainty about a parameter after combining its prior distribution with the observed-data likelihood.
A beta posterior distribution increases its first shape for each success and its second shape for each failure.
Prior distribution
A prior distribution describes uncertainty about an unknown parameter before incorporating the observations being analyzed.
A beta prior distribution can favor probabilities near one half before a new sequence of trial results is observed.
Prior sample size
A prior sample size here is the beta parameter sum, which sets the prior mean’s relative weight in the posterior mean.
A larger prior sample size moves the posterior mean less when the same new binomial observations are added.
Probability integral transform
The probability integral transform makes F(X) uniform on (0,1) when X has continuous CDF F.
Applying the probability integral transform to each sample value carries a ranked observation to a beta law.
Product support
A product support allows every combination of one variable’s supported values with the other variable’s supported values.
The radius and angle of a standard normal pair have a product support, unlike a sum–difference pair from unit uniforms.

R

Rate parameter
A rate parameter controls inverse size in exponential and gamma distributions, with larger rates giving shorter typical waits.
A gamma rate parameter measured per minute is divided by 60 when the same waiting time is expressed in seconds.
Rayleigh distribution
The Rayleigh distribution here describes the radius of two independent standard normals, with density re−r2/2 for r>0.
A Rayleigh radius has an exponential square, so the radius and its square require different tail formulas.
Reflection
A reflection replaces a unit-interval variable by its complement; reflecting a beta variable exchanges its two shape parameters.
Reflection turns a distribution for a success proportion into the corresponding distribution for the failure proportion.

S

Sample maximum
The sample maximum is the last order statistic, at least as large as every other observed value in the sample.
The sample maximum is below a threshold exactly when all observations are below that threshold.
Sample median
The sample median for an odd-sized sample is the middle order statistic, with equally many observations on either side.
The sample median of seven independent unit uniforms is the fourth order statistic and has a symmetric beta law.
Sample minimum
The sample minimum is the first order statistic, no larger than any other observed value in the sample.
The sample minimum represents the failure time of a system that needs every component to remain working.
Sample range
The sample range is the difference between the largest and smallest observations, measuring their total spread.
For independent unit uniforms, the sample range has a beta law determined by sample size and remains between 0 and 1.
Scale parameter
A scale parameter multiplies the size of a distribution’s values; gamma scale is the reciprocal of gamma rate.
Gamma scale 2 gives a different mean from gamma rate 2, even when the shape parameter is unchanged.
Shape parameter
A shape parameter changes a distribution’s form; a gamma shape controls the power near zero and the amount of right skew.
With its rate fixed, a larger gamma shape increases the mean as well as changing the density’s shape.
Strictly monotone function
A strictly monotone function always increases or always decreases as its input increases, so different inputs give different outputs.
A reciprocal is strictly monotone on the positive real line and has a negative inverse derivative.
Support
The support describes the values or region where a random variable can occur; a density is zero outside its supporting region.
The support of an exponential waiting time is positive, while the difference of two such waits can take either sign.
Survival function
A survival function is S(x)=P(X>x)=1−F(x), giving the probability that a value exceeds a threshold.
Multiplying independent survival functions gives the survival function of their minimum lifetime.

T

Total–share transformation
A total–share transformation replaces positive inputs by their sum and one input’s fraction of that sum, with inverse factor t.
The total–share transformation reconstructs the original values as tw and t(1−w) on its product support.
Transformation
A transformation applies a fixed function to a random variable to create a new random variable with its own distribution.
Squaring a signed measurement is a transformation that maps both signs to the same nonnegative output.
Triangular density
A triangular density rises linearly to a peak and falls linearly to zero; the sum of two independent unit uniforms is an example.
The triangular density for a unit-uniform sum assigns more density near total 1 than near either endpoint.

U

Uncorrelated variables
Uncorrelated variables have covariance zero, indicating no linear covariance while still allowing other forms of dependence.
The sum and difference of independent unit uniforms are uncorrelated variables with a coupled support.
Uniform order statistic
A uniform order statistic is a ranked value from a uniform sample; rank j of n independent unit uniforms has law Beta(j,n−j+1).
A uniform order statistic has mean j/(n+1), reflecting the equal expected lengths of the sample’s endpoint and interior gaps.

V

Variance addition
Variance addition gives the variance of a sum as the sum of variances when the component variables have zero covariance.
Variance addition applies to independent normal lengths; their standard deviations must be combined through squares.

About this lesson

By StudeliReport a mistake

Make your own Study Materials

Turn your notes, slides and documents into Study Guides, Practice Questions, Flashcards and 6 more tools.

Get Started