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 /1376/CH1/EX1.22/1_22.sci | |
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 '1376/CH1/EX1.22/1_22.sci')
-rwxr-xr-x | 1376/CH1/EX1.22/1_22.sci | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/1376/CH1/EX1.22/1_22.sci b/1376/CH1/EX1.22/1_22.sci new file mode 100755 index 000000000..47b51915e --- /dev/null +++ b/1376/CH1/EX1.22/1_22.sci @@ -0,0 +1,9 @@ +//1.22
+clc;
+n=2;
+k=1;
+dof=n-k;
+chi_square=(3-5)^2/5+(7-5)^2/5;
+disp(chi_square,'Chi square value=')
+disp('From the dof and chi square value we find P=0.22')
+disp('Hence there are 22% chance that the distribution is just the result of random fluctuations and the coin may be unweighted')
\ No newline at end of file |