Lecture 2: Random Variables
What is a Random Variable?
A
random variable
X
maps outcomes to numbers
Formally:
X : \Omega \to \mathbb{R}
Example:
X(\omega)
= payoff of an option at expiry
It is a function, not a number
Discrete vs Continuous
Discrete
:
X
takes countably many values
Example: number of defaults in a portfolio
Continuous
:
X
takes values in an interval
Example: log-return of a stock over one day
Different tools for each type
Expected Value
The
expectation
averages over all outcomes
Discrete:
\mathbb{E}[X] = \sum_x x \, P(X = x)
Continuous:
\mathbb{E}[X] = \int_{-\infty}^{\infty} x \, f(x) \, dx
It is the probability-weighted average outcome