Formatting changes, and removal of some text

I am switching to the default look of Jupyter as much as possible.
Altering the look is not really supported by Jupyter, so rending
on GitHub (for example) is very different than when running in
your own browser.

I also got rid of the animations that really slow down execution
of the notebook in favor of using a slider to display a step in
a computation - the reader can see the plots 'animated' by moving
the slider. It is much faster to compute, and actually gives them
fine grained control to go forwards/backwards in time.

I am also revising my coverage of statistics, and moving the
details about Bayes and total conditional probability to the
third chapter. I shouldn't be talking about probability distributions
before covering that material.
This commit is contained in:
Roger Labbe 2018-08-04 10:27:26 -07:00
parent edbc98ccb4
commit 909f107a93
6 changed files with 304 additions and 4930 deletions

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@ -8,7 +8,7 @@
"patch.edgecolor": "#f0f0f0",
"examples.directory": "",
"figure.facecolor": "#ffffff",
"grid.linestyle": "-",
"grid.linestyle": "dotted",
"grid.linewidth": 2.0,
"grid.color": "#cbcbcb",
"axes.edgecolor":"#f0f0f0",

View File

@ -50,7 +50,7 @@ def reset_figsize():
pylab.rcParams['figure.figsize'] = 8, 3
def set_figsize(x=8, y=3):
def set_figsize(x=10, y=4):
""" set the figure size of the plot to the specified size in inches"""
pylab.rcParams['figure.figsize'] = x, y

View File

@ -38,6 +38,7 @@ def plot_hypothesis1():
plt.ylim(150, 185)
plt.xlabel('day')
plt.ylabel('lbs')
plt.grid(False)
plt.tight_layout()
@ -52,6 +53,7 @@ def plot_hypothesis2():
plt.ylim(150, 185)
plt.xlabel('day')
plt.ylabel('lbs')
plt.grid(False)
def plot_hypothesis3():
weights = [158.0, 164.2, 160.3, 159.9, 162.1, 164.6,
@ -67,6 +69,7 @@ def plot_hypothesis3():
plt.ylim(145, 185)
plt.xlabel('day')
plt.ylabel('weight (lbs)')
plt.grid(False)
def plot_hypothesis4():
@ -84,7 +87,8 @@ def plot_hypothesis4():
plt.xlabel('day')
plt.ylabel('weight (lbs)')
book_plots.show_legend()
plt.grid(False)
def plot_hypothesis5():
weights = [158.0, 164.2, 160.3, 159.9, 162.1, 164.6,
@ -103,6 +107,7 @@ def plot_hypothesis5():
plt.xlabel('day')
plt.ylabel('weight (lbs)')
book_plots.show_legend()
plt.grid(False)
def plot_estimate_chart_1():