Discrete vs Continuous vs Random Variables
A random variable, formally, is a function $X: \Omega \to \mathbb{R}$ for some set $\Omega$. You can think of the set $\Omega$ as consisting of possible outcomes of a random experiment, and for any given input, $X$ tells you some measurement about the outcome. For example, if our random experiment is flipping a coin six times, $\Omega$ is the set $$\{(H,H,H,H,H,H), (H,H,H,H,H,T), (H,H,H,H,T,H), \dots, (T,T,T,T,T,T)\}.$$ A random variable $X$ might tell us the number of heads in the six coin flips, or it might tell us the number of runs of tails in the six coin clips. (If you want to be very precise, a random variable is a measurable function from measure space $(\Omega, \mathcal{F}, P)$ to some other set, but typically the range is $\mathbb{R}$, or perhaps $\mathbb{R}^n$ for a random vector.)
If $X$ is a random variable, its cumulative distribution function $F$ is \begin{align*} F: \mathbb{R} &\to [0,1]\\ F(x)&=P(X \leq x). \end{align*}
A discrete random variable is a random variable which takes on at most countably many values. In particular, any random variable that takes on finitely many values is discrete. An example is the sum of two die rolls. If $X$ denotes the sum of two die rolls, then $X$ is a function \begin{align*} X:\{1,\dots,6\} \times \{1,\dots,6\} &\to \{2,\dots, 12\}\\ (1,1) &\mapsto 2\\ (1,2) &\mapsto 3 \\ \vdots\\ (6,6) &\mapsto 12. \end{align*} $X$ takes on only finitely many values ($2,\dots,12$), so $X$ is discrete. Another example is the number of coin flips it takes to get the outcome heads. If this random variable is denoted $Y$, then $Y$ is a function from the set of all infinite sequences of heads and tails to the natural numbers. Since the natural numbers are countable, $Y$ takes on only countably many values ($1,2,3,\dots$), so $Y$ is discrete. $Y$ is an example of a geometric random variable. Other common discrete distributions include the Bernoulli distribution, binomial distribution, Poisson distribution, and discrete uniform distribution. For a discrete random variable, the cumulative distribution function $F$ will be discontinuous. For example, in the dice rolling example, $P(X \leq 2-\epsilon)=2$ for all $\epsilon>0$ yet $P(X \leq 2) = \frac{1}{36}$, so $F$ is not continuous.
A continuous random variable is a random variable with a continuous cumulative distribution function $F$. Typically the range of a continuous random variable is $\mathbb{R}$, $[0,\infty)$, or some interval $[a,b]$. Examples of continuous random distributions are the normal distribution, chi-squared distribution, exponential distribution, gamma distribution, and continuous uniform distribution. As noted in the other answer, it does not make sense to ask "what is the probability that $X$ equals $a$?" for a continuous random variable $X$, because the answer is always zero.
Note that there are also mixed random variables that are neither continuous nor discrete. That is, they take on uncountably many values, but do not have a continuous cumulative distribution function. These three types of random variables cover all possibilities though. This resource has some information on mixed type random variables if you're interested.
Related videos on Youtube
Comments
-
Can someone provide me a clear explanation (Perhaps with examples) about the difference between the following mathematical three concepts in
probability
:- Discrete Variable.
- Continuous Variable.
- Random Variable.
Thank you in advance.
-
Well explained. Thank you
-
Thank you for your explanation.
-
Random variables are such mappings whose preimages are events...right? I kind of take issue with the word 'formally'
-
The phrasing "whose preimages are events" is a little loose. Preimages of what? A random variable is a measurable function, so the preimage of a measurable set is a measurable set, i.e. an element of the sigma algebra $\mathcal{F}$ on the underlying set $\Omega$, i.e. an event.
-
I used the word "formally" because random variables are often thought of, informally, as variables whose values are random in some way (see the first sentence of the other answer). Formally they are measurable functions, but it's not always necessary to think of them that way when doing probability.
-
I got it. How about 'Part of the formal definition of a random variable is that...' ?
Recents
Source: https://9to5science.com/discrete-vs-continuous-vs-random-variables
Komentar
Posting Komentar