Skip to content

Commit f0cf3c9

Browse files
committed
fixed #5 #4
1 parent 9a11447 commit f0cf3c9

3 files changed

Lines changed: 35 additions & 4 deletions

File tree

Gemfile

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,3 +3,5 @@ source "https://rubygems.org"
33
gem "github-pages", group: :jekyll_plugins
44

55
gem "webrick", "~> 1.8"
6+
7+
gem 'faraday', '~> 1.10'

Gemfile.lock

Lines changed: 26 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,9 +27,31 @@ GEM
2727
ffi (>= 1.15.0)
2828
eventmachine (1.2.7)
2929
execjs (2.10.0)
30-
faraday (2.0.0)
30+
faraday (1.10.4)
31+
faraday-em_http (~> 1.0)
32+
faraday-em_synchrony (~> 1.0)
33+
faraday-excon (~> 1.1)
34+
faraday-httpclient (~> 1.0)
35+
faraday-multipart (~> 1.0)
36+
faraday-net_http (~> 1.0)
37+
faraday-net_http_persistent (~> 1.0)
38+
faraday-patron (~> 1.0)
39+
faraday-rack (~> 1.0)
40+
faraday-retry (~> 1.0)
3141
ruby2_keywords (>= 0.0.4)
32-
ffi (1.17.1)
42+
faraday-em_http (1.0.0)
43+
faraday-em_synchrony (1.0.1)
44+
faraday-excon (1.1.0)
45+
faraday-httpclient (1.0.1)
46+
faraday-multipart (1.1.1)
47+
multipart-post (~> 2.0)
48+
faraday-net_http (1.0.2)
49+
faraday-net_http_persistent (1.2.0)
50+
faraday-patron (1.0.0)
51+
faraday-rack (1.0.0)
52+
faraday-retry (1.0.3)
53+
ffi (1.17.1-arm64-darwin)
54+
ffi (1.17.1-x86_64-linux-gnu)
3355
forwardable-extended (2.6.0)
3456
gemoji (4.1.0)
3557
github-pages (231)
@@ -211,6 +233,7 @@ GEM
211233
jekyll-feed (~> 0.9)
212234
jekyll-seo-tag (~> 2.1)
213235
minitest (5.25.4)
236+
multipart-post (2.4.1)
214237
nokogiri (1.13.10-arm64-darwin)
215238
racc (~> 1.4)
216239
nokogiri (1.13.10-x86_64-linux)
@@ -256,6 +279,7 @@ PLATFORMS
256279
x86_64-linux
257280

258281
DEPENDENCIES
282+
faraday (~> 1.10)
259283
github-pages
260284
webrick (~> 1.8)
261285

bayes-nets/d-separation.md

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ $$P(X | Z, Y) = P(X | Y)$$
5656
We can prove this statement as follows:
5757

5858
$$P(X | Z, y) = \frac{P(X, Z, y)}{P(Z, y)}
59-
= \frac{P(Z|y) P(y|X) P(X)}{\sum_{x} P(X, y, Z)}
59+
= \frac{P(Z|y) P(y|X) P(X)}{\sum_{x} P(x, y, Z)}
6060
= \frac{P(Z|y) P(y|X) P(X)}{P(Z|y) \sum_{x} P(y|x)P(x)}
6161
= \frac{P(y|X) P(X)}{\sum_{x} P(y|x)P(x)}
6262
= P(X|y)$$
@@ -173,9 +173,14 @@ Any path in a graph from $$X$$ to $$Y$$ can be decomposed into a set of 3 consec
173173

174174
---
175175

176-
**Active triples**: We can enumerate all possibilities of active and inactive triples using the three canonical graphs we presented below in the figures.
176+
We can enumerate all possibilities of active and inactive triples using the three canonical graphs we presented below in the figures.
177+
178+
**Active triples**:
177179

178180
<img src="{{ site.baseurl }}/assets/images/active.PNG" alt="Active triples" />
181+
182+
**Inactive triples**:
183+
179184
<img src="{{ site.baseurl }}/assets/images/inactive.PNG" alt="Inactive triples" />
180185

181186
## 6.5.5 Examples

0 commit comments

Comments
 (0)