STA154 ยท 2080 ยท 5 marks
Define binomial distribution. Fit a binomial distribution on the following data: | x | 0 | 1 | 2 | 3 | 4 | |---|---|---|---|---|---| | f | 28 | 62 | 46 | 10 | 4 |
Define binomial distribution. Fit a binomial distribution on the following data:
| x | 0 | 1 | 2 | 3 | 4 |
|---|---|---|---|---|---|
| f | 28 | 62 | 46 | 10 | 4 |
[5]
Binomial Distribution - Definition and Fitting
Given
| $x$ | 0 | 1 | 2 | 3 | 4 |
|---|---|---|---|---|---|
| $f$ | 28 | 62 | 46 | 10 | 4 |
Maximum value of $x = 4 \Rightarrow n = 4$.
Definition
A binomial distribution is a discrete probability distribution giving the number of successes in $n$ independent trials, each with two outcomes (success/failure) and constant success probability $p$.
$$P(X = x) = \binom{n}{x} p^x q^{n-x}, \quad q = 1-p, \quad x = 0,1,2,\dots,n$$
Solution
Step 1: Mean
| $x$ | $f$ | $xf$ |
|---|---|---|
| 0 | 28 | 0 |
| 1 | 62 | 62 |
| 2 | 46 | 92 |
| 3 | 10 | 30 |
| 4 | 4 | 16 |
| Total | N = 150 | ฮฃxf = 200 |
$$\bar{x} = \frac{\sum xf}{N} = \frac{200}{150} = 1.3333$$
Step 2: Parameters
$$np = \bar{x} \Rightarrow p = \frac{\bar{x}}{n} = \frac{1.3333}{4} = \frac{1}{3} = 0.3333$$ $$q = 1 - p = \frac{2}{3} = 0.6667$$
Step 3: Theoretical frequencies
$$f_x = N \binom{4}{x} p^x q^{4-x} = 150 \binom{4}{x}\left(\tfrac{1}{3}\right)^x \left(\tfrac{2}{3}\right)^{4-x}$$
- $f_0 = 150 \cdot 1 \cdot \frac{16}{81} = 150 \times 0.19753 = 29.63 \approx 30$
- $f_1 = 150 \cdot 4 \cdot \frac{1}{3}\cdot\frac{8}{27} = 150 \times 0.39506 = 59.26 \approx 59$
- $f_2 = 150 \cdot 6 \cdot \frac{1}{9}\cdot\frac{4}{9} = 150 \times 0.29630 = 44.44 \approx 44$
- $f_3 = 150 \cdot 4 \cdot \frac{1}{27}\cdot\frac{2}{3} = 150 \times 0.09877 = 14.81 \approx 15$
- $f_4 = 150 \cdot 1 \cdot \frac{1}{81} = 150 \times 0.01235 = 1.85 \approx 2$
Check: $30 + 59 + 44 + 15 + 2 = 150$ โ
Fitted Distribution:
| $x$ | 0 | 1 | 2 | 3 | 4 |
|---|---|---|---|---|---|
| Observed $f$ | 28 | 62 | 46 | 10 | 4 |
| Expected $f'$ | 30 | 59 | 44 | 15 | 2 |
Parameters: $n = 4$, $p = \tfrac{1}{3}$.
Short on time? The 1, 5 and 10 mark versions of this answer, flashcards and practice sets come with a program pass.