Home > Public Posts > My First SVM Model

My First SVM Model

 

 

svm_daily_APM_102214As a learning exercise/practice I created a very simple SVM model using the ksvm function under the kernlab package.

The predictors I used were: VIX, Crude, Gold and Previous Day’s Close (factor).

The results were factors either returning 1 or 0 if the following day’s close was higher than the previous.

The train/test data set start date is 2007-12-31. I first tried data partitioning (75/25) the train and test sets in a random fashion irrespective of time-series. Then I tried testing it in slices (75/25) so time was continuous. Results were very little changed.

Here is how the SVM model performed using those 4 variables:

The results were fairing unimpressive but better than 50/50 is a great start.

svm_model102414

 

Advertisements
  1. No comments yet.
  1. No trackbacks yet.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: