indep_binomial

hyppo.tools.indep_binomial(n, p=1, random_state=None)

Independent binomial distributions.

\((X, Y, Z) \in \mathbb{R} \times \mathbb{R} \times \mathbb{R}^p\): .. math:

X, Y, Z_i &\sim \text{Binom}(10, 0.5) \\
Z &= (Z_1, Z_2, \ldots, Z_p)
Parameters
  • n (int) -- The number of samples desired by the simulation (>= 5).

  • p (int) -- The number of dimensions for conditioning variable Z.

Returns

x,y,z (ndarray of float) -- Simulated data matrices. x and y, and z.

References