causalcompass.datasets.standardized.generate_standardized_var

causalcompass.datasets.standardized.generate_standardized_var(p, T, lag=3, sparsity=0.2, beta_value=1.0, sd=0.1, method='zscore', burn_in=100, seed=0)[source]

Generate VAR data with z-score or min-max normalization applied.

Parameters:
  • p (int) – Number of variables

  • T (int) – Number of time points

  • lag (int, default 3) – Number of lags in the VAR model

  • sparsity (float, default 0.2) – Sparsity of the causal graph

  • beta_value (float, default 1.0) – Coefficient value

  • sd (float, default 0.1) – Noise standard deviation

  • method (str, default 'zscore') – Normalization method: ‘zscore’ or ‘minmax’

  • burn_in (int, default 100) – Burn-in period

  • seed (int, default 0) – Random seed

Returns:

(data, beta, GC) — time series array of shape (T, p), coefficient matrix, and ground-truth causal graph of shape (p, p).

Return type:

tuple