public class TestingOnProportionDifference extends Object
| Constructor and Description |
|---|
TestingOnProportionDifference() |
| Modifier and Type | Method and Description |
|---|---|
String |
getSummary() |
void |
report() |
void |
run(String successLabel,
double pHat1,
double pHat2,
int sampleSize1,
int sampleSize2) |
String |
toString() |
boolean |
willRejectH0(double significanceLevel,
boolean twoTails)
The method reject null hypothesis if the p-value calculated from the sample is smaller than the significance level
|
public void run(String successLabel, double pHat1, double pHat2, int sampleSize1, int sampleSize2)
public String getSummary()
public void report()
public boolean willRejectH0(double significanceLevel,
boolean twoTails)
significanceLevel - the significance level, usually about 0.05twoTails - true if the testing is two tails; false otherwiseCopyright © 2017. All rights reserved.