bartz.testing¶
Testing utilities to generate synthetic datasets.
Data generation¶
|
Generate data from a quadratic multivariate DGP. |
|
Sample DGP coefficients and parameters (no dependence on |
|
Sample predictors and outcomes given fixed |
|
All quantities of the data-generating process that do not depend on |
|
Output of |
|
Output of |
Distributions¶
Standardized distributions (symmetric about 0, variance 1) for predictors, coefficients and errors.
|
Family of standardized distributions, symmetric about 0 with variance 1. |
|
Standard Normal distribution. |
|
Continuous uniform distribution, standardized: U(-sqrt(3), sqrt(3)). |
Uniform distribution on |
Scale distributions¶
Distributions of the per-predictor importance scales (unit mean square).
Family of nonnegative scale distributions, normalized to |
|
|
Scales concentrated at 1 (uniform predictor importance). |
|
Gamma( |
|
Bernoulli( |
Correlation distributions¶
Distributions of the across-component error correlation matrix.
Family of random correlation matrices. |
|
|
LKJ distribution, with density proportional to \(\det(R)^{\eta - 1}\). |
|
Identity plus random factors, \(R = (1 - \tau) I + \tau U U^\top\). |