(Quoted from LexiFi)
LexiFi found that a functional programming language was the most effective tool for developing compositional contract and scenario algebras.
LexiFi users derive important benefits from a functional programming approach, including:
- Lists. Functional programming languages offer powerful support for useful pre-defined types such as lists. Lists play a central role in finance where they are used extensively to define schedules. For example, a swap schedule or a Bermuda option exercise schedule may be defined recursively using a list.
- Specification. The declarative formalism of functional programming languages is well suited for specifying complex data structures and algorithms, and the interactions between complex data structures and algorithms. In contrast, imperative programming languages tend to reflect the actual behavior of computers: complex types may be extremely difficult to design and maintain. Object-oriented languages are better candidates than imperative languages for implementing a contract algebra. However, they suffer from certain limitations, especially with respect to pattern matching (see " What are the limitations of data-oriented and object-oriented approaches for modeling financial instruments?").
- Functions. Functions are "first-class citizens" in functional programming languages: they can be used as arguments of other functions. For example, a "sliding contract" used in a LexiFi simulation is a function that takes a date and a scenario argument and returns a contract. A list of sliding contracts—i.e., a list of functions—is passed to LexiFi's simulator function to run a simulation...
More generally, quoting Don Syme of Microsoft Research:
"Mixed functional/imperative programming is a fantastic paradigm for many programming tasks. Languages such as OCaml and Standard ML provide excellent general purpose programming languages suited to medium-advanced programmers who want simple yet highly expressive tools that boost their productivity, primarily by reducing the error rate, increasing their productivity through type inference, and basically letting them focus on the difficult parts of their applications. ...
Purely functional languages like Haskell are excellent within certain niches, but while laziness and Haskell's very strict control of effects do offer substantial benefits they also pose real problems for interoperability between lazy and strict languages. Purely imperative programming languages like C or Pascal do not provide satisfying mechanisms for abstraction or data manipulation. Purely object oriented languages like Smalltalk are excellent for some dynamic applications but do not provide static guarantees. Typed class-based languages like C# and Java contain a very large number of constructs, and it can sometimes be difficult for programmers to choose how to model their problem, and sometimes result in very large amounts of code just to solve quite simple problems. In contrast, the core constructs of the ML family of languages provide a smaller number of simple, orthogonal constructs which work together to allow for succinct yet efficient solutions to programming problems, and in particular permit common patterns of coding to be abstracted very easily."
分享到:
相关推荐
Financial Modeling of the Equity Market is the most comprehensive, up-to-date guide to modeling equity portfolios. The book is intended for a wide range of quantitative analysts, practitioners, and ...
What is the Future of Financial Modeling? Chapter 20. Keyboard Shortcuts Chapter 21. Finance and Accounting Glossary Chapter 22. Readymade Functions Chapter 23. Sample Outputs Chapter 24. ...
Financial modeling with Excel
Simon Benninga的第四版书,非常清楚,知识内容详尽,介绍了金融建模相关
world sources in an easy-to-understand manner., Who this book is written for, This book is great for developers who are new to financial data modeling using Haskell. A basic knowledge of functional ...
Introduction to the Modeling and Analysis of Complex Systems introduces students to mathematical/computational modeling and analysis developed in the emerging interdisciplinary field of Complex ...
The Handbook of Financial Modeling 英文mobi 本资源转载自网络,如有侵权,请联系上传者或csdn删除 查看此书详细信息请在美国亚马逊官网搜索此书
相场模型的经典教程,包含MATLAB源代码说明,适合新手
Financial Modeling in Excel For Dummies
financial modeling on asset return. MBA class content
What You°re Going to Learn ? Win32 programming ? DirectX Foundation ? 2D graphics and algorithms ? Game programming techniques and data structures ? Multithreaded programming ? Artificial ...
The Handbook of Financial Modeling 英文epub 本资源转载自网络,如有侵权,请联系上传者或csdn删除 查看此书详细信息请在美国亚马逊官网搜索此书
Financial-Modeling-Prep-API:有关如何使用Financial Modeling Prep Api的简要说明
Simon Benninga-Financial Modeling-The MIT Press (2014)
An Introduction to Stochastic Modeling 随机过程,随机建模-英文教材
Python for Finance:Financial modeling and quantitative analysis explained
绝对很经典的教材,英文版,有很高的可用性,绝对的好帮手。维度建模的更要看了。
Function Modeling Resouces
顶级投行、金融估值建模培训资料-Financial Modeling _ Street Of Walls.pdf