UNPKG

@railpath/finance-toolkit

Version:

Production-ready finance library for portfolio construction, risk analytics, quantitative metrics, and ML-based regime detection

17 lines (16 loc) 547 B
import { BetaOptions } from '../schemas/BetaOptionsSchema'; import { BetaResult } from '../schemas/BetaResultSchema'; /** * Calculate Beta (β) * * β = Cov(asset, benchmark) / Var(benchmark) * * Measures systematic risk relative to market/benchmark. * β = 1: moves with market * β > 1: more volatile than market * β < 1: less volatile than market * * @param options - Asset returns and benchmark returns * @returns Beta, covariance, variance, correlation */ export declare function calculateBeta(options: BetaOptions): BetaResult;