burkeratio(): number
Computes the Burke Ratio.
The Burke Ratio is a risk-adjusted performance metric that accounts for drawdowns. In 'simple' mode, it calculates the excess return over the risk-free rate divided by the square root of the sum of squared drawdowns. In 'modified' mode, the result is scaled by the square root of the number of data points.
Burke ratio for a single asset with simple mode
Burke ratio for a single asset with simple mode
import { assertEquals } from "jsr:@std/assert"; const x = [0.003, 0.026, 0.015, -0.009, 0.014, 0.024, 0.015, 0.066, -0.014, 0.039]; assertEquals(burkeratio(x, 0, 12), 8.282140961596584);
x: array
Asset or portfolio returns
burkeratio(): array
Computes the Burke Ratio.
The Burke Ratio is a risk-adjusted performance metric that accounts for drawdowns. In 'simple' mode, it calculates the excess return over the risk-free rate divided by the square root of the sum of squared drawdowns. In 'modified' mode, the result is scaled by the square root of the number of data points.
Burke ratio for a single asset with simple mode
Burke ratio for a single asset with simple mode
import { assertEquals } from "jsr:@std/assert"; const x = [0.003, 0.026, 0.015, -0.009, 0.014, 0.024, 0.015, 0.066, -0.014, 0.039]; assertEquals(burkeratio(x, 0, 12), 8.282140961596584);
x: matrix
Asset or portfolio returns
The computed Burke Ratio