Skip to content

Manuscript Error: Mismatch - Chapter 8 book code to notebook code in rvs function  #208

Description

@DMacGillivray

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)

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions