Source

Adapted from my own handwritten and hand-typed notes from Year 1 to Year 3 of my EEE degree

A random variable (r.v.) is a rule that assigns a real number to each outcome of an experiment. Capital is the variable and lower case is a particular value.

Discrete and continuous

Two types:

  • discrete: the possible values can be counted (sum of two dice, number of defective items)
  • continuous: the values fill an interval (height of a student, a sample mean)

Probability mass function (discrete)

is the pmf. It must satisfy:

  • for every

Probability density function (continuous)

is the pdf. Probabilities are areas under :

For a continuous r.v. , so and give the same answer. This is not true for a discrete r.v.

Distribution function (CDF)

For any r.v., :

Useful facts:

  • for continuous , and
  • a discrete CDF is a staircase that jumps by at each value

Worked example

Let for and 0 otherwise.

Solution:

  • for :
  • for and for

The centre and spread of a distribution are summarised by Expectation and Variance.