summaryrefslogtreecommitdiff
path: root/1376/CH1/EX1.22/1_22.sci
blob: 47b51915edb0237e0a4359f5767b1acf92fbb80e (plain)
1
2
3
4
5
6
7
8
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')