CRAN status CRAN downloads CRAN downloads CRAN downloads CRAN downloads Ask DeepWiki

sshist: Optimal Density Estimation via Shimazaki-Shinomoto Method

The sshist package implements state-of-the-art algorithms for optimal non-parametric density estimation based on the framework developed by Hideaki Shimazaki and Shigeru Shinomoto (2007, 2010). The core optimization principle is to find the parameters that minimize the expected Mean Integrated Squared Error (MISE) between the estimated density and the true, unknown underlying distribution.

By utilizing purely data-driven optimization, this package avoids subjective choices for bin widths or kernel bandwidths, making it highly robust—especially for data with complex, multimodal, or heavy-tailed structures.

Key Features

Summary of Available Functions

Function Estimator Type Dimension Bandwidth / Bin Selection
sshist Histogram 1D Fixed (single optimal bin width)
sshist_2d Histogram 2D Fixed independent bin width per axis
sskernel Kernel Density 1D Fixed global bandwidth
ssvkernel Kernel Density 1D Locally adaptive variable bandwidth
sskernel2d Kernel Density 2D Fixed global isotropic bandwidth
ssvkernel2d Kernel Density 2D Locally adaptive bivariate bandwidth

Installation

You can install the stable version of sshist from CRAN:

install.packages("sshist")

Alternatively, you can install the development version directly from GitHub using devtools:

# install.packages("devtools")
devtools::install_github("celebithil/sshist")

References