Financial Functions: Return Rates and Volatility

The last five financial functions are used to convert between different types of financial return statistics.

In order to understand these functions, it is first necessary to provide some definitions.

Consider a time series (e.g., of the price of a stock): Pt, Pt+1, Pt+2,..., where Px is the price at year x. The annual return can be defined in several different ways, the most common of which are:

Given multiple years of data, these two annual return definitions represent time series of data. Mean annual returns of such a series can be defined in multiple ways:

The geometric mean annual return is the most common statistic used to describe mean annual returns. Hence, when the multiyear return for a mutual fund or stock is quoted, this is typically a geometric mean annual return

In addition to mean returns, the standard deviation The square root of the variance of a distribution. The variance is the second moment of the distribution and reflects the amount of spread or dispersion in the distribution. of the series of returns can also be computed:

The last five financial functions are used to convert between the statistics describing financial time series:

Function Description
gm2cm(geo. mean) Converts a geometric mean annual return (GR) to a mean continuously-compounded rate (i.e., an arithmetic mean log annual return (ALR)).
cm2gm(cont. mean) Converts a mean continuously compounded rate (i.e., an arithmetic mean log annual return (ALR) to a geometric mean of the annual return (GR)).
ari2cm(mean, SD) Converts an arithmetic mean annual return (AR) and a standard deviation of the annual return (SDR) to an arithmetic mean log annual return (ALR).
ari2vol(mean, SD) Converts an arithmetic mean annual return (AR) and a standard deviation of the annual return (SDR) to the standard deviation of the log annual return (SDLR), also known as the volatility.
geo2vol(geo. mean, SD) Converts a geometric mean annual return (GR) and a standard deviation of the annual return (SDR) to the standard deviation of the log annual return (SDLR), also known as the volatility.
geo. mean, cont. mean, mean (GR, ALR, AR): Must be greater than zero.
SD (SDLR): Must be greater than or equal to zero.
Arguments can be scalars or arrays.