Reference
Chapter 8 "Listing 8.4 gk_quantile" in rvs function calls np.random.normal
Notebook 8 "Code 8.4 and Figure 8.10" in rvs function calls np.random.uniform
Book Code "Listing 8.4 gk_quantile":
def rvs(self, samples, a, b, g, k):
x = np.random.normal(0, 1, samples) # Error version
return ppf(self, x, a, b, g, k)
Notebook code - "Code 8.4 and Figure 8.10":
def rvs(self, samples, a, b, g, k):
x = np.random.uniform(0, 1, samples) # Correct version
return self.ppf(x, a, b, g, k)
Reference
Chapter 8 "Listing 8.4 gk_quantile" in rvs function calls np.random.normal
Notebook 8 "Code 8.4 and Figure 8.10" in rvs function calls np.random.uniform
Book Code "Listing 8.4 gk_quantile":
Notebook code - "Code 8.4 and Figure 8.10":