explain the intuition behind SVR when it's used in time series forecasting? how it works…
- User
explain the intuition behind SVR when it's used in time series forecasting? how it works in the first place, and its working mechanics is used to do forecasting?
- Assistant
- User
ok please make a toy numerical example, and walk through it by hand, don't do the actual calculations, but just show what we should do
- Assistant
Let's consider a simple time series dataset with 7 data points for this toy numerical example:
Time (t) : 1 2 3 4 5 6 7 Value (y): 4 6 8 12 14 18 22
We want to use SVR to predict the 8th time step value.
Step 1: Data preprocessing In this example, we will keep the data as is and do not apply any transformation.
Step 2: Feature selection/engineering We will use a lag window of size 2 to create input features and corresponding target values:
X (LAG1 LAG2): (4 6) (6 8) (8 12) (12 14) (14 18) y : 8 12 14 18 22
Step 3: Training the model Now, with the dataset (X, y), let's train an SVR model. We set the ε (epsilon) to, say, 1 and choose an RBF kernel.