Verification package

The verification package for this guide: the price series used in the worked example, reference implementations in R and Python, and expected_outputs.csv listing every number printed in the guide, with its section and tolerance. Run either script and it recomputes every figure and reports PASS or FAIL per figure.

Verification Package

The verification package for this guide: the price series used in the worked example, reference implementations in R and Python, and expected_outputs.csv listing every number printed in the guide, with its section and tolerance. Run either script and it recomputes every figure and reports PASS or FAIL per figure.

  • README.md
  • data.csv
  • expected_outputs.csv
  • reference.R
  • reference.py

Download the package (ZIP)

Back to the guide: Measuring Returns Correctly: Arithmetic, Geometric, and Log Returns