Skip to content

Main content

Return Factor Log Gap Tool

Compare two supplied positive gross return factors in log space.

Loading tool…

Description

Return their natural-log difference and first/second factor ratio.

A simple return is a change relative to an initial value, while a gross return is a wealth multiplier and a log return uses a logarithm of that multiplier. Dividend, split, fee and currency conventions change what is included.

Return their natural-log difference and first/second factor ratio.

When to use this tool

Use Return Factor Log Gap when you need a stated return-basis conversion or contribution.

How to use the tool and how it works

  1. Enter firstGrossFactor, secondGrossFactor. Use the units and conventions below.
  2. Run the tool. Correct any format, range, or cross-field input error before interpreting the output.
  3. Read logGap, factorRatio. Use the output convention below.

Require positive gross factors. Return their natural-log difference and first/second factor ratio.1

Input fieldMeaning and unitsAccepted input
firstGrossFactorFirst Gross FactorRequired. Finite number; strictly above 0.
secondGrossFactorSecond Gross FactorRequired. Finite number; strictly above 0.
Output fieldInterpretationReturned shape
logGapLog GapRequired. Finite number.
factorRatioFactor RatioRequired. Finite number.
json
{
  "input": {
    "firstGrossFactor": 1.2,
    "secondGrossFactor": 1
  },
  "output": {
    "logGap": 0.1823215567939546,
    "factorRatio": 1.2
  }
}

Limitations and assumptions

  • Factors are dimensionless wealth multipliers on comparable horizons. A log gap is not the arithmetic difference of simple returns or an annualized rate by itself.
  • Inputs must satisfy both the field types and the cross-field conditions above. Invalid input causes an error; a successful false flag or documented placeholder is a different result.
  • Numeric calculations use binary floating point unless exact decimal-integer arithmetic is explicitly stated. No hidden measurement tolerance or decimal rounding is added; nonfinite or out-of-contract results are rejected. Numeric signed-zero results are exported as zero.

Alternative or Complementary methods

Reconstruct the full investment cashflow and adjustment history for performance analysis. Align horizons, quote direction and numeric return scales, and include relevant fees and taxes explicitly.

References

  1. Calculation and input contract: financial-economics/return-factor-log-gap — tool.io

Similar or alternative tools