1
Return

watson: An R Package for Fitting Mixtures of Watson Distributions

delete2025-12-01
delete0
PRE
AI
L
Lukas Sablica *
K
Kurt Hornik
J
Josef Leydold
DOI:10.18637/jss.v115.i04delete
deleteOriginal
deleteOriginal request for help
deleteShare
deleteSave
Abstract

Abstract

En 中文
In this paper we present and showcase the R package watson which provides a computational framework for fitting and random sampling of the Watson distribution on a p-dimensional sphere. We first introduce the random sampling scheme of the package, which offers two sampling algorithms that are based of the results of Sablica, Hornik, and Leydold (2025). What is more, the package offers a smart tool to combine these two methods, and based on the selected parameters, it approximates the relative sampling speed for both methods and picks the faster one. In addition, we describe the main fitting function for the mixtures of Watson distribution which uses the expectation-maximization (EM) algorithm. Special features are the possibility to use multiple variants of the E-step and M-step, sparse matrices for the data representation and a control parameter which will dynamically eliminate small clusters with overall contribution smaller than this parameter. Moreover, we discuss the numerical issues of the whole fitting procedure and describe how this is handled and solved in the package. Finally, we demonstrate the package on multiple examples involving misspecified simulation study, estimation of the New Zealand earthquake data and depth image clustering.
Keywords:
Watson distribution
spherical data
Kummer's function
directional distribution

Journal

Journal of Statistical Software cover
Journal of Statistical Software
IF:
8.1
Papers:
616
Citations:
4.6W

Organization

No organization information available
Cited Papers

Cited Papers

Citing Papers

Citing Papers