multimodal_independence¶
-
hyppo.tools.
multimodal_independence
(n, p, prob=0.5, sep1=3, sep2=2)¶ Multimodal Independence data.
Multimodal Independence (X,Y)∈Rp×Rp: U∼N(0,Ip), V∼N(0,Ip), U′∼B(0.5)p, V′∼B(0.5)p,
X=U3+2U′−1Y=V3+2V′−1- 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
) -- 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.