Class/Object

au.id.cxd.math.probability.discrete

HyperGeometric

Related Docs: object HyperGeometric | package discrete

Permalink

class HyperGeometric extends DiscreteDistribution

Created by cd on 7/09/2014.

Hyper geometric

The Hypergeometric (class name HyperGeometric) distribution represents the probability of choosing $y$ number of events of the same kind from a subset of $r$ like items within a population of all $N$ possible items (of different kinds) for the sample of size $n$ containing the mixed items.

The constraints are such that $r \le n \le N$ and $y \le r \le n$. The parameters are $y,r,n,N$.

The probability distribution is defined as follows. $$ P(y; r,n,N) = \frac{ {r \choose y } {{N - r} \choose {n - y} } } { {N \choose n} } $$

The simple properties of the distribution are:\\\\ Mean: $\mu = \frac{nr}{N}$\\ Variance: $\sigma^2 = n \left( \frac{r}{N} \right) \left( \frac{N - r}{N} \right) \left( \frac{N - n}{N-1}\right)$

r <= n <= N y <= r <= n

Linear Supertypes
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. HyperGeometric
  2. DiscreteDistribution
  3. Distribution
  4. AnyRef
  5. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new HyperGeometric(rSubsetSize: Double, sampleSize: Double, populationSize: Double)

    Permalink

Value Members

  1. final def !=(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  4. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  5. def cdf(range: Seq[Double]): Double

    Permalink

    cumulative distribution function

    cumulative distribution function

    Definition Classes
    DiscreteDistributionDistribution
  6. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  7. final def eq(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  8. def equals(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  9. def finalize(): Unit

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  10. final def getClass(): Class[_]

    Permalink
    Definition Classes
    AnyRef → Any
  11. def hashCode(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  12. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  13. def mean(): Double

    Permalink

    mean $\mu$ of the distribution

    mean $\mu$ of the distribution

    Definition Classes
    HyperGeometricDistribution
  14. final def ne(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  15. final def notify(): Unit

    Permalink
    Definition Classes
    AnyRef
  16. final def notifyAll(): Unit

    Permalink
    Definition Classes
    AnyRef
  17. def pdf(selectSize: Double): Double

    Permalink

    calculate the probability of selecting y (select Size) samples

    calculate the probability of selecting y (select Size) samples

    Definition Classes
    HyperGeometricDistribution
  18. def stddev(): Double

    Permalink

    standard deviation $\sigma$

    standard deviation $\sigma$

    Definition Classes
    Distribution
  19. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  20. def toString(): String

    Permalink
    Definition Classes
    AnyRef → Any
  21. def variance(): Double

    Permalink

    variance for the distribution $\sigma^2$

    variance for the distribution $\sigma^2$

    Definition Classes
    HyperGeometricDistribution
  22. final def wait(): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  23. final def wait(arg0: Long, arg1: Int): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  24. final def wait(arg0: Long): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from DiscreteDistribution

Inherited from Distribution

Inherited from AnyRef

Inherited from Any

Ungrouped