- `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.
Distribution.plot()displays the true pdf in a plot, andDistribution.pdf(x)returns the pdf at a particular value..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 histogramSide-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.