|
SuanShu, a Java numerical and statistical library | |||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.Objectcom.numericalmethod.suanshu.stats.distribution.univariate.BetaDistribution
public class BetaDistribution
BetaDistribution distribution is the posterior distribution of the parameter p of a binomial distribution
after observing α − 1 independent events with probability p and
β − 1 with probability 1 − p,
if the prior distribution of p is uniform.
The R equivalent functions are dbeta, pbeta, qbeta, rbeta.
| Field Summary | |
|---|---|
double |
alpha
α: the shape parameter |
double |
beta
β: the shape parameter |
| Constructor Summary | |
|---|---|
BetaDistribution(double alpha,
double beta)
Construct a Beta distribution. |
|
| Method Summary | |
|---|---|
double |
ccdf(double x)
|
double |
cdf(double x)
The cumulative distribution function. |
double |
density(double x)
The density function, which, if exists, is the derivative of F. |
double |
entropy()
Get the entropy of this distribution. |
double |
kurtosis()
Get the excess kurtosis of this distribution. |
double |
mean()
Get the mean of this distribution. |
double |
median()
Get the median of this distribution. |
double |
moment(double x)
Deprecated. Not supported yet. |
double |
quantile(double u)
The inverse of the cumulative distribution function. |
double |
skew()
Get the skewness of this distribution. |
double |
variance()
Get the variance of this distribution. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public final double alpha
public final double beta
| Constructor Detail |
|---|
public BetaDistribution(double alpha,
double beta)
alpha - the degree of freedombeta - the degree of freedom| Method Detail |
|---|
public double mean()
UnivariateDistribution
mean in interface UnivariateDistributionpublic double median()
UnivariateDistribution
median in interface UnivariateDistributionpublic double variance()
UnivariateDistribution
variance in interface UnivariateDistributionpublic double skew()
UnivariateDistribution
skew in interface UnivariateDistributionpublic double kurtosis()
UnivariateDistribution
kurtosis in interface UnivariateDistributionpublic double entropy()
UnivariateDistribution
entropy in interface UnivariateDistributionpublic double cdf(double x)
UnivariateDistribution
F(x) = Pr(X <= x)
cdf in interface UnivariateDistributionx - x
F(x) = Pr(X <= x)public double ccdf(double x)
public double density(double x)
UnivariateDistributionF.
It describes the density of probability at each point in the sample space.
f(x) = dF(X) / dx
This may not always exist. For the discrete cases, this is the probability mass function. It gives the probability that a discrete random variable is exactly equal to some value.
density in interface UnivariateDistributionx - x
F(x) = Pr(X <= x)public double quantile(double u)
UnivariateDistribution
F-1(u) = x, such that
Pr(X <= x) = u
This may not always exist.
quantile in interface UnivariateDistributionu - u
F-1(u)@Deprecated public double moment(double x)
UnivariateDistribution
etX
This may not always exist.
moment in interface UnivariateDistributionx - x
E(exp(tX))
|
SuanShu, a Java numerical and statistical library | |||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||