All Projects → dppalomar → imputeFin

dppalomar / imputeFin

Licence: GPL-3.0 license
Imputation of Financial Time Series with Missing Values and/or Outliers

Programming Languages

r
7636 projects

Projects that are alternatives of or similar to imputeFin

HistoricalVolatility
A framework for historical volatility estimation and analysis.
Stars: ✭ 22 (+29.41%)
Mutual labels:  time-series, financial-data
okama
Investment portfolio and stocks analyzing tools for Python with free historical data
Stars: ✭ 87 (+411.76%)
Mutual labels:  time-series, financial-data
Simplestockanalysispython
Stock Analysis Tutorial in Python
Stars: ✭ 126 (+641.18%)
Mutual labels:  time-series, financial-data
rbcb
R interface to Brazilian Central Bank web services
Stars: ✭ 63 (+270.59%)
Mutual labels:  time-series, financial-data
Tidyquant
Bringing financial analysis to the tidyverse
Stars: ✭ 635 (+3635.29%)
Mutual labels:  time-series, financial-data
Systemicrisk
A framework for systemic risk valuation and analysis.
Stars: ✭ 72 (+323.53%)
Mutual labels:  time-series, financial-data
MarketData.jl
Time series market data
Stars: ✭ 118 (+594.12%)
Mutual labels:  time-series, financial-data
ctsa
A Univariate Time Series Analysis and ARIMA Modeling Package in ANSI C. Updated with SARIMAX and Auto ARIMA.
Stars: ✭ 38 (+123.53%)
Mutual labels:  time-series
Human Activity Recognition
A new and computationally cheap method to perform human activity recognition using PoseNet and LSTM. Where we use PoseNet for Preprocessing and LSTM for understand the sequence.
Stars: ✭ 25 (+47.06%)
Mutual labels:  time-series
cantor
Data abstraction, storage, discovery, and serving system
Stars: ✭ 25 (+47.06%)
Mutual labels:  time-series
state-spaces
Sequence Modeling with Structured State Spaces
Stars: ✭ 694 (+3982.35%)
Mutual labels:  time-series
P4J
Periodic time series analysis tools based on information theory
Stars: ✭ 42 (+147.06%)
Mutual labels:  time-series
sugrrants
SUpporting GRaphics with R for ANalysing Time Series
Stars: ✭ 79 (+364.71%)
Mutual labels:  time-series
missCompare
missCompare R package - intuitive missing data imputation framework
Stars: ✭ 31 (+82.35%)
Mutual labels:  missing-values
Machine-Learning-Projects-2
No description or website provided.
Stars: ✭ 23 (+35.29%)
Mutual labels:  time-series
Autoformer
About Code release for "Autoformer: Decomposition Transformers with Auto-Correlation for Long-Term Series Forecasting" (NeurIPS 2021), https://arxiv.org/abs/2106.13008
Stars: ✭ 567 (+3235.29%)
Mutual labels:  time-series
dados-financeiros
Repositório de Fontes de Dados Financeiros do Brasil
Stars: ✭ 119 (+600%)
Mutual labels:  financial-data
modeltime.gluonts
GluonTS Deep Learning with Modeltime
Stars: ✭ 31 (+82.35%)
Mutual labels:  time-series
ECGClassifier
CNN, RNN, and Bayesian NN classification for ECG time-series (using TensorFlow in Swift and Python)
Stars: ✭ 53 (+211.76%)
Mutual labels:  time-series
akshare
AKShare is an elegant and simple financial data interface library for Python, built for human beings! 开源财经数据接口库
Stars: ✭ 5,155 (+30223.53%)
Mutual labels:  financial-data

imputeFin

CRAN_Status_Badge CRAN Downloads CRAN Downloads Total

Missing values often occur in financial data due to a variety of reasons (errors in the collection process or in the processing stage, lack of asset liquidity, lack of reporting of funds, etc.). However, most data analysis methods expect complete data and cannot be employed with missing values. One convenient way to deal with this issue without having to redesign the data analysis method is to impute the missing values. This package provides an efficient way to impute the missing values based on modeling the time series with a random walk or an autoregressive (AR) model, convenient to model log-prices and log-volumes in financial data. In the current version, the imputation is univariate-based (so no asset correlation is used). In addition, outliers can be detected and removed.

The package is based on the papers:

J. Liu, S. Kumar, and D. P. Palomar (2019). Parameter Estimation of Heavy-Tailed AR Model With Missing Data Via Stochastic EM. IEEE Trans. on Signal Processing, vol. 67, no. 8, pp. 2159-2172. https://doi.org/10.1109/TSP.2019.2899816

R. Zhou, J. Liu, S. Kumar, and D. P. Palomar (2020). Student’s t VAR Modeling with Missing Data via Stochastic EM and Gibbs Sampling. IEEE Trans. on Signal Processing, vol. 68, pp. 6198-6211 https://doi.org/10.1109/TSP.2020.3033378

Installation

The package can be installed from CRAN or GitHub:

# install stable version from CRAN
install.packages("imputeFin")

# install development version from GitHub
devtools::install_github("dppalomar/imputeFin")

To get help:

library(imputeFin)
help(package = "imputeFin")
?impute_AR1_Gaussian
vignette("ImputeFinancialTimeSeries", package = "imputeFin")
RShowDoc("ImputeFinancialTimeSeries", package = "imputeFin")

To cite package imputeFin or the base reference in publications:

citation("imputeFin")

Quick Start

Let's load some time series data with missing values for illustration purposes:

library(imputeFin)
data(ts_AR1_t)
names(ts_AR1_t)
#> [1] "y_missing" "phi0"      "phi1"      "sigma2"    "nu"

We can then impute one of the time series and plot it:

y_missing      <- ts_AR1_t$y_missing[, 3, drop = FALSE]
y_missing[100] <- 2*y_missing[100]  # create an outlier
plot_imputed(y_missing, title = "Original time series with missing values and one outlier")

y_imputed <- impute_AR1_t(y_missing, remove_outliers = TRUE)
#> var c: 60 missing values imputed and 1 outliers detected and corrected.
plot_imputed(y_imputed)

Documentation

For more detailed information, please check the vignette.

Links

Package: CRAN and GitHub.

README file: GitHub-readme.

Vignette: CRAN-vignette.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].