# cupy.random.standard_t¶

cupy.random.standard_t(df, size=None, dtype=<class 'float'>)[source]

Standard Student’s t distribution.

Returns an array of samples drawn from the standard Student’s t distribution. Its probability density function is defined as

$f(x) = \frac{\Gamma(\frac{\nu+1}{2})} {\sqrt{\nu\pi}\Gamma(\frac{\nu}{2})} \left(1 + \frac{x^2}{\nu} \right)^{-(\frac{\nu+1}{2})}.$
Parameters
• df (float or array_like of floats) – Degree of freedom $$\nu$$.

• size (int or tuple of ints) – The shape of the array. If None, a zero-dimensional array is generated.

• dtype – Data type specifier. Only numpy.float32 and numpy.float64 types are allowed.

Returns

Samples drawn from the standard Student’s t distribution.

Return type

cupy.ndarray