Discrete Math Problems: IX Probability Mass Functions
Probability Mass Functions A box contains $N$ balls labeled $1,2,\dots,N$. One ball is selected uniformly at random. Let $X$ denote the label of the selected ball. Find the PMF, CDF, expected value, and variance of $X$. Since the total sum of all probabilities must equal \(1\) and each label is equally likely to be selected, the uniform PMF of \(X\) written \(P:\{1,\ldots,N\}\to[0,1]\) is defined by: $ P(x)=\frac1N $ for all \(x\in\{1,\ldots,N\}\). The CDF of \(X\) is \(F_X:\mathbb{R}\to[0,1]\) defined by $ F_X(x)=P(X\le x) $ for all \(x\in\mathbb{R}\). If \(1\le x uniform CDF of \(X\) is defined as: \[ F_X(x)= \begin{cases} 0 & \text{if } x The expected value of \(X\) is $ E[X] = \sum_{x=1}^{N} xP(x). $ Since $ P(x)=\dfrac1N $ for all \(x\in\{1,\dots,N\}\), $ E[X] = \dfrac1N\sum_{x=1}^{N} x. $ Using the triangle number summation $ 1+2+\cdots+N=\dfrac{N(N+1)}{2}, $ one obtains $ E[X] = \dfrac1N\cdot\dfrac{N(N+1)}{2} = \dfrac{N+1}{2}. $...