omegaratio(): number
Omega Ratio.
The Omega ratio is a measure of risk-return performance that divides the upside potential (gains) by the downside risk (losses) relative to a minimum acceptable return threshold.
Omega ratio for a single asset
Omega ratio for a single asset
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(omegaratio(x), 10.978260869565217);
x: array
asset/portfolio returns
omegaratio(): array | matrix
Omega Ratio.
The Omega ratio is a measure of risk-return performance that divides the upside potential (gains) by the downside risk (losses) relative to a minimum acceptable return threshold.
Omega ratio for a single asset
Omega ratio for a single asset
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(omegaratio(x), 10.978260869565217);
x: matrix
asset/portfolio returns