title: Performing regression using LIBSVM in Matlab
body: <p>I am working on multivariate time series estimation. I am not quite sure if LIBSVM does that. How can I solve the basic univariate linear problem?</p>
  
  <p>Suppose I have x = [1990,1991,1992,1993,1994]  and y = [1,2,3,4,5]. Now I would like to predict the value at testx = 1995 using LIBSVM in Matlab. I tried using the toolbox but the results I got is</p>
  
  <pre><code>model = svmtrain(y,x,'-s 3 -t 0 -c 1 -p 0.1');
  *
  optimization finished, #iter = 0
  nu = 0.000000
  obj = 0.000000, rho = -1.000000
  nSV = 0, nBSV = 0
  &gt;&gt; TST = 6;
  [predicted_label, accuracy, prob_estimates]=svmpredict(TST,testx,model);
  Mean squared error = 25 (regression)
  Squared correlation coefficient = -1.#IND (regression) 
  </code></pre>
  
  <p>What is going on here? As the data I gave is linear I have chosen -t 0 which is linear kernel.</p>