Module ContingentClaims.Valuation.Stochastic¶
Data Types¶
data Expr t
data ExprF t x
Base functor for
Expr
. Note that this is ADT is re-used in a couple of places, e.g.,Process
, where however not every choice is legal and will lead to a partial evaluator.IdentF t
Field Type Description lowerBound t tau t rv x SumF [x]
NegF x
Field Type Description lhs x rhs x
Field Type Description lhs x rhs x
Field Type Description lhs x rhs x
Field Type Description rv x filtration t instance Corecursive (Expr t) (ExprF t)
instance Recursive (Expr t) (ExprF t)
instance Traversable (ExprF t)
data Process t
Functions¶
- fapf
: (Eq a, Show a, Show o, IsIdentifier t) => a -> (a -> Process t) -> (a -> a -> Process t) -> (o -> Process t) -> t -> Claim t Decimal a o -> Expr t
Converts a
Claim
into the Fundamental Asset Pricing Formula. The ϵ expressions are defined as E1-E10 in the Eber/Peyton-Jones paper. If you squint you can almost see they correspond one-to-one to the formulae in our whitepaper. This is still an experimental feature.