betaHedge2: Compute the beta-neutral portfolio for one market-correlated...

View source: R/beta.R

betaHedge2R Documentation

Compute the beta-neutral portfolio for one market-correlated asset hedged with a inversely correlated asset.

Description

For two assets with one positive beta and one negative beta, the beta neutral portfolio is a simple linear system that can be solved explicitly. The weights add up to one and the aggregate beta is zero. This function returns these weights based off historical estimates of the betas.

Usage

betaHedge2(arithmeticReturns)

Arguments

arithmeticReturns

the multivariate time-series of returns. Assumes the first column is the benchmark, e.g. S&P 500

Value

vector of betas


shill1729/trader documentation built on Dec. 27, 2022, 10:55 p.m.