@Test public void testTestAutocorrelation() { logger.info("testAutocorrelation"); double pk = 0.2; int n = 50; boolean is_twoTailed = false; double aLevel = 0.05; boolean expResult = false; boolean result = StudentsOneSample.testAutocorrelation(pk, n, is_twoTailed, aLevel); assertEquals(expResult, result); }
public static boolean testAutocorrelation(double pk, int n, boolean is_twoTailed, double aLevel) { if(n<=0) { throw new IllegalArgumentException("All the parameters must be positive."); } double t=Math.sqrt(n)*pk; boolean rejectH0=checkCriticalValue(t, n, is_twoTailed, aLevel); return rejectH0; }
StudentsOneSample { public static boolean testAutocorrelation(double pk, int n, boolean is_twoTailed, double aLevel) { if(n<=0) { throw new IllegalArgumentException("All the parameters must be positive."); } double t=Math.sqrt(n)*pk; boolean rejectH0=checkCriticalValue(t, n, is_twoTailed, aLevel); return rejectH0; } }
StudentsOneSample { public static boolean testAutocorrelation(double pk, int n, boolean is_twoTailed, double aLevel) { if(n<=0) { throw new IllegalArgumentException("All the parameters must be positive."); } double t=Math.sqrt(n)*pk; boolean rejectH0=checkCriticalValue(t, n, is_twoTailed, aLevel); return rejectH0; }  }
StudentsOneSample { public static boolean testAutocorrelation(double pk, int n, boolean is_twoTailed, double aLevel) { if(n<=0) { throw new IllegalArgumentException("All the parameters must be positive."); } double t=Math.sqrt(n)*pk; boolean rejectH0=checkCriticalValue(t, n, is_twoTailed, aLevel); return rejectH0; }  static boolean testMean(double xbar, int n, double H0mean, double std, boolean is_twoTailed, double aLevel); static boolean testAutocorrelation(double pk, int n, boolean is_twoTailed, double aLevel); }
StudentsOneSample { public static boolean testAutocorrelation(double pk, int n, boolean is_twoTailed, double aLevel) { if(n<=0) { throw new IllegalArgumentException("All the parameters must be positive."); } double t=Math.sqrt(n)*pk; boolean rejectH0=checkCriticalValue(t, n, is_twoTailed, aLevel); return rejectH0; }  static boolean testMean(double xbar, int n, double H0mean, double std, boolean is_twoTailed, double aLevel); static boolean testAutocorrelation(double pk, int n, boolean is_twoTailed, double aLevel);  }