Created
April 15, 2017 02:10
-
-
Save YujiSODE/dcf633c0b63464f9f790d328efbcf414 to your computer and use it in GitHub Desktop.
critical values (p=0.05) for F-distribution with JSci
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/*=== JSci version 1.2: F-distribution === | |
F(5,20)|p=0.95:2.7108898372096952 | |
F(3,60)|p=0.95:2.7580782958425782 | |
F(3,116)|p=0.95:2.6828094071219026 | |
F(3,120)|p=0.95:2.680167569850269 | |
/*=== JSci ===*/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import JSci.Version; | |
import JSci.maths.statistics.FDistribution; | |
public class jsciTest{ | |
public static void main(String[] args){ | |
/*=== data===*/ | |
FDistribution fDist5_20=new FDistribution(5,20); | |
FDistribution fDist3_60=new FDistribution(3,60); | |
FDistribution fDist3_116=new FDistribution(3,116); | |
FDistribution fDist3_120=new FDistribution(3,120); | |
/*=== output ===*/ | |
//header | |
System.out.println("/*=== JSci version "+Version.getCurrent()+": F-distribution ==="); | |
//data | |
System.out.print("F(5,20)|p=0.95:"); | |
System.out.println(fDist5_20.inverse(0.95)); | |
System.out.print("F(3,60)|p=0.95:"); | |
System.out.println(fDist3_60.inverse(0.95)); | |
System.out.print("F(3,116)|p=0.95:"); | |
System.out.println(fDist3_116.inverse(0.95)); | |
System.out.print("F(3,120)|p=0.95:"); | |
System.out.println(fDist3_120.inverse(0.95)); | |
//footer | |
System.out.println("/*=== JSci ===*/"); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment