public class Distributions
extends java.lang.Object
Constructor and Description |
---|
Distributions() |
Modifier and Type | Method and Description |
---|---|
static double |
binomialStandardError(double p,
int n)
Computes standard error for observed values of a binomial
random variable.
|
static double |
chiSquaredProbability(double x,
int df)
Returns chi-squared probability for given value and degrees
of freedom.
|
static double |
FCriticalValue(double p,
int df1,
int df2)
Critical value for given probability of F-distribution.
|
static double |
FProbability(double F,
int df1,
int df2)
Computes probability of F-ratio.
|
static void |
main(java.lang.String[] ops)
Main method for testing this class.
|
static double |
normalProbability(double z)
Returns probability that the standardized normal variate Z (mean = 0, standard
deviation = 1) is less than z.
|
static 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 static double binomialStandardError(double p, int n)
p
- the probability of successn
- the size of the samplepublic static double chiSquaredProbability(double x, int df)
x
- the valuedf
- the number of degrees of freedompublic static 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 static 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 static double normalProbability(double z)
z
- the z-valuepublic static double studentTConfidenceInterval(int df, double p, double se)
df
- the number of degrees of freedomp
- the probabilityse
- the observed valuepublic static void main(java.lang.String[] ops)
ops
- main args.