Example

Sinusoidal Synthetic Sequence Data Example

A common example of generating synthetic sequence data uses T=1000T = 1000 time steps. At each step tt, the observed value is computed as xt=sin(0.01t)+ϵtx_t = \sin(0.01 \cdot t) + \epsilon_t, where ϵt\epsilon_t is noise drawn from a standard normal distribution and scaled to have a standard deviation of 0.2. The sinusoidal signal provides a smooth, periodic ground truth, while the additive noise makes the prediction nontrivial. To construct training data assuming a τ\tau-th order Markov condition with τ=4\tau = 4, the sequence is converted into overlapping windows. This yields Tτ=996T - \tau = 996 total examples. The first 600 examples, which cover approximately one full period of the sine function, are used for training, and the remainder are reserved for evaluation.

0

1

Updated 2026-06-30

Tags

D2L

Dive into Deep Learning @ D2L