You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Mar 21, 2025. It is now read-only.
Copy file name to clipboardExpand all lines: README.md
+13-19Lines changed: 13 additions & 19 deletions
Original file line number
Diff line number
Diff line change
@@ -1,12 +1,14 @@
1
1
## Purpose of SR2TuringPluto.jl
2
2
3
3
4
-
As stated many times by the author in his [online lectures](https://www.youtube.com/watch?v=ENxTrFf9a7c&list=PLDcUM9US4XdNM4Edgs7weiyIguLSToZRI), StatisticalRethinking is a hands-on course. This project is intended to assist with the hands-on aspect of learning the key ideas in StatisticalRethinking.
4
+
As stated many times by the author in his [online lectures](https://www.youtube.com/playlist?list=PLDcUM9US4XdMROZ57-OIRtIK0aOynbgZN), StatisticalRethinking is a hands-on course. This project is intended to assist with the hands-on aspect of learning the key ideas in Statistical Rethinking.
5
5
6
-
SR2TuringPluto is a Julia project that uses Pluto notebooks for this purpose. Each notebook demonstrates Julia versions of `code snippets` and `mcmc models` contained in the R package "rethinking" associated with the book [Statistical Rethinking](https://xcelab.net/rm/statistical-rethinking/) by Richard McElreath.
6
+
SR2TuringPluto is a Julia project that uses Pluto notebooks for this purpose. Max Lapan has a [version using Jupyter](https://github.com/Shmuma/rethinking-2ed-julia). Many of the Pluto notebooks have been derived from Max Lapan's work!
7
7
8
8
This Julia project uses Turing as the underlying mcmc implementation. A companion project ( [SR2StanPluto.jl](https://github.com/StatisticalRethinkingJulia/SR2StanPluto.jl) ) uses Stan.
9
9
10
+
Each notebook demonstrates Julia versions of `code snippets` and `mcmc models` contained in the R package "rethinking" associated with the book [Statistical Rethinking](https://xcelab.net/rm/statistical-rethinking/) by Richard McElreath.
11
+
10
12
## Installation
11
13
12
14
To (locally) reproduce and use this project, do the following:
Select a notebook in the `open a file` entry box, e.g. type `./` and step to `./notebooks/TuringGuide.jl`.
45
+
Select a notebook in the `open a file` entry box, e.g. type `./` and step to `./notebooks/Chapter_00.jl`.
46
46
47
-
SR2TuringPluto.jl is a DrWatson project, with some added/re-purposed subdirectories,
48
-
49
-
The `data` directory, in DrWatson accessible through `datadir()`, can be used for locally generated data, exercises, etc. All "rethinking" data files are stored and maintained in StatisticalRethinking.jl and can be accessed via `sr_datadir(...)`.
47
+
All "rethinking" data files are stored and maintained in StatisticalRethinking.jl and can be accessed via `sr_datadir(...)`.
50
48
51
49
This leads to a typical set of opening lines in each notebook:
52
50
```
53
-
using Pkg, DrWatson
51
+
using Pkg
54
52
55
53
# Note: Below sequence is important. First activate the project
56
54
# followed by `using` or `import` statements. Pretty much all
@@ -92,32 +90,28 @@ As before, the `t` at the end of the model number indicates Turing.
92
90
93
91
SR2TuringPluto.jl is compatible with the 2nd edition of the book.
94
92
95
-
StructuralCausalModels.jl and ParetoSmoothedImportanceSampling.jl are included as experimental dependencies in the StatisticalRethinking.jl v3 package. Definitely work in progress!
93
+
StructuralCausalModels.jl and ParetoSmoothedImportanceSampling.jl are included as experimental dependencies in the StatisticalRethinking.jl package. Definitely work in progress!
96
94
97
-
Max Lapan added a package Dagitty.jl which coversoptions similar as available in StructuralCausalModels.jl. There is also a new package, ParetoSmooth.jl which overlaps with ParetoSmoothedImportanceSampling.jl.
95
+
Max Lapan added a package Dagitty.jl which covers options similar as available in StructuralCausalModels.jl. There is also a new package, ParetoSmooth.jl which overlaps with ParetoSmoothedImportanceSampling.jl.
98
96
As terminology differs from the terminology used in the Statistical Rethinking book, I have not used this package in the notebooks (yet?).
99
97
100
-
**Note: A new version (v5.0.0) is under development. This is a breaking version. Probably safe to stick with tagged version 4.0.3 until then.**
101
-
102
98
Any feedback is appreciated. Please open an issue.
103
99
104
100
## Acknowledgements
105
101
106
102
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.
107
103
108
-
This repository is derived from work by Max Lapan, Karajan, previous and current Stan versions of StatisticalRethinking.jl. It has been improved through comments and suggestions of many other contributors.
104
+
This repository is derived from work by Max Lapan, Karajan, previous and current Stan versions of StatisticalRethinking.jl. It has been improved through comments and suggestions by many other contributors.
109
105
110
106
## Versions
111
107
112
108
### Version 5.0.0 (Under development, will take time)
113
109
114
-
1. Complete overhaul.likely using Makie.jl, Graphs.jl and more.
115
-
2. Larger notebooks.
116
-
3. Dropped additional figures in early chapters.
110
+
1. Complete overhaul. Likely using Makie.jl, Graphs.jl and more.
117
111
118
112
### Version 4.5.0
119
113
120
-
1. Adapted chapters 5 to 14 to an initial Pluto format.
114
+
1. Adapted Max Lapan's chapters 5 to 14 to an (initial) Pluto format.
0 commit comments