Constant random variable

4k Views Asked by At

How do I plot the cumulative distribution function and probability mass function of the constant random variable $X(\omega)=2$ for all $\omega$?

2

There are 2 best solutions below

4
On BEST ANSWER

If $P(X = c) = 1,$ then that equation is all that's necessary to show the PMF.

The CDF $F_X(x)$ is $0$ for $x < c$ and $1$ for $x \ge c.$

Here is a plot of the CDF for the case $c = 3.$

enter image description here

0
On

The CDF is: $$P(X\leq x) = \begin{cases} 1 \quad \text{ if } x \geq 2 \\ 0 \quad \text{ if } x < 2 \\ \end{cases}$$

while the PMF is: $$P(X = x) = \begin{cases} 1 \quad \text{ if } x = 2 \\ 0 \quad \text{ if } x \not= 2 \\ \end{cases}$$