Theory 1

Expected value

The expected value E[X] of random variable X is the weighted average of the values of X, weighted by the probability of those values.

Discrete formula using PMF:

E[X]=∑kk⋅PX(k)

Continuous formula using PDF:

E[X]=∫−∞+∞x⋅fX(x)dx

Notes:

  • Expected value is sometimes called expectation, or even just mean, although the latter is best reserved for statistics.
  • The Greek letter μ is also used in contexts where ‘mean’ is used.

Let X be a random variable, and write E[X]=μ.

Variance

The variance Var[X] measures the average squared deviation of X from μ. It estimates how concentrated X is around μ.

  • Defining formula:
Var[X]=E[(X−μ)2]
  • Shorter formula:
Var[X]=E[X2]−E[X]2

Calculating variance

  • Discrete formula using PMF:
Var[X]=∑k(k−μ)2PX(k)
  • Continuous formula using PDF:
Var[X]=∫−∞+∞(x−μ)2fX(x)dx

Standard deviation

The quantity σX=Var[X] is called the standard deviation of X.