# cupy.random.f¶

cupy.random.f(dfnum, dfden, size=None, dtype=<class 'float'>)[source]

F distribution.

Returns an array of samples drawn from the f distribution. Its probability density function is defined as

$f(x) = \frac{1}{B(\frac{d_1}{2},\frac{d_2}{2})} \left(\frac{d_1}{d_2}\right)^{\frac{d_1}{2}} x^{\frac{d_1}{2}-1} \left(1+\frac{d_1}{d_2}x\right) ^{-\frac{d_1+d_2}{2}}.$
Parameters: dfnum (float or array_like of floats) – Parameter of the f distribution $$d_1$$. dfden (float or array_like of floats) – Parameter of the f distribution $$d_2$$. 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. Samples drawn from the f distribution. cupy.ndarray