summaryrefslogtreecommitdiff
path: root/851/CH3/EX3.6/Example3_6.sce
blob: d9af2e26e0ec0add6f9ebbf3b655cc61fbade118 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
//clear//
//Caption:Linear Predictor of Order one
//Example3.6: LINEAR PREDICTION: Predictor of Order One
clear;
close;
clc;
Rxx = [0.6 1 0.6];
h01 = Rxx(3)/Rxx(2);  //Rxx(2) = Rxx(0), Rxx(3) = Rxx(1)
sigma_E = Rxx(2) - h01*Rxx(3);
sigma_X = Rxx(2);
disp(sigma_E,'Predictor-error variance')
disp(sigma_X,'Predictor input variance')
if(sigma_X > sigma_E)
  disp('The predictor-error variance is less than the variance of the predictor input') 
end