在线时间:8:00-16:00
迪恩网络APP
随时随地掌握行业动态
扫描二维码
关注迪恩网络微信公众号
开源软件名称:StatisticalRethinkingJulia/StatisticalRethinking.jl开源软件地址:https://github.com/StatisticalRethinkingJulia/StatisticalRethinking.jl开源编程语言:Julia 99.3%开源软件介绍:StatisticalRethinking v4
Purpose of this packageThe StatisticalRethinking.jl These functions are used in Jupyter and Pluto notebook Currently there are 3 of these notebook projects:
There is a fourth option to study the Turing.jl versions of the models in the Statistical Rethinking book which is in the form of a package and Franklin web pages: TuringModels.jl. Why a StatisticalRethinking v4?Over time more options become available to express the material covered in Statistical Rethinking, e.g. the use of KeyedArrays (provided by AxisKeys.jl) for the representation of mcmc chains. Other examples are the recently developed ParetoSmooth.jl which could be used in the PSIS related examples as a replacement for ParetoSmoothedImportanceSampling.jl and the preliminary work by SHMUMA on Dagitty.jl (a potential replacement for StructuralCausalModels.jl). While StatisticalRethinking v3 focused on making StatisticalRethinking.jl mcmc package independent, StatisticalRethinking v4 aims at de-coupling it from a specific graphical package and thus enables new choices for graphics, e.g. using Makie.jl and AlgebraOfGraphics.jl. StatisticalRethinking.jl v4 also fits better with the new setup of Pluto notebooks which keep track of used package versions in the notebooks themselves (see here). Workflow of StatisticalRethinkingJulia (v4):
Currently visual options are StatsPlots/Plots based, e.g. in MCMCChains.jl and StatisticalRethinkingPlots.jl.
The book Statistical Rethinking has a different objective and studies how models compare, how models can help (or mislead) and why multilevel modeling might help in some cases.
Using StatisticalRethinking v4To work through the StatisticalRethinking book using Julia and Turing or Stan, download either one of the above mentioned An early, experimental version of StructuralCausalModels.jl is also included as a dependency in the StatisticalRethinking.jl package. In the meantime I will definitely keep my eyes on Dagitty.jl, Omega.jl and CausalInference.jl. In particular Dagitty.jl has very similar objectives as StructuralCausalModels.jl and over time might replace it in the StatisticalRethinkingJulia ecosystem. For now, StructuralCausalModels does provide ways to convert DAGs to Dagitty and ggm formats. Similarly, a dependency ParetoSmoothedImportanceSampling.jl is used which provides PSIS and WAIC statistics for model comparison. VersionsAs listed in issue #145 recently it was noticed that some very old Jupyter notebook files are still present which makes an initial download, e.g. when I am planning to address that in v5. Version 4
Versions 3.2.1 - 3.3.6
Version 3.2.0
Versions v3.1.1 - 3.1.8
Version 3.1.0Align (stanbased) quap with Turing quap. quap() now returns a NamedTuple that includes a field Version 3.0.0StatisticalRethinking.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 Initially SR2TuringPluto.jl will lag SR2StanPluto.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 Version 2.2.9Currently the latest release available in the StatisticalRethinking.jl v2 format. InstallationTo install the package (from the REPL):
but in most cases this package will be a dependency of another package or project, e.g. SR2StanPluto.jl or SR2TuringPluto.jl. Documentation
AcknowledgementsOf 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 issuesQuestion and contributions are very welcome, as are feature requests and suggestions. Please open an issue if you encounter any problems or have a question. |
2023-10-27
2022-08-15
2022-08-17
2022-09-23
2022-08-13
请发表评论