Statistics.Distributions.Chisq (statistics v0.6.3)
Chi square distribution.
Takes a degrees of freedom parameter.
Summary
Functions
Link to this function
cdf(df)
@spec 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)
@spec 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)
@spec 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)
@spec 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