javanpst.tests.oneSample.populationQuantile
Class PopulationQuantile
- java.lang.Object
-
- javanpst.tests.StatisticalTest
-
- javanpst.tests.oneSample.populationQuantile.PopulationQuantile
-
public class PopulationQuantile extends StatisticalTest
A procedure to testing hypotheses about population quantiles. This test allows to test an hypothesis value for a given population quantile and a given sample. A binomial distribution is used to compute left tail p-value (true value of the quantile is greater than the estimation), right tail p-value (true value is lower than the estimation), and double tail p-value (true value is distinct than the estimation).
-
-
Constructor Summary
Constructors Constructor and Description PopulationQuantile()Default builderPopulationQuantile(NumericSequence newSequence, double quantile, double value)Builder.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description voidclearData()Clears the data stored in the testvoiddoTest()Performs the testdoublegetExactDoublePValue()Get double tail exact p-valuedoublegetExactLeftPValue()Get left tail exact p-valuedoublegetExactRightPValue()Get right tail exact p-valuedoublegetK()Get K statisticjava.lang.StringprintData()Prints the data stored in the testjava.lang.StringprintReport()Prints a report with the results of the testvoidsetConfidence(double value)Set hypothesis valuevoidsetData(NumericSequence newSequence, double quantile, double value)Sets data and all the necessary parameters of the testvoidsetQuantile(double p)Set quantile to estimate-
Methods inherited from class javanpst.tests.StatisticalTest
isDataReady, isPerformed
-
-
-
-
Constructor Detail
-
PopulationQuantile
public PopulationQuantile()
Default builder
-
PopulationQuantile
public PopulationQuantile(NumericSequence newSequence, double quantile, double value)
Builder. Set data and all the necessary parameters of the test.- Parameters:
newSequence- sample dataquantile- quantile to testvalue- hyphotesis value
-
-
Method Detail
-
clearData
public void clearData()
Clears the data stored in the test- Specified by:
clearDatain classStatisticalTest
-
setData
public void setData(NumericSequence newSequence, double quantile, double value)
Sets data and all the necessary parameters of the test- Parameters:
newSequence- sample dataquantile- quantile to testvalue- hyphotesis value
-
setQuantile
public void setQuantile(double p)
Set quantile to estimate- Parameters:
p- quantile
-
setConfidence
public void setConfidence(double value)
Set hypothesis value- Parameters:
value- hypothesis value
-
doTest
public void doTest()
Performs the test- Specified by:
doTestin classStatisticalTest
-
getK
public double getK()
Get K statistic- Returns:
- K statistic
-
getExactLeftPValue
public double getExactLeftPValue()
Get left tail exact p-value- Returns:
- left tail p-value computed
-
getExactRightPValue
public double getExactRightPValue()
Get right tail exact p-value- Returns:
- right tail p-value computed
-
getExactDoublePValue
public double getExactDoublePValue()
Get double tail exact p-value- Returns:
- double tail p-value computed
-
printData
public java.lang.String printData()
Prints the data stored in the test- Specified by:
printDatain classStatisticalTest- Returns:
- Data stored
-
printReport
public java.lang.String printReport()
Prints a report with the results of the test- Specified by:
printReportin classStatisticalTest- Returns:
- Output report
-
-
DMelt 3.0 © DataMelt by jWork.ORG