- Learn
- Mathematics
- Statistics
- Probability Theory
- Expectation and Variance
Expectation and Variance
Expectation, Variance and Moments
IntermediateLesson 3 of 9 in Probability Theory Course
What you will learn
- 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 variableDefine 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 expectationAdd 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 LOTUSUse 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)).
- Find the expected value of a random variable
- 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 bridgeDefine the indicator of an event, use its algebra and the fundamental bridge , and find means with the tail-sum formula.
- Find expected counts by splitting into indicatorsWrite 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.
- Work with indicator variables and the fundamental bridge
- 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 deviationDefine 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 variablesFind 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 distributionsKnow 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 indicatorsFind 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.
- Define and compute variance and standard deviation
- 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 modesDefine 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 kurtosisCompute and interpret skewness as a measure of asymmetry and kurtosis as a measure of tail weight, and keep the kurtosis conventions apart.
- Summarize distributions with moments, medians and modes
- 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 functionsDefine 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 MGFGet 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 MGFsUse the uniqueness of MGFs to recognize distributions, and multiply MGFs to find the distribution of a sum of independent random variables.
- Define and find moment generating functions
Expectation and Variance study guide
1Find 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,
A spinner gives 0, 2 and 10 points with probabilities 0.5, 0.3 and 0.2. Its mean is
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 . 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 ,
For , integrating from to gives . For an exponential waiting time of rate ,
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 : the sum or integral of absolute values must converge. For the PMF on positive integers, probabilities sum to 1 because . But
In the St. Petersburg game, a prize of points has probability for each positive integer . 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 gives . Thus a variable has mean . 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 with probability 1, then 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,
On a countable sample space, each outcome has one probability. Expanding the definition gives
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 . The same rule works for the dependent pair built from one die: the sum is always 7. If , a score has mean .
Derive a binomial mean
Write the success count as , where each is 1 for success and 0 for failure. Each indicator has mean , so
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 in repeated independent trials with constant success probability .
| Count | Possible values | PMF | Mean |
|---|---|---|---|
| Failures before first success | |||
| Trials through first success |
To derive the failures mean, differentiate . This gives . Multiplying by yields . The trials count is one more, giving .
A first six takes 6 rolls on average, including the successful roll, or 5 failures before it. For the failures before the -th success, split the wait into geometric blocks. Linearity gives failures, or 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:
For a die, , about 15.17, while the squared mean is 12.25. Also , about 0.408, whereas , about 0.286. Independent variables with finite means satisfy ; 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,
For a continuous variable with density ,
For a die roll, let . The six transformed values are 4, 1, 0, 1, 4 and 9, so . 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 contribute to . 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 . Weighting each of the two inputs that produce 4 by 2/6 would count that output twice.
Work with powers and continuous functions
Taking gives the second raw moment, . For a die it is , which differs from . For , the density is 1 on the unit interval:
Similarly, . Substituting the mean into the function would instead give , a different number. The operation “apply the function” generally cannot be moved outside expectation.
Use the function to simplify a series
For with ,
The factorial combines with , 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 . For a Poisson variable, , so reindexing gives . Since , its second moment is .
Check the transformed expectation
Finite requires . It can exist even when the original mean is infinite. For , the terms in behave like and sum to a finite value.
If is the function that equals 1 on a set and 0 outside it, LOTUS gives . 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.
2Turn 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 , the random variable equals 1 on outcomes in 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 . Its mean is
This fundamental bridge lets expectation methods solve probability problems. If counts which of events occur, then and
If all event probabilities equal , the answer is . The events can overlap or depend on one another.
Translate event operations into algebra
| Event or operation | Indicator identity |
|---|---|
| The event again | |
| Both events | |
| The complement | |
| At least one event |
To check the union identity, consider an outcome where both events occur: the right side is . Without the product subtraction, the count would be 2. Taking expectations gives the familiar union probability formula with subtracted.
For several events, none occurs exactly when all their complement indicators equal 1:
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, ; replacing that intersection by requires independent events.
Count how many integer thresholds are crossed
A nonnegative integer value crosses exactly thresholds in the list . Therefore
If , precisely the tests , and succeed. Starting the sum at 1 while keeping the strict inequality would miss a contribution. An equivalent form is .
For the trials through a first six, : all first rolls must fail. The geometric series gives .
For any nonnegative continuous variable, the corresponding tail integral is
An exponential variable has tail probability , so integrating the tail gives 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 cards labeled 1 through uniformly. Card occupies its own position with probability . The number of matches is a sum of indicators, so its mean is . A match at one position changes what can happen elsewhere, but this does not affect linearity.
For draws without replacement from white and black balls, define an indicator for each draw being white. Every draw has marginal probability of being white. Thus the mean white count is . 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 . Among 30 people, the 435 unordered pairs have expected matching count . 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 , so the mean distinct count is
With 10 balls independently choosing among 5 boxes uniformly, a given box is empty when every ball avoids it. Its probability is , giving expected empty count . Here the objects counted are boxes, not balls.
Split a collection time into stages
For equally likely coupon types in independent draws, let be the trials needed for a new type after distinct types have been collected. The success probability is , so its trials-geometric mean is . Adding the stage means gives
The last missing type takes draws on average; the first takes only one. Seeing all six die faces has mean rolls. These summands are waiting times, not indicators.
Records and an existence argument
In a uniformly random ordering of distinct numbers, position is a new maximum with probability . Each of the first numbers is equally likely to be their largest. Adding record indicators gives mean , 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 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 . Some coloring must have at least that many crossing links; otherwise the average could not reach .
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.
3Calculate 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 ,
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:
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, and . Hence
The SD is . 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
Subtract 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, , so both and equal . Its variance is . Writing this as shows that the largest variance is 1/4, attained at success probability 1/2.
For , LOTUS gives , while . The variance is . 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 , write and expand. The cross term has mean zero because . Therefore
The second term is smallest at . Thus the mean is the best constant guess under squared error, and the minimum error is the variance. Guessing 3 for a die gives , 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 ,
Subtracting the new mean leaves , so squared deviations acquire the factor . 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
Independence gives and removes the last term. Thus independent variances add. For a difference, the coefficient on is −1 and its square is 1, so independent variances still add:
Subtracting one noisy measurement from another does not subtract away its uncertainty.
Distinguish one variable from independent copies
| Construction from fair dice | Variance |
|---|---|
| Twice one roll, | |
| Two independent rolls, | |
| Independent difference, |
The SD of the independent sum is , not the sum of the two individual SDs. For a dependent extreme, makes , 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 ,
First add the variances to get , then multiply by for the average. Its SD is . 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 .
The sample variance estimates the individual variance:
Indeed, the numerator equals . Its expectation is , explaining the denominator.
Standardize
For positive SD, 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, .
Discrete reference values
| Distribution and count | Mean | Variance |
|---|---|---|
| Bernoulli | ||
| Binomial, trials | ||
| Uniform on | ||
| Poisson | ||
| Geometric failures | ||
| Geometric trials | ||
| Negative binomial failures | ||
| Negative binomial trials |
For a uniform integer variable, use and . Divide each by , then subtract the squared mean to obtain .
For a Poisson variable, cancel against to get . Canceling gives , so 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
Add to obtain the second moment, then subtract . The result simplifies to . 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 objects with marked ones, the marked count in draws has
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
| Distribution | Mean | Variance |
|---|---|---|
| Uniform on | ||
| Exponential, rate | ||
| Normal |
Integrating gives ; subtracting gives the uniform variance. Two integrations by parts give exponential second moment , so variance is . For the standard normal density , . Integration by parts gives , and symmetry gives mean zero. Scaling to produces the normal parameters.
Coupon collection uses independent trials-geometric stages with . Add 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 . Since ,
The second sum counts unordered pairs of occurring events:
Thus . Recover the second moment and variance by
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 count white draws. Its mean is 1.6. For any two draw positions, the chance both are white is
There are pairs, so . Then and variance is . 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 labeled cards, a chosen pair of cards both match their positions with probability . One match has probability ; after fixing it, the other has probability . Therefore
Since , the second moment is 2 and variance is 1. The separate case 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 . Two specified boxes are both empty when every ball chooses among the other three, with probability . Set . The variance is
Keep unrounded until the last calculation.
Compare with independent indicators
If all single-event probabilities are and every pair probability is , the formula becomes
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.
4Describe 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 type | Formula | Reference point |
|---|---|---|
| Raw, order | Zero | |
| Central, order | The mean | |
| Standardized, order | 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:
The constants simplify because . These formulas save work when raw moments are already known.
Check existence in order
A finite order- moment requires . This guarantees every lower-order moment: for , . It does not guarantee higher moments. A PMF proportional to on positive integers has a finite mean because its mean series behaves like , but its second-moment series behaves like the divergent . It has no finite variance.
Compare three meanings of center
A median is a number satisfying both and . A mode maximizes the PMF or density. Neither must be unique. For a fair die, every number in is a median, and all six faces are modes; its mean is 3.5.
For , the mean is 1. Solving gives median . The usual density on 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 . 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 . For i.i.d. observations with a finite order- moment, linearity gives its expectation as . 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 , with positive finite SD. The relevant third or fourth moments must also be finite.
Skewness weights signed deviations
Skewness is . 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 , write . The centered third moment is
Dividing by gives skewness . At this is : 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 ; binomial skewness is when . 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 , despite lacking symmetry.
State which kurtosis you mean
| Name | Formula | Normal reference |
|---|---|---|
| Kurtosis | 3 | |
| Excess kurtosis | 0 |
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 , raw moments are and mean and SD are both 1. Expanding gives third central moment and fourth central moment . Thus skewness is 2, kurtosis is 9, and excess kurtosis is 6.
Other excess-kurtosis values include Poisson , continuous uniform , a fair die about −1.27, and equal to −2. The lower bound follows from
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 or . 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.
5Use 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 is . We say it exists when it is finite on some open interval around zero. Every distribution gives , 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
All terms are finite at every real , so every variable with finite support has an MGF. This expression is generally different from : exponential functions do not obey linearity.
For a Bernoulli variable, . Applying the binomial theorem to its PMF gives the binomial MGF . For a Poisson variable, the exponential series gives
These three MGFs are finite for every real .
Keep the convergence condition
For geometric failures with ,
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 ,
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 .
Integrate or transform other standard families
For ,
The apparent zero denominator at zero is removable; the defining expectation is one there.
For standard normal , complete the square:
Factoring out leaves a normal density integrating to one. Thus for all real .
For any affine transformation,
The shift supplies an exponential factor, while scaling changes the argument. Setting and gives the normal MGF .
Recognize when no MGF exists
For , any positive 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 at every positive . 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,
Differentiating brings down a factor of each time; setting removes the exponential. In particular,
The second derivative alone is the second raw moment, not the variance.
For Poisson , the chain rule gives . Differentiate again:
At zero, , so the first two raw moments are and . Subtract the squared mean to recover variance .
For binomial ,
At zero the parenthesis equals one, giving mean . Each occurrence of must be evaluated at zero after differentiation; substituting zero first would erase the information.
Match coefficients with factorials
The expansion is
A coefficient on must be multiplied by to obtain the raw moment. For a rate-one exponential, near zero. Every coefficient is one, so , not one. Scaling to rate gives .
For standard normal,
There are no odd powers, so odd raw moments vanish. The even moments are , 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 , the cumulant generating function. Then and
At zero, . Hence and directly. For Poisson, gives both as . For normal, gives and . Differentiating for a binomial gives and .
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 is binomial with 10 trials and success probability 0.7. Its mean is 7 and variance is 2.1. The expression is normal with mean 2 and variance 16, because the coefficient of is half the variance. Its SD is 4.
The function on 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 have the same mean and variance but different distributions.
Turn independent addition into multiplication
For independent ,
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 and independently,
Uniqueness identifies , so its zero-count probability is . 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 . Their sum is binomial with trials. Different success probabilities generally prevent that simplification.
For independent normals, multiply their MGFs and add their exponents. Means add, and the coefficients of show that variances add. Thus independent and sum to . Adding the SDs would give the wrong second parameter.
A sum of independent geometric-failures variables has MGF . This is the negative binomial count of failures before success number .
Reverse a transformation
The MGF matches with , and . It represents , with mean 4 and variance 9. The denominator restricts its domain to .
The product rule cannot be used merely because two summands have known MGFs. If both summands are the very same variable, their sum is and its MGF is . Squaring 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
1From weighted averages to transformed rewards
13 steps
- 1IntroductionLet 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.
- 2ExampleBuild 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:
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.
- 3Key InsightA mean does not name the next outcome
A fair die has mean , 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 . 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.
- 4ChallengeFind 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---
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.
- 5TipCheck convergence before using symmetry
For finite expectation, 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.
- 6ExplanationTransform a mean linearly
For finite means,
The probabilities weight every term of the sum, so they distribute across addition. Independence is not part of this step. If one die gives and you define , the variables are dependent, yet . In fact their total equals 7 on every outcome.
- 7ChallengeKeep a dependent relationship
A variable has mean 3. Define and total . What is ?
---reveal---
Linearity gives , then . You can also simplify before taking its expectation. Both paths work without independence because only addition and multiplication by constants are involved.
- 8ConnectionSplit repeated-trial waits
In independent trials with success probability , geometric failures have mean . Adding the final success gives trials mean .
To wait for successes, split the total into successive waiting blocks. Linearity gives mean total trials . For three sixes on a die, this is 18 rolls. The failure count is three smaller because it excludes the three successes.
- 9ExplanationChange the values before averaging
For a nonlinear reward , use LOTUS:
The original probabilities stay attached to their original inputs. For a continuous input, use . 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.
- 10ExampleSquare 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:
The square of the mean is only . Squaring amplifies the large prize before the average is taken. A single mean does not retain enough information to calculate the average square.
- 11ChallengeTry a reciprocal reward
A variable takes values 1 and 4 with equal probabilities. What is ?
---reveal---
The reciprocal values are 1 and 1/4, so . Taking the reciprocal of the mean gives instead. LOTUS averages the actual rewards; applying the function after averaging changes the calculation.
- 12ChallengeCombine a square and a shift
The same equally likely input values 1 and 4 now earn reward . What is the expected reward?
---reveal---
The two reward values are −2 and 4, so their mean is 1. Equivalently, and give . Use LOTUS for the square, then linearity for the two terms.
- 13RecapChoose 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.
2Choose indicators that count the right objects
11 steps
Save this lesson to follow every Walkthrough step by step.
- 1IntroductionMake a difficult count out of easy events
- 2ExplanationCheck indicator multiplication
- 3ChallengeRepair a union calculation
- 4ExampleCount the thresholds a wait crosses
- 5ExplanationDefine a collision as a pair
- 6ExampleCalculate birthday pairs
- 7ChallengeCount used labels instead
- 8ConnectionMatch positions and find records
- 9ExampleSplit a coupon collection into stages
- 10ChallengeUse a mean to guarantee an outcome
- 11RecapMatch the indicator to the count
3From squared deviations to dependent-count variance
17 steps
Save this lesson to follow every Walkthrough step by step.
- 1IntroductionSpread needs more than a center
- 2ExplanationExpand the squared deviation
- 3ExampleCompute the spinner second moment
- 4ChallengeFind spread from two moments
- 5ExplanationScale deviations, then square
- 6ChallengeSeparate repeated errors from independent errors
- 7ConnectionAverage observations and estimate their variance
- 8ExplanationRecognize a useful factorial cancellation
- 9ExampleBuild a negative binomial from waits
- 10ChallengeUse interval width to find spread
- 11ExplanationSquare a sum of indicators
- 12ExampleFind a single and a pair probability
- 13ExampleRecover the count variance
- 14ChallengeApply the pair method to a new count
- 15Key InsightRead dependence through pairs
- 16ChallengeScale the dependent count
- 17RecapChoose the information variance needs
4Center, standardize and interpret shape
12 steps
Save this lesson to follow every Walkthrough step by step.
- 1IntroductionChoose what the power measures
- 2ExplanationCompare the moments of a shifted variable
- 3ChallengeRecover a third central moment
- 4ExampleAllow more than one median
- 5TipCheck the highest moment you use
- 6ExplanationUse the sign of a centered cube
- 7ExampleCalculate Bernoulli skewness
- 8ChallengeReflect and shift a shape
- 9ExplanationKeep fourth-moment conventions separate
- 10ChallengeLook past a tall central mass
- 11Key InsightUse a fourth moment for its actual meaning
- 12RecapKeep center, powers and units separate
5Build, differentiate and match an MGF
15 steps
Save this lesson to follow every Walkthrough step by step.
- 1IntroductionPut a distribution into a function
- 2ExampleStart with a finite distribution
- 3ExplanationWatch the domain of an exponential integral
- 4ChallengeTransform a known MGF
- 5Key InsightAll moments are still not enough
- 6ExplanationDifferentiate before evaluating
- 7TipRestore the series factorial
- 8ChallengeRead a mean and a variance from a series
- 9ConnectionTake a logarithm for a shorter calculation
- 10ExplanationMultiply only independent MGFs
- 11ExampleIdentify a Poisson sum
- 12ChallengeKeep a common binomial probability
- 13ChallengeCombine matching and moment extraction
- 14Key InsightMatch an interval, not a single value
- 15RecapCarry the conditions through the calculation
Expectation and Variance practice questions
Set 1: Weighted means, spread and first MGFs10 Practice Questions
Question 1 of 10
Show answerHide answer
Question 2 of 10
Show answerHide answer
Question 3 of 10
Show answerHide answer
Question 4 of 10
Show answerHide answer
Question 5 of 10
Show answerHide answer
Question 6 of 10
Show answerHide answer
Question 7 of 10
Show answerHide answer
Question 8 of 10
Show answerHide answer
Question 9 of 10
Show answerHide answer
Question 10 of 10
Show answerHide answer
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
Show answerHide answer
Save this lesson to see this answer.
Question 2 of 10
Show answerHide answer
Save this lesson to see this answer.
Question 3 of 10
Show answerHide answer
Save this lesson to see this answer.
Question 4 of 10
Show answerHide answer
Save this lesson to see this answer.
Question 5 of 10
Show answerHide answer
Save this lesson to see this answer.
Question 6 of 10
Show answerHide answer
Save this lesson to see this answer.
Question 7 of 10
Show answerHide answer
Save this lesson to see this answer.
Question 8 of 10
Show answerHide answer
Save this lesson to see this answer.
Question 9 of 10
Show answerHide answer
Save this lesson to see this answer.
Question 10 of 10
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
Show answerHide answer
Save this lesson to see this answer.
Question 2 of 10
Show answerHide answer
Save this lesson to see this answer.
Question 3 of 10
Show answerHide answer
Save this lesson to see this answer.
Question 4 of 10
Show answerHide answer
Save this lesson to see this answer.
Question 5 of 10
Show answerHide answer
Save this lesson to see this answer.
Question 6 of 10
Show answerHide answer
Save this lesson to see this answer.
Question 7 of 10
Show answerHide answer
Save this lesson to see this answer.
Question 8 of 10
Show answerHide answer
Save this lesson to see this answer.
Question 9 of 10
Show answerHide answer
Save this lesson to see this answer.
Question 10 of 10
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
Show answerHide answer
Save this lesson to see this answer.
Question 2 of 10
Show answerHide answer
Save this lesson to see this answer.
Question 3 of 10
Show answerHide answer
Save this lesson to see this answer.
Question 4 of 10
Show answerHide answer
Save this lesson to see this answer.
Question 5 of 10
Show answerHide answer
Save this lesson to see this answer.
Question 6 of 10
Show answerHide answer
Save this lesson to see this answer.
Question 7 of 10
Show answerHide answer
Save this lesson to see this answer.
Question 8 of 10
Show answerHide answer
Save this lesson to see this answer.
Question 9 of 10
Show answerHide answer
Save this lesson to see this answer.
Question 10 of 10
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
Show answerHide answer
Save this lesson to see this answer.
Question 2 of 10
Show answerHide answer
Save this lesson to see this answer.
Question 3 of 10
Show answerHide answer
Save this lesson to see this answer.
Question 4 of 10
Show answerHide answer
Save this lesson to see this answer.
Question 5 of 10
Show answerHide answer
Save this lesson to see this answer.
Question 6 of 10
Show answerHide answer
Save this lesson to see this answer.
Question 7 of 10
Show answerHide answer
Save this lesson to see this answer.
Question 8 of 10
Show answerHide answer
Save this lesson to see this answer.
Question 9 of 10
Show answerHide answer
Save this lesson to see this answer.
Question 10 of 10
Show answerHide answer
Save this lesson to see this answer.
Stuck on your own question? Homework Help
Key Terms
A
Absolute expectation
Affine transformation
B
Bernoulli variance
Binomial variance
C
Central moment
Common success probability
Count second moment
Coupon collector
Cumulant generating function
E
Excess kurtosis
Expected count
Expected value
Exponential rate
F
Factorial moment
Finite population correction
Finite support
Fixed point of a permutation
Fourth central moment
Fundamental bridge
G
Geometric failures count
Geometric trials count
H
Harmonic number
I
Inclusion–exclusion
Independent copies
Independent-sum MGF
Indicator algebra
Indicator random variable
K
Kurtosis
L
Law of the unconscious statistician
Linearity of expectation
Lognormal variable
M
Mean squared error
Median
MGF derivative
MGF domain
MGF matching
MGF uniqueness
Mode
Moment generating function
Monotonicity of expectation
N
Negative binomial count
Normal even moments
Normal parameters
O
Occupancy problem
P
Pair indicator
Pair intersection probability
Poisson mean–variance equality
R
Raw moment
Record maximum
S
Sample mean
Sample raw moment
Sample variance
Second raw moment
Skewness
Squared deviation
Standard deviation
Standardization
Standardized moment
Symmetry about a center
T
Tail integral
Tail-sum formula
Taylor coefficient
Transformed random variable
U
Unordered pair count
V
Variance
W
Weighted average
About this lesson
Make your own Study Materials
Turn your notes, slides and documents into Study Guides, Practice Questions, Flashcards and 6 more tools.