Skip to content

๐Ÿ“ˆ Returns & Growth Rates

This page covers the mathematical foundations of investment returns โ€” how to measure, compare, and annualize growth rates. These concepts are used throughout LibreFolio's measurement tools and portfolio analytics.


๐Ÿ“Š Simple (Discrete) Return

The simple return over a period is the percentage change:

\[ R_{simple} = \frac{P_{end} - P_{start}}{P_{start}} = \frac{P_{end}}{P_{start}} - 1 \]

Example

If EUR/USD moves from 1.10 to 1.14:

\[R = \frac{1.14 - 1.10}{1.10} = 0.0364 = 3.64\%\]

๐Ÿ“Š Properties

  • Intuitive: directly represents "how much you gained/lost"
  • Not additive: you cannot simply sum simple returns across periods to get total return
  • Compounding: multi-period returns must be multiplied, not added
\[ R_{total} = (1 + R_1)(1 + R_2) \cdots (1 + R_n) - 1 \]

๐Ÿ“ Logarithmic (Continuous) Return

The log return is the natural logarithm of the price ratio:

\[ r_{log} = \ln\left(\frac{P_{end}}{P_{start}}\right) = \ln(P_{end}) - \ln(P_{start}) \]

๐Ÿ“Š Properties

  • Additive across time: total log return = sum of sub-period log returns
\[ r_{total} = r_1 + r_2 + \cdots + r_n \]
  • Symmetric: a +5% move followed by a โˆ’5% move returns exactly to the starting point
  • Approximately equal to simple return for small values: \(r_{log} \approx R_{simple}\) when \(R_{simple}\) is small

๐Ÿ”„ Conversion

\[ r_{log} = \ln(1 + R_{simple}) \qquad R_{simple} = e^{r_{log}} - 1 \]

๐Ÿ“… Annualized Return

To compare returns across different time periods, we annualize them โ€” projecting the observed growth rate to a full year.

๐Ÿ“ˆ Compound Annual Growth Rate (CAGR)

The most common annualization method. Given a total return over \(d\) calendar days:

\[ R_{annual} = \left(\frac{P_{end}}{P_{start}}\right)^{365/d} - 1 \]

This is what LibreFolio's Measures tool displays.

Example

EUR/USD moves from 1.10 to 1.14 over 90 days:

\[R_{annual} = \left(\frac{1.14}{1.10}\right)^{365/90} - 1 = (1.0364)^{4.056} - 1 \approx 15.5\%\]

๐Ÿ“ Annualized Log Return

For log returns, annualization is simply scaling:

\[ r_{annual} = r_{log} \times \frac{365}{d} \]

This linearity is one of the key advantages of log returns in quantitative finance.


๐Ÿ”„ Relationship Between Simple and Log Returns

Property Simple Return \(R\) Log Return \(r\)
Compounding Multiplicative: \((1+R_1)(1+R_2)\) Additive: \(r_1 + r_2\)
Symmetry Asymmetric: +10% then โˆ’10% โ‰  0 Symmetric: +10% then โˆ’10% = 0
Annualization \((1+R)^{365/d} - 1\) \(r \times 365/d\)
Portfolio returns Weighted sum works โœ… Weighted sum doesn't work โŒ
Time series Not additive โŒ Additive โœ…
Interpretation "I gained 5%" "Log growth rate was 0.0488"

When to use which?

  • Simple returns for reporting to users and computing portfolio-level returns
  • Log returns for statistical analysis, volatility estimation, and time-series models

๐Ÿ” Rolling Return

A rolling return is the simple return of the sections above, measured over a window that slides along the series: one value per date, each looking back over the same span. LibreFolio counts that span in calendar days, and one calculation serves two features of an asset's page: the chart's Rolling Return mode, and the Rolling Return signal of the Signals panel, in the risk family, which draws the same series over the prices. The ๐Ÿ“– guide button on the card of the Rolling Return signal opens this page.

๐Ÿ—“๏ธ Over a Window of Calendar Days

Each date is measured against the close exactly \(N\) calendar days earlier. With \(\hat{P}(d)\) the resolved close of calendar day \(d\) โ€” the last close available on or before \(d\), converted into the chart's currency, so that a weekend or a holiday reads the session before it โ€” the return on day \(d\) is

\[ R^{[N]}(d) = \frac{\hat{P}(d)}{\hat{P}(d - N)} - 1 \]

In the chart's mode, the presets 1W, 1M, 3M and 1Y set \(N\) to 7, 30, 90 and 365 days, and a custom window counts 7 days a week, 30 a month and 365 a year; on the signal's card, \(N\) is the Window, a whole number of days โ€” 30 by default, at least 1. A point is left empty, never estimated, when either end has no resolved close or a close that is not positive; when no point of the range can be computed, the result is unavailable. The chart's mode also shows, for each point, the reference date it asked for and the dates of the price and exchange rate actually used โ€” see the Interactive Chart.

โš–๏ธ Calendar Days, Not Sessions

The window is a span of time, not a number of quotes. The other indicators of the Signals panel count quotes instead: the technical indicators count sessions, the days with a quote of their own, and the rolling volatility, Sharpe ratio and beta count return observations. An equal count can then mean different spans โ€” 30 sessions of an instrument quoted on weekdays cover about six weeks, 30 sessions of one quoted every day cover 30 days โ€” whereas a window of \(N\) calendar days covers exactly \(N\) days on every asset, whatever its quoting rhythm: two rolling returns with the same \(N\) always compare the same span. The return is defined on every date of the chart, and a closed day at either end is resolved to the last close before it.

The rolling return is a price-only simple return: it adds no dividends, coupons or cash flows, and it is not annualised. To compare it with a return over a different span, annualise it with the CAGR formula above, \(d\) being \(N\) โ€” bearing in mind the pitfall on very short periods below.


๐Ÿ“ Day Count Conventions

The number of days \(d\) can be computed differently depending on the convention:

  • Actual/365: Calendar days (what LibreFolio uses)
  • Actual/360: Calendar days over a 360-day year (common in money markets)
  • 30/360: Assumes 30-day months and 360-day year

For more details, see Day Count Conventions.


๐Ÿ’ฐ Portfolio Return Methods

When a portfolio has cash flows (deposits, withdrawals), a single return formula is not enough, because capital injections or withdrawals would dilute or artificially inflate the percentage return.

To solve this, advanced performance metrics are used: - TWRR (Time-Weighted Rate of Return): Isolates the performance of the assets, ignoring the investor's cash flow timing. - MWRR (Money-Weighted Rate of Return): Measures the investor's personal performance, taking cash flow timing into account.

For a deep dive into how these metrics work, why they differ, and how LibreFolio uses them, see the dedicated Performance Metrics chapter.


โš ๏ธ Pitfalls

  1. Very short periods: Annualizing a 3-day return can produce misleading figures (e.g., a 0.1% 3-day move โ†’ 12.5% annualized)
  2. Negative prices: Log returns are undefined for negative values โ€” not an issue for FX rates
  3. Compounding frequency: CAGR assumes continuous compounding; real-world instruments may compound daily, monthly, or quarterly