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:
parent
edbc98ccb4
commit
909f107a93
254
00-Preface.ipynb
254
00-Preface.ipynb
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
@ -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",
|
||||
|
@ -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
|
||||
|
@ -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():
|
||||
|
Loading…
Reference in New Issue
Block a user