Skip to content

Commit 24155ce

Browse files
committed
Rel 0.1.3
1 parent 370538c commit 24155ce

File tree

6 files changed

+159
-351
lines changed

6 files changed

+159
-351
lines changed

notebooks/confounding_triangles.ipynb

Lines changed: 0 additions & 101 deletions
This file was deleted.
Lines changed: 6 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,28 +1,18 @@
11
### A Pluto.jl notebook ###
2-
# v0.11.2
2+
# v0.11.4
33

44
using Markdown
55
using InteractiveUtils
66

7-
# ╔═╡ 7079ec54-d3f6-11ea-0034-79a1c1c5b137
8-
md"# The Basel problem
9-
_Leonard Euler_ proved in 1741 that the series
10-
$$\frac{1}{1} + \frac{1}{4} + \frac{1}{9} + \cdots$$
11-
converges to
12-
$$\frac{\pi^2}{6}$$"
13-
147
# ╔═╡ cce045ac-d373-11ea-29af-5be52ed80e36
15-
md"## Test Pluto notebook"
8+
md"## Confounding triangles notebook"
169

1710
# ╔═╡ 30cfc76c-d276-11ea-1e1a-6567e0173d69
1811
using DrWatson
1912

2013
# ╔═╡ cfa1909e-d278-11ea-215d-4f34edbb8294
2114
using StructuralCausalModels
2215

23-
# ╔═╡ a1b39506-d278-11ea-1a13-05f75d56dbca
24-
VERSION
25-
2616
# ╔═╡ dde39c20-d272-11ea-00b1-71e8b3c09e79
2717
cd(joinpath(homedir(), ".julia/dev/StructuralCausalModels"))
2818

@@ -74,10 +64,11 @@ d_separation(dag, d, :E)
7464
# ╔═╡ 5712eff0-d279-11ea-3978-2106eb0feb76
7565
d_separation(dag, d, :E; c=[:A, :Z])
7666

67+
# ╔═╡ 49e58f04-d8c8-11ea-19e0-cb45efe39493
68+
m_separation(dag, d, :E; c=[:A, :Z])
69+
7770
# ╔═╡ Cell order:
78-
# ╠═7079ec54-d3f6-11ea-0034-79a1c1c5b137
7971
# ╠═cce045ac-d373-11ea-29af-5be52ed80e36
80-
# ╠═a1b39506-d278-11ea-1a13-05f75d56dbca
8172
# ╠═dde39c20-d272-11ea-00b1-71e8b3c09e79
8273
# ╠═30cfc76c-d276-11ea-1e1a-6567e0173d69
8374
# ╠═3ed7655e-d276-11ea-185b-29e9192ba4f0
@@ -97,3 +88,4 @@ d_separation(dag, d, :E; c=[:A, :Z])
9788
# ╠═582b9c98-d279-11ea-2daf-93e7a13c9966
9889
# ╠═57534fc8-d279-11ea-0b9b-a99db30bc7b4
9990
# ╠═5712eff0-d279-11ea-3978-2106eb0feb76
91+
# ╠═49e58f04-d8c8-11ea-19e0-cb45efe39493

notebooks/pn_01.jl

Lines changed: 99 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,99 @@
1+
### A Pluto.jl notebook ###
2+
# v0.11.4
3+
4+
using Markdown
5+
using InteractiveUtils
6+
7+
# This Pluto notebook uses @bind for interactivity. When running this notebook outside of Pluto, the following 'mock version' of @bind gives bound variables a default value (instead of an error).
8+
macro bind(def, element)
9+
quote
10+
local el = $(esc(element))
11+
global $(esc(def)) = Core.applicable(Base.get, el) ? Base.get(el) : missing
12+
el
13+
end
14+
end
15+
16+
# ╔═╡ 7079ec54-d3f6-11ea-0034-79a1c1c5b137
17+
md"# The Basel problem
18+
_Leonard Euler_ proved in 1741 that the series
19+
$$\frac{1}{1} + \frac{1}{4} + \frac{1}{9} + \cdots$$
20+
converges to
21+
$$\frac{\pi^2}{6}$$"
22+
23+
# ╔═╡ cce045ac-d373-11ea-29af-5be52ed80e36
24+
md"## Test Pluto notebook"
25+
26+
# ╔═╡ 4d6bd562-d836-11ea-0756-11ef4bf1b67d
27+
md"""
28+
[^1] footnote 1
29+
30+
[^note] Footnote 2
31+
32+
[^asdf]: I am a reference to asdf
33+
"""
34+
35+
# ╔═╡ be082f3c-d836-11ea-0b9a-7bd30ac3939a
36+
md"Hey I am referencing [^1], [^two] and [^another_one_here].
37+
38+
[^another_one_here]: Heyy"
39+
40+
# ╔═╡ 82aff0b0-d7f4-11ea-0425-858a365a7bf5
41+
using Pkg
42+
43+
# ╔═╡ 6d6e761e-d979-11ea-2ad8-7904c919e31f
44+
begin
45+
using Pluto
46+
Pluto.ENV_DEFAULTS
47+
end
48+
49+
# ╔═╡ 8bb02eb6-d8b5-11ea-3c96-e5722e9c771d
50+
using PlutoUI
51+
52+
# ╔═╡ e290ed2e-d8b5-11ea-0307-dfd62f6f6637
53+
using StatsPlots
54+
55+
# ╔═╡ 1df9a2c0-d8c5-11ea-0422-c1bf4be84abe
56+
using Distributions
57+
58+
# ╔═╡ a1b39506-d278-11ea-1a13-05f75d56dbca
59+
VERSION
60+
61+
# ╔═╡ 926695b4-d974-11ea-1dbd-ff56f8ab770e
62+
Text(sprint(versioninfo))
63+
64+
# ╔═╡ 4f4d4b4c-d7eb-11ea-2aad-4dd2949c05e8
65+
Text(sprint(io -> Pkg.status(io=io, "StructuralCausalModels")))
66+
67+
# ╔═╡ 90b4aa18-d8b5-11ea-0451-ab8a9469fc2f
68+
@bind μ Slider(-10:10, default=0)
69+
70+
# ╔═╡ 77b37a66-d8c5-11ea-25b4-4fdff072ee88
71+
@bind σ Slider(0:10, default=2)
72+
73+
# ╔═╡ b78c317e-d8b5-11ea-3f90-c1a334efc497
74+
density(rand(Normal(μ, σ), 500), lab="Normal(μ=, σ=)")
75+
76+
# ╔═╡ 4c4e6dfa-d97d-11ea-3d50-5747bde72cfb
77+
@bind vegetable Select(["potato", "carrot"])
78+
79+
# ╔═╡ 69ea345c-d97d-11ea-3f18-bbe58107c237
80+
@bind debug CheckBox(default=false)
81+
82+
# ╔═╡ Cell order:
83+
# ╟─7079ec54-d3f6-11ea-0034-79a1c1c5b137
84+
# ╟─cce045ac-d373-11ea-29af-5be52ed80e36
85+
# ╠═a1b39506-d278-11ea-1a13-05f75d56dbca
86+
# ╠═926695b4-d974-11ea-1dbd-ff56f8ab770e
87+
# ╠═82aff0b0-d7f4-11ea-0425-858a365a7bf5
88+
# ╠═4f4d4b4c-d7eb-11ea-2aad-4dd2949c05e8
89+
# ╠═6d6e761e-d979-11ea-2ad8-7904c919e31f
90+
# ╟─4d6bd562-d836-11ea-0756-11ef4bf1b67d
91+
# ╠═be082f3c-d836-11ea-0b9a-7bd30ac3939a
92+
# ╠═8bb02eb6-d8b5-11ea-3c96-e5722e9c771d
93+
# ╠═e290ed2e-d8b5-11ea-0307-dfd62f6f6637
94+
# ╠═1df9a2c0-d8c5-11ea-0422-c1bf4be84abe
95+
# ╠═90b4aa18-d8b5-11ea-0451-ab8a9469fc2f
96+
# ╠═77b37a66-d8c5-11ea-25b4-4fdff072ee88
97+
# ╠═b78c317e-d8b5-11ea-3f90-c1a334efc497
98+
# ╠═4c4e6dfa-d97d-11ea-3d50-5747bde72cfb
99+
# ╠═69ea345c-d97d-11ea-3f18-bbe58107c237

notebooks/test_m_separation_02.ipynb

Lines changed: 0 additions & 235 deletions
This file was deleted.

test/test_graphviz_conversions.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11

22

3-
using StructuralCausalModels
3+
using StructuralCausalModels, Test
44

55
ProjDir = @__DIR__
66
cd(ProjDir) #do

0 commit comments

Comments
 (0)