pStudentOrthantND

pStudentOrthantND(*args)

Orthant probability of a N-dimensional Student distribution using the Ridgway SMC algorithm.

Parameters:
asequence of float

Lower bound.

bsequence of float

Upper bound.

musequence of float

Mean vector.

LTriangularMatrix

Cholesky factor of the covariance matrix.

nufloat

Degrees of freedom, \nu > 0.

Mint, optional

Number of particles used in the SMC integration. Default value is given by the ‘Ridgway-DefaultParticleNumber’ key in ResourceMap.

alphafloat, optional

ESS threshold for resampling. Default value is given by the ‘Ridgway-DefaultAlpha’ key in ResourceMap.

Nint, optional

Number of Sobol’ points for the outer Student integration. Default value is given by the ‘Ridgway-DefaultStudentSampleSize’ key in ResourceMap.

Returns:
pfloat

The probability P(a_1 \leq X_1 \leq b_1, \dots, a_d \leq X_d \leq b_d).

Notes

This method uses the Ridgway algorithm, a Sequential Monte Carlo (SMC) method to compute the rectangular probability of a multivariate Student distribution [ridgway2016]. The distribution is centered with unit variance.

The Student-t probability is computed via the representation T = Z / \sqrt{W / \nu} where Z \sim \mathcal{N}(0, \Sigma) and W \sim \chi^2_\nu, using a Sobol’ quasi-Monte Carlo integration over the chi-squared scale factor.

The outer Student samples are processed in sequential blocks, each block being fully parallelized. The uniform draws of each block are generated sequentially in advance, so no random number generation remains inside parallel regions. A block contains as many samples as fit in the pool described below.

The following ResourceMap key is used:

  • Ridgway-UniformPoolSize (UnsignedInteger, default: 1048576): maximum number of uniform draws generated sequentially in advance per block; one sample needs up to M \inputDim (\inputDim + 1) / 2 + \inputDim - 1 draws, and larger samples are rejected. The value must be strictly positive.

Examples

>>> import openturns as ot
>>> L = ot.TriangularMatrix(1)
>>> L[0, 0] = 1.0
>>> p = ot.DistFunc.pStudentOrthantND([-1.0], [1.0], L, 5.0)