8.1 Probability distributions; probability mass function
A **probability distribution** shows how the total probability 1 is spread over the values of a random variable.
- For a **discrete** random variable it gives the probability of each value: the **probability mass function** (probability function) \(P(y)=P(Y=y)\), written as a formula or a two-column table.
- For a **continuous** random variable the probability of a single point is zero; probabilities are given for **intervals** by a **probability density function** \(f(y)\): \(P(a<Y<b)\) = area under the curve between \(a\) and \(b\).
> **Example 8.1** Three coins, \(Y\) = number of heads:
\[\begin{array}{|c|c|c|c|c|}\hline y & 0 & 1 & 2 & 3 \\ \hline P(y) & \frac{1}{8} & \frac{3}{8} & \frac{3}{8} & \frac{1}{8} \\ \hline\end{array}\]
## Conditions for a probability mass function
1. \(0\le P(y)\le1\) for every value \(y\);
2. \(\sum P(y)=1\).
> **Example 8.2** A committee of 3 from 3 women and 5 men; \(X\) = number of women: \(P(x)=\dfrac{\binom3x\binom5{3-x}}{\binom83}\), giving \(\frac{10}{56},\frac{30}{56},\frac{15}{56},\frac1{56}\) for \(x=0,1,2,3\).
> **Example 8.5** \(P(x)=0.1,k,0.2,2k,0.3,3k\) for \(x=-2,\dots,3\): \(0.6+6k=1\Rightarrow k=\frac1{15}\).
> **Example 8.6** \(f(y)=\frac{y+1}{14}\), \(y=1,2,3,4\): values \(\frac2{14},\frac3{14},\frac4{14},\frac5{14}\) are non-negative and add to 1, so it is a probability function.