Skip to content

Error in code #4

Description

@eyo11

Noticed an error in line 59:

mom.append(np.sum(xpf)) # compute moment: sum(x^p * f(x))

moms is defined before as moms = [], therefore "mom" in line 59 should be changed to "moms".

I'm also having trouble understanding the use for randvar, if you could kindly explain. Thank you.

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

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions