Skip to content

Method for displaying true pmf/pdf in a table #63

@kevindavisross

Description

@kevindavisross
  • Distribution.plot() displays the true pdf in a plot, and Distribution.pdf(x) returns the pdf at a particular value.
  • Add a method for displaying the true pdf in a table? I don't know what the best syntax would be. Maybe .pdf() without any values, e.g.

Binomial(4, 0.5).pdf()

  • For continuous, default for Distribution.pdf() could be a table of values and probabilities, where the values have been binned like for a histogram

  • Side-by-side tables could compare exact distributions generated with .pdf() and simulated distributions generated with .sim(10000).tabulate()

  • Could also have Distribution.cdf() method which displays a table of quantiles.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions