pith. sign in

arxiv: 1809.05212 · v2 · pith:SIYX3MBTnew · submitted 2018-09-14 · 📊 stat.CO

An efficient algorithm for sampling from sin^k(x) for generating random correlation matrices

classification 📊 stat.CO
keywords algorithmdistributionrandomcorrelationefficientgeneratingmatricessampling
0
0 comments X
read the original abstract

In this note, we develop a novel algorithm for generating random numbers from a distribution with a probability density function proportional to $\sin^k(x)$, $x \in (0,\pi)$ and $k \geq 1$. Our algorithm is highly efficient and is based on rejection sampling where the envelope distribution is an appropriately chosen beta distribution. An example application illustrating how the new algorithm can be used to generate random correlation matrices is discussed.

This paper has not been read by Pith yet.

discussion (0)

Sign in with ORCID, Apple, or X to comment. Anyone can read and Pith papers without signing in.