4CREATING A BINOMIAL PROBABILITY DISTRIBUTION

Image

In Chapter 3, you learned some basic rules of probability corresponding to the common logical operators: AND, OR, and NOT. In this chapter we’re going to use these rules to build our first probability distribution, a way of describing all possible events and the probability of each one happening. Probability distributions are often visualized to make statistics more palatable to a wider audience. We’ll arrive at our probability distribution by defining a function that generalizes a particular group of probability problems, meaning we’ll create a distribution to calculate the probabilities for a whole ...

Get Bayesian Statistics the Fun Way now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.