All Projects → StatisticalRethinkingJulia → Statisticalrethinking.jl

StatisticalRethinkingJulia / Statisticalrethinking.jl

Licence: other
Julia version of selected functions in the R package `rethinking`. Used in the StatisticalRethinkingStan and StatisticalRethinkingTuring projects.

Programming Languages

julia
2034 projects

Labels

Projects that are alternatives of or similar to Statisticalrethinking.jl

Bat.jl
A Bayesian Analysis Toolkit in Julia
Stars: ✭ 82 (-63.88%)
Mutual labels:  mcmc
Beast Mcmc
Bayesian Evolutionary Analysis Sampling Trees
Stars: ✭ 116 (-48.9%)
Mutual labels:  mcmc
Mici
Manifold Markov chain Monte Carlo methods in Python
Stars: ✭ 164 (-27.75%)
Mutual labels:  mcmc
Machine Learning Numpy
Gathers Machine learning models using pure Numpy to cover feed-forward, RNN, CNN, clustering, MCMC, timeseries, tree-based, and so much more!
Stars: ✭ 90 (-60.35%)
Mutual labels:  mcmc
Advancedhmc.jl
Robust, modular and efficient implementation of advanced Hamiltonian Monte Carlo algorithms
Stars: ✭ 100 (-55.95%)
Mutual labels:  mcmc
Exoplanet
Fast & scalable MCMC for all your exoplanet needs!
Stars: ✭ 122 (-46.26%)
Mutual labels:  mcmc
Posterior
The posterior R package
Stars: ✭ 75 (-66.96%)
Mutual labels:  mcmc
Probabilistic Models
Collection of probabilistic models and inference algorithms
Stars: ✭ 217 (-4.41%)
Mutual labels:  mcmc
Gpstuff
GPstuff - Gaussian process models for Bayesian analysis
Stars: ✭ 106 (-53.3%)
Mutual labels:  mcmc
Stan.jl
Stan.jl illustrates the usage of the 'single method' packages, e.g. StanSample, StanOptimize, etc.
Stars: ✭ 163 (-28.19%)
Mutual labels:  mcmc
Nimble
The base NIMBLE package for R
Stars: ✭ 95 (-58.15%)
Mutual labels:  mcmc
Turingmodels.jl
Turing version of StatisticalRethinking models.
Stars: ✭ 98 (-56.83%)
Mutual labels:  mcmc
Data science blogs
A repository to keep track of all the code that I end up writing for my blog posts.
Stars: ✭ 139 (-38.77%)
Mutual labels:  mcmc
Paramonte
ParaMonte: Plain Powerful Parallel Monte Carlo and MCMC Library for Python, MATLAB, Fortran, C++, C.
Stars: ✭ 88 (-61.23%)
Mutual labels:  mcmc
Shinystan
shinystan R package and ShinyStan GUI
Stars: ✭ 172 (-24.23%)
Mutual labels:  mcmc
Getdist
MCMC sample analysis, kernel densities, plotting, and GUI
Stars: ✭ 80 (-64.76%)
Mutual labels:  mcmc
Mcmcchains.jl
Types and utility functions for summarizing Markov chain Monte Carlo simulations
Stars: ✭ 121 (-46.7%)
Mutual labels:  mcmc
Mcmc
Collection of Monte Carlo (MC) and Markov Chain Monte Carlo (MCMC) algorithms applied on simple examples.
Stars: ✭ 218 (-3.96%)
Mutual labels:  mcmc
Deep Generative Models For Natural Language Processing
DGMs for NLP. A roadmap.
Stars: ✭ 185 (-18.5%)
Mutual labels:  mcmc
Beast2
Bayesian Evolutionary Analysis by Sampling Trees
Stars: ✭ 156 (-31.28%)
Mutual labels:  mcmc

StatisticalRethinking v3

Project Status Documentation Build Status

Purpose of this package

The StatisticalRethinking.jl v3 package contains functions comparable to the functions in the R package "rethinking" associated with the book Statistical Rethinking by Richard McElreath.

These functions are used in the Pluto notebooks projects specifically intended for hands-on use while studying the book or taking the course.

To work through the StatisticalRethinking book using Julia and Stan, download project StatisticalRethinkingStan.jl and open one of the chapter Pluto notebooks.

To work through the StatisticalRethinking book using Julia and Turing, download project StatisticalRethinkingTuring.jl and open a Pluto notebook.

Time permitting I would love to see a StatisticalRethinkingDhmc.jl, which could be a combination of Soss.jl and DynamicHMC.jl, and a StatisticalRethinkingMamba.jl!

If interested in either of the last 2 projects, please contact me!

Important note on StatisticalRethinking v3

This is a breaking change from v2 of StatisticalRethinking.jl. I expect the first stage of this work to be completed by late Nov 2020.

If you prefer to use v2, you can use ] add [email protected] where 2.x.y is the latest released version for v2.

Given that Julia provides several very capable packages that support mcmc simulation, it only seemed appropriate to make StatisticalRethinking on Julia mcmc implementation independent.

The availablility of DynamicHMC, the huge progress made by the Turing.jl team over the last 2 years, the introduction of Julia projects in addition to Julia packages, the novel approach to notebooks in Pluto.jl and the work by Karajan were a few of the ideas that triggered exploring a new setup for StatisticalRethinking.jl and the 'course' projects StatistcalRethinkingStan and StatisticalrethinkingTuring

An early, experimental version of StructuralCausalModels.jl is also included as a dependency in the StatisticalRethinking.jl v3 package. In the meantime I will definitely keep my eyes on Omega.jl and CausalInference.jl. StructuralCausalModels does provide ways to convert DAGs to Daggity and ggm formats.

Also now added as a dependency is StatsModelComparisons.jl which provides PSIS and WAIC statistics. From chapter 7 onwards these are used in StatisticalRethinking.

Finally, for a good while I have been looking for a great statistics book using Julia as kind of an introductory text to StatisticalRethinking and I believe the first couple of chapters in an upcoming book Statistics with Julia by Yoni Nazarathy and Hayden Klok are exactly that.

As StatisticalRethinking v3 is also (DrWatson & Pkg) project based and uses Pluto notebooks, I have converted the book listings in the first 5 chapters to Pluto Notebooks in a new repository in StatisticalRethinkingJulia, i.e. StatisticsWithJuliaPlutoNotebooks.

After chapter 4, Statistics with Julia follows the frequentionist approach while Statistical Rethinking opts for the Bayesian approach. Most of the material in chapters 5 and 6 of Statistics with Julia is therefore also covered using a more Bayesian perspective in the early chapters of the notebook projects StatisticalRethinkingStan and StatisticalRethinkingTuring.

Versions

Versions 3.2.1 -3.2.8

  • Introduction of StatsModelCoparisons.jl for PSIS and WAIC.
  • Removed dependencied on DynamicHMC (will be covered in StatisticalRethinkingDHMC)
  • Added trankplot.jl
  • Further separation of methods needed to convert output of mcmc package to SR inputs
  • Add compare() and plot_models() abstractions.
  • Manifest.toml updates.

Version 3.2.0

  • Option to retieve sampling results as a NamedTuple
  • Added new method to plotbounds() to handle NamedTuples
  • Added plotlines()

Versions v3.1.1 - 3.1.8

  • Updates from CompatHelper
  • Switch to Github actions (CI, Documenter)
  • Updates from Rik Huijzer (link function)
  • Redo quap() based on StanOptimize
  • Start Updating notebooks in ch 2-8 using new quap()
  • Redoing and updating the models in the models subdirectory

Version 3.1.0

Align (stanbased) quap with Turing quap. quap() now returns a NamedTuple that includes a field distr which represents the quadratic Normal (MvNormal) approximation.

Version 3.0.0

StatisticalRethinking.jl v3 is independent of the underlying mcmc package. All scripts previously in StatisticalRethinking.jl v2 holding the snippets have been replaced by Pluto notebooks in the above mentioned mcmc specific project repositories.

Initially StatisticalRethinkingTuring.jl will lag StatisticalRethinkingStan.jl somewhat but later this year both will cover the same chapters.

It is the intention to develop tests for StatisticalRethinking.jl v3 that work across the different mcmc implementations. This will limit dependencies to the test/Project.toml.

Version 2.2.9

Currently the latest release available in the StatisticalRethinking.jl v2 format.

Installation

To install the package (from the REPL):

] add StatisticalRethinking

but in most cases this package will be a dependency of another package or project, e.g. StatisticalRethinkingStan.jl or StatisticalRethinkingTuring.jl.

Documentation

  • STABLEdocumentation of the most recently tagged version.
  • DEVELdocumentation of the in-development version.

Acknowledgements

Of course, without the excellent textbook by Richard McElreath, this package would not have been possible. The author has also been supportive of this work and gave permission to use the datasets.

Questions and issues

Question and contributions are very welcome, as are feature requests and suggestions. Please open an issue if you encounter any problems or have a question.

codecov

Coverage Status

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].