Learn R Programming

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

ecd (version 0.6.4)

Elliptic Distribution Based on Elliptic Curves

Description

An implementation of the univariate elliptic distribution and elliptic option pricing model. It provides detailed functionality and data sets for the distribution and modelling. Especially, it contains functions for the computation of density, probability, quantile, fitting procedures, option prices, volatility smile. It also comes with sample financial data, and plotting routines.

Copy Link

Version

Install

install.packages('ecd')

Monthly Downloads

57

Version

0.6.4

License

Artistic-2.0

Maintainer

Stephen Lihn

Last Published

January 4th, 2016

Functions in ecd (0.6.4)

ecd.cubic

Generate or solve the cubic polynomial for ecd
ecd.read_csv_by_symbol

Read csv file of sample data
ecop-class

An S4 class to represent the top-level option model
ecdb

Constructor of ecdb class for the elliptic database
ecd.polar

Polar constructor of ecd class
ecd.rational

Utility to convert a numeric to a rational
ecld.gamma

Incomplete gamma function and asymptotic expansion
plot_2x2.ecd

Standard 2x2 plot for sample data
ecop.bs_implied_volatility

Implied volatility of Black-Sholes model
ecd.mp2f

Wrapper to convert mpfr to numeric
ecdattr.pairs_polar

Create a list of basic ecdattr objects in polar coordinate
history.ecdb

List of history in the Elliptic DB
jinv.ecd

J-invariant of the elliptic curve $y(x)$
ecd.stats

Compute statistics of an ecd object
ecd.cusp_std_moment

The moments, characteristic function (CF), and moment generating function (MGF) of standard cusp distribution.
ecd.toString

String representation of ecd
ecd.sd

Standard deviation, variance, mean, skewness, and kurtosis of ecd
ecd.fit_ts_conf

Timeseries fitting utility
ecld

Constructor of ecld class
ecdq

Constructor of ecdq class
integrate_pdf.ecd

Integrate a function with PDF of the distribution
ecld.mu_D

mu_D of ecld
ecld.solve

Analytic solution for $y(x)$ in lambda distribution
ecd.mpfr

Wrapper to convert numeric to mpfr
ecd

Constructor of ecd class
ecd.read_symbol_conf

Read conf for sample data
ecd.mpnum

Wrappers for ecd to maintain consistent type between mpfr and numeric
ecdb.protectiveCommit

Protective commit
ecld.imnt

Incomplete moment (imnt) of ecld
moment.ecd

Compute the moment of ecd via integration
ecd.solve_cusp_asym

Trigonometric solution for asymmetric cusp distribution
summary.ecdb

Summary for the Elliptic DB (ECDB)
dec

The Elliptic Distribution
ecd.ccdf

Complementary CDF of ecd
ecd.cdf

CDF of ecd
ecd.cusp

Cusp constructor of ecd class
ecld-class

An S4 class to represent the lambda distribution
ecld.cdf

CDF and CCDF of ecld
ecop.opt-class

An S4 class to represent the option data and model calculation
ecd.max_kurtosis

Utility to calculate where the maximum kurtosis is on the positive j=0 line
ecop.read_csv_by_symbol

Read option data csv
ecd-class

The ecd class
ecop.from_symbol_conf

Constructor of ecop class by read conf for option sample data
discr.ecd

Discriminant of the elliptic curve $y(x)$
ecd.imgf

Incomplete MGF of ecd
ecdattr.pairs

Create a list of basic ecdattr objects
ecd.cusp_a2r

Conversion between alpha and gamma for cusp distribution
ecd.data_stats

Statistics and histogram on log returns
solve_sym.ecd

Analytic solution for a symmetric elliptic curve
ecd.ogf

Option generating function of ecd
ecd.manage_hist_tails

Manage histogram tails
ecdb-class

setClass for ecdb class
solve.ecd

Solve the elliptic curve $y(x)$
ecd.y0_isomorphic

The analytic solution of $y(0)$ via isomorphic mapping.
ecd-package

ecd: A package for the elliptic distribution.
ecd.data

Read sample data
ecdattr.enrich

Enrich a basic ecdattr object
ecd.adj_gamma

Discriminant-adjusted gamma
ecld.mgf_term

The term structure of ecld symmetric MGF
ecdb.dbSendQuery

Send query to the elliptic database
ecd.pdf

Calculate the PDF of an ecd object
ecd.lag

Utility to shift a vector of numeric or mpfr
ecd.integrate

Wrapper to integrate numeric and mpfr
ecld.op_V

The O, V, U operators in option pricing model
ecd.has_quantile

Whether the ecd object has quantile data or not
ecd.setup_const

Integration preprocessor for an ecd object
ecld.imgf

Incomplete moment generating function (IMGF) of ecld
ecop.polyfit_option

Poly fit on option prices
read.ecdb

Read API for the ecdb
ecld.ogf_star

Star OGF of ecld
ecdattr

Constructor of ecdattr class for the Elliptic Database (ECDB)
numericMpfr-class

The numericMpfr class
ecd.estimate_const

Estimate the normalization constant for an ecd object
ecd.uniroot

Uniroot wrapper
ecld.mpnum

Wrappers for ecld to maintain consistent type between mpfr and numeric
ecld.ogf

Option generating function (OGF) of ecld
ecdq-class

setClass for ecdq class
ecld.const

Analytic solution of the normalization constant for lambda distribution
ecld.moment

The moments and MGF of ecld
solve_trig.ecd

Trigonometric solution for a elliptic curve
quantilize.ecd

Add the quantile data to the ecd object
ecd.ts_lag_stats

Lag statistics on timeseries of log returns
ecld.ivol_ogf_star

Calculate implied volatility using star OGF and small sigma formula
ecop.bs_option_price

Calculate option price from implied volatility in Black-Sholes model
bootstrap.ecdb

Bootstrap data for the Elliptic DB (ECDB)
ecld.y_slope

Analytic solution for the slope of $y(x)$ in lambda distribution
ecop.plot_option

Plot option chain charts using conf from option sample data
ecld.pdf

Calculate the PDF of an ecld object
ecd.mpfr_qagi

Utility to integrate mpfr with infinity via qagi
ecd.fit_data

Sample data fit
ecld.sged_const

The integral solutions of SGED
ecd.asymp_stats

Compute asymptotic statistics of an ecd object
write.ecdb

Write API for the ecdb for a list of basic ecdattr objects
ecldOrEcd-class

The ecldOrEcd class
ecdattr-class

An S4 class to represent the ecdattr row in the Elliptic Database (ECDB)
ellipticity.ecd

Ellipticity of ecd object
ecd.df2ts

Utility to standardize timeseries from data.frame to xts
ecld.sd

Compute statistics analytically for an ecld object
y_slope.ecd

Slope of $y(x)$