two_parabolas

hyppo.tools.two_parabolas(n, p, noise=False, low=- 1, high=1, prob=0.5)

Two Parabolas simulation.

Two Parabolas (X,Y)Rp×Rp:

XU(1,1)pY=((wTX)2+2κϵ)×(U=12)
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.

  • low (float, default: -1) -- The lower limit of the uniform distribution simulated from.

  • high (float, default: 1) -- The upper limit of the uniform distribution simulated from.

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

Returns

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