Learn R Programming

⚠️There's a newer version (2.10-0) of this package.Take me there.

NMOF (version 2.3-1)

Numerical Methods and Optimization in Finance

Description

Functions, examples and data from the first and the second edition of "Numerical Methods and Optimization in Finance" by M. Gilli, D. Maringer and E. Schumann (2019, ISBN:978-0128150658). The package provides implementations of optimisation heuristics (Differential Evolution, Genetic Algorithms, Particle Swarm Optimisation, Simulated Annealing and Threshold Accepting), and other optimisation tools, such as grid search and greedy search. There are also functions for the valuation of financial instruments such as bonds and options, for portfolio selection and functions that help with stochastic simulations.

Copy Link

Version

Install

install.packages('NMOF')

Monthly Downloads

1,235

Version

2.3-1

License

GPL-3

Issues

Pull Requests

Stars

Forks

Maintainer

Enrico Schumann

Last Published

January 19th, 2021

Functions in NMOF (2.3-1)

CPPI

Constant-Proportion Portfolio Insurance
NMOF-package

Numerical Methods and Optimization in Finance
LS.info

Local-Search Information
MA

Simple Moving Average
EuropeanCall

Computing Prices of European Calls with a Binomial Tree
French

Download Datasets from Kenneth French's Data Library
DEopt

Optimisation with Differential Evolution
NMOF-internal

Internal NMOF functions
LSopt

Stochastic Local Search
GAopt

Optimisation with a Genetic Algorithm
vanillaBond

Pricing Plain-Vanilla Bonds
TAopt

Optimisation with Threshold Accepting
TA.info

Threshold-Accepting Information
NS

Zero Rates for Nelson--Siegel--Svensson Model
SAopt

Optimisation with Simulated Annealing
PSopt

Particle Swarm Optimisation
Shiller

Download Robert Shiller's Data
greedySearch

Greedy Search
callCF

Price a Plain-Vanilla Call with the Characteristic Function
SA.info

Simulated-Annealing Information
NSf

Factor Loadings for Nelson--Siegel and Nelson--Siegel--Svensson
bracketing

Zero-Bracketing
fundData

Mutual Fund Returns
callHestoncf

Price of a European Call under the Heston Model
callMerton

Price of a European Call under Merton's Jump--Diffusion Model
colSubset

Full-rank Column Subset
mvFrontier

Computing Mean--Variance Efficient Portfolios
divRatio

Diversification Ratio
resampleC

Resample with Specified Rank Correlation
restartOpt

Restart an Optimisation Algorithm
optionData

Option Data
repairMatrix

Repair an Indefinite Correlation Matrix
minvar

Minimum-Variance Portfolios
randomReturns

Create a Random Returns
minCVaR

Minimum Conditional-Value-at-Risk (CVaR) Portfolios
qTable

Prepare LaTeX Table with Quartile Plots
drawdown

Drawdown
putCallParity

Put-Call Parity
trackingPortfolio

Compute a Tracking Portfolio
xtContractValue

Contract Value of Australian Government Bond Future
bundData

German Government Bond Data
bundFuture

Theoretical Valuation of Euro Bund Future
mc

Option Pricing via Monte-Carlo Simulation
showExample

Display Code Examples
gridSearch

Grid Search
testFunctions

Classical Test Functions for Unconstrained Optimisation
xwGauss

Integration of Gauss-type
pm

Partial Moments
vanillaOptionEuropean

Pricing Plain-Vanilla Options (European and American)