...

/

Introduction to Discrete Distributions

Introduction to Discrete Distributions

In this lesson, we will introduce discrete distributions.

In the previous lesson, we showed how we could use a simple interface to implement concepts like “normal distribution” or “standard uniform distribution”. For the next lessons, we’ll leave continuous distributions aside and consider only discrete distributions. That is, we have some probability distribution where there are only a small, fixed number of outcomes. Flip a coin, roll three dice and add them together, that sort of thing. You can read up on its definition in the appendix chapter.


Discrete Distribution

Since we assume the number of possible outcomes of a discrete distribution is small. Therefore, we can enumerate them; the set of possible outcomes is, oddly enough, called the support of the distribution.

Some elements might be more likely than others; the ones that happen more often we say have more weight than the ones that happen less often. We want to be able to describe the weight of each member of a distribution easily. Also, we do not want to get off in the weeds of representing weights as doubles because double arithmetic has many pitfalls. For the first part of this course, we are going to assume that we can weight the members of a distribution by an integer. When we return to continuous distributions, we will consider the pros and cons of double weights further.

public interface
...