- Add quantile and cdf support for the uniform and exponential distributions
- Assert
kixi.stats.distribution
parameters are within the valid range - Update docstrings in
kixi.stats.core
to describe when akixi.stats.protocol
type is returned - Fix bug in tests whereby positive and negative infinity would test equal
- Fix bug in
significant?
which returned an error when the number of tails was unspecified - Exclude
abs
andinfinite?
to prevent compilation warnings
- Test that quantile and cdf functions are inverses
- Fix gamma-pinv issue causing inaccurate chi-square quantiles to sometimes be returned
- Fix Student's t exception at extreme quantiles
- Add Cauchy, Log-normal and Pareto distributions
- Fix compilation error in
kixi.stats.distribution
- BREAKING CHANGE All distributions now expect named rather than positional args
- The normal distribution can now be paramaterised with
:location
&:scale
to align more closely with other distributions - The categorical distribution now expects a map of {category-name => probability}, rather than separate category and probability vectors
- BREAKING CHANGE Protocol I prefix is replaced with P
- BREAKING CHANGE
kixi.stats.core/standard-error-estimate
renamed toregression-standard-error
- BREAKING CHANGE
kixi.stats.core/standard-error-prediction
renamed toregression-prediction-standard-error
- BREAKING CHANGE Tests in the
kixi.stats.test
namespace, e.g.chi-squared-test
,z-test
&simple-t-test
, as well as those which mirror them in thekixi.stats.core
namespace, now return aTestResult
. This can be passed to helper functionskixi.stats.test/p-value
andkixi.stats.test/significant?
- BREAKING CHANGE Tests in the
kixi.stats.test
namespace, e.g.chi-squared-test
,z-test
&simple-t-test
, as well as those which mirror them in thekixi.stats.core
namespace, no longer accept an optional:tails
argument. Instead an equivalent argument is now provided to the helper functions inkixi.stats.test
- New protocols:
PInterval
for bounded intervals,PDepdendent
&PDependentWithSignificance
for returning functions of x,PParameterised
for returning learned parameters, andPTestResult
for returning a hypothesis test result - Namespace
kixi.stats.distribution
now contains Student's t distribution - New namespace
kixi.stats.estimate
contains functions which acceptsum-squares
as an argument and return a learned regression model, the standard error and intervals for the estimate and prediction - Namespace
kixi.stats.digest
now also contains asum-squares
reducing function - Distributions now implement clojure.lang.Seqble instead of clojure.lang.ISeq. This means that printing a distribution no longer causes an infinite sequence of draws to be printed
- Baseline release