causalcompass.datasets.measurement_error.simulate_lorenz_with_measure_error

causalcompass.datasets.measurement_error.simulate_lorenz_with_measure_error(p, T, F=10.0, delta_t=0.1, sd=0.1, burn_in=1000, gamma=1.2, seed=0)[source]

Generate Lorenz-96 data with measurement error.

Parameters:
  • p (int) – Number of variables

  • T (int) – Number of time points

  • F (float, default 10.0) – Forcing parameter

  • delta_t (float, default 0.1) – Time step for ODE solver

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

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

  • gamma (float, default 1.2) – Scale factor for measurement error variance

  • seed (int, default 0) – Random seed

Returns:

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

Return type:

tuple