public class Statistics
extends java.lang.Object
| Constructor and Description |
|---|
Statistics() |
| Modifier and Type | Method and Description |
|---|---|
double |
binomialStandardError(double p,
int n)
Computes standard error for observed values of a binomial
random variable.
|
double |
chiSquaredCritical(double p,
int df)
Returns critical chi-square value for given significance and degrees
of freedom.
|
double |
chiSquaredProbability(double x,
int df)
Returns chi-squared probability for given value and degrees
of freedom.
|
double |
FCriticalValue(double p,
int df1,
int df2)
Critical value for given probability of F-distribution.
|
double |
FProbability(double F,
int df1,
int df2)
Computes probability of F-ratio.
|
double |
normalProbability(double z)
Returns probability that the standardized normal variate Z (mean = 0, standard
deviation = 1) is less than z.
|
double |
studentTConfidenceInterval(int df,
double p,
double se)
Computes absolute size of half of a student-t confidence interval
for given degrees of freedom, probability, and observed value.
|
public double binomialStandardError(double p,
int n)
p - the probability of successn - the size of the samplepublic double chiSquaredProbability(double x,
int df)
x - the valuedf - the number of degrees of freedompublic double chiSquaredCritical(double p,
int df)
p - the significancedf - the number of degrees of freedompublic double FCriticalValue(double p,
int df1,
int df2)
p - the probabilitydf1 - the first number of degrees of freedomdf2 - the second number of degrees of freedompublic double FProbability(double F,
int df1,
int df2)
F - the F-ratiodf1 - the first number of degrees of freedomdf2 - the second number of degrees of freedompublic double normalProbability(double z)
z - the z-valuepublic double studentTConfidenceInterval(int df,
double p,
double se)
df - the number of degrees of freedomp - the probabilityse - the observed value