diff options
author | priyanka | 2015-06-24 15:03:17 +0530 |
---|---|---|
committer | priyanka | 2015-06-24 15:03:17 +0530 |
commit | b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b (patch) | |
tree | ab291cffc65280e58ac82470ba63fbcca7805165 /291/CH10/EX10.4b | |
download | Scilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.tar.gz Scilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.tar.bz2 Scilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.zip |
initial commit / add all books
Diffstat (limited to '291/CH10/EX10.4b')
-rwxr-xr-x | 291/CH10/EX10.4b/eg10_4b.sce | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/291/CH10/EX10.4b/eg10_4b.sce b/291/CH10/EX10.4b/eg10_4b.sce new file mode 100755 index 000000000..10372d044 --- /dev/null +++ b/291/CH10/EX10.4b/eg10_4b.sce @@ -0,0 +1,25 @@ +X=[75 73 60 70 86; 78 71 64 72 90; 80 69 62 70 85; 73 67 63 80 92 ];
+Xidot = zeros(4,1);
+for i=1:4
+ for j=1:5
+ Xidot(i)=Xidot(i) + X(i,j);
+ end
+end
+Xidot = Xidot/5;
+Xjdot = zeros(5,1);
+for j=1:5
+ for i=1:4
+ Xjdot(j)=Xjdot(j) + X(i,j);
+ end
+end
+Xjdot = Xjdot/4;
+Xdotdot = sum(Xidot)/4;
+//disp(Xdotdot)
+meanhat = Xdotdot;
+alphahat = Xidot - meanhat;
+betahat = Xjdot - meanhat;
+disp(meanhat, "The estimator of the mean is");
+disp("The alphas are-")
+disp(alphahat)
+disp("The betas are-")
+disp(betahat)
\ No newline at end of file |