Search
CoursesStock researchPaper tradingNews
HomeAbout
Learn › University level › RS 205 › Module 1

Module 1 · Data and returns Core

Classify financial data and calculate simple and log returns correctly.

RS 205 Statistics for Investors · By · ~5 min read, ~1.5 hr with practice · Not started

By the end of this module you'll be able to

  • Classify financial data and calculate simple and log returns correctly.

Kinds of data

Data are also numerical (continuous like returns, or discrete like the number of defaults) or categorical (sector, rating).

Population and sample

A population is the full set of interest; a sample is the part observed. Every return history is a sample from the unknown process that generates returns. Statistics is the craft of reasoning from the sample to that process, with an honest statement of the uncertainty.

Prices are not the raw material; returns are

Prices trend and their scale differs by stock, so statistics are computed on returns.

Worked example

A share goes from $100 to $110, then to $99.

Period Simple return Log return
1 +10.00% +9.53%
2 -10.00% -10.54%
Total -1.00% (compounded: 1.10 x 0.90 minus 1) -1.01% (sum of the two)

Which to use

Getting clean data

How much data

More observations reduce estimation error, but old data may describe a different world. Five years of monthly returns (60 points) is a common compromise for beta; several years of daily data for volatility.

More worked examples

Worked example 2: total return with a dividend

A share bought at $50 pays a $1.50 dividend and ends the year at $52.

  • Simple total return = (52 minus 50 + 1.50) / 50 = 7.00%.
  • Price return alone = 4.00%.
  • Log total return = ln(53.50 / 50) = 6.77%.

Ignoring the dividend would understate the return by three percentage points, more than the price change itself in many years for high-yield stocks.

Worked example 3: compounding monthly returns

Three months of simple returns: +2%, -1%, +3%.

  • Compounded: 1.02 x 0.99 x 1.03 minus 1 = 4.01%.
  • Adding the simple returns gives 4.00%, close but wrong, and the error grows with volatility and time.
  • Log returns: ln(1.02) + ln(0.99) + ln(1.03) = 0.0198 minus 0.0101 + 0.0296 = 0.0393, and e^0.0393 minus 1 = 4.01%. Log returns add; simple returns compound.

Excess returns

Many tools in this course use returns above the risk-free rate. A stock that returned 0.8% in a month when treasury bills paid 0.3% earned an excess return of 0.5%. Excess returns measure what the investor earned for taking risk.

Annualizing log returns

The annual log return is the sum of the twelve monthly log returns, and the mean monthly log return times 12 is the annualized mean. A sum of 0.06 converts back to a simple annual return of e^0.06 minus 1 = 6.18%.

Timing traps in data

Markets close at different times. Daily returns of a Japanese stock and the S&P 500 are measured over different hours, so news that hits Tokyo's next session shows up a day later; daily correlations between them look lower than they are. Holidays that close one market but not another cause the same problem. Weekly or monthly data reduce the issue.

Corporate actions

Spin-offs, special dividends, rights issues and mergers all create jumps in unadjusted prices. Data providers adjust for most of them, but not always consistently. When a return series shows a single extreme value, check for a corporate action before treating it as a market move.

Put it into practice

Your mission

Download ten years of monthly adjusted closing prices for one stock and one index. Compute monthly simple and log returns for both. Confirm that the sum of the log returns equals ln(final price / first price).

Download a price history to work with →

Educational content only; not investment, tax or legal advice. Companies, tickers and figures are illustrative examples, not recommendations. Rules, rates and limits change, so check current details with the regulator, exchange or tax authority before relying on them. Worked examples are not forecasts. Written by Elizabeta Dimoska. RiskStock is not a registered dealer or adviser.