multimodal_independence

hyppo.tools.multimodal_independence(n, p, prob=0.5, sep1=3, sep2=2)

Multimodal Independence data.

Multimodal Independence (X,Y)Rp×Rp: UN(0,Ip), VN(0,Ip), UB(0.5)p, VB(0.5)p,

X=U3+2U1Y=V3+2V1
Parameters
  • n (int) -- The number of samples desired by the simulation (>= 5).

  • p (int) -- The number of dimensions desired by the simulation (>= 1).

  • prob (float, default: 0.5) -- The probability of the bernoulli distribution simulated from.

  • sep1, sep2 (float, default: 3, 2) -- The separation between clusters of normally distributed data.

Returns

x,y (ndarray of float) -- Simulated data matrices. x` and ``y have shapes (n, p) and (n, p) where n is the number of samples and p is the number of dimensions.