This repository was archived by the owner on Mar 21, 2025. It is now read-only.
File tree Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Original file line number Diff line number Diff line change 16
16
using LaTeXStrings
17
17
using StatisticalRethinking
18
18
using StatisticalRethinkingPlots
19
+ using MonteCarloMeasurements
19
20
end
20
21
21
22
# ╔═╡ 6a78dd3a-9770-40d0-b344-e7678801499c
174
175
# ╔═╡ e15efdfa-e64f-4f5b-a94c-6c5e135a9ec2
175
176
let
176
177
df = DataFrame (chain)
177
- μ = mean (df. p)
178
- σ = std (df. p)
178
+ p = quap (df). coef. p
179
+ μ = pmean (p)
180
+ σ = pstd (p)
179
181
b2 = Normal (μ, σ)
180
182
plot! (x, pdf .(b2, x); style= :dash ,
181
183
label= " Normal($(round (μ; digits= 2 )) , $(round (σ; digits= 2 )) )" )
@@ -207,6 +209,7 @@ PLUTO_PROJECT_TOML_CONTENTS = """
207
209
Distributions = "31c24e10-a181-5473-b8eb-7969acd0382f"
208
210
LaTeXStrings = "b964fa9f-0449-5b57-a5c2-d3ea65f4040f"
209
211
Logging = "56ddb016-857b-54e1-b83d-db4d58db5568"
212
+ MonteCarloMeasurements = "0987c9cc-fe09-11e8-30f0-b96dd679fdca"
210
213
Optim = "429524aa-4258-5aef-a3af-852621145aeb"
211
214
Pkg = "44cfe95a-1eb2-52ea-b672-e2afdf69b78f"
212
215
StatisticalRethinking = "2d09df54-9d0f-5258-8220-54c2a3d4fbee"
@@ -216,6 +219,7 @@ Turing = "fce5fe82-541a-59a6-adf8-730c64b5f9a0"
216
219
[compat]
217
220
Distributions = "~0.25.107"
218
221
LaTeXStrings = "~1.3.1"
222
+ MonteCarloMeasurements = "~1.1.6"
219
223
Optim = "~1.8.0"
220
224
StatisticalRethinking = "~4.7.4"
221
225
StatisticalRethinkingPlots = "~1.1.0"
You can’t perform that action at this time.
0 commit comments