Paper: Density Functions and Random Number Generators of Alpha-Stable Distributions - #1238
Paper: Density Functions and Random Number Generators of Alpha-Stable Distributions#1238Ahmad-ElHajj wants to merge 38 commits into
Conversation
|
Curvenote Preview
|
remove errors in main.tex add keywords
|
Reviewers, here are additional information. Reviewers -- readme: https://github.com/scipy-conference/scipy_proceedings/blob/2026/README.md#instructions-for-reviewers Reviewers -- How to add comments on GitHub Pull Request: |
|
I accept as a reviewer. |
|
Hi Prithvish @prithvish-doshi-17 |
|
I can review as well. |
|
Hi @Ahmad-ElHajj , I tried rendering the main.tex as a pdf in overleaf, and saw multiple errors. It would be great if you can share the pdf for review, or have some instructions to render the pdf correctly. Thank you. |
|
@prithvish-doshi-17 Thank you for your interest in this work. You're right. Latex intended for MyST will not compile on overleaf, and vice versa. We actually started on overleaf and had to make the necessary modifications to make MyST compile the latex to html. The latex-to-typst (and subsequently latex-to-pdf) compiler seems to be even stricter. To fix it, I made some changes to the paper's |
@JennEYoon It seems like GitHub Actions detected the plugin and is refusing to compile the paper for security reasons. Without this plugin, |
|
Here is my review: The paper presents a substantial package for alpha-stable density computation and the addition of LePage multivariate implementation and spectral measure samplers. I think this is nice work, and it could benefit the scientific Python community. The paper is well written. Some revision is needed to clarify the statements in the paper. Comments:
Minor comments:
|
|
Hi @Ahmad-ElHajj , here are my review comments: The paper presents AUB-HTP, a Python package for computing scalar α-stable probability densities and generating univariate and multivariate α-stable random variables. Its strongest contribution is the practical combination of several established numerical methods: characteristic-function inversion near the mode, Zolotarev integration in intermediate regions, and asymptotic series in the tails. It also extends beyond standard univariate functionality by supporting multivariate simulation through LePage series with isotropic, elliptical, discrete, mixed, and custom spectral measures. Compared with existing tools such as SciPy’s My main concern is the validation strategy. SciPy is used both to help determine the switching cutoffs and as the main numerical reference, while disagreements near α = 1 are attributed to weaknesses in SciPy. The authors should add at least one independent validation source, such as analytical special cases, high-precision characteristic-function inversion, or comparison with another established stable-distribution implementation. Similarly, the multivariate examples are visually convincing, but characteristic-function or projection-based tests would provide stronger evidence that the generated samples follow the intended distributions. Overall, this is a useful and well-motivated software contribution with clear practical relevance. I would recommend acceptance after revision, mainly to strengthen the independent numerical validation, clarify the comparison with existing software, and more precisely state that the novelty lies in the hybrid implementation and flexible Python interface rather than in the classical formulas themselves. |
…edings into alpha-stable-pdf-rng
for more information, see https://pre-commit.ci
Hi Ahmad @Ahmad-ElHajj, Franklin (@fwkoch ) as of last Wednesday (7/22nd) is going to review all the papers and fix compile errors if he can. I will give him till this Wednesday (7/29), and raise it with him. The preprint PDF looks great. Right now, the pretty view is for reviewers, so your preprint works well. OK I've messaged Franklin. He will respond when he can. :-) |
|
Dear Ahmad @Ahmad-ElHajj, Peter said the paper is longer than the 8 pages max. I can help you reduce it later. I will also do a final pass on all figures. |
|
Dear Peter @peterhys and Prithvish @zero-to-launch, |
|
Thank you for your reviews, @peterhys and @zero-to-launch . Your efforts are truly appreciated! I'm currently coordinating with the team to formulate a modification plan and a comprehensive response. |
|
Dear Peter @peterhys, Thank you for your detailed and thorough review. 1- Thank you for pointing out these references. As requested, we will include them in the updated manuscript as part of the previous work discussion and clarify the relationship with our implementation. Regarding the density computation, we note that:
When it comes to random number generation, we note that:
We will revise the manuscript to discuss these references and to clarify how the scope and implementation of our package differs and extends the available methods. 2- Thank you for pointing that out, we will explicitly mention smoothing. In the examples presented in Figure 2, we note that even after we disable the smoothing procedure, we achieve the same results and our generator remains smooth in those cases. Please refer to the newly generated and attached figure. We added the smoothing method to maintain the monotonicity of the PDF whenever numerical irregularities violate the monotonicity property. We note that through our extensive set of tests, we observed minor spikes happening away from the mode in the PDF generator. The main difference between the spikes we were observing and the irregularities of Scipy is that in Scipy, irregularities happen near the mode and the PDF is set to 0 on a continuous range whereas our PDF generator may result in a few spikes on disjoint points that can be fixed by smoothing. Finally, we believe that the presented results should be kept with the smoothed version in the manuscript since our final package, which is available to the user, presents a smoothing procedure after computing the PDF. 3 & 4- Although smoothing is part of the officially released package (currently at v1.0.9), the interpolation you're referring to is for unreleased trials we've been experimenting with for the purpose of speeding up computations of some statistics that rely on multiple computations of the PDF. We may end up scrapping these, or moving them to the (unreleased/in-dev) 5- Naturally our objective is to choose a reasonably small value for the default error while keeping the required number of terms n not excessively large for efficient running time and memory. After empirically varying the parameters, M1- Thank you for pointing that out. We will update the figure. |
|
Dear Prithvish @zero-to-launch, Your review is highly appreciated. 1- For clarification, we confirm that Scipy's PDF generator has been compared against Nolan's STABLE program (MATLAB implementation) across the (α, β) parameter space. We were able to confirm that the two generators agree everywhere except on the set of points where Scipy itself fails. Then, we verified that those points fall outside the regions where our method uses Scipy to determine the cutoffs. Therefore, our cutoffs and boundary points are not affected by Scipy's irregularities since those points were chosen in regimes where Scipy agrees with the STABLE program. In summary, Scipy was used as a reference after we made sure it agrees with STABLE on most of the parameter space. Additionally, our density generator was indeed validated against the analytically known special cases: Gaussian, Levy and Cauch distributions. 2- Our main intent is for the plots to show the effect of changing the spectral measure; however and as pointed out, they do not provide a lot of information about their correctness. For validation we use a different tool in the manuscript and show that the mean square error (MSE) of the samples goes to 0 as |
for more information, see https://pre-commit.ci
|
Dear Ahmad @Ahmad-ElHajj, You are the only author without an orcid on this paper. Somewhere on the proceedings repo, there are instructions for creating one, also see https://orcid.org/. Proceedings will make you create one before submitting this paper. And you can add this paper as your very first publication on your orcid registry! :-) Your virtual poster will also need the same orcid, and you can add that as your 2nd item! I see you’ve just uploaded your edits to the paper. Can you post the pretty view preprint for me? I don’t have a good .tex viewer right now. Eventually Franklin will fix the Curvenote preview rendering problem. If this has already been solved, let me know where or how to view it. Jennifer |
|
Hey Jennifer @JennEYoon, For anyone else viewing this, please note this PDF is invalidated as soon as a new commit is pushed. |



No description provided.