A random variable \(X\) is said to follow a discrete uniform distribution on \(\{1,2,\ldots,N\}\) if each of the \(N\) values is equally likely:
\[ P(X = x) = \dfrac{1}{N}, \quad x = 1, 2, \ldots, N. \]Derivation: \(\sum_{x=1}^{N} x = N(N+1)/2\) gives \(E(X) = (N+1)/2\). \(\sum_{x=1}^{N} x^2 = N(N+1)(2N+1)/6\), so
\(E(X^2) = (N+1)(2N+1)/6\) and Var \(= E(X^2) - [E(X)]^2 = (N^2-1)/12\).
A fair die: \(N=6\), \(P(X=x) = 1/6\) for \(x=1,\ldots,6\).
Mean = 7/2 = 3.5; Variance = (36-1)/12 = 35/12 ≈ 2.917.
A random integer is selected from {1,…,10}. Mean = 5.5, Variance = 99/12 = 8.25.
\(P(X \le 4) = 4/10 = 0.4\).
A random variable \(X\) follows a Bernoulli distribution with parameter \(p\) (\(0 < p < 1\)) if
\[ P(X = 1) = p, \quad P(X = 0) = q, \quad q = 1 - p. \]It models a single trial with two outcomes ("success" / "failure"). Notation: \(X \sim B(1,p)\) or Bernoulli\((p)\).
Flipping a fair coin once with \(X = 1\) for head: \(p = 0.5\), Mean = 0.5, Variance = 0.25.
Defective bolt rate is 2 %. Let \(X = 1\) if a randomly chosen bolt is defective. \(E(X) = 0.02,\; \text{Var}(X) = 0.0196\).
If \(n\) independent Bernoulli\((p)\) trials are performed, the number of successes \(X\) follows a Binomial distribution \(B(n, p)\) with PMF
\[ P(X = x) \;=\; \binom{n}{x} p^x q^{n-x}, \quad x = 0, 1, \ldots, n. \]Conditions for Binomial model:
\(M'_X(0) = np = E(X)\) (mean).
\(M''_X(0) = n(n-1)p^2 + np \Rightarrow E(X^2) = n^2p^2 - np^2 + np\).
Hence \(\text{Var}(X) = E(X^2) - [E(X)]^2 = (n^2p^2 - np^2 + np) - n^2p^2 = np - np^2 = np(1-p) = npq.\)
Hence \(\gamma_2 = \beta_2 - 3 = (1-6pq)/(npq)\).
If \(p < 0.5\): right-skewed; \(p > 0.5\): left-skewed; \(p = 0.5\): symmetric.
If \(X \sim B(n_1, p)\) and \(Y \sim B(n_2, p)\) are independent (same \(p\)), then
\[ X + Y \sim B(n_1 + n_2,\; p). \]The Binomial is not additive across different \(p\) values.
Starting from \(P(X = 0) = q^n\), all subsequent probabilities can be generated rapidly.
For large \(n\) (with \(np\) and \(nq\) both moderately large):
\[ \dfrac{X - np}{\sqrt{npq}} \;\xrightarrow{d}\; N(0, 1). \]Rule of thumb: normal approximation is good when \(np \ge 5\) and \(nq \ge 5\).
10 % of items produced by a machine are defective. In a sample of 5, find the probability that (i) exactly 2 are defective, (ii) at most 1 is defective.
\(n = 5, p = 0.1, q = 0.9\).
(i) \(P(X = 2) = \binom{5}{2}(0.1)^2(0.9)^3 = 10(0.01)(0.729) = 0.0729\).
(ii) \(P(X \le 1) = (0.9)^5 + 5(0.1)(0.9)^4 = 0.5905 + 0.3281 = 0.9185\).
An exam has 20 multiple-choice questions, each with 4 options. A student guesses every answer. Find the expected score and SD.
\(n = 20,\; p = 1/4,\; q = 3/4\).
Mean = \(np = 5\); Variance = \(npq = 3.75\); SD = 1.936.
The multinomial distribution generalises the binomial to more than two outcomes. In \(n\) independent trials, each trial results in exactly one of \(k\) mutually exclusive categories with probabilities \(p_1, p_2, \dots, p_k\) (\(\sum p_i = 1\)). If \(X_i\) is the number of trials falling in category \(i\), then
With \(k = 2\) this reduces to the binomial. Each marginal is binomial: \(X_i \sim B(n, p_i)\).
The covariance is negative: since the counts must add to \(n\), a large count in one category forces smaller counts elsewhere.
A fair die is rolled 12 times. The probability that each face appears exactly twice is
\(P = \dfrac{12!}{(2!)^{6}}\left(\dfrac{1}{6}\right)^{12} = 7\,484\,400 \times \dfrac{1}{6^{12}} = 0.00344\).
Items are Good, Minor-defect or Major-defect with probabilities \(0.5, 0.3, 0.2\). In a sample of 10, the probability of exactly 5 Good, 3 Minor and 2 Major is
\(P = \dfrac{10!}{5!\,3!\,2!}(0.5)^5(0.3)^3(0.2)^2 = 2520 \times 0.03125 \times 0.027 \times 0.04 = 0.0851\).