ตัวแปรสุ่มต่อเนื่อง
แนะนำใหม่| English | ความหมาย |
|---|---|
| continuous random variable/kənˈtɪnjuːəs ˈrændəm ˈveərɪəbl/ | ตัวแปรสุ่มแบบต่อเนื่อง |
| probability density function/ˌprɒbəˈbɪlɪti ˈdensɪti ˈfʌŋkʃn/ | ฟังก์ชันความหนาแน่นของโอกาส |
| area/ˈeərɪə/ | พื้นที่ |
| cumulative distribution function/ˈkjuːmjʊlətɪv ˌdɪstrɪˈbjuːʃn ˈfʌŋkʃn/ | ฟังก์ชันการแจกแจงสะสม |
The curve that tells probabilities
- A continuous random variable 连续型随机变量 can take any value in a range — like the exact time a bus arrives, or the precise height of a person.
- Unlike discrete variables, you can't list probabilities for each value. Instead, a probability density function 概率密度函数 (pdf) describes the shape, and probabilities are areas 面积 under the curve.
The probability density function
- A continuous random variable can take any value in a range, described by a probability density function $f(x)$:
Worked example. $f(x) = \dfrac{x}{8}$ for $0 \leq x \leq 4$, zero otherwise. Check: $\int_0^4 \dfrac{x}{8}\,dx = \left[\dfrac{x^2}{16}\right]_0^4 = \dfrac{16}{16} = 1$. ✓
$f(x)$ is NOT a probability. The value of $f(x)$ at a point can be greater than 1. Only the area under the curve between two points gives a probability.

For a continuous variable, probability is the area under the density f(x)
พื้นที่ = ความน่าจะเป็น
P(a < X < b) = ∫ f(x) dx
สำหรับตัวแปรต่อเนื่อง ความน่าจะเป็น คือ พื้นที่ใต้เส้นโค้งความหนาแน่นระหว่างสองค่า
ฟังก์ชันความหนาแน่นของความน่าจะเป็นต้องทำให้อินทิกรัล ∫f(x)dx ทั่วทุก x เท่ากับค่าใด?
ความยาก 2/5 · 140 เหรียญ + บอนัสน้อยๆ เมื่อทำสำเร็จครั้งแรกในวันนี้
พื้นที่ทั้งหมดใต้กราฟ pdf จะมีค่าเท่ากับ 1 เสมอ
ค่าของ f(x) ที่จุดหนึ่งคือความน่าจะเป็นที่ X มีค่าเท่ากับจุดนั้น
ความยาก 1/5 · 100 เหรียญ + บอนัสน้อยๆ เมื่อทำสำเร็จครั้งแรกในวันนี้
f(x) เป็นความหนาแน่น ไม่ใช่ความน่าจะเป็น มีเพียงพื้นที่ใต้ f(x) เท่านั้นที่ให้ความน่าจะเป็น f(x) แม้จะมีค่ามากกว่า 1 ก็ตาม
สำหรับ f(x) = x/8 บนช่วง 0 ≤ x ≤ 4, ตรวจสอบว่า ∫₀⁴ (x/8) dx = [x²/16]₀⁴ ผลลัพธ์คืออะไร?
ความยาก 2/5 · 140 เหรียญ + บอนัสน้อยๆ เมื่อทำสำเร็จครั้งแรกในวันนี้
[x²/16]₀⁴ = 16/16 − 0 = 1 พื้นที่ทั้งหมดคือ 1 ยืนยันว่าเป็น pdf ที่ถูกต้อง
Finding probabilities
- A probability is an area under $f$: $P(a < X < b) = \displaystyle\int_a^b f(x)\,dx$.

Probabilities are areas under f(x); the total area over all x must equal 1.
สำหรับตัวแปรต่อเนื่อง, P(a < X < b) คือพื้นที่ใต้ f(x) ระหว่าง a และ b
ความยาก 1/5 · 100 เหรียญ + บอนัสน้อยๆ เมื่อทำสำเร็จครั้งแรกในวันนี้
ความน่าจะเป็นของตัวแปรต่อเนื่องคือพื้นที่ใต้ฟังก์ชันความหนาแน่น
Finding the mean and variance
- The mean is $E(X) = \displaystyle\int_{-\infty}^{\infty} x\,f(x)\,dx$.
- The variance is $\text{Var}(X) = E(X^2) - (E(X))^2$, where $E(X^2) = \displaystyle\int_{-\infty}^{\infty} x^2\,f(x)\,dx$.
สำหรับ f(x) = ½x บนช่วง 0 ≤ x ≤ 2, E(X) = ∫₀² x(½x) dx = [x³/6]₀². จงหาค่า E(X)? (≈, ทศนิยม 2 ตำแหน่ง)
ความยาก 2/5 · 140 เหรียญ + บอนัสน้อยๆ เมื่อทำสำเร็จครั้งแรกในวันนี้
E(X) = ∫₀² ½x² dx = [x³/6]₀² = 8/6 = 4/3 ≈ 1.33
The cumulative distribution function 累积分布函数
- The cdf $F(x) = P(X \leq x) = \displaystyle\int_{-\infty}^x f(t)\,dt$.
- $F(x)$ is the area under $f$ up to $x$. It always increases from 0 to 1.
- Use the density function to find the median and other percentiles.
ฟังก์ชันการแจกแจงสะสม F(x) ให้:
ความยาก 1/5 · 100 เหรียญ + บอนัสน้อยๆ เมื่อทำสำเร็จครั้งแรกในวันนี้
F(x) = P(X ≤ x) = พื้นที่ใต้ f ถึงจุด x
You've got it
- a pdf has $f(x) \geq 0$ and total area $\int f = 1$
- a probability is the area under $f$ between the limits
- the mean $E(X) = \int x\,f(x)\,dx$
Write from the data: find the continuous mean
- A uniform density is 1/4 on the interval from 1 to 5.
- Check that it is a pdf and find the mean.
The function 1/4 on the interval from 1 to 5, and 0 elsewhere, is proposed as a pdf. Does it integrate to 1, and what is its mean?
4 คูณด้วย 1/4 ได้ 1 ค่าเฉลี่ยของ 1 และ 5 คือ 3
ค่าเฉลี่ยคืออะไร?
ความยาก 1/5 · 100 เหรียญ + บอนัสน้อยๆ เมื่อทำสำเร็จครั้งแรกในวันนี้
จุดกึ่งกลางของ 1 และ 5 คือ 3 ตัวเลือกอื่น — 1.33 (ค่าเฉลี่ยที่เก็บไว้ของความหนาแน่นอื่น); 1/4 (ค่าความสูงของ PDF)