<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Ratanlal Mahanta on Medium]]></title>
        <description><![CDATA[Stories by Ratanlal Mahanta on Medium]]></description>
        <link>https://medium.com/@ratanlalmahanta?source=rss-373dc175c3f7------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*3wSUwNg2tXdP5WcVteKC9A.png</url>
            <title>Stories by Ratanlal Mahanta on Medium</title>
            <link>https://medium.com/@ratanlalmahanta?source=rss-373dc175c3f7------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sun, 06 Dec 2026 16:51:53 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@ratanlalmahanta/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[List Of R Package for Back-testing Quantitative Trading Strategies]]></title>
            <link>https://ratanlalmahanta.medium.com/list-of-r-package-for-back-testing-quantitative-trading-strategies-54e15ecf7eb9?source=rss-373dc175c3f7------2</link>
            <guid isPermaLink="false">https://medium.com/p/54e15ecf7eb9</guid>
            <dc:creator><![CDATA[Ratanlal Mahanta]]></dc:creator>
            <pubDate>Sun, 12 Sep 2021 05:38:40 GMT</pubDate>
            <atom:updated>2021-09-12T05:38:40.292Z</atom:updated>
            <content:encoded><![CDATA[<p>Standard regression models</p><ul><li>A detailed overview of the available regression methodologies is provided by the <a href="http://cran.r-project.org/web/views/Econometrics.html">Econometrics</a> task view. This is complemented by the <a href="http://cran.r-project.org/web/views/Robust.html">Robust</a> which focuses on more robust and resistant methods.</li><li>Linear models such as ordinary least squares (OLS) can be estimated by (from by the stats package contained in the basic R distribution). Maximum Likelihood (ML) estimation can be undertaken with the standard function. Many other suitable methods are listed in the <a href="http://cran.r-project.org/web/views/Optimization.html">Optimization</a> view. Non-linear least squares can be estimated with the function, as well as with from the <a href="http://cran.r-project.org/web/packages/nlme/index.html">nlme</a> package.</li><li>For the linear model, a variety of regression diagnostic tests are provided by the <a href="http://cran.r-project.org/web/packages/car/index.html">car</a>, <a href="http://cran.r-project.org/web/packages/lmtest/index.html">lmtest</a>, <a href="http://cran.r-project.org/web/packages/strucchange/index.html">strucchange</a>, <a href="http://cran.r-project.org/web/packages/urca/index.html">urca</a>, and <a href="http://cran.r-project.org/web/packages/sandwich/index.html">sandwich</a> packages. The <a href="http://cran.r-project.org/web/packages/Rcmdr/index.html">Rcmdr</a> and <a href="http://cran.r-project.org/web/packages/Zelig/index.html">Zelig</a> packages provide user interfaces that may be of interest as well.</li></ul><p>Time series</p><ul><li>A detailed overview of tools for time series analysis can be found in the <a href="http://cran.r-project.org/web/views/TimeSeries.html">TimeSeries</a> task view. Below a brief overview of the most important methods in finance is given.</li><li>Classical time series functionality is provided by the and commands in the basic R distribution.</li><li>The <a href="http://cran.r-project.org/web/packages/dse/index.html">dse</a> and <a href="http://cran.r-project.org/web/packages/timsac/index.html">timsac</a> packages provide a variety of more advanced estimation methods; <a href="http://cran.r-project.org/web/packages/fracdiff/index.html">fracdiff</a> can estimate fractionally integrated series; <a href="http://cran.r-project.org/web/packages/longmemo/index.html">longmemo</a> covers related material.</li><li>For volatility modeling, the standard GARCH(1,1) model can be estimated with the function in the <a href="http://cran.r-project.org/web/packages/tseries/index.html">tseries</a> package. Rmetrics (see below) contains the <a href="http://cran.r-project.org/web/packages/fGarch/index.html">fGarch</a> package which has additional models. The <a href="http://cran.r-project.org/web/packages/rugarch/index.html">rugarch</a> package can be used to model a variety of univariate GARCH models with extensions such as ARFIMA, in-mean, external regressors and various other specifications; with methods for fit, forecast, simulation, inference and plotting are provided too. The <a href="http://cran.r-project.org/web/packages/rmgarch/index.html">rmgarch</a> builds on it to provide the ability to estimate several multivariate GARCH models. The <a href="http://cran.r-project.org/web/packages/betategarch/index.html">betategarch</a> package can estimate and simulate the Beta-t-EGARCH model by Harvey. The <a href="http://cran.r-project.org/web/packages/bayesGARCH/index.html">bayesGARCH</a> package can perform Bayesian estimation of a GARCH(1,1) model with Student’s t innovations. For multivariate models, the <a href="http://cran.r-project.org/web/packages/ccgarch/index.html">ccgarch</a> package can estimate (multivariate) Conditional Correlation GARCH models whereas the<a href="http://cran.r-project.org/web/packages/gogarch/index.html">gogarch</a> package provides functions for generalized orthogonal GARCH models. The <a href="http://cran.r-project.org/web/packages/AutoSEARCH/index.html">AutoSEARCH</a> package provides automated general-to-specific model selection of the mean and log-volatility of a log-ARCH-X model. The <a href="http://cran.r-project.org/web/packages/GEVStableGarch/index.html">GEVStableGarch</a> package can fit ARMA-GARCH or ARMA-APARCH models with GEV and stable conditional distributions. The <a href="http://cran.r-project.org/web/packages/lgarch/index.html">lgarch</a>package can estimate and fit log-Garch models.</li><li>Unit root and cointegration tests are provided by <a href="http://cran.r-project.org/web/packages/tseries/index.html">tseries</a>, and <a href="http://cran.r-project.org/web/packages/urca/index.html">urca</a>. The Rmetrics packages <a href="http://cran.r-project.org/web/packages/timeSeries/index.html">timeSeries</a> and <a href="http://cran.r-project.org/web/packages/fMultivar/index.html">fMultivar</a> contain a number of estimation functions for ARMA, GARCH, long memory models, unit roots and more. The <a href="http://cran.r-project.org/web/packages/CADFtest/index.html">CADFtest</a> package implements the Hansen unit root test.</li><li>The <a href="http://cran.r-project.org/web/packages/dlm/index.html">dlm</a> package provides Bayesian and likelihood analysis of dynamic linear models (ie linear Gaussian state space models).</li><li>The <a href="http://cran.r-project.org/web/packages/vars/index.html">vars</a> package offer estimation, diagnostics, forecasting and error decomposition of VAR and SVAR model in a classical framework.</li><li>The <a href="http://cran.r-project.org/web/packages/dyn/index.html">dyn</a> and <a href="http://cran.r-project.org/web/packages/dynlm/index.html">dynlm</a> are suitable for dynamic (linear) regression models.</li><li>Several packages provide wavelet analysis functionality: <a href="http://cran.r-project.org/web/packages/rwt/index.html">rwt</a>, <a href="http://cran.r-project.org/web/packages/wavelets/index.html">wavelets</a>, <a href="http://cran.r-project.org/web/packages/waveslim/index.html">waveslim</a>, <a href="http://cran.r-project.org/web/packages/wavethresh/index.html">wavethresh</a>. Some methods from chaos theory are provided by the package <a href="http://cran.r-project.org/web/packages/tseriesChaos/index.html">tseriesChaos</a>. <a href="http://cran.r-project.org/web/packages/tsDyn/index.html">tsDyn</a> adds time series analysis based on dynamical systems therory.</li><li>The <a href="http://cran.r-project.org/web/packages/forecast/index.html">forecast</a> package adds functions for forecasting problems.</li><li>The <a href="http://cran.r-project.org/web/packages/tsfa/index.html">tsfa</a> package provides functions for time series factor analysis.</li><li>The <a href="http://cran.r-project.org/web/packages/stochvol/index.html">stochvol</a> package implements Bayesian estimation of stochastic volatility using Markov Chain Monte Carlo.</li></ul><p>Finance</p><ul><li>The Rmetrics suite of packages comprises <a href="http://cran.r-project.org/web/packages/fArma/index.html">fArma</a>, <a href="http://cran.r-project.org/web/packages/fAsianOptions/index.html">fAsianOptions</a>, <a href="http://cran.r-project.org/web/packages/fBasics/index.html">fBasics</a>, <a href="http://cran.r-project.org/web/packages/fBonds/index.html">fBonds</a>, <a href="http://cran.r-project.org/web/packages/timeDate/index.html">timeDate</a> (formerly: fCalendar), <a href="http://cran.r-project.org/web/packages/fExoticOptions/index.html">fExoticOptions</a>, <a href="http://cran.r-project.org/web/packages/fExtremes/index.html">fExtremes</a>, <a href="http://cran.r-project.org/web/packages/fGarch/index.html">fGarch</a>, <a href="http://cran.r-project.org/web/packages/fImport/index.html">fImport</a>, <a href="http://cran.r-project.org/web/packages/fNonlinear/index.html">fNonlinear</a>, <a href="http://cran.r-project.org/web/packages/fOptions/index.html">fOptions</a>,<a href="http://cran.r-project.org/web/packages/timeSeries/index.html">timeSeries</a> (formerly: fSeries), <a href="http://cran.r-project.org/web/packages/fTrading/index.html">fTrading</a>, <a href="http://cran.r-project.org/web/packages/fUnitRoots/index.html">fUnitRoots</a> and contains a very large number of relevant functions for different aspect of empirical and computational finance.</li><li>The <a href="http://cran.r-project.org/web/packages/RQuantLib/index.html">RQuantLib</a> package provides several option-pricing functions as well as some fixed-income functionality from the QuantLib project to R.</li><li>The <a href="http://cran.r-project.org/web/packages/quantmod/index.html">quantmod</a> package offers a number of functions for quantitative modelling in finance as well as data acqusition, plotting and other utilities.</li><li>The <a href="http://cran.r-project.org/web/packages/portfolio/index.html">portfolio</a> package contains classes for equity portfolio management; the <a href="http://cran.r-project.org/web/packages/portfolioSim/index.html">portfolioSim</a> builds a related simulation framework. The <a href="http://cran.r-project.org/web/packages/backtest/index.html">backtest</a> offers tools to explore portfolio-based hypotheses about financial instruments. The <a href="http://cran.r-project.org/web/packages/stockPortfolio/index.html">stockPortfolio</a> package provides functions for single index, constant correlation and multigroup models. The <a href="http://cran.r-project.org/web/packages/pa/index.html">pa</a> package offers performance attribution functionality for equity portfolios.</li><li>The <a href="http://cran.r-project.org/web/packages/PerformanceAnalytics/index.html">PerformanceAnalytics</a> package contains a large number of functions for portfolio performance calculations and risk management.</li><li>The <a href="http://cran.r-project.org/web/packages/TTR/index.html">TTR</a> contains functions to construct technical trading rules in R.</li><li>The <a href="http://cran.r-project.org/web/packages/sde/index.html">sde</a> package provides simulation and inference functionality for stochastic differential equations.</li><li>The <a href="http://cran.r-project.org/web/packages/termstrc/index.html">termstrc</a> and <a href="http://cran.r-project.org/web/packages/YieldCurve/index.html">YieldCurve</a> packages contain methods for the estimation of zero-coupon yield curves and spread curves based the parametric Nelson and Siegel (1987) method with the Svensson (1994) extension. The former package adds the McCulloch (1975) cubic splines approach, the latter package adds the Diebold and Li approach. The<a href="http://cran.r-project.org/web/packages/SmithWilsonYieldCurve/index.html">SmithWilsonYieldCurve</a> construct the yield curve using the Smith-Wilson approach based on LIBOR and SWAP rates.</li><li>The <a href="http://cran.r-project.org/web/packages/vrtest/index.html">vrtest</a> package contains a number of variance ratio tests for the weak-form of the efficient markets hypothesis.</li><li>The <a href="http://cran.r-project.org/web/packages/gmm/index.html">gmm</a> package provides generalized method of moments (GMM) estimations function that are often used when estimating the parameters of the moment conditions implied by an asset pricing model.</li><li>The <a href="http://cran.r-project.org/web/packages/tawny/index.html">tawny</a> package contains estimator based on random matrix theory as well as shrinkage methods to remove sampling noise when estimating sample covariance matrices.</li><li>The <a href="http://cran.r-project.org/web/packages/opefimor/index.html">opefimor</a> package by contains material to accompany the Iacus (2011) book entitled “Option Pricing and Estimation of Financial Models in R”.</li><li>The <a href="http://cran.r-project.org/web/packages/maRketSim/index.html">maRketSim</a> package provides a market simulator, initially designed around the bond market.</li><li>The <a href="http://cran.r-project.org/web/packages/BurStFin/index.html">BurStFin</a> and <a href="http://cran.r-project.org/web/packages/BurStMisc/index.html">BurStMisc</a> package has a collection of function for Finance including the estimation of covariance matrices.</li><li>The <a href="http://cran.r-project.org/web/packages/AmericanCallOpt/index.html">AmericanCallOpt</a> package contains a pricer for different American call options.</li><li>The <a href="http://cran.r-project.org/web/packages/VarSwapPrice/index.html">VarSwapPrice</a> package can price a variance swap via a portfolio of European options contracts.</li><li>The <a href="http://cran.r-project.org/web/packages/FinAsym/index.html">FinAsym</a> package implements the Lee and Ready (1991) and Easley and O’Hara (1987) tests for, respectively, trade direction, and probability of informed trading.</li><li>The <a href="http://cran.r-project.org/web/packages/parma/index.html">parma</a> package provides support for portfolio allocation and risk management applications.</li><li>The <a href="http://cran.r-project.org/web/packages/GUIDE/index.html">GUIDE</a> package provides a GUI for DE rivatives and contains numerous pricer examples as well as interactive 2d and 3d plots to study these pricing functions.</li><li>The <a href="http://cran.r-project.org/web/packages/SharpeR/index.html">SharpeR</a> package contains a collection of tools for analyzing significance of trading strategies, based on the Sharpe ratio and overfit of the same.</li><li>The <a href="http://cran.r-project.org/web/packages/RND/index.html">RND</a> package implements various functions to extract risk-neutral densities from option prices.</li><li><a href="http://cran.r-project.org/web/packages/LSMonteCarlo/index.html">LSMonteCarlo</a> can price American Options via the Least Squares Monte Carlo method</li><li>The <a href="http://cran.r-project.org/web/packages/BenfordTests/index.html">BenfordTests</a> package provides seven statistical tests and support functions for determining if numerical data could conform to Benford’s law.</li><li>The <a href="http://cran.r-project.org/web/packages/OptHedging/index.html">OptHedging</a> package values call and put option portfolio and implements an optimal hedging strategy.</li><li>The <a href="http://cran.r-project.org/web/packages/markovchain/index.html">markovchain</a> package provides functionality to easily handle and analyse discrete Markov chains.</li><li>The <a href="http://cran.r-project.org/web/packages/ycinterextra/index.html">ycinterextra</a> package models yield curve interpolation and extrapolation using via the Nelson-Siegel, Svensson, or Smith-Wilson models, as well as Hermite cubic splines.</li><li>The <a href="http://cran.r-project.org/web/packages/tvm/index.html">tvm</a> package models provides functions for time value of money such as cashflows and yield curves.</li><li>The <a href="http://cran.r-project.org/web/packages/MarkowitzR/index.html">MarkowitzR</a> package provides functions to test the statistical signicance of Markowitz portfolios.</li><li>The <a href="http://cran.r-project.org/web/packages/egcm/index.html">egcm</a> package implements the Engle-Granger two-stage cointegration modeling procedure with a particular focus on pairs trading.</li><li>The <a href="http://cran.r-project.org/web/packages/pbo/index.html">pbo</a> package models the probability of backtest overfitting, performance degradation, probability of loss, and the stochastic dominance when analysing trading strategies.</li><li>The <a href="http://cran.r-project.org/web/packages/OptionPricing/index.html">OptionPricing</a> package implements rfficient Monte Carlo algorithms for the price and the sensitivities of Asian and European Options under Geometric Brownian Motion.</li></ul><p>Risk management</p><ul><li>Several packages provide functionality for Extreme Value Theory models: <a href="http://cran.r-project.org/web/packages/evd/index.html">evd</a>, <a href="http://cran.r-project.org/web/packages/evdbayes/index.html">evdbayes</a>, <a href="http://cran.r-project.org/web/packages/evir/index.html">evir</a>, <a href="http://cran.r-project.org/web/packages/extRemes/index.html">extRemes</a>, <a href="http://cran.r-project.org/web/packages/ismev/index.html">ismev</a>.</li><li>The packages <a href="http://cran.r-project.org/web/packages/CreditMetrics/index.html">CreditMetrics</a> and <a href="http://cran.r-project.org/web/packages/crp.CSFP/index.html">crp.CSFP</a> provide function for modelling credit risks.</li><li>The <a href="http://cran.r-project.org/web/packages/mvtnorm/index.html">mvtnorm</a> package provides code for multivariate Normal and t-distributions.</li><li>The Rmetrics package <a href="http://cran.r-project.org/web/packages/fExtremes/index.html">fExtremes</a> also contain a number of relevant functions.</li><li>The <a href="http://cran.r-project.org/web/packages/copula/index.html">copula</a> and <a href="http://cran.r-project.org/web/packages/fgac/index.html">fgac</a> packages cover multivariate dependency structures using copula methods.</li><li>The <a href="http://cran.r-project.org/web/packages/actuar/index.html">actuar</a> package provides an actuarial perspective to risk management.</li><li>The <a href="http://cran.r-project.org/web/packages/ghyp/index.html">ghyp</a> package provides generalized hyberbolic distribution functions as well as procedures for VaR, CVaR or target-return portfolio optimizations.</li><li>The <a href="http://cran.r-project.org/web/packages/ChainLadder/index.html">ChainLadder</a> package provides functions for modeling insurance claim reserves; and the <a href="http://cran.r-project.org/web/packages/lifecontingencies/index.html">lifecontingencies</a> package provides functions for financial and actuarial evaluations of life contingencies.</li><li>The <a href="http://cran.r-project.org/web/packages/frmqa/index.html">frmqa</a> package aims to collect functions for Financial Risk Management and Quantitative Analysis.</li><li>The <a href="http://cran.r-project.org/web/packages/ESG/index.html">ESG</a> package can be used to model for asset projection, a scenario-based simulation approach.</li><li>The <a href="http://cran.r-project.org/web/packages/riskSimul/index.html">riskSimul</a> package provides efficient simulation procedures to estimate tail loss probabilities and conditional excess for a stock portfolios where log-returns are assumed to follow a t-copula model with generalized hyperbolic or t marginals.</li></ul><p>Books</p><ul><li>The <a href="http://cran.r-project.org/web/packages/FinTS/index.html">FinTS</a> package provides an R companion to Tsay (2005), Analysis of Financial Time Series , 2nd ed. Wiley, and includes data sets, functions and script files to work some of the examples.</li><li>The <a href="http://cran.r-project.org/web/packages/NMOF/index.html">NMOF</a> package provides functions, examples and data from Numerical Methods in Finance by Manfred Gilli, Dietmar Maringer and Enrico Schumann (2011), including the different optimization heuristics such as Differential Evolution, Genetic Algorithms, Particle Swarms, and Threshold Accepting.</li></ul><p>Data and date management</p><ul><li>The <a href="http://cran.r-project.org/web/packages/its/index.html">its</a>, <a href="http://cran.r-project.org/web/packages/zoo/index.html">zoo</a> and <a href="http://cran.r-project.org/web/packages/timeDate/index.html">timeDate</a> (part of Rmetrics) packages provide support for irregularly-spaced time series. The <a href="http://cran.r-project.org/web/packages/xts/index.html">xts</a> package extends <a href="http://cran.r-project.org/web/packages/zoo/index.html">zoo</a> specifically for financial time series. See the<a href="http://cran.r-project.org/web/views/TimeSeries.html">TimeSeries</a> task view for more details.</li><li><a href="http://cran.r-project.org/web/packages/timeDate/index.html">timeDate</a> also addresses calendar issues such as recurring holidays for a large number of financial centers, and provides code for high-frequency data sets.</li><li>The <a href="http://cran.r-project.org/web/packages/fame/index.html">fame</a> package can access Fame time series databases (but also requires a Fame backend). The <a href="http://cran.r-project.org/web/packages/tis/index.html">tis</a> package provides time indices and time-indexed series compatible with Fame frequencies.</li><li>The <a href="http://cran.r-project.org/web/packages/TSdbi/index.html">TSdbi</a> package provides a unifying interface for several time series data base backends, and its SQL implementations provide a database table design.</li><li>The <a href="http://cran.r-project.org/web/packages/data.table/index.html">data.table</a> package provides very efficient and fast access to in-memory data sets such as asset prices.</li><li>The <a href="http://cran.r-project.org/web/packages/TFX/index.html">TFX</a> package provides an interface to the TrueFX (TM) service for free streaming real-time and historical tick-by-tick market data for interbank foreign exchange rates at the millisecond resolution.</li><li>The <a href="http://cran.r-project.org/web/packages/Rbitcoin/index.html">Rbitcoin</a> package offers access to Bitcoin exchange APIs (mtgox, bitstamp, btce, kraken) via public and private API calls and integration of data structures for all markets.</li><li>The <a href="http://cran.r-project.org/web/packages/TAQMNGR/index.html">TAQMNGR</a> package manages tick-by-tick (equity) transaction data performing ‘cleaning’, ‘aggregation’ and ‘import’ where cleaning and aggregation are performed according to Brownlees and Gallo (2006).</li><li>The <a href="http://cran.r-project.org/web/packages/bizdays/index.html">bizdays</a> package compute business days if provided a list of holidays.</li></ul><h3>Published by</h3><p><a href="https://www.linkedin.com/pulse/20141124133216-78438968-list-of-r-package-for-back-testing-quantitative-trading-strategies/">https://www.linkedin.com/pulse/20141124133216-78438968-list-of-r-package-for-back-testing-quantitative-trading-strategies/</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=54e15ecf7eb9" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>