two_parabolas¶

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

Two Parabolas simulation.

Two Parabolas $$(X, Y) \in \mathbb{R}^p \times \mathbb{R}^p$$:

$\begin{split}X &\sim \mathcal{U}(-1, 1)^p \\ Y &= ((w^T X)^2 + 2 \kappa \epsilon) \times \left( U = \frac{1}{2} \right)\end{split}$
Parameters
Returns

x,y (ndarray) -- 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.