--- title: 隨機變數 (Random Variable) description: published: true date: 2025-12-28T17:09:49.339Z tags: editor: markdown dateCreated: 2025-12-28T16:41:51.938Z --- ## Discrete ### Probability Mass Function (PMF) A set of probability value **p~i~** assigned to each of the values taken by the discrete random variables **x~i~**. $0 \leq p_i \leq 1$ and $\sum_{p_i} = 1$ Probability $P(X = x) = p_i$ ### Cumulative Distribution Function (CDF) $F(X) = P(X \leq x)$ $F(X) = \sum_{y : y \leq x} P(X = y)$ ## Continuous ### Probability Density Function (PDF) Probabilistic properties of a continuous random variable. $\int f(x) \,dx\ = 1$ ### Cumulative Distribution Function (CDF) $F(X) = P(X \leq x) = \int_{-\infty}^{x} f(y) \,dy\\$