ARegressionSimulation2

ARegressionSimulation2 - for i = 1 : 8 for j= 1:8 K2(i,j) =

Info iconThis preview shows page 1. Sign up to view the full content.

View Full Document Right Arrow Icon
% a simple regression will be done using least square support vector % machines %clear all d2 = [1 5;1.5 3.25;2 2;2.5 1.25;3 1;3.5 1.25;4 2;4.5 3.25]; % data points %compute kernel matrix using exponential function that is infinite %dimensional inner products of data points
Background image of page 1
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: for i = 1 : 8 for j= 1:8 K2(i,j) = exp(-(d2(i,1)-d2(j,1))^2); end end eqMatrix2 =[0 ones(8,1)';ones(8,1) K2 + .02*eye(8,8)] % resulting equations rightside2 = [0 5 3.25 2 1.25 1 1.25 2 3.25]'; solution2Is = eqMatrix2\rightside2;...
View Full Document

Ask a homework question - tutors are online