Learn R Programming

CTRE

This R package provides tools to analyse extremes of ‘bursty’ time series. Burstiness is characterized by heavy-tailed inter-arrival times and scale-free event dynamics. The CTRE model captures burstiness by generalizing the Poisson process to a fractional Poisson process, with Mittag-Leffler inter-arrival times. Parameter estimates are read off from stability plots, and goodness of fit is assessed via diagnostic plots; see the Shiny app below.

Reference

“Peaks Over Threshold for Bursty Time Series”, Katharina Hees, Smarak Nayak, Peter Straka (2018). https://arxiv.org/abs/1802.05218

Shiny App

The package comes with two examples of bursty time series: solar flare magnitudes and bitcoin trading volumes. For parameter estimates of the Mittag-Leffler distribution, see the tab “Exceedance Times”. CTRE model assumptions are checked via a QQ plot of the Mittag-Leffler distribution; an empirical copula plot checking for dependence between inter-arrival times and magnitudes; and a plot of the autocorrelation function for the two series (interarrival times and magnitudes). For the standard POT model plots, see the “Exceedances” tab.

Install from GitHub

library("devtools")
install_github("UNSW-MATH/CTRE")
library(CTRE)

Run shiny app

You can run the above Shiny app from within RStudio:

runCTREshiny()

Package usage

You can

Copy Link

Version

Install

install.packages('CTRE')

Monthly Downloads

16

Version

0.1.0

License

GPL-3

Maintainer

Last Published

May 7th, 2018

Functions in CTRE (0.1.0)

ctre

CTRE model
mlqqplot

Mittag-Leffler QQ Plot
acf

Autocorrelation function
CTRE-package

Continuous Time Random Exceedances
MLestimates

Mittag-Leffler estimates for varying thresholds
acf.ctre

Autocorrelation function
magnitudes

Extract event magnitudes
thin

Apply a higher threshold to a CTRE process
time

Sampling Times of Time Series
interarrival

Get inter-arrival times
length.ctre

Get length of underlying time series
empcopula

Plot empirical copula
bitcoin

Bitcoin trading data
runCTREshiny

Run a shiny app to explore a CTRE model fit
flares

Solar flare data
plot.ctre

Plot a ctre object
seaquakes

Coral Sea Earthquake Data
qqestplot_static

Static QQ Plot estimator