Skip to main content
Statistics LibreTexts

4.1: Random Variables

  • Page ID
    560
    • Anonymous
    • LibreTexts
    \( \newcommand{\vecs}[1]{\overset { \scriptstyle \rightharpoonup} {\mathbf{#1}} } \) \( \newcommand{\vecd}[1]{\overset{-\!-\!\rightharpoonup}{\vphantom{a}\smash {#1}}} \)\(\newcommand{\id}{\mathrm{id}}\) \( \newcommand{\Span}{\mathrm{span}}\) \( \newcommand{\kernel}{\mathrm{null}\,}\) \( \newcommand{\range}{\mathrm{range}\,}\) \( \newcommand{\RealPart}{\mathrm{Re}}\) \( \newcommand{\ImaginaryPart}{\mathrm{Im}}\) \( \newcommand{\Argument}{\mathrm{Arg}}\) \( \newcommand{\norm}[1]{\| #1 \|}\) \( \newcommand{\inner}[2]{\langle #1, #2 \rangle}\) \( \newcommand{\Span}{\mathrm{span}}\) \(\newcommand{\id}{\mathrm{id}}\) \( \newcommand{\Span}{\mathrm{span}}\) \( \newcommand{\kernel}{\mathrm{null}\,}\) \( \newcommand{\range}{\mathrm{range}\,}\) \( \newcommand{\RealPart}{\mathrm{Re}}\) \( \newcommand{\ImaginaryPart}{\mathrm{Im}}\) \( \newcommand{\Argument}{\mathrm{Arg}}\) \( \newcommand{\norm}[1]{\| #1 \|}\) \( \newcommand{\inner}[2]{\langle #1, #2 \rangle}\) \( \newcommand{\Span}{\mathrm{span}}\)\(\newcommand{\AA}{\unicode[.8,0]{x212B}}\)

    Learning Objectives
    • To learn the concept of a random variable.
    • To learn the distinction between discrete and continuous random variables.
    Definition: random variable

    A random variable is a numerical quantity that is generated by a random experiment.

    We will denote random variables by capital letters, such as \(X\) or \(Z\), and the actual values that they can take by lowercase letters, such as \(x\) and \(z\).

    Table \(\PageIndex{1}\) gives four examples of random variables. In the second example, the three dots indicates that every counting number is a possible value for \(X\). Although it is highly unlikely, for example, that it would take \(50\) tosses of the coin to observe heads for the first time, nevertheless it is conceivable, hence the number \(50\) is a possible value. The set of possible values is infinite, but is still at least countable, in the sense that all possible values can be listed one after another. In the last two examples, by way of contrast, the possible values cannot be individually listed, but take up a whole interval of numbers. In the fourth example, since the light bulb could conceivably continue to shine indefinitely, there is no natural greatest value for its lifetime, so we simply place the symbol \(\infty\) for infinity as the right endpoint of the interval of possible values.

    Table \(\PageIndex{1}\): Four Random Variables
    Experiment Number X Possible Values of X
    Roll two fair dice Sum of the number of dots on the top faces 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12
    Flip a fair coin repeatedly Number of tosses until the coin lands heads 1, 2, 3,4, …
    Measure the voltage at an electrical outlet Voltage measured 118 ≤ x ≤ 122
    Operate a light bulb until it burns out Time until the bulb burns out 0 ≤ x < ∞
    Definition: discrete random variable

    A random variable is called discrete if it has either a finite or a countable number of possible values. A random variable is called continuous if its possible values contain a whole interval of numbers.

    The examples in the table are typical in that discrete random variables typically arise from a counting process, whereas continuous random variables typically arise from a measurement.

    Key Takeaway

    • A random variable is a number generated by a random experiment.
    • A random variable is called discrete if its possible values form a finite or countable set.
    • A random variable is called continuous if its possible values contain a whole interval of numbers.

    This page titled 4.1: Random Variables is shared under a CC BY-NC-SA 3.0 license and was authored, remixed, and/or curated by Anonymous via source content that was edited to the style and standards of the LibreTexts platform; a detailed edit history is available upon request.