nonlinear_process

hyppo.tools.nonlinear_process(n, lag=1, phi=1, sigma=1)

2 nonlinearly dependent time series simulation.

Xt and Yt are together a bivariate nonlinear process. Noise follows N(0,σ). With lag (1), this is

[XtYt]=[ϕϵtYt1ηt]
Parameters
  • n (int) -- The number of samples desired by the simulation (>= 3).

  • lag (float, default: 1) -- The maximum time lag considered between x and y.

  • phi (float, default: 1) -- The AR coefficient.

  • sigma (float, default: 1) -- The variance of the noise.

Returns

x,y (ndarray of float) -- Simulated data matrices. x and y have shape (n,) where n is the number of samples.

Examples using hyppo.tools.nonlinear_process