public class TestingOnValueDifference extends Object
| Constructor and Description |
|---|
TestingOnValueDifference() |
| Modifier and Type | Method and Description |
|---|---|
String |
getSummary() |
void |
report() |
void |
run(double xHat1,
double xHat2,
double s1,
double s2,
int n1,
int n2)
The method calculates the p-value for both one-tail and two-tails testing of values from two different population (i.e., groups)
|
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(double xHat1,
double xHat2,
double s1,
double s2,
int n1,
int n2)
xHat1 - the point estimate of the sample mean for population 1xHat2 - the point estimate of the sample mean for population 2s1 - the point estimate of the sample standard deviation for population 1s2 - the point estimate of the sample standard deviation for population 2n1 - the sample size of sample drawn from population 1n2 - the sample size of sample drawn from population 2public 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.