Andrew Sommese 2005with(plots): n[0]:=185;n[1]:=1149; n[2]:= 3265;n[3]:=5475; n[4]:= 6114; n[5]:= 5194;n[6]:= 3067; n[7]:= 1331; n[8]:= 403;n[9]:=105; n[10]:= 14; n[11]:= 4; n[12]:= 0;sum(n[k],k=0..12);for m from 0 to 12 do k[m]:= evalf(26306*binomial(12,m)*(1/3)^m*(2/3)^(12-m)); od;chi-square analysischisquare12:=sum((k[j]-n[j])^2/(k[j]),j=0..12);1-stats[statevalf,cdf,chisquare[12]](chisquare12);so 0% of similar data samples from the expected distribution would have a larger chi-square statistic.A:=listplot([seq([j,n[j]],j=0..12)]):B:= listplot([seq([j,k[j]],j=0..10)]):display({A,B});the 7006 reliable experimentsnR[0]:=45;nR[1]:=327; nR[2]:= 886;nR[3]:=1475; nR[4]:= 1571; nR[5]:= 1404;nR[6]:= 787; nR[7]:= 367; nR[8]:= 112;nR[9]:=29; nR[10]:= 2; nR[11]:= 1; nR[12]:= 0;sum(nR[k],k=0..12);for m from 0 to 12 do k[m]:= evalf(7006*binomial(12,m)*(1/3)^m*(2/3)^(12-m)); od;chi-square analysischisquare12:=sum((k[j]-nR[j])^2/(k[j]),j=0..12);1-stats[statevalf,cdf,chisquare[12]](chisquare12);so 0% of similar data samples from the expected distribution would have a larger chi-square statistic.A:=listplot([seq([j,nR[j]],j=0..12)]):B:= listplot([seq([j,k[j]],j=0..10)]):display({A,B});the 26306 experiments minus the 7006 reliable experimentsfor j from 0 to 12 do nU[j]:=n[j]-nR[j];od;sum(nU[k],k=0..12);for m from 0 to 12 do k[m]:= evalf((26306-7006)*binomial(12,m)*(1/3)^m*(2/3)^(12-m)); od;chi-square analysism:='m';chisquare12:=sum((k[m]-nU[m])^2/(k[m]),m=0..12);1-stats[statevalf,cdf,chisquare[12]](chisquare12);so 0% of similar data samples from the expected distribution would have a larger chi-square statistic.A:=listplot([seq([j,nU[j]],j=0..12)]):B:= listplot([seq([j,k[j]],j=0..10)]):display({A,B});