English

BKP: An R Package for Beta Kernel Process Modeling

Computation 2025-09-16 v2 Machine Learning

Abstract

We present BKP, a user-friendly and extensible R package that implements the Beta Kernel Process (BKP) -- a fully nonparametric and computationally efficient framework for modeling spatially varying binomial probabilities. The BKP model combines localized kernel-weighted likelihoods with conjugate beta priors, resulting in closed-form posterior inference without requiring latent variable augmentation or intensive MCMC sampling. The package supports binary and aggregated binomial responses, allows flexible choices of kernel functions and prior specification, and provides loss-based kernel hyperparameter tuning procedures. In addition, BKP extends naturally to the Dirichlet Kernel Process (DKP) for modeling spatially varying multinomial or compositional data. To our knowledge, this is the first publicly available R package for implementing BKP-based methods. We illustrate the use of BKP through several synthetic and real-world datasets, highlighting its interpretability, accuracy, and scalability. The package aims to facilitate practical application and future methodological development of kernel-based beta modeling in statistics and machine learning.

Keywords

Cite

@article{arxiv.2508.10447,
  title  = {BKP: An R Package for Beta Kernel Process Modeling},
  author = {Jiangyan Zhao and Kunhai Qing and Jin Xu},
  journal= {arXiv preprint arXiv:2508.10447},
  year   = {2025}
}

Comments

37 pages, 15 figures, and 2 tables

R2 v1 2026-07-01T04:49:30.876Z