A random variable is a real-valued function defined on a sample space. It assigns a numerical value to each outcome in the sample space of a random experiment.
In simpler terms, it’s a variable whose value is a numerical outcome of a random phenomenon.
A sample space (denoted by $\epsilon$) is the set of all possible outcomes of a random experiment. For example, if you roll a six-sided die, the sample space is $\epsilon = {1, 2, 3, 4, 5, 6}$. An event is a subset of the sample space.
Random variables can be classified into two main types:
A discrete random variable is one that can only take a countable number of distinct values. These values are often (but not always) integers.
Examples include:
Key characteristics:
A continuous random variable is one that can take any value within a given range or interval on the real number line. These are typically measurements.
Examples include:
Key characteristics:
Consider an experiment where three balls are drawn with replacement from a jar containing 4 white balls and 6 black balls. Let X be the random variable representing the number of white balls in the sample. The possible values for X are 0, 1, 2, and 3. Therefore, X is a discrete random variable.
Let T be the random variable representing the time (in minutes) it takes for a student to complete a test. T can take any value within a certain range (e.g., 0 to 60 minutes). Therefore, T is a continuous random variable.
| Feature | Discrete Random Variable | Continuous Random Variable |
|---|---|---|
| Possible Values | Countable | Uncountable (any value in an interval) |
| Examples | Number of heads in coin flips, shoe size | Height, temperature, time |
| Probability | Probability assigned to each specific value | Probability assigned to intervals |
| Representation | Probability mass function (PMF) | Probability density function (PDF) |
Each value of a random variable has an associated probability (for discrete variables) or probability density (for continuous variables).
For a discrete random variable $X$, $P(X = x)$ represents the probability that the random variable $X$ takes on the value $x$.
For a continuous random variable, the probability that $X$ lies between two values $a$ and $b$ is given by the area under the probability density function (PDF) between $a$ and $b$.
Understanding random variables is crucial as they form the basis for probability distributions and statistical inference. They allow us to model and analyze random phenomena in a quantitative manner.
Free exam-style questions on Random Variables with instant AI feedback.
A pharmaceutical company is developing a new drug to treat hypertension. During clinical trials, they monitor the blood pressure of patients…
State whether each of the following variables is discrete or continuous: a) The number of goals scored in a soccer match. b) The height of a…
A manufacturing plant produces cylindrical metal rods. The diameter, $D$, of a rod is a random variable, as is the length, $L$, of the rod.…