com.datumbox.framework.core.statistics.parametrics.onesample
Class DurbinWatson
- java.lang.Object
-
- com.datumbox.framework.core.statistics.parametrics.onesample.DurbinWatson
-
public class DurbinWatson extends java.lang.ObjectDurbin–Watson parametric test for detecting autocorrelation.
-
-
Constructor Summary
Constructors Constructor and Description DurbinWatson()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method and Description static doublecalculateScore(FlatDataList errorList)Calculates DW scorestatic booleancheckCriticalValue(double score, int n, int k, boolean is_twoTailed, double aLevel)Checks the Critical Value to determine if the Hypothesis should be rejectedstatic booleantest(FlatDataList errorList, int k, boolean is_twoTailed, double aLevel)Test for Autocorrelation for k explanatory variables
-
-
-
Method Detail
-
test
public static boolean test(FlatDataList errorList, int k, boolean is_twoTailed, double aLevel)
Test for Autocorrelation for k explanatory variables- Parameters:
errorList-k-is_twoTailed-aLevel-- Returns:
-
calculateScore
public static double calculateScore(FlatDataList errorList)
Calculates DW score- Parameters:
errorList-- Returns:
-
checkCriticalValue
public static boolean checkCriticalValue(double score, int n, int k, boolean is_twoTailed, double aLevel)Checks the Critical Value to determine if the Hypothesis should be rejected- Parameters:
score-n-k-is_twoTailed-aLevel-- Returns:
-
-
DataMelt 3.0 © DataMelt by jWork.ORG