Skip to content

Commit 628ec77

Browse files
some edits to chp2,4 and adding cover to prolouge
1 parent 252758f commit 628ec77

File tree

3 files changed

+39
-337
lines changed

3 files changed

+39
-337
lines changed

Chapter2_MorePyMC/MorePyMC.ipynb

Lines changed: 34 additions & 334 deletions
Large diffs are not rendered by default.

Chapter4_TheGreatestTheoremNeverTold/LawOfLargeNumbers.ipynb

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,7 @@
1212
"collapsed": false,
1313
"input": [
1414
"%pylab inline\n",
15-
"import scipy.stats as stats\n",
16-
"figsize( 12.5, 4)"
15+
"figsize( 12.5, 4);"
1716
],
1817
"language": "python",
1918
"metadata": {},
@@ -28,7 +27,7 @@
2827
]
2928
}
3029
],
31-
"prompt_number": 2
30+
"prompt_number": 24
3231
},
3332
{
3433
"cell_type": "markdown",

Prologue/Prologue.ipynb

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,9 @@
2020
"\n",
2121
"Bayesian method is the natural approach to inference, yet it is hidden from readers behind chapters of slow, mathematical analysis. The typical text on Bayesian inference involves two to three chapters on probability theory, then enters what Bayesian inference is. Unfortunately, due to mathematical intractability of most Bayesian models, the reader is only shown simple, artificial examples. This can leave the user with a *so-what* feeling about Bayesian inference. In fact, this was the author's own prior opinion.\n",
2222
"\n",
23+
"<div style=\"float: right;\"><img style=\"float: right;\" src=\"http://i.imgur.com/25xEomH.png\" align=right height = 460 /></div>\n",
24+
"\n",
25+
"\n",
2326
"After some recent success of Bayesian methods in machine-learning competitions, I decided to investigate the subject again. Even with my mathematical background, it took me three straight-days of reading examples and trying to put the pieces together to understand the methods. There was simplely not enough literature bridging theory to practice. The problem with my misunderstanding was the disconnect between Bayesian mathematics and probabilistic programming. That being said, I suffered then so the reader would not have to now. This book attempts to bridge the gap.\n",
2427
"\n",
2528
"If Bayesian inference is the destination, then mathematical analysis is a particular path to it. On the other hand, computing power is cheap enough that we can afford to take an alternate route via probabilistic programming. The path is much more useful, as it denies the necessity of mathematical intervention at each step, that is, we remove often-intractable mathematical analysis as a prerequisite to Bayesian inference. Simply put, this computational path proceeds via small intermediate jumps from beginning to end, where as the first path proceeds by enormous leaps, often landing far away from our target. Furthermore, without a strong mathematical background, the analysis required by the first path cannot even take place.\n",

0 commit comments

Comments
 (0)