joint_normal

hyppo.tools.joint_normal(n, p, noise=False)

Joint Normal simulation.

Joint Normal (X,Y)Rp×Rp: Let ρ=12p, Ip be the identity matrix of size p×p, Jp be the matrix of ones of size p×p and Σ=[IpρJpρJp(1+0.5κ)Ip]. Then,

(X,Y)N(0,Σ)
Parameters
  • n (int) -- The number of samples desired by the simulation (>= 5).

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

  • noise (bool, default: False) -- Whether or not to include noise in the simulation.

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.