Continuous Expectation, Variance, And Transformations

Scope Label

Conceptual support / Enrichment. These laws are used naturally in the normal-distribution topic. This note explains why the formulas behave the way they do, rather than treating them as isolated rules.

What This Note Assumes

You should already know:

  • a pdf gives probability by area;
  • ;
  • describes centre;
  • describes spread.

This note transfers the discrete expectation and variance ideas into the continuous setting.

Expectation as Continuous Weighted Average

For a discrete random variable,

For a continuous random variable, probability is spread continuously across the domain. The corresponding formula is

The pieces have direct meaning:

  • is the value being weighted;
  • is the probability density near ;
  • represents a tiny amount of probability;
  • represents a tiny contribution to the average.

Expectation is therefore still a weighted average. It is not necessarily the most likely value, and it does not have to be a value that the random variable can actually take.

Variance as Average Squared Spread

If

then variance is

It measures average squared distance from the mean.

The computational form is usually more efficient:

where

The standard deviation is

It returns the measure of spread to the original unit.

Worked Example: Expectation and Variance from a Pdf

Let have density

and otherwise.

First check the pdf:

Now calculate the expectation:

Next calculate :

So

The workflow is:

  1. check the total area is ;
  2. calculate using ;
  3. calculate using ;
  4. use .

Linear Transformations

For constants and ,

This rule matches the meaning of average. If every value of is multiplied by and then shifted by , the centre is multiplied by and shifted by .

Variance behaves differently:

The shift does not affect spread. It moves the whole distribution left or right without changing distances from the mean.

The scale factor changes distances by . Since variance uses squared distances, the variance changes by .

Caption: Adding a constant shifts the centre; multiplying by a constant rescales spread.

The bell-shaped curves in the figure are illustrative. The expectation and variance laws in this section are general continuous-random-variable laws, not normal-distribution-only rules.

Useful Laws

For constants and ,

and

For variance,

and

These laws are the same structural laws used for discrete random variables. The difference is how and may be computed when a pdf is given.

Sums and Differences of Random Variables

For random variables and ,

and

These expectation laws do not require independence.

For variance, independence matters. If and are independent, then

and

The second formula often surprises students. Variance does not subtract for because spread from independent sources accumulates.

If independence is not given, do not use these variance-addition rules without further information.

Why These Laws Matter for Normal Distribution

In the normal-distribution topic, you often meet statements such as:

  • ;
  • is also normally distributed;
  • sums of independent normal variables are normal;
  • standardisation subtracts the mean and divides by the standard deviation.

Those procedures depend on the expectation and variance laws here.

For example, if

then

and

So Continuous Random Variables explains what happens to centre and spread. Special Continuous Random Variables then applies those ideas to the special shape of a normal distribution.

Common Pitfalls

MistakeBetter thinking
Treating expectation as the most likely valueExpectation is a weighted average.
Forgetting the domain in an integralIntegrate over the support of the pdf.
Using instead of These are different quantities.
Writing Variance rescales by and is not shifted by .
Subtracting variances for For independent variables, variances add for both sums and differences.
Using variance-addition without independenceIndependence is needed for the simple variance-addition rule.

Revision Checklist

  • Can you explain as a continuous weighted average?
  • Can you calculate and from a simple pdf?
  • Can you use ?
  • Can you explain why adding changes expectation but not variance?
  • Can you explain why multiplying by changes variance by ?
  • Can you state when variances of sums or differences may be added?
  • Can you connect these laws to normal-distribution transformations?