Expectation and Variance

Expectation, Variance and Moments

Learn to summarize a random variable with numbers. Compute expected values, use linearity and indicator variables to solve counting problems that look hard, and find expectations of functions without deriving new distributions. Measure spread with variance and standard deviation, describe shape with skewness and kurtosis, and use moment generating functions to find moments and the distributions of sums of independent random variables.

IntermediateLesson 3 of 9 in Probability Theory Course

What you will learn

  1. Find the mean of a random variable from its distribution, add expectations even when the variables are dependent, and find the expectation of a function of a random variable with LOTUS.
    • Find the expected value of a random variable
      Define the expected value as a probability-weighted average, compute it for discrete and continuous random variables, and recognize when it does not exist.
    • Use linearity of expectation
      Add and scale expectations without knowing joint behavior, derive the means of the binomial, geometric and negative binomial distributions, and avoid applying linearity to products or nonlinear functions.
    • Find expectations of functions with LOTUS
      Use the law of the unconscious statistician to find E(g(X)) directly from the distribution of X, and see why E(g(X)) usually differs from g(E(X)).
  2. Turn probabilities into expectations with indicator variables, then find the expected number of matches, collisions, empty boxes or records by adding simple indicators.
    • Work with indicator variables and the fundamental bridge
      Define the indicator of an event, use its algebra and the fundamental bridge E(IA)=P(A), and find means with the tail-sum formula.
    • Find expected counts by splitting into indicators
      Write a count as a sum of indicators and add their probabilities to solve matching, birthday, occupancy, coupon-collector and record problems, and use an expectation to prove that a good outcome exists.
  3. Compute variances and standard deviations, apply the rules for scaled and summed variables, derive the means and variances of the standard distributions, and find variances of counts with pairs of indicators.
    • Define and compute variance and standard deviation
      Define the variance as the mean squared distance from the mean, compute it with the shortcut formula, and read it in the correct units.
    • Apply the rules for variances of scaled and summed variables
      Find the variance after a change of scale or location, add variances of independent variables, and use these rules for sample means and standardized variables.
    • Derive the means and variances of standard distributions
      Know and derive the mean and variance of the Bernoulli, binomial, discrete uniform, Poisson, geometric, negative binomial, hypergeometric, uniform, exponential and normal distributions.
    • Find variances of counts with pairs of indicators
      Find the variance of a count of dependent events by counting pairs of events that both occur, and apply it to the hypergeometric, matching and occupancy problems.
  4. Summarize a distribution by its moments, center and spread, and measure its asymmetry and tail weight with skewness and kurtosis.
    • Summarize distributions with moments, medians and modes
      Define raw, central and standardized moments, know when they exist, and compare the mean with the median and mode as measures of center.
    • Measure skewness and kurtosis
      Compute and interpret skewness as a measure of asymmetry and kurtosis as a measure of tail weight, and keep the kurtosis conventions apart.
  5. Find moment generating functions, extract moments from them, and use them to identify distributions and the distributions of sums of independent random variables.
    • Define and find moment generating functions
      Define the moment generating function, compute it for standard discrete and continuous distributions, transform it under a change of location and scale, and recognize when it does not exist.
    • Generate moments from an MGF
      Get moments from the derivatives of an MGF at zero or from its Taylor series, and get the mean and variance from the logarithm of the MGF.
    • Identify distributions and sums with MGFs
      Use the uniqueness of MGFs to recognize distributions, and multiply MGFs to find the distribution of a sum of independent random variables.

Expectation and Variance study guide

5 chapters

1

Find averages without finding new distributions

Expectation turns a distribution into one number: its probability-weighted center. You can calculate it from a sum or an integral, but many problems become easier when you split a variable into pieces. Linearity handles sums even when the pieces depend on each other. For a square, a reciprocal or another function, LOTUS keeps the original distribution as the weights and changes the values you average.

1.1 Compute a probability-weighted mean

An expected value is the average built into a probability distribution. It is a fixed number, even though the random variable can take different values. Think of probabilities as weights placed at the possible values: the mean is their balance point.

Weight each value by its probability

For a discrete random variable,

E(X)=∑xxP(X=x).

A spinner gives 0, 2 and 10 points with probabilities 0.5, 0.3 and 0.2. Its mean is

E(X)=0(0.5)+2(0.3)+10(0.2)=0+0.6+2=2.6.

The unweighted average, 4, gives each value one third of the weight and answers a different question. If a spin costs 3 points, the mean net gain is 2.6 minus 3, or −0.4 points.

For a fair die, equal weights give E(X)=21/6=3.5. No face shows 3.5. The expected value describes the average over many repetitions, not the next result or the most likely result. A Bernoulli variable with success probability 0.1 has mean 0.1 even though its only values are 0 and 1.

Replace a sum by an integral

For a continuous variable with density f,

E(X)=∫−∞∞xf(x) dx.

For X∼Unif(a,b), integrating x/(b−a) from a to b gives (a+b)/2. For an exponential waiting time of rate λ,

E(X)=∫0∞xλe−λx dx=[−xe−λx]0∞+∫0∞e−λx dx=1λ.

The boundary term is zero. A rate of 0.5 per minute therefore gives a mean wait of 2 minutes.

Check that the average exists

A finite mean requires E(∣X∣)<∞: the sum or integral of absolute values must converge. For the PMF P(X=k)=1/[k(k+1)] on positive integers, probabilities sum to 1 because 1/[k(k+1)]=1/k−1/(k+1). But

E(X)=∑k≥11k+1=∞.

In the St. Petersburg game, a prize of 2k points has probability 2−k for each positive integer k. Every prize contributes 1 to the mean, so the expected prize is infinite. A nonnegative variable can have a finite mean or positive infinite expectation. With both signs, if the positive and negative parts each have infinite expectation, the mean is undefined; subtracting the infinities is invalid. The Cauchy distribution is symmetric about zero but has no mean.

Use properties that save calculation

When a mean exists, symmetry about c gives E(X)=c. Thus a Bin(n,1/2) variable has mean n/2. Equal distributions have equal means, so a die roll and 7 minus that roll both have mean 3.5.

A constant has its own value as its mean. If X≥Y with probability 1, then E(X)≥E(Y) whenever these expectations are defined. For a nonnegative variable, mean zero forces the variable to be zero with probability 1.

Key Takeaways

  • Use probabilities as weights; a mean need not be a possible value.
  • A continuous mean is the integral of value times density.
  • A finite mean requires a finite absolute expectation.
  • Symmetry identifies an existing mean but cannot create one.
  • Expectation preserves order whenever the expectations are defined.

1.2 Add and scale expectations

You often need the average total, not the full distribution of that total. Linearity of expectation lets you work with the pieces separately. Dependence between the pieces does not block this method.

The rule and its reason

For finite means and fixed constants,

E(aX+bY+c)=aE(X)+bE(Y)+c.

On a countable sample space, each outcome s has one probability. Expanding the definition gives

E(X+Y)=∑s[X(s)+Y(s)]P({s})=E(X)+E(Y).

Both values are weighted by the same outcome probability. There is no step that factors a joint probability, so independence is unnecessary. Repeating this argument handles any finite sum.

Two dice have expected total 3.5+3.5=7. The same rule works for the dependent pair Y=7−X built from one die: the sum is always 7. If E(X)=4, a score 3X−2 has mean 3(4)−2=10.

Derive a binomial mean

Write the success count as X=I1+⋯+In, where each Ij is 1 for success and 0 for failure. Each indicator has mean p, so

E(X)=∑j=1np=np.

For 20 trials with success probability 0.3, the mean count is 6. Independence belongs to the binomial model, but this mean calculation only needs each trial's success probability. Dependent events with those same individual probabilities have the same expected count.

Say what a geometric variable counts

Let q=1−p in repeated independent trials with constant success probability p>0.

CountPossible valuesPMFMean
Failures before first success0,1,2,…qkpq/p
Trials through first success1,2,3,…qk−1p1/p

To derive the failures mean, differentiate ∑k≥0qk=1/(1−q). This gives ∑k≥1kqk−1=1/(1−q)2. Multiplying by pq yields E(X)=pq/(1−q)2=q/p. The trials count is one more, giving q/p+1=1/p.

A first six takes 6 rolls on average, including the successful roll, or 5 failures before it. For the failures before the r-th success, split the wait into r geometric blocks. Linearity gives rq/p failures, or r/p total trials. Three sixes take 18 rolls on average.

Keep nonlinear operations separate

Linearity handles addition and constant scaling. Squaring, multiplication and reciprocals require more information:

E(X2)≠[E(X)]2in general.

For a die, E(X2)=91/6, about 15.17, while the squared mean is 12.25. Also E(1/X)=49/120, about 0.408, whereas 1/E(X)=2/7, about 0.286. Independent variables with finite means satisfy E(XY)=E(X)E(Y); dependence can break that equality.

For an infinite sum of nonnegative variables, expectations also add, with the total allowed to be infinite. Signed infinite sums need convergence justification before interchanging a sum and an expectation.

Key Takeaways

  • Linearity applies to finite sums with finite means, including dependent variables.
  • A binomial mean is the sum of its trial indicators’ means.
  • A geometric mean depends on whether failures or total trials are counted.
  • Negative binomial waiting times split into geometric blocks.
  • Products and nonlinear functions do not follow the linearity rule.
  • Infinite nonnegative sums can have infinite expectations.

1.3 Average functions directly with LOTUS

Suppose the reward is a function of a random outcome. You already know the probabilities of the original outcome; you can keep those weights and change only the values being averaged. This is the law of the unconscious statistician, or LOTUS.

Apply the function before averaging

For a discrete variable,

E(g(X))=∑xg(x)P(X=x).

For a continuous variable with density f,

E(g(X))=∫−∞∞g(x)f(x) dx.

For a die roll, let g(x)=(x−3)2. The six transformed values are 4, 1, 0, 1, 4 and 9, so E(g(X))=19/6. If you first found the distribution of the reward, values 1 and 4 would each have probability 2/6. LOTUS gives the same result without building that new table.

The reason is grouping: all original values with g(x)=y contribute to P(g(X)=y). Summing over original values or grouping them by their common output makes no difference to the final weighted total. While summing over original values, use P(X=x). Weighting each of the two inputs that produce 4 by 2/6 would count that output twice.

Work with powers and continuous functions

Taking g(x)=x2 gives the second raw moment, E(X2). For a die it is 91/6, which differs from [E(X)]2=49/4. For U∼Unif(0,1), the density is 1 on the unit interval:

E(U2)=∫01u2 du=13,E(U)=∫01u1/2 du=23.

Similarly, E(eU)=∫01eu du=e−1. Substituting the mean into the function would instead give e1/2, a different number. The operation “apply the function” generally cannot be moved outside expectation.

Use the function to simplify a series

For X∼Pois(λ) with λ>0,

E(1X+1)=∑k≥0e−λλk(k+1)!=e−λλ(eλ−1)=1−e−λλ.

The factorial combines with k+1, and shifting the exponential series finishes the sum. At rate 2 this is about 0.432, not the reciprocal of the mean plus one, which is 1/3.

Another useful choice is g(x)=x(x−1). For a Poisson variable, k(k−1)/k!=1/(k−2)!, so reindexing gives E(X(X−1))=λ2. Since X2=X(X−1)+X, its second moment is λ2+λ.

Check the transformed expectation

Finite E(g(X)) requires E(∣g(X)∣)<∞. It can exist even when the original mean is infinite. For P(X=k)=1/[k(k+1)], the terms in E(X) behave like k−3/2 and sum to a finite value.

If g is the function that equals 1 on a set B and 0 outside it, LOTUS gives E(g(X))=P(X∈B). An event probability is thus an expectation of a zero-or-one function.

Key Takeaways

  • LOTUS averages transformed values using the original probabilities or density.
  • Repeated outputs need no separate distribution table.
  • The second raw moment is the expectation of the square.
  • Choose factorial powers when they cancel factors in a PMF.
  • Check absolute integrability of the transformed variable.
2

Turn counts into sums of simple events

A count can have a difficult distribution and a simple mean. The useful move is to assign a zero-or-one variable to each event being counted, then add its probability. This connects event algebra to expectation and handles dependent events cleanly. The same habit of splitting a total also helps with waiting times: collecting new types becomes a sequence of smaller waits with changing success probabilities.

2.1 Connect indicators, probabilities and tails

An indicator records whether one event occurs. For an event A, the random variable IA equals 1 on outcomes in A and 0 on all other outcomes. The event is a set; the indicator is a numerical function of the outcome.

Cross the bridge from probability to expectation

An indicator has a Bernoulli distribution with success probability P(A). Its mean is

E(IA)=1P(A)+0P(Ac)=P(A).

This fundamental bridge lets expectation methods solve probability problems. If X counts which of n events occur, then X=IA1+⋯+IAn and

E(X)=∑j=1nP(Aj).

If all event probabilities equal p, the answer is np. The events can overlap or depend on one another.

Translate event operations into algebra
Event or operationIndicator identity
The event againIA2=IA
Both eventsIA∩B=IAIB
The complementIAc=1−IA
At least one eventIA∪B=IA+IB−IAIB

To check the union identity, consider an outcome where both events occur: the right side is 1+1−1=1. Without the product subtraction, the count would be 2. Taking expectations gives the familiar union probability formula with P(A∩B) subtracted.

For several events, none occurs exactly when all their complement indicators equal 1:

1−IA1∪⋯∪An=∏j=1n(1−IAj).

Expand the product and take expectations to obtain inclusion–exclusion: add single-event probabilities, subtract pair intersections, add triple intersections, and continue with alternating signs. Independence is not needed for these identities. In particular, E(IAIB)=P(A∩B); replacing that intersection by P(A)P(B) requires independent events.

Count how many integer thresholds are crossed

A nonnegative integer value X crosses exactly X thresholds in the list 0,1,2,…. Therefore

X=∑n=0∞I(X>n),E(X)=∑n=0∞P(X>n).

If X=3, precisely the tests X>0, X>1 and X>2 succeed. Starting the sum at 1 while keeping the strict inequality would miss a contribution. An equivalent form is ∑n=1∞P(X≥n).

For the trials through a first six, P(X>n)=(5/6)n: all first n rolls must fail. The geometric series gives E(X)=1/(1−5/6)=6.

For any nonnegative continuous variable, the corresponding tail integral is

E(X)=∫0∞P(X>x) dx.

An exponential variable has tail probability e−λx, so integrating the tail gives 1/λ directly. Both tail formulas allow an infinite expectation because all their contributions are nonnegative.

Key Takeaways

  • An indicator has mean equal to its event probability.
  • Products represent intersections; a sum of indicators counts occurrences.
  • Indicator algebra gives inclusion–exclusion without independence.
  • The integer tail sum starts at zero for strict exceedances.
  • A nonnegative continuous mean is the area under its tail probability.

2.2 Choose what to count once

To find an expected count, define exactly which objects contribute one unit. Choose one indicator per object, find its success probability, and add. A good choice avoids finding the distribution of the whole count.

Matches and draws

Shuffle n cards labeled 1 through n uniformly. Card j occupies its own position with probability 1/n. The number of matches is a sum of n indicators, so its mean is n(1/n)=1. A match at one position changes what can happen elsewhere, but this does not affect linearity.

For n draws without replacement from w white and b black balls, define an indicator for each draw being white. Every draw has marginal probability w/(w+b) of being white. Thus the mean white count is nw/(w+b). Four draws from 4 white and 6 black balls give 1.6 expected white balls.

Pairs, distinct categories and empty boxes

A birthday count can mean different things. Under independent, equally likely birthdays on 365 days, a fixed pair matches with probability 1/365. Among 30 people, the 435 unordered pairs have expected matching count 435/365≈1.19. That count is not the probability that at least one pair matches: several pairs can match in one group.

For the number of distinct birthdays, put an indicator on each day instead. A day is absent with probability (364/365)30, so the mean distinct count is

365[1−(364/365)30]≈28.84.

With 10 balls independently choosing among 5 boxes uniformly, a given box is empty when every ball avoids it. Its probability is (4/5)10, giving expected empty count 5(4/5)10≈0.537. Here the objects counted are boxes, not balls.

Split a collection time into stages

For n equally likely coupon types in independent draws, let Tj be the trials needed for a new type after j−1 distinct types have been collected. The success probability is (n−j+1)/n, so its trials-geometric mean is n/(n−j+1). Adding the stage means gives

E(T)=n(1+12+⋯+1n)=nHn.

The last missing type takes n draws on average; the first takes only one. Seeing all six die faces has mean 6H6=14.7 rolls. These summands are waiting times, not indicators.

Records and an existence argument

In a uniformly random ordering of n distinct numbers, position j is a new maximum with probability 1/j. Each of the first j numbers is equally likely to be their largest. Adding record indicators gives mean Hn, about 2.93 for 10 numbers.

A finite expectation also guarantees some outcome at least as large as the mean and some outcome at most as large. For a network with m links between distinct nodes, independently give each node one of two equally likely colors. Each link crosses colors with probability 1/2, so the mean number of crossing links is m/2. Some coloring must have at least that many crossing links; otherwise the average could not reach m/2.

Key Takeaways

  • Define indicators so that each counted object appears exactly once.
  • Expected matches in a uniform permutation equal one.
  • Pair counts and distinct-category counts need different indicators.
  • Coupon collection splits into geometric waiting stages.
  • Record probabilities are reciprocal position numbers.
  • A finite mean guarantees an outcome at least as large as that mean.
3

Calculate spread and track how it changes

Two distributions can share a mean while giving very different ranges of results. Variance measures squared distance from that mean; standard deviation puts spread back in the original units. Squaring makes changes of scale and sums behave differently from expectations. Independent pieces have additive variances, while dependent counts need information about pairs of events occurring together.

3.1 Measure squared distance from the mean

A mean locates a distribution's center, but it does not tell you how widely the values spread. Variance averages squared deviations from that center. Squaring prevents positive and negative deviations from canceling.

Define variance and standard deviation

With μ=E(X),

Var⁡(X)=E((X−μ)2),SD⁡(X)=Var⁡(X).

Variance is nonnegative. It equals zero exactly when the variable is constant with probability 1. A finite second moment guarantees a finite mean and a finite variance.

Expanding the square gives a convenient calculation:

E(X2−2μX+μ2)=E(X2)−2μ2+μ2=E(X2)−μ2.

The shortcut formula uses two averages: the mean of the squares and the square of the mean. They are different quantities.

Calculate both moments before subtracting

For a fair die, E(X)=7/2 and E(X2)=91/6. Hence

Var⁡(X)=916−494=182−14712=3512.

The SD is 35/12≈1.71. Taking a square root of each face first would describe a transformed variable, not the spread of the die.

For the spinner with values 0, 2 and 10 and probabilities 0.5, 0.3 and 0.2, the mean is 2.6. Weight the squared values to get

E(X2)=0(0.5)+4(0.3)+100(0.2)=21.2.

Subtract 2.62=6.76 to get variance 14.44 and SD 3.8 points. The large prize has a strong effect because its deviation is squared.

Use the structure of the distribution

For a Bernoulli variable, X2=X, so both E(X2) and E(X) equal p. Its variance is p−p2=p(1−p). Writing this as 1/4−(p−1/2)2 shows that the largest variance is 1/4, attained at success probability 1/2.

For U∼Unif(0,1), LOTUS gives E(U2)=1/3, while [E(U)]2=1/4. The variance is 1/12. Any computed negative variance signals a calculation problem: a mean of squared deviations cannot be negative.

Keep the units attached

Variance has squared units; SD has the same units as the variable. A length SD of 0.05 m corresponds to variance 0.0025 square meters. In centimeters those become SD 5 cm and variance 25 square centimeters. The same physical spread has different numerical values after conversion.

Choose a constant prediction

For any constant guess c, write X−c=(X−μ)+(μ−c) and expand. The cross term has mean zero because E(X−μ)=0. Therefore

E((X−c)2)=Var⁡(X)+(μ−c)2.

The second term is smallest at c=μ. Thus the mean is the best constant guess under squared error, and the minimum error is the variance. Guessing 3 for a die gives 35/12+1/4=19/6, larger than the error from guessing 3.5.

Key Takeaways

  • Variance is the mean squared deviation from the mean.
  • Compute the mean of squares separately from the squared mean.
  • Standard deviation is the square root of variance.
  • Variance has squared units; SD has the original units.
  • The mean minimizes expected squared error.

3.2 Scale variables and combine independent errors

Changing a variable's location moves its whole distribution. Changing its scale stretches or reflects its deviations. These two changes have different effects on spread, even though expectation handles both linearly.

Shift and scale

For constants a,b,

Var⁡(aX+b)=a2Var⁡(X),SD⁡(aX+b)=∣a∣SD⁡(X).

Subtracting the new mean leaves a(X−E(X)), so squared deviations acquire the factor a2. The shift cancels. A reflection changes the signs of deviations, not their squared sizes. Converting meters to centimeters multiplies SD by 100 and variance by 10,000.

Find the extra term in a sum

For variables with finite second moments, expansion gives

Var⁡(X+Y)=Var⁡(X)+Var⁡(Y)+2[E(XY)−E(X)E(Y)].

Independence gives E(XY)=E(X)E(Y) and removes the last term. Thus independent variances add. For a difference, the coefficient on Y is −1 and its square is 1, so independent variances still add:

Var⁡(X−Y)=Var⁡(X)+Var⁡(Y).

Subtracting one noisy measurement from another does not subtract away its uncertainty.

Distinguish one variable from independent copies
Construction from fair diceVariance
Twice one roll, 2X4(35/12)=35/3
Two independent rolls, X1+X22(35/12)=35/6
Independent difference, X1−X235/6

The SD of the independent sum is 35/6≈2.42, not the sum of the two individual SDs. For a dependent extreme, Y=−X makes X+Y=0, with zero variance. You cannot add the two variances in that case.

Average independent observations

For independent and identically distributed observations with mean μ and variance σ2,

Xˉ=1n∑iXi,E(Xˉ)=μ,Var⁡(Xˉ)=σ2n.

First add the variances to get nσ2, then multiply by 1/n2 for the average. Its SD is σ/n. With individual SD 10 and 25 observations, the average has SD 2. A binomial count uses the same sum rule: 20 independent Bernoulli trials at probability 0.3 have variance 20(0.3)(0.7)=4.2.

The sample variance estimates the individual variance:

S2=1n−1∑i(Xi−Xˉ)2,E(S2)=σ2(n≥2).

Indeed, the numerator equals ∑i(Xi−μ)2−n(Xˉ−μ)2. Its expectation is nσ2−σ2=(n−1)σ2, explaining the denominator.

Standardize

For positive SD, Z=(X−μ)/σ has mean zero and variance one. It measures signed distance from the mean in SD units. This transformation does not make an arbitrary distribution normal; it changes center and scale.

Key Takeaways

  • A shift preserves variance; a scale factor is squared.
  • Independent sums and differences have additive variances.
  • Standard deviations must be combined through variances.
  • Twice one variable has different spread from two independent copies.
  • An i.i.d. sample mean has variance equal to individual variance divided by sample size.
  • The denominator n − 1 makes the sample variance unbiased.
  • Standardization sets mean zero and variance one, not distribution shape.

3.3 Derive and recognize standard means and variances

A formula is easier to remember when you know which structure produces it. Use indicators for sums of trials, factorial moments for factorial PMFs, and integrals for simple densities. Throughout, q=1−p.

Discrete reference values
Distribution and countMeanVariance
Bernoullippq
Binomial, n trialsnpnpq
Uniform on 1,…,n(n+1)/2(n2−1)/12
Poissonλλ
Geometric failuresq/pq/p2
Geometric trials1/pq/p2
Negative binomial failuresrq/prq/p2
Negative binomial trialsr/prq/p2

For a uniform integer variable, use ∑k=n(n+1)/2 and ∑k2=n(n+1)(2n+1)/6. Divide each by n, then subtract the squared mean to obtain (n2−1)/12.

For a Poisson variable, cancel k against k! to get E(X)=λ. Canceling k(k−1) gives E(X(X−1))=λ2, so E(X2)=λ2+λ and variance λ. A count modeled as Poisson with mean 4 has variance 4 and SD 2. Equal mean and variance alone do not identify a Poisson distribution.

Derive geometric spread and extend it

For geometric failures, differentiating the geometric series twice gives

E(X(X−1))=pq22(1−q)3=2q2p2.

Add E(X)=q/p to obtain the second moment, then subtract q2/p2. The result simplifies to q/p2. Adding one to count trials leaves variance unchanged. A first six has variance 30; the trials through three sixes have mean 18 and variance 90, because three independent waiting blocks add.

For draws without replacement from N>1 objects with w marked ones, the marked count in n draws has

E(X)=nwN,Var⁡(X)=nwN(1−wN)N−nN−1.

The final factor is the finite population correction. A complete sample has zero count variance because every marked object is then included.

Continuous reference values
DistributionMeanVariance
Uniform on (a,b)(a+b)/2(b−a)2/12
Exponential, rate λ1/λ1/λ2
Normal N(μ,σ2)μσ2

Integrating x2/(b−a) gives (a2+ab+b2)/3; subtracting (a+b)2/4 gives the uniform variance. Two integrations by parts give exponential second moment 2/λ2, so variance is 1/λ2. For the standard normal density ϕ, ϕ′(z)=−zϕ(z). Integration by parts gives ∫z2ϕ(z) dz=1, and symmetry gives mean zero. Scaling Z to μ+σZ produces the normal parameters.

Coupon collection uses independent trials-geometric stages with pj=(n−j+1)/n. Add qj/pj2 for their variances. For six die faces, the total variance is 38.99 and SD is about 6.24 rolls.

Key Takeaways

  • Binomial and negative binomial formulas come from independent pieces.
  • Factorial moments simplify the Poisson second moment.
  • Both geometric conventions have the same variance.
  • Without-replacement counts need the finite population correction.
  • Exponential rate is the reciprocal of its mean.
  • The second normal parameter is variance.

3.4 Get count variance from pairs of events

An expected count needs individual event probabilities. Its variance also depends on which events occur together. Pair indicators provide that information without requiring the entire count distribution.

Square the count

Write X=∑j=1nIj. Since Ij2=Ij,

X2=∑jIj+2∑i<jIiIj.

The second sum counts unordered pairs of occurring events:

(X2)=X(X−1)2=∑i<jIiIj.

Thus E(X2)=∑i<jP(Ai∩Aj). Recover the second moment and variance by

E(X2)=E(X)+2E(X2), Var⁡(X)=E(X)+2E(X2)−[E(X)]2.

The factor of 2 belongs to unordered pairs. Using ordered pairs and multiplying by 2 again doubles their contribution incorrectly.

Draw without replacement

Draw 4 balls from 4 white and 6 black balls. Let X count white draws. Its mean is 1.6. For any two draw positions, the chance both are white is

41039=215.

There are (42)=6 pairs, so E(X2)=6(2/15)=0.8. Then E(X2)=1.6+2(0.8)=3.2 and variance is 3.2−1.62=0.64. Using the independent-trial variance would give 0.96 and ignore depletion of white balls.

Match cards to their own positions

In a uniform permutation of n≥2 labeled cards, a chosen pair of cards both match their positions with probability 1/[n(n−1)]. One match has probability 1/n; after fixing it, the other has probability 1/(n−1). Therefore

E(X2)=n(n−1)21n(n−1)=12.

Since E(X)=1, the second moment is 2 and variance is 1. The separate case n=1 has a certain match and variance zero.

Count empty boxes

With 10 independent balls choosing uniformly among 5 boxes, a box is empty with probability (4/5)10. Two specified boxes are both empty when every ball chooses among the other three, with probability (3/5)10. Set m=5(4/5)10. The variance is

m+2(52)(3/5)10−m2≈0.370.

Keep m unrounded until the last calculation.

Compare with independent indicators

If all n single-event probabilities are p and every pair probability is p2, the formula becomes

np+n(n−1)p2−n2p2=np(1−p).

Larger pair probabilities increase variance above this benchmark; smaller ones reduce it.

Key Takeaways

  • The second moment of a count includes single events and pairs.
  • Add each unordered pair probability once, then multiply by two.
  • Recover variance by subtracting the squared mean.
  • Pair probabilities capture the dependence needed for count variance.
4

Describe center and shape with moments

A distribution has more to describe than its mean and variance. Powers of the variable summarize distances from zero, while powers of centered and standardized values describe spread and shape. Medians and modes answer different questions about center. Skewness and kurtosis add information about asymmetry and extreme deviations, but a single shape number cannot replace the whole distribution.

4.1 Choose the center and the type of moment

A moment is an expectation of a power. The place you measure from, and whether you divide by SD, determine what the moment describes. These choices keep information about location separate from information about spread and shape.

Raw, central and standardized moments

For mean μ and positive SD σ:

Moment typeFormulaReference point
Raw, order kE(Xk)Zero
Central, order kE((X−μ)k)The mean
Standardized, order kE(((X−μ)/σ)k)The mean, in SD units

The first raw moment is the mean. The second central moment is variance. The first central moment is zero, and the second standardized moment is one.

Expand powers before taking expectations to convert raw moments into central moments:

E((X−μ)3)=E(X3)−3μE(X2)+2μ3, E((X−μ)4)=E(X4)−4μE(X3)+6μ2E(X2)−3μ4.

The constants simplify because E(X)=μ. These formulas save work when raw moments are already known.

Check existence in order

A finite order-k moment requires E(∣X∣k)<∞. This guarantees every lower-order moment: for j≤k, ∣x∣j≤1+∣x∣k. It does not guarantee higher moments. A PMF proportional to 1/k3 on positive integers has a finite mean because its mean series behaves like ∑1/k2, but its second-moment series behaves like the divergent ∑1/k. It has no finite variance.

Compare three meanings of center

A median is a number m satisfying both P(X≤m)≥1/2 and P(X≥m)≥1/2. A mode maximizes the PMF or density. Neither must be unique. For a fair die, every number in [3,4] is a median, and all six faces are modes; its mean is 3.5.

For X∼Expo(1), the mean is 1. Solving 1−e−m=1/2 gives median ln⁡2≈0.693. The usual density on [0,∞) is largest at 0, its mode. The right tail pulls the mean above the median in this example. That ordering is not a universal test for right skew.

Squared-error loss is minimized by the mean, since E((X−c)2)=Var⁡(X)+(μ−c)2. Expected absolute error is minimized by a median when this loss is finite. It penalizes distance without squaring, so far-away values have less influence on the best constant guess.

Use symmetry and samples

For a distribution symmetric about its mean, opposite centered values cancel in every existing odd central moment. Even powers add instead. The existence condition matters: symmetric heavy tails can still prevent the required moment from being finite.

The sample counterpart of a raw moment is n−1∑iXik. For i.i.d. observations with a finite order-k moment, linearity gives its expectation as E(Xk). This is an unbiased estimate of that raw moment; centering observations on their sample mean changes the calculation.

Key Takeaways

  • Raw moments measure from zero; central moments measure from the mean.
  • Standardized moments use SD units and require positive finite SD.
  • Finite higher moments guarantee lower moments, not the reverse.
  • Medians and modes can be nonunique and need not equal the mean.
  • Symmetry makes existing odd central moments zero.
  • A sample raw moment has expectation equal to the population raw moment.

4.2 Calculate skewness and distinguish kurtosis conventions

Standardizing removes location and units, letting shape measurements compare distributions on a common scale. Let Z=(X−μ)/σ, with positive finite SD. The relevant third or fourth moments must also be finite.

Skewness weights signed deviations

Skewness is E(Z3)=E((X−μ)3)/σ3. Cubing keeps the sign while emphasizing large deviations. Positive skewness reflects a longer or heavier right tail; negative skewness reflects a longer or heavier left tail. Positive scaling and shifting preserve skewness, while negative scaling reverses its sign.

For X∼Bern(p), write q=1−p. The centered third moment is

pq3+q(−p)3=pq(q−p).

Dividing by (pq)3/2 gives skewness (q−p)/pq. At p=0.1 this is 0.8/0.3≈2.67: the rare success lies far above the mean.

Normal and uniform distributions have skewness zero. Exponential skewness is 2 at every positive rate; Poisson skewness is 1/λ; binomial skewness is (q−p)/npq when 0<p<1. Symmetry makes skewness zero, but the reverse fails. Values −3, −1 and 2 with probabilities 0.1, 0.5 and 0.4 have mean zero and third moment −2.7−0.5+3.2=0, despite lacking symmetry.

State which kurtosis you mean
NameFormulaNormal reference
KurtosisE(Z4)3
Excess kurtosisE(Z4)−30

The fourth power is nonnegative and gives far standardized deviations great weight. It describes tail weight and sensitivity to extreme values, not the height of the density's peak.

For X∼Expo(1), raw moments are E(Xk)=k! and mean and SD are both 1. Expanding gives third central moment 6−3(2)+2=2 and fourth central moment 24−4(6)+6(2)−3=9. Thus skewness is 2, kurtosis is 9, and excess kurtosis is 6.

Other excess-kurtosis values include Poisson 1/λ, continuous uniform −6/5, a fair die about −1.27, and Bern(1/2) equal to −2. The lower bound follows from

0≤Var⁡(Z2)=E(Z4)−[E(Z2)]2=E(Z4)−1.

Therefore kurtosis is at least 1 and excess kurtosis at least −2.

Interpret the fourth power carefully

High kurtosis need not mean a larger chance of exceeding every fixed threshold. A variable with values −10, 0 and 10 and probabilities 0.005, 0.99 and 0.005 has mean zero, SD one and kurtosis 100. Yet its probability of absolute value above 2 is only 0.01, below the standard normal value of about 0.0455. Rare but very distant values drive its fourth moment.

Center before taking powers, and divide by σ3 or σ4. Raw third and fourth moments generally still reflect the choice of origin and units. Subtract 3 only when reporting the excess convention.

Key Takeaways

  • Skewness is the third standardized moment; reflection changes its sign.
  • Zero skewness can occur without symmetry.
  • Kurtosis is the fourth standardized moment; excess subtracts three.
  • Far standardized deviations dominate kurtosis.
  • Kurtosis does not order every tail-exceedance probability.
5

Use MGFs to find moments and distributions

A moment generating function packages a distribution into an expectation involving an exponential. Its derivatives at zero recover raw moments, and its logarithm gives a quick route to mean and variance. MGFs also turn independent sums into products, which can reveal the sum's full distribution. Their domain matters: the expectation must be finite throughout an interval around zero for these tools to apply.

5.1 Build an MGF and find its domain

The moment generating function, or MGF, of X is MX(t)=E(etX). We say it exists when it is finite on some open interval around zero. Every distribution gives MX(0)=1, but a single finite value is not enough.

Start with LOTUS

For a finite distribution, multiply each exponential value by its probability. The spinner with values 0, 2 and 10 has

MX(t)=0.5+0.3e2t+0.2e10t.

All terms are finite at every real t, so every variable with finite support has an MGF. This expression is generally different from etE(X): exponential functions do not obey linearity.

For a Bernoulli variable, M(t)=q+pet. Applying the binomial theorem to its PMF gives the binomial MGF (q+pet)n. For a Poisson variable, the exponential series gives

M(t)=e−λ∑k≥0(λet)kk!=eλ(et−1).

These three MGFs are finite for every real t.

Keep the convergence condition

For geometric failures with 0<p<1,

M(t)=∑k≥0p(qet)k=p1−qet,t<−ln⁡q.

The geometric-series ratio must be less than one. The rational expression written beyond that domain is not the expectation.

For an exponential variable of rate λ,

M(t)=∫0∞λe−(λ−t)x dx=λλ−t,t<λ.

At or above the rate, the integrand does not decay enough to give a finite integral. The domain still contains an open interval around zero because λ>0.

Integrate or transform other standard families

For X∼Unif(a,b),

M(t)=etb−etat(b−a)(t≠0),M(0)=1.

The apparent zero denominator at zero is removable; the defining expectation is one there.

For standard normal Z, complete the square:

tz−z2/2=t2/2−(z−t)2/2.

Factoring out et2/2 leaves a normal density integrating to one. Thus MZ(t)=et2/2 for all real t.

For any affine transformation,

Ma+bX(t)=eatMX(bt).

The shift supplies an exponential factor, while scaling changes the argument. Setting a=μ and b=σ gives the normal MGF eμt+σ2t2/2.

Recognize when no MGF exists

For P(X=k)=1/[k(k+1)], any positive t makes the exponential growth overwhelm the polynomial denominator. No interval around zero works. The Cauchy distribution also has no MGF. Even all finite moments are insufficient: a lognormal variable has every positive integer moment finite but E(etX)=∞ at every positive t. An MGF can exceed one; it is an expectation of positive values, not a probability.

Key Takeaways

  • An MGF must be finite on an open interval around zero.
  • Compute it by applying LOTUS to an exponential function.
  • The geometric and exponential formulas have restricted domains.
  • An affine shift multiplies the MGF; scaling changes its argument.
  • Having all finite moments does not guarantee an MGF.

5.2 Extract moments from derivatives or series

An MGF stores raw moments in its behavior near zero. Differentiation or a series expansion makes those moments visible. The log-MGF stores mean and variance in a particularly compact way.

Differentiate and evaluate at zero

If an MGF exists around zero,

MX(n)(0)=E(Xn).

Differentiating etX brings down a factor of X each time; setting t=0 removes the exponential. In particular,

E(X)=M′(0),Var⁡(X)=M′′(0)−[M′(0)]2.

The second derivative alone is the second raw moment, not the variance.

For Poisson M(t)=eλ(et−1), the chain rule gives M′(t)=λetM(t). Differentiate again:

M′′(t)=λetM(t)+(λet)2M(t).

At zero, M(0)=1, so the first two raw moments are λ and λ+λ2. Subtract the squared mean to recover variance λ.

For binomial M(t)=(q+pet)n,

M′(t)=n(q+pet)n−1pet.

At zero the parenthesis equals one, giving mean np. Each occurrence of t must be evaluated at zero after differentiation; substituting zero first would erase the information.

Match coefficients with factorials

The expansion is

M(t)=∑n=0∞E(Xn)tnn!.

A coefficient on tn must be multiplied by n! to obtain the raw moment. For a rate-one exponential, M(t)=1/(1−t)=∑n≥0tn near zero. Every coefficient is one, so E(Xn)=n!, not one. Scaling to rate λ gives E(Xn)=n!/λn.

For standard normal,

et2/2=∑k≥0t2k2kk!.

There are no odd powers, so odd raw moments vanish. The even moments are (2k)!/(2kk!), giving 1, 3, 15 and 105 for orders 2, 4, 6 and 8. Since mean is zero and SD is one, the fourth raw moment 3 is also the normal kurtosis.

Differentiate the logarithm for mean and variance

Define K(t)=ln⁡M(t), the cumulant generating function. Then K′(t)=M′(t)/M(t) and

K′′(t)=M′′(t)M(t)−(M′(t)M(t))2.

At zero, M(0)=1. Hence K′(0)=E(X) and K′′(0)=Var⁡(X) directly. For Poisson, K(t)=λ(et−1) gives both as λ. For normal, K(t)=μt+σ2t2/2 gives μ and σ2. Differentiating nln⁡(q+pet) for a binomial gives np and npq.

Key Takeaways

  • Evaluate MGF derivatives at zero to obtain raw moments.
  • Variance subtracts the squared first derivative from the second derivative.
  • Multiply a power-series coefficient by the corresponding factorial.
  • The log-MGF’s first two derivatives at zero give mean and variance.

5.3 Recognize distributions and independent sums

Finding the mean and variance summarizes a distribution, but matching a whole MGF can identify it. The key is uniqueness: two MGFs that agree throughout an open interval around zero come from the same distribution.

Match the function, not just a few numbers

The MGF (0.3+0.7et)10 is binomial with 10 trials and success probability 0.7. Its mean is 7 and variance is 2.1. The expression e2t+8t2 is normal with mean 2 and variance 16, because the coefficient of t2 is half the variance. Its SD is 4.

The function 3/(3−t) on t<3 is the MGF of a rate-3 exponential, with mean 1/3. A function's value at zero is one for every MGF, so that one point carries no identifying information. A few moments are insufficient too: Poisson with parameter 4 and normal N(4,4) have the same mean and variance but different distributions.

Turn independent addition into multiplication

For independent X,Y,

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

Independence factors the expectation of the product. Work on a common interval around zero where both functions are finite. Then simplify the product and compare it with known MGFs.

If X∼Pois(2) and Y∼Pois(3) independently,

MX+Y(t)=e2(et−1)e3(et−1)=e5(et−1).

Uniqueness identifies X+Y∼Pois(5), so its zero-count probability is e−5≈0.0067. This gives the full distribution without enumerating all ways the two counts could add to each value.

Recognize other sums

Independent binomials with the same success probability have MGF product (q+pet)n(q+pet)m=(q+pet)n+m. Their sum is binomial with n+m trials. Different success probabilities generally prevent that simplification.

For independent normals, multiply their MGFs and add their exponents. Means add, and the coefficients of t2 show that variances add. Thus independent N(2,1) and N(3,4) sum to N(5,5). Adding the SDs would give the wrong second parameter.

A sum of r independent geometric-failures variables has MGF [p/(1−qet)]r. This is the negative binomial count of failures before success number r.

Reverse a transformation

The MGF et/(1−3t) matches eatMX(bt) with a=1, b=3 and X∼Expo(1). It represents 1+3X, with mean 4 and variance 9. The denominator restricts its domain to t<1/3.

The product rule cannot be used merely because two summands have known MGFs. If both summands are the very same variable, their sum is 2X and its MGF is MX(2t). Squaring MX(t) describes two independent copies instead.

Key Takeaways

  • Equal MGFs on an interval around zero identify equal distributions.
  • Multiply MGFs for sums of independent variables.
  • Independent Poisson parameters and normal means and variances add.
  • A binomial sum needs the same success probability to retain the binomial form.
  • For a repeated variable, transform its MGF instead of using an independent product.

Expectation and Variance examples

5 Walkthroughs

1

From weighted averages to transformed rewards

13 steps
Build an expected value, use a dependent sum, and average a nonlinear reward directly.
  1. 1
    IntroductionLet probabilities set the weights

    A reward can have several possible values, each with a different chance. Its expected value adds each value times its probability. This produces a fixed center for the distribution, even when that center is not a possible reward.

    We will first calculate that center, then change the reward. A linear change can be handled from the mean alone; a nonlinear change needs the original values and weights.

  2. 2
    ExampleBuild the weighted total

    A spinner awards 0, 2 or 10 points with probabilities 0.5, 0.3 and 0.2. Multiply each value by its own probability:

    0(0.5)=0,2(0.3)=0.6,10(0.2)=2.

    Adding gives 2.6 points. The large prize contributes 2 points to the mean despite occurring on only one fifth of spins. Averaging the three listed prizes equally would ignore these unequal probabilities.

  3. 3
    Key InsightA mean does not name the next outcome

    A fair die has mean 21/6=3.5, although every roll is an integer. The mean is a balance point, not a forecast that must occur on one trial.

    For a continuous variable, replace the weighted sum with ∫xf(x) dx. A uniform interval balances at its midpoint; an exponential wait of rate 0.5 per minute has mean 2 minutes. The values being averaged can be points or times; the weighting idea stays the same.

  4. 4
    ChallengeFind a new weighted center

    A random reward is 1 point with probability 0.8 and 6 points with probability 0.2. What is its mean?

    ---reveal---

    E(X)=1(0.8)+6(0.2)=2.

    The rare larger reward adds 1.2 to the weighted total, while the common reward adds 0.8. The mean is 2 points, which is not an available reward. The midpoint 3.5 would require equal probabilities.

  5. 5
    TipCheck convergence before using symmetry

    For finite expectation, E(∣X∣) must be finite. Nonnegative distributions can instead have infinite expectation, while both signs can produce an undefined mean when positive and negative contributions are each infinite.

    The Cauchy distribution illustrates why symmetry alone is insufficient: it is symmetric about zero but has no mean. Pairing positive and negative tail terms does not make either absolute tail contribution finite.

  6. 6
    ExplanationTransform a mean linearly

    For finite means,

    E(aX+bY+c)=aE(X)+bE(Y)+c.

    The probabilities weight every term of the sum, so they distribute across addition. Independence is not part of this step. If one die gives X and you define Y=7−X, the variables are dependent, yet E(X+Y)=3.5+3.5=7. In fact their total equals 7 on every outcome.

  7. 7
    ChallengeKeep a dependent relationship

    A variable has mean 3. Define Y=8−2X and total T=X+Y. What is E(T)?

    ---reveal---

    Linearity gives E(Y)=8−2(3)=2, then E(T)=3+2=5. You can also simplify T=8−X before taking its expectation. Both paths work without independence because only addition and multiplication by constants are involved.

  8. 8
    ConnectionSplit repeated-trial waits

    In independent trials with success probability p, geometric failures have mean (1−p)/p. Adding the final success gives trials mean 1/p.

    To wait for r successes, split the total into r successive waiting blocks. Linearity gives mean total trials r/p. For three sixes on a die, this is 18 rolls. The failure count is three smaller because it excludes the three successes.

  9. 9
    ExplanationChange the values before averaging

    For a nonlinear reward g(X), use LOTUS:

    E(g(X))=∑xg(x)P(X=x).

    The original probabilities stay attached to their original inputs. For a continuous input, use ∫g(x)f(x) dx. You do not need to derive the reward distribution first, even if two different inputs produce the same reward. Their separate weighted contributions will automatically add.

  10. 10
    ExampleSquare the spinner rewards

    For the 0, 2, 10 spinner, the squared rewards are 0, 4 and 100. Weight them by 0.5, 0.3 and 0.2:

    E(X2)=0+1.2+20=21.2.

    The square of the mean is only 2.62=6.76. Squaring amplifies the large prize before the average is taken. A single mean does not retain enough information to calculate the average square.

  11. 11
    ChallengeTry a reciprocal reward

    A variable takes values 1 and 4 with equal probabilities. What is E(1/X)?

    ---reveal---

    The reciprocal values are 1 and 1/4, so E(1/X)=(1+1/4)/2=5/8. Taking the reciprocal of the mean gives 1/2.5=2/5 instead. LOTUS averages the actual rewards; applying the function after averaging changes the calculation.

  12. 12
    ChallengeCombine a square and a shift

    The same equally likely input values 1 and 4 now earn reward R=X2−3X. What is the expected reward?

    ---reveal---

    The two reward values are −2 and 4, so their mean is 1. Equivalently, E(X2)=17/2 and E(X)=5/2 give 17/2−3(5/2)=1. Use LOTUS for the square, then linearity for the two terms.

  13. 13
    RecapChoose the operation before the shortcut

    A direct expectation weights values by probabilities or density. Linearity handles sums and fixed scaling, including dependent summands. LOTUS handles a function by changing each value before averaging.

    The practical choice is whether the new quantity is linear in known variables. For a nonlinear reward, return to the input distribution or another known moment; the mean alone usually cannot determine the answer.

2

Choose indicators that count the right objects

11 steps
Translate events into zero-or-one variables, then calculate expected collisions and waiting times.

Save this lesson to follow every Walkthrough step by step.

  1. 1
    IntroductionMake a difficult count out of easy events
  2. 2
    ExplanationCheck indicator multiplication
  3. 3
    ChallengeRepair a union calculation
  4. 4
    ExampleCount the thresholds a wait crosses
  5. 5
    ExplanationDefine a collision as a pair
  6. 6
    ExampleCalculate birthday pairs
  7. 7
    ChallengeCount used labels instead
  8. 8
    ConnectionMatch positions and find records
  9. 9
    ExampleSplit a coupon collection into stages
  10. 10
    ChallengeUse a mean to guarantee an outcome
  11. 11
    RecapMatch the indicator to the count
3

From squared deviations to dependent-count variance

17 steps
Calculate spread, transform independent variables, and recover a dependent count’s variance from pair probabilities.

Save this lesson to follow every Walkthrough step by step.

  1. 1
    IntroductionSpread needs more than a center
  2. 2
    ExplanationExpand the squared deviation
  3. 3
    ExampleCompute the spinner second moment
  4. 4
    ChallengeFind spread from two moments
  5. 5
    ExplanationScale deviations, then square
  6. 6
    ChallengeSeparate repeated errors from independent errors
  7. 7
    ConnectionAverage observations and estimate their variance
  8. 8
    ExplanationRecognize a useful factorial cancellation
  9. 9
    ExampleBuild a negative binomial from waits
  10. 10
    ChallengeUse interval width to find spread
  11. 11
    ExplanationSquare a sum of indicators
  12. 12
    ExampleFind a single and a pair probability
  13. 13
    ExampleRecover the count variance
  14. 14
    ChallengeApply the pair method to a new count
  15. 15
    Key InsightRead dependence through pairs
  16. 16
    ChallengeScale the dependent count
  17. 17
    RecapChoose the information variance needs
4

Center, standardize and interpret shape

12 steps
Work from raw moments to center and shape while keeping skewness and kurtosis conventions clear.

Save this lesson to follow every Walkthrough step by step.

  1. 1
    IntroductionChoose what the power measures
  2. 2
    ExplanationCompare the moments of a shifted variable
  3. 3
    ChallengeRecover a third central moment
  4. 4
    ExampleAllow more than one median
  5. 5
    TipCheck the highest moment you use
  6. 6
    ExplanationUse the sign of a centered cube
  7. 7
    ExampleCalculate Bernoulli skewness
  8. 8
    ChallengeReflect and shift a shape
  9. 9
    ExplanationKeep fourth-moment conventions separate
  10. 10
    ChallengeLook past a tall central mass
  11. 11
    Key InsightUse a fourth moment for its actual meaning
  12. 12
    RecapKeep center, powers and units separate
5

Build, differentiate and match an MGF

15 steps
Find an MGF, extract its moments, and use independent products to identify transformed sums.

Save this lesson to follow every Walkthrough step by step.

  1. 1
    IntroductionPut a distribution into a function
  2. 2
    ExampleStart with a finite distribution
  3. 3
    ExplanationWatch the domain of an exponential integral
  4. 4
    ChallengeTransform a known MGF
  5. 5
    Key InsightAll moments are still not enough
  6. 6
    ExplanationDifferentiate before evaluating
  7. 7
    TipRestore the series factorial
  8. 8
    ChallengeRead a mean and a variance from a series
  9. 9
    ConnectionTake a logarithm for a shorter calculation
  10. 10
    ExplanationMultiply only independent MGFs
  11. 11
    ExampleIdentify a Poisson sum
  12. 12
    ChallengeKeep a common binomial probability
  13. 13
    ChallengeCombine matching and moment extraction
  14. 14
    Key InsightMatch an interval, not a single value
  15. 15
    RecapCarry the conditions through the calculation

Expectation and Variance practice questions

50 Practice Questions in 5 sets

Set 1: Weighted means, spread and first MGFs10 Practice Questions

Question 1 of 10

A sensor reports 1, 4 or 7 units with probabilities 0.5, 0.4 and 0.1. What is its expected reading?
  1. 4.0 units
  2. 3.2 units
  3. 2.8 units
  4. 1.0 unit
Show answerHide answer
Answer: C
The weighted mean is 1(0.5)+4(0.4)+7(0.1)=2.8 units. The value 4 comes from averaging the three readings equally, which would fit equal probabilities. Here the low reading receives half the probability, so equal weights give the wrong center.

Question 2 of 10

Two dependent variables have means E(X)=5 and E(Y)=2. What is E(2X−Y+3)?
  1. 11
  2. 9
  3. 15
  4. 8
Show answerHide answer
Answer: A
Linearity gives 2E(X)−E(Y)+3=10−2+3=11. Dependence does not change this calculation because the expression is a sum with fixed coefficients. The result 9 would double the subtraction of the mean of Y as well, changing the expression to 2(X−Y)+3.

Question 3 of 10

A variable takes values −2, 0 and 3 with probabilities 0.2, 0.5 and 0.3. What is E(X2)?
  1. 0.25
  2. 1.9
  3. 2.5
  4. 3.5
Show answerHide answer
Answer: D
LOTUS weights the squared values: 4(0.2)+0(0.5)+9(0.3)=3.5. Squaring the mean gives 0.52=0.25, which is a different quantity. The square must be applied to each possible input before its probability is used.

Question 4 of 10

Events have P(A)=0.4, P(B)=0.5 and P(A∩B)=0.2. What is E(IAIB)?
  1. 0.7
  2. 0.2
  3. 0.9
  4. 0.3
Show answerHide answer
Answer: B
The product of the indicators equals 1 exactly when both events occur, so its expectation is the intersection probability 0.2. The union probability 0.7 describes at least one event occurring. A product of indicators records an intersection, not a union.

Question 5 of 10

Six samples are drawn without replacement from 15 samples, of which 5 are marked. What is the expected number of marked samples drawn?
  1. 2
  2. 3
  3. 5/6
  4. 5/15
Show answerHide answer
Answer: A
Each draw position has probability 5/15 of containing a marked sample. Adding six draw indicators gives 6(5/15)=2 expected marked samples. The draws are dependent, but linearity still applies; the single-draw probability alone omits the other five positions.

Question 6 of 10

A waiting time has E(X)=4 minutes and E(X2)=22 square minutes. What is its variance?
  1. 18 square minutes
  2. 6 square minutes
  3. 6 square minutes
  4. 22 square minutes
Show answerHide answer
Answer: C
The variance is E(X2)−[E(X)]2=22−16=6 square minutes. Subtracting just 4 gives 18 and misses the square on the mean. The square root of 6 would be the SD in minutes, not the variance in square minutes.

Question 7 of 10

Independent measurement errors X,Y have variances 4 and 9 square millimeters. What is the SD of X−Y?
  1. 5 mm
  2. 5 mm
  3. 13 mm
  4. 13 mm
Show answerHide answer
Answer: D
The variance of the independent difference is 4+9=13 square millimeters, so its SD is 13 mm. Subtracting the variances would give 5, but the coefficient −1 is squared. Adding the individual SDs would also ignore the independent-sum rule.

Question 8 of 10

A distribution has mean 3 and variance 2. What is its second raw moment?
  1. 2
  2. 11
  3. 5
  4. 7
Show answerHide answer
Answer: B
The second raw moment is E(X2)=Var⁡(X)+[E(X)]2=2+9=11. The value 2 is the second central moment, which measures from the mean. The raw moment measures from zero, so the squared mean must also be included.

Question 9 of 10

A variable equals 0 with probability 0.7 and 4 with probability 0.3. What is its MGF?
  1. 0.7+0.3e4t
  2. e1.2t
  3. 0.7et+0.3e4t
  4. 0.7+0.3et
Show answerHide answer
Answer: A
Average etX at the two possible values: the zero outcome contributes 0.7 and the four outcome contributes 0.3e4t. The expression e1.2t applies the exponential to the mean instead. That replacement is invalid for a nonlinear function.

Question 10 of 10

A variable has MGF M(t)=0.6+0.4e5t. What is its variance?
  1. 10
  2. 4
  3. 8
  4. 6
Show answerHide answer
Answer: D
Differentiating gives M′(0)=2 and M′′(0)=10. The variance is therefore 10−22=6. Reporting 10 stops at the second raw moment and fails to remove the contribution from the nonzero mean.
Set 2: Apply expectation and distinguish shape measures10 Practice Questions

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

Question 1 of 10

Three draws are made without replacement from 8 tokens, of which 4 are red. What is the variance of the red count?
  1. 3/4
  2. 15/28
  3. 9/28
  4. 3/7
Show answerHide answer

Save this lesson to see this answer.

Question 2 of 10

A variable equals 0 or 2, each with probability 1/2. What is the full set of medians?
  1. All numbers in [0,2]
  2. Only the number 1
  3. Only the numbers 0 and 2
  4. All numbers in (0,2)
Show answerHide answer

Save this lesson to see this answer.

Question 3 of 10

A nondegenerate distribution has fourth standardized moment 5.2. What is its excess kurtosis?
  1. 5.2
  2. 8.2
  3. 2.2
  4. 1.2
Show answerHide answer

Save this lesson to see this answer.

Question 4 of 10

For an exponential variable with rate 4, on what domain does the MGF expectation remain finite?
  1. t≤4
  2. t>4
  3. t<4
  4. ∣t∣<1/4
Show answerHide answer

Save this lesson to see this answer.

Question 5 of 10

Independent X∼Pois(1.5) and Y∼Pois(2.5) are recorded. What is P(X+Y=1)?
  1. e−4
  2. 4e−4
  3. 3.75e−4
  4. 4e−3.75
Show answerHide answer

Save this lesson to see this answer.

Question 6 of 10

A distribution is symmetric about 8 and has finite absolute expectation. What is its mean?
  1. 0
  2. 8
  3. 4
  4. 16
Show answerHide answer

Save this lesson to see this answer.

Question 7 of 10

Independent attempts succeed with probability 0.4. What is the expected number of failures before the third success?
  1. 7.5
  2. 1.5
  3. 6.0
  4. 4.5
Show answerHide answer

Save this lesson to see this answer.

Question 8 of 10

Nine files independently choose one of four servers with equal probabilities. What is the expected number of unused servers?
  1. 4(3/4)9
  2. 4(1/4)9
  3. 9(3/4)4
  4. 4[1−(3/4)9]
Show answerHide answer

Save this lesson to see this answer.

Question 9 of 10

A length has SD 0.08 m. What is its variance in square meters?
  1. 0.08
  2. 0.16
  3. 0.0064
  4. 0.008
Show answerHide answer

Save this lesson to see this answer.

Question 10 of 10

A count is modeled as Poisson with mean 9. What is its standard deviation?
  1. 9
  2. 81
  3. 3
  4. 3
Show answerHide answer

Save this lesson to see this answer.

Set 3: Use tails, pairs and transformations10 Practice Questions

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

Question 1 of 10

A variable has density f(x)=2x on (0,1) and zero elsewhere. What is E(X2)?
  1. 1/2
  2. 1/3
  3. 4/9
  4. 2/3
Show answerHide answer

Save this lesson to see this answer.

Question 2 of 10

A nonnegative integer variable has tail probabilities P(X>0)=0.8, P(X>1)=0.5, P(X>2)=0.2 and P(X>n)=0 for every integer n≥3. What is its mean?
  1. 0.7
  2. 1.8
  3. 1.5
  4. 2.5
Show answerHide answer

Save this lesson to see this answer.

Question 3 of 10

Independent draws give one of three equally likely symbol types. What is the expected number of draws needed to see all three types?
  1. 4.5
  2. 6.0
  3. 3.0
  4. 5.5
Show answerHide answer

Save this lesson to see this answer.

Question 4 of 10

A measurement has variance 0.04 square meters. What is the variance of Y=−3X+2 when the constant 2 is in meters?
  1. 0.12 square meters
  2. 0.36 square meters
  3. 2.36 square meters
  4. −0.12 square meters
Show answerHide answer

Save this lesson to see this answer.

Question 5 of 10

A waiting time is exponential with rate 0.25 per minute. What are its mean and variance?
  1. 4 minutes; 4 square minutes
  2. 4 minutes; 16 square minutes
  3. 0.25 minute; 0.0625 square minute
  4. 16 minutes; 4 square minutes
Show answerHide answer

Save this lesson to see this answer.

Question 6 of 10

Three objects independently choose among three boxes uniformly. Let X count empty boxes. What is Var⁡(X)?
  1. 152/243
  2. 8/81
  3. 26/81
  4. 38/81
Show answerHide answer

Save this lesson to see this answer.

Question 7 of 10

A variable has skewness 1.2 and positive finite SD. What is the skewness of 7−2X?
  1. −1.2
  2. 1.2
  3. −2.4
  4. 4.8
Show answerHide answer

Save this lesson to see this answer.

Question 8 of 10

What value must an existing MGF take at zero?
  1. 0
  2. E(X)
  3. Var⁡(X)
  4. 1
Show answerHide answer

Save this lesson to see this answer.

Question 9 of 10

Near zero, an MGF has expansion M(t)=1+3t+7t2+⋯. What is its variance?
  1. −2
  2. 7
  3. 14
  4. 5
Show answerHide answer

Save this lesson to see this answer.

Question 10 of 10

Independent X∼N(1,4) and Y∼N(−2,9) are combined as 2X−Y. What is its distribution?
  1. N(4,25)
  2. N(4,7)
  3. N(0,25)
  4. N(4,49)
Show answerHide answer

Save this lesson to see this answer.

Set 4: Connect definitions to harder applications10 Practice Questions

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

Question 1 of 10

A nonnegative random variable has mean zero. What is P(X=0)?
  1. 0
  2. 1/2
  3. Any value in [0,1]
  4. 1
Show answerHide answer

Save this lesson to see this answer.

Question 2 of 10

A uniformly random arrangement assigns 7 labeled devices to 7 labeled slots. A correct placement earns 5 points and the arrangement costs 2 points. What is the expected net score?
  1. 5 points
  2. 3 points
  3. 1 point
  4. 33 points
Show answerHide answer

Save this lesson to see this answer.

Question 3 of 10

A positive variable has P(X=k)=1/[k(k+1)] for positive integers k. For which real values of a is E(Xa) finite?
  1. a<1
  2. a≤1
  3. a<2
  4. a>1
Show answerHide answer

Save this lesson to see this answer.

Question 4 of 10

A nonnegative integer wait satisfies P(X≥n)=2−n for every integer n≥1. A score is S=2X+1. What is Var⁡(S)?
  1. 4
  2. 12
  3. 8
  4. 2
Show answerHide answer

Save this lesson to see this answer.

Question 5 of 10

Four people independently choose one of five equally likely labels. Let D be the number of distinct labels chosen and C the number of matching unordered pairs. What is E(D−C)?
  1. 219/125
  2. 369/125
  3. 69/125
  4. 519/125
Show answerHide answer

Save this lesson to see this answer.

Question 6 of 10

A network has 13 links between distinct nodes. Nodes are independently colored red or blue with equal probabilities. What minimum number of links joining different colors is guaranteed for some coloring?
  1. 6
  2. 13
  3. 7
  4. 5
Show answerHide answer

Save this lesson to see this answer.

Question 7 of 10

A variable has mean 6 and variance 5. What is E((X−4)2)?
  1. 5
  2. 7
  3. 1
  4. 9
Show answerHide answer

Save this lesson to see this answer.

Question 8 of 10

A distribution has E(∣X∣4)<∞. What can be concluded about its third absolute moment?
  1. It equals the fourth absolute moment.
  2. It is finite.
  3. It equals zero.
  4. It must exceed the fourth absolute moment.
Show answerHide answer

Save this lesson to see this answer.

Question 9 of 10

A variable takes −5, 0 and 5 with probabilities 0.02, 0.96 and 0.02. What is its excess kurtosis?
  1. 25
  2. −2
  3. 22
  4. 625
Show answerHide answer

Save this lesson to see this answer.

Question 10 of 10

A variable has log-MGF K(t)=4(e2t−1)−t. What are its mean and variance?
  1. Mean 7; variance 15
  2. Mean 7; variance 16
  3. Mean 8; variance 16
  4. Mean 7; variance 65
Show answerHide answer

Save this lesson to see this answer.

Set 5: Solve unfamiliar combinations of moments and counts10 Practice Questions

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

Question 1 of 10

A variable has density 1/2 on (0,2). What is E(eX)?
  1. e
  2. (e2−1)/2
  3. e2−1
  4. (e−1)/2
Show answerHide answer

Save this lesson to see this answer.

Question 2 of 10

A nonnegative continuous variable has P(X>x)=(1+x)−2 for x≥0. What is E(X)?
  1. 1/2
  2. 2
  3. 1
  4. ∞
Show answerHide answer

Save this lesson to see this answer.

Question 3 of 10

In a uniformly random ordering of six distinct numbers, let R count record maxima among positions 3 through 6. What is E(R), and what does it establish about the possibility of R=0?
  1. E(R)=19/20; zero is possible.
  2. E(R)=19/20; zero is impossible.
  3. E(R)=49/20; zero is possible.
  4. E(R)=29/20; zero is impossible.
Show answerHide answer

Save this lesson to see this answer.

Question 4 of 10

An i.i.d. sample mean must have SD at most 0.3 mm. Each observation has SD 1.8 mm. What is the smallest sample size?
  1. 6
  2. 12
  3. 18
  4. 36
Show answerHide answer

Save this lesson to see this answer.

Question 5 of 10

A random variable is uniform on (2,8). What is its variance?
  1. 5
  2. 1/2
  3. 36
  4. 3
Show answerHide answer

Save this lesson to see this answer.

Question 6 of 10

A count X is the sum of five event indicators. Each event has probability 0.4 and each distinct event pair has intersection probability 0.1. What is Var⁡(X)?
  1. 1.2
  2. 0
  3. 1
  4. 2
Show answerHide answer

Save this lesson to see this answer.

Question 7 of 10

A distribution has positive SD, finite fourth moment and kurtosis 1. What can be concluded about its standardized variable Z?
  1. Z2=1 with probability 1
  2. Z=0 with probability 1
  3. E(Z4)=3
  4. P(∣Z∣>1)>0
Show answerHide answer

Save this lesson to see this answer.

Question 8 of 10

An MGF has coefficient 2 on t3 in its expansion around zero. What is the third raw moment?
  1. 2
  2. 6
  3. 12
  4. 1/3
Show answerHide answer

Save this lesson to see this answer.

Question 9 of 10

Independent X,Y are exponential with rate 2. For W=3+2X+2Y, what is its MGF and its domain?
  1. e3t/(1−t)2, t<1
  2. e3t/(1−2t)2, t<1/2
  3. e3t/(1−2t), t<1/2
  4. e3t/(1−t)2, t<2
Show answerHide answer

Save this lesson to see this answer.

Question 10 of 10

A variable takes −1, 1 and 2 with probabilities 1/4, 1/4 and 1/2. What is the variance of the reward R=(X2−1)2?
  1. 81/2
  2. 9/4
  3. 81/16
  4. 81/4
Show answerHide answer

Save this lesson to see this answer.

Stuck on your own question? Homework Help

Key Terms

66 Key Terms, each with its definition

A

Absolute expectation
The absolute expectation is E(∣X∣), the weighted average of magnitudes; finiteness ensures that a mean is finite.
The Cauchy distribution has infinite absolute expectation, so its symmetry cannot supply a finite mean.
Affine transformation
An affine transformation replaces X by aX+b for fixed constants, changing scale with a and location with b.
An affine transformation multiplies variance by a2 while its added constant leaves spread unchanged.

B

Bernoulli variance
The Bernoulli variance is p(1−p) for a zero-or-one success indicator with success probability p.
At probability one half, Bernoulli variance reaches its largest value of one quarter.
Binomial variance
The binomial variance is np(1−p) for the success count in n independent trials with common success probability p.
The formula for binomial variance must be adjusted when sampling a finite population without replacement.

C

Central moment
A central moment of order k is E((X−μ)k), averaging powers of deviations from the distribution’s mean.
Symmetry about the mean makes every existing odd central moment zero through cancellation.
Common success probability
A common success probability assigns the same success chance to every trial in independent binomial counts being combined.
A common probability lets two independent binomial MGF factors merge into a single binomial factor.
Count second moment
A count second moment averages the square of a count and can be found from its mean plus twice its expected unordered-pair count.
The pair method recovers E(X2) first, then subtracts the squared count mean to obtain variance.
Coupon collector
The coupon collector is the waiting-time problem of seeing every type in repeated independent draws from equally likely types.
The final missing coupon takes longer on average because only one of the types can complete the collection.
Cumulant generating function
The cumulant generating function is K(t)=ln⁡MX(t) near zero; its first two derivatives there give mean and variance.
For a normal variable, the log-MGF is quadratic and displays the mean and variance directly.

E

Excess kurtosis
Excess kurtosis is the fourth standardized moment minus three, shifting the normal reference value from three to zero.
Exponential excess kurtosis is 6, so it must not be compared directly with ordinary normal kurtosis 3.
Expected count
An expected count is the mean number of objects or events counted, obtained by adding the means of their indicators.
An expected count of 1.6 marked objects is possible even though every actual count is an integer.
Expected value
The expected value is a probability-weighted average of a random variable, calculated from its possible values or its density.
A fair die has expected value 3.5, although no individual roll can produce that value.
Exponential rate
An exponential rate is the positive parameter whose reciprocal is the mean wait; its unit is inverse time in waiting models.
A rate of 0.5 per minute gives exponential mean 2 minutes and variance 4 square minutes.

F

Factorial moment
A factorial moment averages a falling product, such as E(X(X−1)), which often simplifies factorial-based probability masses.
For a Poisson variable, its second factorial moment is λ2 and helps recover its variance.
Finite population correction
The finite population correction reduces the binomial variance to account for drawing without replacement from a finite population.
For n draws from N>1 objects, the variance multiplier is (N−n)/(N−1).
Finite support
A distribution has finite support when only finitely many values can occur with positive probability; such a variable always has an MGF.
A spinner with three possible prizes has an MGF made from three weighted exponential terms.
Fixed point of a permutation
A fixed point of a permutation is an object left in its own labeled position after the objects are rearranged.
Each card in a uniform shuffle has probability one divided by the number of cards of being a fixed point.
Fourth central moment
The fourth central moment averages the fourth power of distance from the mean, before dividing by SD to the fourth power.
Dividing the fourth central moment by σ4 removes units and produces ordinary kurtosis.
Fundamental bridge
The fundamental bridge is E(IA)=P(A), connecting an event’s probability with the mean of its zero-or-one indicator.
The bridge turns an expected count into a sum of probabilities for the events being counted.

G

Geometric failures count
A geometric failures count records failures before the first success in independent trials with a fixed success probability.
With success probability p, the geometric failures count starts at zero and has mean (1−p)/p.
Geometric trials count
A geometric trials count records all trials through the first success, including the success, in repeated independent trials.
The geometric trials count starts at one and has mean 1/p for success probability p>0.

H

Harmonic number
The harmonic number Hn is the sum 1+1/2+⋯+1/n, which appears in record and coupon-collection means.
The expected record count is Hn, while the equally likely coupon collection mean is nHn.

I

Inclusion–exclusion
Inclusion–exclusion finds a union probability by adding single events and alternating subtraction and addition of intersections.
For three events, inclusion–exclusion subtracts pair overlaps and adds back the triple overlap.
Independent copies
Independent copies are random variables with the same distribution whose outcomes are independent of one another.
Two independent die rolls have a sum with less variance than twice a single die roll.
Independent-sum MGF
The independent-sum MGF is the product of the summands’ MGFs on a common interval where they are finite around zero.
Multiplying two independent Poisson MGFs adds their parameters in the simplified exponent.
Indicator algebra
Indicator algebra represents complements, intersections and unions by arithmetic operations on zero-or-one event variables.
The union identity subtracts the product of two indicators so an overlap contributes only once.
Indicator random variable
An indicator random variable equals one when a specified event occurs and zero when it does not occur.
An indicator for an empty box is one exactly when no ball has entered that particular box.

K

Kurtosis
Kurtosis is the fourth standardized moment, emphasizing distant standardized values through their fourth powers.
The exponential distribution has kurtosis 9; this number describes tail weight, not peak height.

L

Law of the unconscious statistician
The law of the unconscious statistician averages a function of a variable directly using the original distribution’s weights.
LOTUS finds an average squared reward without first constructing a probability table for that reward.
Linearity of expectation
Linearity of expectation lets finite expectations add and scale with constant coefficients, even when variables are dependent.
In draws without replacement, the expected number of marked objects drawn is still the sum of each draw’s chance of a marked object.
Lognormal variable
A lognormal variable is the exponential of a nondegenerate normal variable; it has all integer moments but no MGF around zero.
A lognormal variable shows why checking finitely many, or even all, moments does not ensure an MGF.

M

Mean squared error
The mean squared error of a constant prediction is the average squared difference between the variable and that prediction.
Choosing the mean as the constant prediction gives the smallest mean squared error, equal to the variance.
Median
A median is a value with at least half the probability at or below it and at least half at or above it.
Every number from 3 through 4 is a median of a fair die, including both endpoints.
MGF derivative
An MGF derivative of order n, evaluated at zero, equals the order-n raw moment when the MGF exists around zero.
The second MGF derivative gives a raw moment, so variance still requires subtracting the squared mean.
MGF domain
An MGF domain is the set of real arguments for which the defining exponential expectation is finite, including zero.
For exponential rate λ, the MGF domain is t<λ and excludes the endpoint.
MGF matching
MGF matching identifies a distribution by rewriting an existing MGF into a known family’s form with its parameters.
Matching an MGF’s quadratic exponent to the normal form requires doubling its second-order coefficient to read the variance.
MGF uniqueness
MGF uniqueness means that matching MGFs throughout an open interval around zero identifies the same probability distribution.
Two distributions with the same mean and variance can still have different MGFs and different shapes.
Mode
A mode is a value at which a discrete PMF or a continuous density reaches its largest value; multiple modes can exist.
Every face of a fair die is a mode because all six faces have the same maximum probability.
Moment generating function
A moment generating function is MX(t)=E(etX), finite throughout some open interval around zero.
The geometric MGF has a restricted domain even though its formula can be written beyond that domain.
Monotonicity of expectation
Monotonicity of expectation means X≥Y with probability 1 gives E(X)≥E(Y) when the expectations are defined.
If every reward is increased by a nonnegative amount, its expected reward cannot decrease.

N

Negative binomial count
A negative binomial count records failures before a fixed number of successes, or total trials through those successes.
To describe a negative binomial wait, specify whether the successful trials are included in the count.
Normal even moments
The normal even moments for standard normal Z satisfy E(Z2k)=(2k)!/(2kk!), while odd moments vanish.
The second, fourth and sixth standard normal moments are 1, 3 and 15, respectively.
Normal parameters
The normal parameters in N(μ,σ2) are the mean μ and variance σ2, with positive SD σ.
The second parameter of N(2,16) is variance 16, so the corresponding standard deviation is 4.

O

Occupancy problem
An occupancy problem assigns objects to boxes or categories and asks about their contents, empty counts or occupied counts.
Empty-server indicators solve an occupancy problem when files independently choose storage servers.

P

Pair indicator
A pair indicator equals one exactly when two specified events both occur, recording one unordered pair for a count calculation.
The pair indicator for two empty boxes succeeds only when every ball avoids both boxes.
Pair intersection probability
A pair intersection probability is the chance that two specified events occur together, which determines their product-indicator mean.
When two white balls are drawn without replacement, the second factor of their intersection probability decreases after the first white ball is removed.
Poisson mean–variance equality
The Poisson mean–variance equality states that both mean and variance equal the parameter λ in a Poisson model.
Mean–variance equality alone cannot establish that an observed count distribution is Poisson.

R

Raw moment
A raw moment of order k is E(Xk), averaging powers relative to zero and therefore retaining information about location.
The first raw moment is the mean; a raw second moment must be centered to become variance.
Record maximum
A record maximum is a value larger than every earlier value in an ordering; the first value is a record by default.
In a random ordering of distinct values, the fourth position is a record maximum with probability one quarter.

S

Sample mean
The sample mean is the arithmetic average of observations; before observing a random sample, it is itself a random variable.
For i.i.d. observations, the sample mean has SD σ/n and the same mean as each observation.
Sample raw moment
A sample raw moment of order k is n−1∑iXik, the average of the observations raised to that power.
For i.i.d. observations with a finite moment, this sample average has expectation E(Xk).
Sample variance
The sample variance is S2=∑i(Xi−Xˉ)2/(n−1), an unbiased variance estimate for an i.i.d. sample of size at least two.
The sample variance estimates individual spread, while σ2/n describes the spread of the average.
Second raw moment
The second raw moment is E(X2), the average of squared values measured from zero; it is not generally the variance.
The variance shortcut subtracts the squared mean from the second raw moment of the variable.
Skewness
Skewness is the third standardized moment, a unitless signed measure of asymmetry that emphasizes large centered deviations.
Reflecting a distribution reverses its skewness, while a positive scale change preserves it.
Squared deviation
A squared deviation is the square of a value’s difference from a chosen center, making departures in either direction nonnegative.
Values two units above and below the mean each contribute four to their squared deviations.
Standard deviation
The standard deviation is the nonnegative square root of variance, measuring spread in the same units as the random variable.
A Poisson count with variance 9 has standard deviation 3, not standard deviation 9.
Standardization
Standardization subtracts a variable’s mean and divides by its positive finite SD, giving mean zero and variance one.
A standardized measurement of −2 lies two standard deviations below its original mean.
Standardized moment
A standardized moment averages a power of deviations after dividing by positive finite SD, giving a unitless description.
The second standardized moment is one, while the third and fourth describe aspects of shape.
Symmetry about a center
Symmetry about a center means equally far values on opposite sides have matching distributions of deviations.
A uniform distribution on 2 through 8 is symmetric about 5, so its finite mean is 5.

T

Tail integral
The tail integral is the area under the exceedance-probability function of a nonnegative variable and equals its expectation.
Integrating an exponential survival curve gives its mean waiting time without integration by parts.
Tail-sum formula
The tail-sum formula expresses a nonnegative integer mean as a sum of exceedance probabilities over integer thresholds.
The sum of P(X>n) begins at zero, while the equivalent sum of P(X≥n) begins at one.
Taylor coefficient
A Taylor coefficient of tn in an MGF is E(Xn)/n!, so the moment is obtained by restoring the factorial.
An MGF coefficient of 1/8 on the fourth power gives fourth raw moment 24/8=3.
Transformed random variable
A transformed random variable is g(X), formed by applying a fixed function to each possible value of a random variable.
For a die roll, the transformed variable (X−3)2 can take the same reward at several input faces.

U

Unordered pair count
An unordered pair count of X objects is (X2)=X(X−1)/2, with no distinction between the two orders of a pair.
A group of four successful events contains six unordered pairs, each contributing once to the pair total.

V

Variance
The variance is the expected squared distance from the mean, describing spread in the square of the variable’s original unit.
A length variance of 0.0025 square meters corresponds to a standard deviation of 0.05 m.

W

Weighted average
A weighted average multiplies each value by its weight and adds the products; probability weights sum to one.
For a spinner whose zero prize is common and whose large prize is rare, the weighted average gives the zero prize more influence.

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