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.
- L
TriangularMatrix Cholesky factor of the covariance matrix.
- nufloat
Degrees of freedom,
.
- 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
.
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
where
and
, 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
ResourceMapkey is used:Ridgway-UniformPoolSize(UnsignedInteger, default:1048576): maximum number of uniform draws generated sequentially in advance per block; one sample needs up todraws, 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)
OpenTURNS