bartz.testing.CorrDistr

class bartz.testing.CorrDistr[source]

Family of random correlation matrices.

The off-diagonal entries are symmetric about 0, so E[R] = I.

abstractmethod sample_chol(key, k)[source]

Sample the lower-triangular Cholesky factor of a (k, k) correlation matrix.

Return type:

Float[Array, 'k k']

abstractmethod offdiag_var(k)[source]

Variance E[R_cc' ** 2] of each off-diagonal entry, c != c'.

Return type:

Float[Array, ''] | float