From 553cb749b1edcf8468d5edcd840c39c578a63da1 Mon Sep 17 00:00:00 2001 From: Yuji Sode Date: Wed, 31 Aug 2016 03:54:12 +0900 Subject: [PATCH 01/16] Update subStatDist.js --- subStatDist.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/subStatDist.js b/subStatDist.js index 3916bdd..45bdf04 100644 --- a/subStatDist.js +++ b/subStatDist.js @@ -41,7 +41,7 @@ var B,tDiv,fm,fmR,lbA,ipA,lbB,ipB,Btn,TxtALb,txtA,br01,restB,adrsLbl,adrs,sbmtB, TxtALb=f('label','labelTxtArea'+r9,fmR.id),TxtALb.innerHTML='
Result:'; txtA=f('textarea','result'+r9,TxtALb.id),txtA.name='Result'; br01=f('br','br01_'+r9,fmR.id); - restB=f('input','resetB'+r9,fmR.id),restB.type='button',restB.value='Reset'; + restB=f('input','resetB'+r9,fmR.id),restB.type='button',restB.value='Clear'; adrsLbl=f('label','adrsLbl'+r9,fmR.id),adrsLbl.innerHTML='
Email address:'; adrs=f('input','adrs'+r9,adrsLbl.id),adrs.type='email',adrs.value='123.example@qwerty.com'; sbmtB=f('input','submitB'+r9,fmR.id),sbmtB.type='submit',sbmtB.value='Output as email'; From 82cd98cb5384162ef1a59616d1ef56f264386327 Mon Sep 17 00:00:00 2001 From: Yuji Sode Date: Wed, 31 Aug 2016 03:55:31 +0900 Subject: [PATCH 02/16] Update subStatDist.js --- subStatDist.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/subStatDist.js b/subStatDist.js index 45bdf04..993cb3d 100644 --- a/subStatDist.js +++ b/subStatDist.js @@ -17,7 +17,7 @@ var slf=this.window,W,r9=slf.Math.random().toFixed(9).replace(/\./g,''),cObj; return t.appendChild(E); }; //========================= -var B,tDiv,fm,fmR,lbA,ipA,lbB,ipB,Btn,TxtALb,txtA,br01,restB,adrsLbl,adrs,sbmtB,t,D=[]; +var B,tDiv,fm,fmR,lbA,ipA,lbB,ipB,Btn,TxtALb,txtA,br01,restB,adrsLbl,adrs,sbmtB,t,D=[],lk; B=slf.document.getElementsByTagName('body')[0];B.id='B'+r9; tDiv=f('div','div'+r9,B.id),B.removeAttribute('id'); //
From 92a742582ec341ffbc3e2051cae30889ac064a4e Mon Sep 17 00:00:00 2001 From: Yuji Sode Date: Wed, 31 Aug 2016 03:56:56 +0900 Subject: [PATCH 03/16] Update subStatDist.js --- subStatDist.js | 1 + 1 file changed, 1 insertion(+) diff --git a/subStatDist.js b/subStatDist.js index 993cb3d..eb88e59 100644 --- a/subStatDist.js +++ b/subStatDist.js @@ -50,6 +50,7 @@ var B,tDiv,fm,fmR,lbA,ipA,lbB,ipB,Btn,TxtALb,txtA,br01,restB,adrsLbl,adrs,sbmtB, F.action='mailto:'+this.value+'?subject='+slf.document.getElementsByTagName('title')[0].innerHTML+': '+slf.Date().replace(/\s/g,'_'); },true); // + lk=f('a','link'+r9,tDiv.id),lk.innerHTML='
Test with bootstrap method',lk.href='./testingFtU2.html'; //============ web worker ============ W=new Worker('./statDist.js'); W.addEventListener('error',function(e){console.log(e.message),W.terminate();},true); From aa902c120a16055a3025bc95c6758c8a01e5f58a Mon Sep 17 00:00:00 2001 From: Yuji Sode Date: Wed, 31 Aug 2016 04:08:01 +0900 Subject: [PATCH 04/16] uploaded 3 files: 2 js files and 1 html file uploaded "testingFtU2.html", "subStatDist2.js", and "statDist2.js" --- statDist2.js | 67 ++++++++++++++++++++++++++++++++++++++ subStatDist2.js | 85 ++++++++++++++++++++++++++++++++++++++++++++++++ testingFtU2.html | 28 ++++++++++++++++ 3 files changed, 180 insertions(+) create mode 100644 statDist2.js create mode 100644 subStatDist2.js create mode 100644 testingFtU2.html diff --git a/statDist2.js b/statDist2.js new file mode 100644 index 0000000..fe14447 --- /dev/null +++ b/statDist2.js @@ -0,0 +1,67 @@ +/*testingFtU +* statDist2.js +* +* Copyright (c) 2016 Yuji SODE +* https://github.com/YujiSODE/testingFtU +* +* This is modified from statDist (Yuji SODE,2016): the Artistic License; +* https://github.com/YujiSODE/statDist +* +* This is released under the Artistic License. +* See http://dev.perl.org/licenses/ and http://dev.perl.org/licenses/artistic.html +* or LICENSE. +*/ +//============================================================================ +//this is Web Worker interface for statistical test (F-test, t-test, and U-test) with bootstrap method. +//the Web Worker returns an object with upper probabilities as follows: +//{FtU:[(F === + I=0;while(I === + I=0,N=P.length;while(I1){throw("Invalid p: $p\n");}return precision_string(_subchisqr($n-0,$p-0));}function udistr($p){if($p>1||$p<=0){throw("Invalid p: $p\n");}return precision_string(_subu($p-0));}function tdistr($n,$p){if($n<=0||Math.abs($n)-Math.abs(integer($n))!=0){throw("Invalid n: $n\n");}if($p<=0||$p>=1){throw("Invalid p: $p\n");}return precision_string(_subt($n-0, $p-0));}function fdistr($n,$m,$p){if(($n<=0)||((Math.abs($n)-(Math.abs(integer($n))))!=0)){throw("Invalid n: $n\n");}if(($m<=0)||((Math.abs($m)-(Math.abs(integer($m))))!=0)){throw("Invalid m: $m\n");}if(($p<=0)||($p>1)){throw("Invalid p: $p\n");}return precision_string(_subf($n-0, $m-0, $p-0));}function uprob($x){return precision_string(_subuprob($x-0));}function chisqrprob($n,$x){if(($n<=0)||((Math.abs($n)-(Math.abs(integer($n))))!=0)){throw("Invalid n: $n\n");}return precision_string(_subchisqrprob($n-0, $x-0));}function tprob($n,$x){if(($n<=0)||((Math.abs($n)-Math.abs(integer($n)))!=0)){throw("Invalid n: $n\n");}return precision_string(_subtprob($n-0,$x-0));}function fprob($n,$m,$x){if(($n<=0)||((Math.abs($n)-(Math.abs(integer($n))))!=0)){throw("Invalid n: $n\n");}if(($m<=0)||((Math.abs($m)-(Math.abs(integer($m))))!=0)){throw("Invalid m: $m\n");}return precision_string(_subfprob($n-0,$m-0,$x-0));}function _subfprob($n,$m,$x){var $p;if($x<=0){$p=1;}else if($m%2==0){var $z=$m/($m+$n*$x),$a=1;for(var $i=$m-2;$i>=2;$i-=2){$a=1+($n+$i-2)/$i*$z*$a;}$p=1-(Math.pow((1-$z),($n/2))*$a);}else if($n%2==0){var $z=$n*$x/($m+$n*$x),$a=1;for(var $i=$n-2;$i>=2;$i-=2){$a=1+($m+$i-2)/$i*$z*$a;}$p=Math.pow((1-$z),($m/2))*$a;}else{var $y=Math.atan2(Math.sqrt($n*$x/$m),1),$z=Math.pow(Math.sin($y),2),$a=($n==1)?0:1;for(var $i=$n-2;$i>=3;$i-=2){$a=1+($m+$i-2)/$i*$z*$a;}var $b=Math.PI;for(var $i=2;$i<=$m-1;$i+=2){$b*=($i-1)/$i;}var $p1=2/$b*Math.sin($y)*Math.pow(Math.cos($y),$m)*$a;$z=Math.pow(Math.cos($y),2);$a=($m==1)?0:1;for(var $i=$m-2;$i>=3;$i-=2){$a=1+($i-1)/$i*$z*$a;}$p=max(0,$p1+1-2*$y/Math.PI-2/Math.PI*Math.sin($y)*Math.cos($y)*$a);}return $p;}function _subchisqrprob($n,$x){var $p;if($x<=0){$p=1;}else if($n>100){$p=_subuprob((Math.pow(($x / $n),1/3)-(1-2/9/$n))/Math.sqrt(2/9/$n));}else if($x>400){$p=0;}else{var $a,$i,$i1;if(($n%2)!=0){$p=2*_subuprob(Math.sqrt($x));$a=Math.sqrt(2/Math.PI)*Math.exp(-$x/2)/Math.sqrt($x);$i1=1;}else{$p=$a=Math.exp(-$x/2);$i1=2;}for($i=$i1;$i<=($n-2);$i+= 2){$a*=$x/$i;$p+=$a;}}return $p;}function _subu($p){var $y=-Math.log(4*$p*(1-$p)),$x=Math.sqrt($y*(1.570796288+$y*(.03706987906+$y*(-.8364353589E-3+$y*(-.2250947176E-3+$y*(.6841218299E-5+$y*(0.5824238515E-5+$y*(-.104527497E-5+$y*(.8360937017E-7+$y*(-.3231081277E-8+$y*(.3657763036E-10+$y*.6936233982E-12)))))))))));if($p>.5)$x = -$x;return $x;}function _subuprob($x){var $p = 0,$absx = Math.abs($x);if($absx<1.9){$p=Math.pow((1+$absx*(.049867347+$absx*(.0211410061+$absx*(.0032776263+$absx*(.0000380036+$absx*(.0000488906+$absx*.000005383)))))),-16)/2;}else if($absx<=100){for(var $i=18;$i>=1;$i--){$p=$i/($absx+$p);}$p=Math.exp(-.5*$absx*$absx)/Math.sqrt(2*Math.PI)/($absx+$p);}if($x<0)$p=1-$p;return $p;}function _subt($n,$p){if($p>=1||$p<=0){throw("Invalid p: $p\n");}if($p==0.5){return 0;}else if($p<0.5){return -_subt($n,1-$p);}var $u=_subu($p),$u2=Math.pow($u,2),$a=($u2+1)/4,$b=((5*$u2+16)*$u2+3)/96,$c=(((3*$u2+19)*$u2+17)*$u2-15)/384,$d=((((79*$u2+776)*$u2+1482)*$u2-1920)*$u2-945)/92160,$e=(((((27*$u2+339)*$u2+930)*$u2-1782)*$u2-765)*$u2+17955)/368640,$x=$u*(1 +($a+($b+($c+($d+$e/$n)/$n)/$n)/$n)/$n);if($n<=Math.pow(log10($p),2)+3){var $round;do{var $p1=_subtprob($n,$x),$n1=$n+1,$delta=($p1-$p)/Math.exp(($n1*Math.log($n1/($n+$x*$x))+Math.log($n/$n1/2/Math.PI)-1+(1/$n1-1/$n)/6)/2);$x+=$delta;$round=round_to_precision($delta,Math.abs(integer(log10(Math.abs($x))-4)));}while(($x)&&($round!=0));}return $x;}function _subtprob($n,$x){var $a,$b,$w=Math.atan2($x/Math.sqrt($n),1),$z=Math.pow(Math.cos($w),2),$y=1;for(var $i=$n-2;$i>=2;$i-=2){$y=1+($i-1)/$i*$z*$y;}if($n%2==0){$a=Math.sin($w)/2;$b=.5;}else{$a=($n==1)?0:Math.sin($w)*Math.cos($w)/Math.PI;$b=.5+$w/Math.PI;}return max(0,1-$b-$a*$y);}function _subf ($n,$m,$p){var $x;if($p>=1||$p<=0){throw("Invalid p: $p\n");}if ($p==1){$x=0;}else if($m==1){$x=1/Math.pow(_subt($n,0.5-$p/2),2);}else if($n==1){$x=Math.pow(_subt($m, $p/2),2);}else if($m==2){var $u=_subchisqr($m,1-$p),$a=$m-2;$x=1/($u/$m*(1+(($u-$a)/2+(((4*$u-11*$a)*$u+$a*(7*$m-10))/24+(((2*$u-10*$a)*$u+$a*(17*$m-26))*$u-$a*$a*(9*$m-6))/48/$n)/$n)/$n));}else if($n>$m){$x=1/_subf2($m,$n,1-$p)}else{$x=_subf2($n,$m,$p)}return $x;}function _subf2($n,$m,$p){var $u=_subchisqr($n,$p),$n2=$n-2,$x=$u/$n*(1+(($u-$n2)/2+(((4*$u-11*$n2)*$u+$n2*(7*$n-10))/24+(((2*$u-10*$n2)*$u+$n2*(17*$n-26))*$u-$n2*$n2*(9*$n-6))/48/$m)/$m)/$m),$delta;do{var $z=Math.exp((($n+$m)*Math.log(($n+$m)/($n*$x+$m))+($n-2)*Math.log($x)+ Math.log($n*$m/($n+$m))-Math.log(4*Math.PI)-(1/$n+1/$m-1/($n+$m))/6)/2);$delta=(_subfprob($n,$m,$x)-$p)/$z;$x+=$delta;}while(Math.abs($delta)>3e-4);return $x;}function _subchisqr($n,$p){var $x;if(($p>1)||($p<=0)){throw("Invalid p: $p\n");}else if($p==1){$x=0;}else if($n==1){$x=Math.pow(_subu($p/2),2);}else if($n==2){$x=-2*Math.log($p);}else{var $u=_subu($p),$u2=$u*$u;$x=max(0,$n+Math.sqrt(2*$n)*$u+2/3*($u2-1)+$u*($u2-7)/9/Math.sqrt(2*$n)-2/405/$n*($u2*(3*$u2+7)-16));if($n<=100){var $x0,$p1,$z;do{$x0=$x;if($x<0){$p1=1;}else if($n>100){$p1=_subuprob((Math.pow(($x/$n),(1/3))-(1-2/9/$n))/Math.sqrt(2/9/$n));}else if($x>400){$p1=0;}else{var $i0,$a;if(($n%2)!=0){$p1=2*_subuprob(Math.sqrt($x));$a=Math.sqrt(2/Math.PI)*Math.exp(-$x/2)/Math.sqrt($x);$i0=1;}else{$p1=$a=Math.exp(-$x/2);$i0=2;}for(var $i=$i0;$i<=$n-2;$i+=2){$a*=$x/$i;$p1+=$a;}}$z=Math.exp((($n-1)*Math.log($x/$n)-Math.log(4*Math.PI*$x)+$n-$x-1/$n/6)/2);$x+=($p1-$p)/$z;$x=round_to_precision($x,5);}while(($n<31)&&(Math.abs($x0-$x)>1e-4));}}return $x;}function log10($n){return Math.log($n)/Math.log(10);}function max(){var $max=arguments[0];for(var $i=0;$iarguments[$i])$min=arguments[$i];}return $min;}function precision($x){return Math.abs(integer(log10(Math.abs($x))-SIGNIFICANT));}function precision_string($x){if($x){return round_to_precision($x,precision($x));}else{return "0";}}function round_to_precision($x,$p){$x=$x*Math.pow(10,$p);$x=Math.round($x);return $x/Math.pow(10,$p);}function integer($i){if($i>0){return Math.floor($i);}else{return Math.ceil($i);}} +/*statistics-distributions-js_Ymdf.js (Ben Tilly,2008; modified by Yuji SODE, 2016)*/ +/* calcStat_FtU.js +* Copyright (c) 2016 Yuji SODE +* This software is released under the MIT License. +* See http://opensource.org/licenses/mit-license.php +* https://github.com/YujiSODE/calcStat_FtU +*/ +function _FtU(X,Y){var Xav,Yav,vrX,vrY,F,t,U,nX=X.length,nY=Y.length,slf=this,av=function(A){var s=0,i=0,n=A.length;while(i1){j=0,s=0;while(j +* https://github.com/YujiSODE/testingFtU +* +* This is released under the Artistic License. +* See http://dev.perl.org/licenses/ and http://dev.perl.org/licenses/artistic.html +* or LICENSE. +*/ +(function(){ +var slf=this.window,W,r9=slf.Math.random().toFixed(9).replace(/\./g,''),cObj; + //=== element generator === + var f=function(elName,elId,targetId){ + var t=slf.document.getElementById(targetId),E=slf.document.createElement(elName); + E.id=elId; + return t.appendChild(E); + }; + //========================= +var B,tDiv,fm,fmR,lbA,ipA,lbB,ipB,lbTSm,ipTSm,lbAlpha,ipAlpha,Btn,TxtALb,txtA,br01,restB,adrsLbl,adrs,sbmtB,t,D=[],lk; + B=slf.document.getElementsByTagName('body')[0];B.id='B'+r9; + tDiv=f('div','div'+r9,B.id),B.removeAttribute('id'); + // + fm=f('form','fm'+r9,tDiv.id); + fmR=f('form','fmR'+r9,tDiv.id); + fmR.name='statistical test'; + fmR.action='mailto:123.example@qwerty.com?subject='+slf.document.getElementsByTagName('title')[0].innerHTML; + fmR.method='post'; + fmR.enctype='text/plain'; + // + // + lbA=f('label','labelA'+r9,fm.id),lbA.innerHTML='
Sample:'; + ipA=f('input','inputA'+r9,lbA.id),ipA.type='text',ipA.value='3,4,5'; + //
+ // + lbB=f('label','labelB'+r9,fm.id),lbB.innerHTML='
Resampling from:'; + ipB=f('input','inputB'+r9,lbB.id),ipB.type='text',ipB.value='0,1,2'; + //
+ // + // + lbAlpha=f('label','labelAlpha'+r9,fm.id),lbAlpha.innerHTML='
Significance level:'; + ipAlpha=f('input','inputAlpha'+r9,lbAlpha.id),ipAlpha.type='number',ipAlpha.min=0,ipAlpha.max=1,ipAlpha.step=0.001,ipAlpha.value=0.025; + //
+ Btn=f('input','Btn'+r9,fm.id),Btn.type='button',Btn.value='Run'; + // + TxtALb=f('label','labelTxtArea'+r9,fmR.id),TxtALb.innerHTML='
Result:'; + txtA=f('textarea','result'+r9,TxtALb.id),txtA.name='Result'; + br01=f('br','br01_'+r9,fmR.id); + restB=f('input','resetB'+r9,fmR.id),restB.type='button',restB.value='Clear'; + adrsLbl=f('label','adrsLbl'+r9,fmR.id),adrsLbl.innerHTML='
Email address:'; + adrs=f('input','adrs'+r9,adrsLbl.id),adrs.type='email',adrs.value='123.example@qwerty.com'; + sbmtB=f('input','submitB'+r9,fmR.id),sbmtB.type='submit',sbmtB.value='Output as email'; + adrs.addEventListener('change',function(){ + var F=slf.document.getElementById(fmR.id); + F.action='mailto:'+this.value+'?subject='+slf.document.getElementsByTagName('title')[0].innerHTML+': '+slf.Date().replace(/\s/g,'_'); + },true); + //
+ lk=f('a','link'+r9,tDiv.id),lk.innerHTML='
2 sample test',lk.href='./testingFtU.html'; + restB.addEventListener('click',function(){ + slf.document.getElementById(txtA.id).value=''; + },true); +//============ web worker ============ + W=new Worker('./statDist2.js'); + W.addEventListener('error',function(e){console.log(e.message),W.terminate();},true); + W.addEventListener('message',function(e){ + var output='F-test,t-test,U-test\n',d=e.data,n=d.p.length; + t=slf.document.getElementById(txtA.id); + output+=d.FtU+'\n\n'; + for(var i=0;i\n' + },true); +}()); diff --git a/testingFtU2.html b/testingFtU2.html new file mode 100644 index 0000000..5b0ddb4 --- /dev/null +++ b/testingFtU2.html @@ -0,0 +1,28 @@ + +testingFtU@bootstrap simulation + + + + + + + + + + + + + + + + From 66b638fd889c7a97bcb13fbf59e903bf8405743b Mon Sep 17 00:00:00 2001 From: Yuji Sode Date: Wed, 31 Aug 2016 04:15:06 +0900 Subject: [PATCH 05/16] Update CHANGELOG.md --- CHANGELOG.md | 67 ++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 67 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 4b4dd0e..9bc69a5 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,72 @@ #Change Log +## [2.0] - 2016-08-31 +##Added +- [subStatDist.js] line 52-53: ` lk=f('a','link'+r9,tDiv.id),lk.innerHTML='
Test with bootstrap method',lk.href='./testingFtU2.html';` + +##Changed +- [subStatDist.js] line 20: `var B,tDiv,fm,fmR,lbA,ipA,lbB,ipB,Btn,TxtALb,txtA,br01,restB,adrsLbl,adrs,sbmtB,t,D=[],lk;` + +## [2.0] - 2016-08-30 +##Changed +- [statDist2.js] line 17-22 in statDist.js:` var c,d=e.data.split('@'),d0=d[0].split(','),d1=d[1].split(','),d2=+d[2],d3=+d[3],I=0,N=0,dBts,P=[],p,X=[0,0,0],pJn=[];` + ` I=0,N=d1.length;while(I ===` + ` I=0;while(I ===` + ` I=0,N=P.length;while(I` + `* https://github.com/YujiSODE/testingFtU` + `*` + `* This is modified from statDist (Yuji SODE,2016): the Artistic License;` + `* https://github.com/YujiSODE/statDist` + `*` + `* This is released under the Artistic License.` + `* See http://dev.perl.org/licenses/ and http://dev.perl.org/licenses/artistic.html` + `* or LICENSE.` + `*/` + +##Added +- [statDist2.js] line 41 in statDist.js: added modified version of bootstrapEst-2.1/bootstrapMdl.js +- added files: statDist2.js modified from statDist (Yuji SODE,2016), subStatDist2.js, and testingFtU2.html + +##Removed +- [bootstrapEst-2.1/bootstrapMdl.js] line 6-13: removed removable white space + +##Changed +- [bootstrapEst-2.1/bootstrapMdl.js] line 13: `}` +- [bootstrapEst-2.1/bootstrapMdl.js] line 6: `function bootstrap(A,n){` +- [bootstrapEst-2.1/bootstrapMdl.js] line 14: `/*bootstrapEst-2.1/bootstrapMdl.js (Yuji SODE,2016)*/` +- [bootstrapEst-2.1/bootstrapMdl.js] line 1-10: `/*bootstrapEst-2.1/bootstrapMdl.js (Yuji SODE,2016)` + `* This software is released under the MIT License. See http://opensource.org/licenses/mit-license.php` + `* the simple interface for estimation of a value of statistic, with bootstrap Method (Efron,1979).` + `* reference: Efron, B. 1979. Bootstrap Methods: Another Look at the Jackknife. Ann. Statist. vol. 7, no. 1, p. 1-26.` +`*/` +- [subStatDist.js] line 44: `restB=f('input','resetB'+r9,fmR.id),restB.type='button',restB.value='Clear';` + ## [1.1] - 2016-08-28 ##Changed - [subStatDist.js] line 43: `br01=f('br','br01_'+r9,fmR.id);` From 88ecf40b288ad6684561d486eb94861e01eb0438 Mon Sep 17 00:00:00 2001 From: Yuji Sode Date: Wed, 31 Aug 2016 04:19:03 +0900 Subject: [PATCH 06/16] Update README.md --- README.md | 3 +++ 1 file changed, 3 insertions(+) diff --git a/README.md b/README.md index 72b7015..4f570b3 100644 --- a/README.md +++ b/README.md @@ -11,6 +11,9 @@ ______ * testingFtU.html * statDist.js * subStatDist.js +* testingFtU2.html +* statDist2.js +* subStatDist2.js ##How to use ###Sample data From be6386c010329267383cbc0b41f1f04b56c6597c Mon Sep 17 00:00:00 2001 From: Yuji Sode Date: Wed, 31 Aug 2016 04:25:15 +0900 Subject: [PATCH 07/16] Update README.md --- README.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/README.md b/README.md index 4f570b3..7a9c13b 100644 --- a/README.md +++ b/README.md @@ -29,3 +29,5 @@ ______ >* statistics-distributions-js_Ymdf.js (Ben Tilly,2008; modified by Yuji SODE, 2016): > the Artistic License or the GPL v1 or later; https://github.com/YujiSODE/statistics-distributions-js_Ymdf >* calcStat_FtU.js (Yuji SODE, 2016): the MIT License; https://github.com/YujiSODE/calcStat_FtU + +* bootstrapEst-2.1/bootstrapMdl.js (Yuji SODE,2016): the MIT License; https://github.com/YujiSODE/bootstrapEst From 872671d8f7900f7321721beadbe057e7dcfccf6f Mon Sep 17 00:00:00 2001 From: Yuji Sode Date: Wed, 31 Aug 2016 04:32:20 +0900 Subject: [PATCH 08/16] Update README.md --- README.md | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 7a9c13b..708334c 100644 --- a/README.md +++ b/README.md @@ -8,21 +8,27 @@ https://github.com/YujiSODE/testingFtU ______ ##Script +###[2 sample test] * testingFtU.html * statDist.js * subStatDist.js + +###[Test with bootstrap method] * testingFtU2.html * statDist2.js * subStatDist2.js ##How to use -###Sample data +###[2 sample test] * The "Sample A" and "Sample B": sample inputs (available data is csv formatted numerical array). * "Run" button; it runs three statistical tests(F-test, t-test, and U-test) with two given sample(Sample A and Sample B), and outputs the test result. -* "Reset" button; it clears the test results by "Run" button. +* "Clear" button; it clears the test results by "Run" button. * "Output as email" button; it saves the test results by "Run" button as email to given address. +###[Test with bootstrap method] +* + ##Library list * statDist.js (Yuji SODE,2016): the Artistic License or the GPL v1 or later; https://github.com/YujiSODE/statDist From 04692c09173c6ee78e1686a5566a9e5192f5355e Mon Sep 17 00:00:00 2001 From: Yuji Sode Date: Wed, 31 Aug 2016 04:34:51 +0900 Subject: [PATCH 09/16] Update CHANGELOG.md --- CHANGELOG.md | 3 +++ 1 file changed, 3 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 9bc69a5..a0920ad 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,6 +1,9 @@ #Change Log ## [2.0] - 2016-08-31 +##Changed +- [README.md]: updated README.md + ##Added - [subStatDist.js] line 52-53: ` lk=f('a','link'+r9,tDiv.id),lk.innerHTML='
Test with bootstrap method',lk.href='./testingFtU2.html';` From 517607dd799bb3b0177cb5211ab908199fe456f3 Mon Sep 17 00:00:00 2001 From: Yuji Sode Date: Wed, 31 Aug 2016 04:45:14 +0900 Subject: [PATCH 10/16] Update README.md --- README.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/README.md b/README.md index 708334c..9ea3418 100644 --- a/README.md +++ b/README.md @@ -27,6 +27,8 @@ ______ * "Output as email" button; it saves the test results by "Run" button as email to given address. ###[Test with bootstrap method] +* "Sample": sample input (available data is csv formatted numerical array). +* "Resampling from": sample input to be resampled in bootstrap method (available data is csv formatted numerical array). * ##Library list From aad3732cfb79fab2ba58010358155c6849b3d19e Mon Sep 17 00:00:00 2001 From: Yuji Sode Date: Wed, 31 Aug 2016 04:57:43 +0900 Subject: [PATCH 11/16] Update README.md --- README.md | 1 + 1 file changed, 1 insertion(+) diff --git a/README.md b/README.md index 9ea3418..3b78ba8 100644 --- a/README.md +++ b/README.md @@ -29,6 +29,7 @@ ______ ###[Test with bootstrap method] * "Sample": sample input (available data is csv formatted numerical array). * "Resampling from": sample input to be resampled in bootstrap method (available data is csv formatted numerical array). +* "Time of simulation"; it sets how many times the sample and resampled data are tested. * ##Library list From ab5b4404dc54facfaa97d8fb37e7b7a4698141fd Mon Sep 17 00:00:00 2001 From: Yuji Sode Date: Wed, 31 Aug 2016 05:31:12 +0900 Subject: [PATCH 12/16] Update README.md --- README.md | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 3b78ba8..6c45004 100644 --- a/README.md +++ b/README.md @@ -22,7 +22,7 @@ ______ ###[2 sample test] * The "Sample A" and "Sample B": sample inputs (available data is csv formatted numerical array). * "Run" button; it runs three statistical tests(F-test, t-test, and U-test) with two given sample(Sample A and Sample B), - and outputs the test result. + and outputs the test result as the upper probabilities. * "Clear" button; it clears the test results by "Run" button. * "Output as email" button; it saves the test results by "Run" button as email to given address. @@ -30,7 +30,12 @@ ______ * "Sample": sample input (available data is csv formatted numerical array). * "Resampling from": sample input to be resampled in bootstrap method (available data is csv formatted numerical array). * "Time of simulation"; it sets how many times the sample and resampled data are tested. -* +* "Significance level"; it sets a statistical significance level (0-1) in order to test if + the null hypothesis (no difference) is rejected. +* "Run" button; it runs three statistical tests(F-test, t-test, and U-test) with the given sample and resampled data, + and outputs the test result: and detailed the upper probabilities. +* "Clear" button; it clears the test results by "Run" button. +* "Output as email" button; it saves the test results by "Run" button as email to given address. ##Library list * statDist.js (Yuji SODE,2016): the Artistic License or the GPL v1 or later; https://github.com/YujiSODE/statDist From 39608ae031328bbe21908f5b3698a46bc424bc51 Mon Sep 17 00:00:00 2001 From: Yuji Sode Date: Wed, 31 Aug 2016 06:03:36 +0900 Subject: [PATCH 13/16] Update README.md --- README.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 6c45004..cb25a6f 100644 --- a/README.md +++ b/README.md @@ -33,7 +33,8 @@ ______ * "Significance level"; it sets a statistical significance level (0-1) in order to test if the null hypothesis (no difference) is rejected. * "Run" button; it runs three statistical tests(F-test, t-test, and U-test) with the given sample and resampled data, - and outputs the test result: and detailed the upper probabilities. + and outputs the test result: three rates of the null hypothesis rejection, and details expressed with the upper + probabilities. * "Clear" button; it clears the test results by "Run" button. * "Output as email" button; it saves the test results by "Run" button as email to given address. From 846efed73b98d03a9a4ecc61a54959fd8d0de2a3 Mon Sep 17 00:00:00 2001 From: Yuji Sode Date: Wed, 31 Aug 2016 06:18:45 +0900 Subject: [PATCH 14/16] Update README.md --- README.md | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/README.md b/README.md index cb25a6f..3f7a2d2 100644 --- a/README.md +++ b/README.md @@ -20,23 +20,23 @@ ______ ##How to use ###[2 sample test] -* The "Sample A" and "Sample B": sample inputs (available data is csv formatted numerical array). -* "Run" button; it runs three statistical tests(F-test, t-test, and U-test) with two given sample(Sample A and Sample B), +* **"Sample A" and "Sample B":** sample inputs (available data is csv formatted numerical array). +* **"Run" button;** it runs three statistical tests(F-test, t-test, and U-test) with two given sample(Sample A and Sample B), and outputs the test result as the upper probabilities. -* "Clear" button; it clears the test results by "Run" button. -* "Output as email" button; it saves the test results by "Run" button as email to given address. +* **"Clear" button;** it clears the test results by "Run" button. +* **"Output as email" button;** it saves the test results by "Run" button as email to given address. ###[Test with bootstrap method] -* "Sample": sample input (available data is csv formatted numerical array). -* "Resampling from": sample input to be resampled in bootstrap method (available data is csv formatted numerical array). -* "Time of simulation"; it sets how many times the sample and resampled data are tested. -* "Significance level"; it sets a statistical significance level (0-1) in order to test if +* **"Sample":** sample input (available data is csv formatted numerical array). +* **"Resampling from":** sample input to be resampled in bootstrap method (available data is csv formatted numerical array). +* **"Time of simulation";** it sets how many times the sample and resampled data are tested. +* **"Significance level";** it sets a statistical significance level (0-1) in order to test if the null hypothesis (no difference) is rejected. -* "Run" button; it runs three statistical tests(F-test, t-test, and U-test) with the given sample and resampled data, +* **"Run" button;** it runs three statistical tests(F-test, t-test, and U-test) with the given sample and resampled data, and outputs the test result: three rates of the null hypothesis rejection, and details expressed with the upper probabilities. -* "Clear" button; it clears the test results by "Run" button. -* "Output as email" button; it saves the test results by "Run" button as email to given address. +* **"Clear" button;** it clears the test results by "Run" button. +* **"Output as email" button;** it saves the test results by "Run" button as email to given address. ##Library list * statDist.js (Yuji SODE,2016): the Artistic License or the GPL v1 or later; https://github.com/YujiSODE/statDist From 16a97e6354536ba76c137985aacd5a4304ec85d2 Mon Sep 17 00:00:00 2001 From: Yuji Sode Date: Wed, 31 Aug 2016 06:20:10 +0900 Subject: [PATCH 15/16] Update README.md --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 3f7a2d2..7766f37 100644 --- a/README.md +++ b/README.md @@ -22,7 +22,7 @@ ______ ###[2 sample test] * **"Sample A" and "Sample B":** sample inputs (available data is csv formatted numerical array). * **"Run" button;** it runs three statistical tests(F-test, t-test, and U-test) with two given sample(Sample A and Sample B), - and outputs the test result as the upper probabilities. + and outputs the test results as the upper probabilities. * **"Clear" button;** it clears the test results by "Run" button. * **"Output as email" button;** it saves the test results by "Run" button as email to given address. @@ -33,7 +33,7 @@ ______ * **"Significance level";** it sets a statistical significance level (0-1) in order to test if the null hypothesis (no difference) is rejected. * **"Run" button;** it runs three statistical tests(F-test, t-test, and U-test) with the given sample and resampled data, - and outputs the test result: three rates of the null hypothesis rejection, and details expressed with the upper + and outputs the test results: three rates of the null hypothesis rejection, and details expressed with the upper probabilities. * **"Clear" button;** it clears the test results by "Run" button. * **"Output as email" button;** it saves the test results by "Run" button as email to given address. From 6b0ba29e6045cfc50bd5e5b4412a9c32507ac32b Mon Sep 17 00:00:00 2001 From: Yuji Sode Date: Wed, 31 Aug 2016 06:29:41 +0900 Subject: [PATCH 16/16] Update README.md --- README.md | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index 7766f37..ebe64dd 100644 --- a/README.md +++ b/README.md @@ -30,11 +30,9 @@ ______ * **"Sample":** sample input (available data is csv formatted numerical array). * **"Resampling from":** sample input to be resampled in bootstrap method (available data is csv formatted numerical array). * **"Time of simulation";** it sets how many times the sample and resampled data are tested. -* **"Significance level";** it sets a statistical significance level (0-1) in order to test if - the null hypothesis (no difference) is rejected. +* **"Significance level";** it sets a statistical significance level (0-1) in order to test if the null hypothesis (no difference) is rejected. * **"Run" button;** it runs three statistical tests(F-test, t-test, and U-test) with the given sample and resampled data, - and outputs the test results: three rates of the null hypothesis rejection, and details expressed with the upper - probabilities. + and outputs the test results: three rates of the null hypothesis rejection, and details expressed with the upper probabilities. * **"Clear" button;** it clears the test results by "Run" button. * **"Output as email" button;** it saves the test results by "Run" button as email to given address.