Financial Derivatives Toolbox | ![]() ![]() |
Allocate optimal hedge for target costs or sensitivities
Syntax
[PortSens, PortCost, PortHolds] = hedgeopt(Sensitivities, Price, CurrentHolds, FixedInd, NumCosts, TargetCost, TargetSens, ConSet)
Arguments
Notes
1. The user-specified constraints included in ConSet may be created with the functions pcalims or portcons . However, the portcons default PortHolds positivity constraints are typically inappropriate for hedging problems since short-selling is usually required.2. NPOINTS , the number of rows in PortSens and PortHolds and the length of PortCost , is inferred from the inputs. When the target sensitivities, TargetSens , is entered, NPOINTS = 1 ; otherwise NPOINTS = NumCosts , or is equal to the length of the TargetCost vector.3. Not all problems are solvable (e.g., the solution space may be infeasible or unbounded, or the solution may fail to converge). When a valid solution is not found, the corresponding rows of PortSens and PortHolds and the elements of PortCost are padded with NaN 's as placeholders.
|
Description
[PortSens, PortCost, PortHolds] = hedgeopt(Sensitivities, Price,
CurrentHolds, FixedInd, NumCosts, TargetCost, TargetSens,
ConSet)
allocates an optimal hedge by one of two criteria:
Hedging involves the fundamental tradeoff between portfolio insurance and the cost of insurance coverage. This function allows investors to modify portfolio allocations among instruments to achieve either of the criteria. The chosen criterion is inferred from the input argument list. The problem is cast as a constrained linear least-squares problem.
PortSens
is a number of points (NPOINTS
)-by-NSENS
matrix of portfolio sensitivities. When a perfect hedge exists, PortSens
is zeros. Otherwise, the best hedge possible is chosen.
PortCost
is a 1
-by-NPOINTS
vector of total portfolio costs.
PortHolds
is an NPOINTS
-by-NINST
matrix of contracts allocated to each instrument. These are the reallocated portfolios.
See Also
pcalims
, portcons
, portopt
in the Financial Toolbox User's Guide
lsqlin
in the Optimization Toolbox User's Guide
![]() | floorbyhjm | hedgeslf | ![]() |