Discrete random variables
Đã giới thiệu
11:37
Xác suất & Thống kê 1
Xả một con xúc xắc, và kết quả là bất kỳ ai cũng có thể đoán. Nhưng xả hàng ngàn lần, hoặc đo chiều cao của hàng ngàn người, thì điều đáng chú ý…
Thuyết minh tiếng Anh · Có thể chuyển đổi phụ đề tiếng Anh và tiếng Trung
Trong bài học này
| English | Ý nghĩa |
|---|---|
| discrete random variable/dɪˈskriːt ˈrændəm ˈveərɪəbl/ | biến ngẫu nhiên rời rạc |
| probability distribution/ˌprɒbəˈbɪlɪti ˌdɪstrɪˈbjuːʃn/ | phân phối xác suất |
| expectation/ekspɪkˈteɪʃn/ | kỳ vọng |
| variance/ˈveərɪəns/ | phương sai |
| binomial distribution/baɪˈnəʊmɪəl ˌdɪstrɪˈbjuːʃn/ | phân phối nhị thức |
| trial/ˈtraɪəl/ | thử nghiệm |
| geometric distribution/ˌdʒiːəʊˈmetrɪk ˌdɪstrɪˈbjuːʃn/ | phân phối hình học |
The loaded die
- A fair die gives each face probability $\dfrac{1}{6}$. But what if the die is loaded? Each outcome still has a probability, but they're no longer equal.
- A discrete random variable 离散型随机变量 assigns a numerical value to each outcome; its probability distribution assigns probabilities to the possible values.
Discrete random variables
- A discrete random variable $X$ takes separate values, each with a probability (they sum to 1).
- Expectation 期望 (mean): $E(X) = \sum x\,P(X = x)$.
- Variance 方差: $\text{Var}(X) = \sum x^2\,P(X = x) - \big(E(X)\big)^2$.
Worked example. $X$ takes values 1, 2, 3 with probabilities 0.2, 0.5, 0.3. $E(X) = 1(0.2) + 2(0.5) + 3(0.3) = 0.2 + 1.0 + 0.9 = 2.1$. $E(X^2) = 1(0.2) + 4(0.5) + 9(0.3) = 0.2 + 2.0 + 2.7 = 4.9$. $\text{Var}(X) = 4.9 - 2.1^2 = 4.9 - 4.41 = 0.49$.
Probabilities must sum to 1. Before calculating expectation or variance, always check that $\sum P(X = x) = 1$. If it doesn't, the probability distribution 概率分布 is invalid.
Phân phối nhị thức
X ~ B(n, p)
Each bar is the chance of k successes. Change n và p and watch the trung bình np shift.
In a probability distribution table, the probabilities must add up to 1.
Độ khó 1/5 · 100 xu + phần thưởng nhỏ khi hoàn thành lần đầu tiên hôm nay
A valid distribution has all probabilities summing to 1.
X takes values 1, 2, 3 with P = 0.2, 0.5, 0.3. E(X) = ΣxP(X=x). Find it.
Độ khó 2/5 · 140 xu + phần thưởng nhỏ khi hoàn thành lần đầu tiên hôm nay
1(0.2) + 2(0.5) + 3(0.3) = 0.2 + 1.0 + 0.9 = 2.1.
If E(X) = 2.1 and E(X²) = 4.9, Var(X) = E(X²) − (E(X))². Find it.
Độ khó 2/5 · 140 xu + phần thưởng nhỏ khi hoàn thành lần đầu tiên hôm nay
Var(X) = 4.9 − 2.1² = 4.9 − 4.41 = 0.49.
Match each binomial idea to its result.
Độ khó 2/5 · 140 xu + phần thưởng nhỏ khi hoàn thành lần đầu tiên hôm nay
A binomial has fixed n trials with constant p; its mean is np and variance np(1−p).
The binomial distribution 二项分布
- Binomial $X \sim B(n, p)$ — number of successes in $n$ independent trials 试验, each with the same success probability $p$:
- $P(X = r) = \dbinom{n}{r}p^r(1-p)^{n-r}$
- $E(X) = np$, $\text{Var}(X) = np(1-p)$.

Each bar is P(X = r) for B(10, 0.3); the distribution peaks at the mean np = 3.
For X ~ B(10, 0.3), what is E(X) = np?
Độ khó 2/5 · 140 xu + phần thưởng nhỏ khi hoàn thành lần đầu tiên hôm nay
E(X) = np = 10 × 0.3 = 3.
For X ~ B(10, 0.3), what is Var(X) = np(1−p)?
Độ khó 2/5 · 140 xu + phần thưởng nhỏ khi hoàn thành lần đầu tiên hôm nay
Var(X) = np(1−p) = 10 × 0.3 × 0.7 = 2.1.
The geometric distribution 几何分布
- Geometric — the trial number of the first success:
- $P(X = r) = (1-p)^{r-1}p$
- $E(X) = \dfrac{1}{p}$.
For a geometric distribution with p = 0.2, E(X) = 1/p. Find it.
Độ khó 2/5 · 140 xu + phần thưởng nhỏ khi hoàn thành lần đầu tiên hôm nay
E(X) = 1/p = 1/0.2 = 5. On average, the first success occurs on trial 5.
Worked example — binomial
- $X \sim B(10, 0.3)$. Find $P(X = 2)$ and $E(X)$.
- $P(X = 2) = \dbinom{10}{2}(0.3)^2(0.7)^8 = 45 \times 0.09 \times 0.0576 = 0.233$.
- $E(X) = np = 10 \times 0.3 = 3$.
You've got it
- $E(X) = \sum x\,P(X=x)$; $\text{Var}(X) = \sum x^2 P(X=x) - (E(X))^2$
- binomial $B(n,p)$: $E = np$, $\text{Var} = np(1-p)$
- geometric: first success on trial $r$, $E = \dfrac1p$
Write from the data: find the binomial mean
- A binomial distribution has n = 10 and p = 0.2.
- Find the mean and the variance.
For a binomial distribution with n = 10 and p = 0.2, what are the mean and the variance?
10 times 0.2 is 2. 2 times 0.8 is 1.6.
What is the mean?
Độ khó 1/5 · 100 xu + phần thưởng nhỏ khi hoàn thành lần đầu tiên hôm nay
np is 2 and np(1 - p) is 1.6.
Đã xảy ra vấn đề gì? Chỉ đội ngũ trang web nhìn thấy thông tin này.