Skip to content

Commit dcf3c5b

Browse files
committed
Ch4, Ex.1: Explicitly name the scale argument in stats.expon()
In scipy 0.12.0, the first unnamed argument becomes the location of the distribution. As such, the starter code gives the reader an Exp(1) distribution starting at x=4.
1 parent 7251ab8 commit dcf3c5b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Chapter4_TheGreatestTheoremNeverTold/LawOfLargeNumbers.ipynb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1038,7 +1038,7 @@
10381038
"input": [
10391039
"## Enter code here\n",
10401040
"import scipy.stats as stats\n",
1041-
"exp = stats.expon( 4 )\n",
1041+
"exp = stats.expon( scale=4 )\n",
10421042
"N = 1e5\n",
10431043
"X = exp.rvs( N )\n",
10441044
"## ..."
@@ -1170,4 +1170,4 @@
11701170
"metadata": {}
11711171
}
11721172
]
1173-
}
1173+
}

0 commit comments

Comments
 (0)