Suppose a model says that the log price ratio of a stock over one year is normal with mean and standard deviation , and the stock starts at currency units. A risk report asks for the probability that the price ends at or below , the density of the price itself and its expected value. None of these comes from putting the price itself into the normal formulas, because the exponential stretches some intervals of log returns and squeezes others. This lesson describes a law through its CDF and its density, derives the density of a function of a random variable from the inverse Jacobian, and obtains the lognormal density and its moments by completing the square.
Key terms
Random variable
Definition Fix a probability space . A random variable is a function that is measurable with respect to , which means that
for every real . Equivalently, the event belongs to for every Borel set of the real line. The distribution, or law, of is the probability measure on the Borel sets, and measurability is exactly what makes these probabilities defined. If is a Borel function, for example a continuous or a monotone one, then is again a random variable. Different random variables, even on different probability spaces, can have the same law.
In plain words A random variable attaches a number, such as a price or a payoff, to each outcome, in such a way that every question of the form “is the value at most ” has a probability. The law keeps only how the probability is spread over the values and forgets which outcome produced which value. Measurability depends on the collection of events, so a price can be a random variable for full information and fail to be one for less information.
Example In a constructed two-state model, with , and contains all four subsets of . The price with and is a random variable, and so is the call payoff , which is in the up state and in the down state. The law of puts mass at and at . For the trivial collection , which carries no information, the same is not measurable, because is the event , which that collection does not contain. Only constant functions are measurable for the trivial collection.
Cumulative distribution function
Definition The cumulative distribution function (CDF) of a random variable is the function
of a real threshold . It is nondecreasing and right-continuous, with as and as . Conversely, every function with these four properties is the CDF of some random variable, a result stated here without proof. The CDF determines the law, and for ,
Writing for the limit from the left, the jump equals . A value with is an atom of the law. The CDF describes discrete, continuous and mixed laws alike.
In plain words The CDF says how much probability has accumulated up to a threshold. Raising the threshold can only add outcomes, so the CDF never decreases. A flat stretch carries no probability, and a jump means probability sitting on a single value, with the height of the jump equal to that probability.
Example In the two-state model, for , for and for . It jumps by at and by at , the probabilities of the two atoms. Right-continuity shows in , because the event includes the atom at , while .
Probability density function
Definition A random variable , or its law, is absolutely continuous with probability density function if and
for every real . Then integrates to , for every Borel set , and at every point where is continuous. A density is determined only up to changes on a set of length zero. It is not a probability. It has the units of one over the units of , it can exceed , and for every , also where . A law with an atom has no density. A continuous CDF is not enough for a density either, since singular continuous laws exist, but they lie outside this lesson.
In plain words A density is probability per unit of the variable. When is continuous at , a short interval from to has probability close to . Only areas under the density are probabilities, and a single point has no width and no probability.
Example A price modeled as uniform on has density per currency unit on that interval, more than , and every interval of length inside it has probability . For a mixed law, let be the lognormal price of the opening question and let be a call payoff. Then , an atom at , while for the CDF is
smooth on . Its derivative on integrates to only , so a density formula alone would lose the half of the probability that sits at a zero payoff.
Change of variables and the Jacobian
Definition Let have density with for an open interval . Let be continuously differentiable on with for every . Then is strictly monotone, maps onto an open interval , and has a continuously differentiable inverse . The random variable has the density
for , and for . The factor is the absolute value of the Jacobian of the inverse map, which in one dimension is its derivative. To derive it for increasing , note that , so on , and the substitution in the integral of up to produces the density. For decreasing the inequality reverses, , and , which the absolute value corrects. More generally, suppose splits, apart from finitely many points, into open intervals on each of which is continuously differentiable with , and let be the inverse of on . Then every branch that reaches contributes,
The left-out points have probability zero, and the value of at their images does not matter.
In plain words The map moves probability without creating or destroying any. Outputs between and come from inputs in an interval of width close to , which carries probability close to , and dividing by gives the new density. The absolute value keeps widths positive when the map reverses order, and a map that folds several inputs onto one output collects probability from all of them.
Example Let be standard normal with density , and let , the square of a standardized return. Since , split the line into and . The inverses there are and , both branches reach every , and both have . So for ,
the chi-squared density with one degree of freedom, unbounded near and still integrable. As a check, , which is about . Keeping only the positive branch would give about , half of the probability.
Lognormal distribution
Definition Let with real and , and let . The price has a lognormal distribution, which means that . The exponential is strictly increasing from onto , with inverse and . With the standardized log price
the CDF and the density of are, for ,
and both are zero for . Since is strictly increasing on and , the median is . The mean , derived in the next card, lies above the median. If , the price is the constant , an atom with no density, so the formulas need . Lognormality is a model assumption about prices, not a property of market data.
In plain words A lognormal price is the starting price times the exponential of a normal log return. It is always positive and skewed to the right. The factor is the Jacobian of the logarithm, and it is why the price density is not the normal bell curve redrawn on a price axis. Because the exponential keeps the order of values, every quantile of the price is times the exponential of the same quantile of the log return. The median follows this rule, while the long right tail pulls the mean above it.
Example With the constructed values , and , the median price is and . The probability of ending at or below is , about . The and quantiles are and , which lie below and above the median. The density at the median is , about per currency unit.
Completing the square
Definition Completing the square rewrites a quadratic plus a linear term as one shifted square plus a constant. Let with and let be any real number. The exponent of the integrand in satisfies
so the integrand is times the density of , which integrates to . Hence
for every real , and the identity also holds when . For the lognormal price it gives for every real . The choices and give
and therefore
When , all moments of are finite, yet for every , because grows faster than the normal density decays. The moment generating function belongs to the normal logarithm , not to the price.
In plain words Multiplying the normal density by slides the bell curve to the right by and leaves a constant factor outside. Once the shifted bell curve is recognized, its integral is and the constant is the answer, with no series expansion or table needed.
Example For the constructed values , and ,
a standard deviation of about currency units. Doubling to with held fixed keeps the median at and raises the mean to . That rise comes from holding the mean log return fixed. It is not a claim that higher volatility raises expected returns. To keep the mean at instead, the parameter must fall to , and then the median falls to . A statement about the effect of volatility has to say which parameter stays fixed.
Check yourself
- In the constructed lognormal model with , and , find the probability that the price ends above and the price level that is exceeded with probability .
Show the answer
The event is the event , so
The level exceeded with probability is the quantile. The exponential keeps the order of values, so it is times the exponential of the quantile of , which is . The level is currency units.
- A classmate writes the price density as , the normal density of the log return evaluated at , without the factor . Explain what is wrong, and compute the integral of this function over for the constructed values.
Show the answer
The classmate dropped the Jacobian of the inverse map , whose derivative is . Substituting , so that , gives
which is about for the constructed values, not , so the function is not a probability density. The units also give it away. A density of a price must be measured per currency unit, while the classmate’s function has no units. With the factor the same substitution cancels against and the integral is exactly .
- Let be the price of one unit of a foreign currency in domestic currency units, lognormal with , and . Find the law of the reciprocal quote , its mean, and compare with .
Show the answer
The map is decreasing and continuously differentiable on with , and its inverse is with . For the CDF is , and the density is
using that is even. This is the lognormal density with starting value and log parameters and , as it must be, since and . Completing the square with gives
while . The two differ because is strictly convex on , so Jensen’s inequality makes whenever . The medians do match, because , so the median of is .