summaryrefslogtreecommitdiff
path: root/1376/CH1/EX1.22/1_22.sci
diff options
context:
space:
mode:
Diffstat (limited to '1376/CH1/EX1.22/1_22.sci')
-rwxr-xr-x1376/CH1/EX1.22/1_22.sci9
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