statistics v0.5.0 Statistics.Distributions.Chisq

Chi square distribution.

Takes a degrees of freedom parameter.

Link to this section Summary

Functions

The cumulative density function

The probability density function

The percentile-point function

Draw a random number from a t distribution with specified degrees of freedom

Link to this section Functions

Link to this function cdf(df)
cdf(non_neg_integer()) :: (... -> any())

The cumulative density function

Examples

iex> Statistics.Distributions.Chisq.cdf(2).(2)
0.6321205588285578
Link to this function pdf(df)
pdf(non_neg_integer()) :: (... -> any())

The probability density function

Examples

iex> Statistics.Distributions.Chisq.pdf(1).(2)
0.10377687435514868
Link to this function ppf(df)
ppf(non_neg_integer()) :: (... -> any())

The percentile-point function

Examples

iex> Statistics.Distributions.Chisq.ppf(1).(0.95)
3.841458820694101
Link to this function rand(df)
rand(non_neg_integer()) :: number()

Draw a random number from a t distribution with specified degrees of freedom

Uses the rejection sampling method

Examples

iex> Statistics.Distributions.Chisq.rand(2)
1.232433646523534767