Angara.Statistics
A collection of essential algorithms for Bayesian data constrained modelling. Includes Mersenne twister random number generator, common probability distributions, sampling statistics and quantiles, a kernel density estimator and a resumable Metropolis-Hastings MCMC sampler.
Example
Here is how you draw from normal distribution
1: 2: 3: 4: 5: 6: |
|
See Probability distributions tutorial for more information.
Next snippet shows how to infer a parameter of a Poisson distribution data using MCMC sampler.
1: 2: 3: 4: 5: 6: 7: 8: 9: |
|
The last line of the above snippet prints credible intervals of the posterior distribution of the parameter:
|
See Filzbach tutorial for more information.
Samples & documentation
Documentation includes tutorials automatically generated from *.fsx
files in the content folder.
The API reference is automatically generated from Markdown comments in the library implementation.
Tutorial contains a further explanation of this sample library.
-
API Reference contains automatically generated documentation for all types, modules and functions in the library. This includes additional brief samples on using most of the functions.
Contributing and copyright
The project is hosted on GitHub where you can report issues, fork the project and submit pull requests. If you're adding a new public API, please also consider adding samples that can be turned into a documentation. You might also want to read the library design notes to understand how it works.
The library is available under Public Domain license, which allows modification and redistribution for both commercial and non-commercial purposes. For more information see the License file in the GitHub repository.
from Angara
Full name: Index.generator
type MT19937 =
new : copy:MT19937 -> MT19937
new : seed:uint32 [] -> MT19937
new : ?seed:uint32 -> MT19937
private new : mt:uint32 [] * idx:int -> MT19937
member bernoulli : p:float -> bool
member private getIdx : int
member private getMt : uint32 []
member get_seed : unit -> uint32 []
member normal : unit -> float
member uniform_float64 : unit -> float
...
Full name: Angara.Statistics.MT19937
--------------------
new : ?seed:uint32 -> MT19937
new : seed:uint32 [] -> MT19937
new : copy:MT19937 -> MT19937
Full name: Index.distribution
Full name: Angara.Statistics.draw
Full name: Index.fake_data
from Angara
Full name: Index.log_likelihood
from Microsoft.FSharp.Collections
Full name: Microsoft.FSharp.Collections.Seq.sumBy
Full name: Angara.Statistics.log_pdf
Full name: Index.prior
Full name: Index.posterior