The HACopula Toolbox: Hierarchical Archimedean copulas for MATLAB and Octave. he HACopula toolbox extends the copula modeling provided by MATLAB to modeling with hierarchical Archimedean copulas, which allows for non-elliptical distributions in arbitrary dimensions enabling for asymmetries in the tails. This includes their representation as MATLAB objects, evaluation, sampling, estimation and goodness-of-fit testing, as well as tools for their visual representation or computation of corresponding Kendall’s tau and tail dependence coefficients. The toolbox is also compatible with Octave, where no support for copulas in more than two dimensions is currently provided.