We covered the ground rules:
probabilities are between 0 and 1, and
all outcomes sum to 1.
We covered probability basics:
complement
independence
conditional probability
Now, we zoom out: instead of asking about one event at a time, we’ll describe probability for any possible event.
Probability distribution
Before we can describe a variable’s distribution, we have to know what kind of variable it is.
Discrete variables
Outcomes that can be enumerated.
Before we can describe a variable’s distribution, we have to know what kind of variable it is.
Continuous variables
Outcomes that cannot be enumerated.
Probability mass function (PMF)
For a discrete variable, the rule that assigns a probability to each possible value is called the probability mass function (PMF).
i.e., the PMF is just the bar chart in function form.
Probability density function (PDF)
For a continuous variable, the rule that describes the probability a range of possible value is called the probability density function (PDF).
i.e., the PDF is just the density plot in function form. However,
The curve itself is not a probability – we must find the probability by calculating the area under the curve for a range of values.
The total area under the whole curve is 1
Both discrete and continuous variables share the cumulative distribution function (CDF).
Cumulative density function (CDF)
For either type of variable, the rule that gives the probability of being at or below a specific value is called the cumulative distribution function (CDF).
Deputy Chief Okonkwo wants to know:
This is a binomial experiment:
Binomial Distribution
For a fixed number of independent binary trials, the distribution that describes the probability of a specific number of “successes” is called the binomial distribution.
P(y) = \frac{n!}{y!(n-y)!} \pi^y (1-\pi)^{n-y}
Deputy Chief Okonkwo wants to know:
This question asks us to count the number of “successes” (e.g., Patrol) out of a fixed number of tries
The binomial distribution is appropriate here, as:
Normal Distribution
For a continuous variable that clusters symmetrically around an average, the distribution that describes the probability of a range of values is called the normal distribution.
f(y) = \frac{1}{\sigma\sqrt{2\pi}} e^{-\frac{1}{2}\left(\frac{y - \mu}{\sigma}\right)^2}
Deputy Chief Okonkwo wants to know:
This question asks us to describe the pattern of a continuous variable around its average
The normal distribution is appropriate here, with:
Deputy Chief Okonkwo wants to know:
The t-distribution is the right tool when:
We will see that estimating \sigma with s adds uncertainty.
t-Distribution
For a continuous variable estimated from a small sample with unknown population standard deviation, the distribution that describes the probability of a range of values is called the t-distribution.
f(y) = \frac{\Gamma\left(\frac{\nu+1}{2}\right)}{\sqrt{\nu\pi}\,\Gamma\left(\frac{\nu}{2}\right)} \left(1 + \frac{y^2}{\nu}\right)^{-\frac{\nu+1}{2}} - \nu = degrees of freedom
Deputy Chief Okonkwo wants to know:
This question asks us to estimate a population average from a small sample where we don’t know the true population spread
The t-distribution is appropriate here, with:
Recall: learning probabilities using tables in a book
When you hit a “large enough” sample size, it goes to df = \infty and the resulting values are the same as the standard normal.
That is because the t-distribution converges to the standard normal as \nu \to \infty.
Deputy Chief Okonkwo wants to know:
The chi-squared distribution will be used in hypothesis testing, not for describing the shape of a variable itself.
We use it strictly as a tool for hypothesis testing.
We will see it across several topics, including one-sample tests for variance, two-sample tests for variance, and goodness-of-fit tests.
\chi^2-Distribution
For a quantity built from squared, standardized sample variance, the distribution that describes the probability of a range of values is called the chi-squared distribution.
f(y) = \frac{1}{2^{\nu/2}\Gamma\left(\frac{\nu}{2}\right)} y^{\frac{\nu}{2}-1} e^{-y/2}, \quad y \geq 0 - \nu = degrees of freedom
F-Distribution
For a quantity built from the ratio of two independent \chi^2 variables, the distribution that describes the probability of a range of values is called the F-distribution.
f(y) = \frac{\sqrt{\frac{(\nu_1 y)^{\nu_1} \nu_2^{\nu_2}}{(\nu_1 y + \nu_2)^{\nu_1+\nu_2}}}}{y \, \text{B}\left(\frac{\nu_1}{2}, \frac{\nu_2}{2}\right)}, \quad y \geq 0
Like the \chi^2-distribution, the F-distribution is not symmetric and only takes non-negative values.
This lecture gave an overview of probability functions:
PMF: probability mass function; for discrete variables.
PDF: probability density function; for continuous variables.
CDF: cumulative distribution function; for discrete and continuous variables
and distributions:
Binomial: for counting successes in a fixed number of independent trials.
Normal: for continuous variables that cluster symmetrically around an average.
t: for continuous variables estimated from a small sample with unknown population standard deviation.
Chi-squared: (hypothesis testing)
F: (hypothesis testing)
In the next module, you will use these concepts to answer questions such as:
We will continue to see these distributions when learning various hypothesis tests.
Before we learn hypothesis testing, we will learn how to estimate population parameters from sample statistics.