statistics v0.4.0 Statistics.Distributions.Chisq

Chi square distribution.

Takes a degrees of freedom parameter.

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

Functions

cdf(df)

Specs

cdf(non_neg_integer) :: (... -> any)

The cumulative density function

Examples

iex> Statistics.Distributions.Chisq.cdf(2).(2)
0.6321205588285578
pdf(df)

Specs

pdf(non_neg_integer) :: (... -> any)

The probability density function

Examples

iex> Statistics.Distributions.Chisq.pdf(1).(2)
0.10377687435514868
ppf(df)

Specs

ppf(non_neg_integer) :: (... -> any)

The percentile-point function

Examples

iex> Statistics.Distributions.Chisq.ppf(1).(0.95)
3.841458820694101
rand(df)

Specs

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