Skip to main content
Statistics LibreTexts

4.1: Random Variable – Discrete

  • Page ID
    29599
  • \( \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}}\)

    \( \newcommand{\vectorA}[1]{\vec{#1}}      % arrow\)

    \( \newcommand{\vectorAt}[1]{\vec{\text{#1}}}      % arrow\)

    \( \newcommand{\vectorB}[1]{\overset { \scriptstyle \rightharpoonup} {\mathbf{#1}} } \)

    \( \newcommand{\vectorC}[1]{\textbf{#1}} \)

    \( \newcommand{\vectorD}[1]{\overrightarrow{#1}} \)

    \( \newcommand{\vectorDt}[1]{\overrightarrow{\text{#1}}} \)

    \( \newcommand{\vectE}[1]{\overset{-\!-\!\rightharpoonup}{\vphantom{a}\smash{\mathbf {#1}}}} \)

    \( \newcommand{\vecs}[1]{\overset { \scriptstyle \rightharpoonup} {\mathbf{#1}} } \)

    \( \newcommand{\vecd}[1]{\overset{-\!-\!\rightharpoonup}{\vphantom{a}\smash {#1}}} \)

    18

    Random Variable – Discrete

    jkesler


    [latexpage]

    A discrete probability distribution function has two characteristics:

    1. Each probability is between zero and one, inclusive.
    2. The sum of the probabilities is one.

    Example 4.1

    A child psychologist is interested in the number of times a newborn baby’s crying wakes its mother after midnight. For a random sample of 50 mothers, the following information was obtained. Let X = the number of times per week a newborn baby’s crying wakes its mother after midnight. For this example, x = 0, 1, 2, 3, 4, 5.

    P(x) = probability that X takes on a value x.

    x P(x)
    0 $P(x=0) = \frac{2}{50}$
    1 $P(x=1) = \frac{11}{50}$
    2 $P(x=2) = \frac{23}{50}$
    3 $P(x=3) = \frac{9}{50}$
    4 $P(x=4) = \frac{4}{50}$
    5 $P(x=5) = \frac{1}{50}$
    Table 4.2

    X takes on the values 0, 1, 2, 3, 4, 5. This is a discrete PDF because:

    1. Each P(x) is between zero and one, inclusive.
    2. The sum of the probabilities is one, that is,
      $\frac{2}{50}+\frac{11}{50}+\frac{23}{50}+\frac{9}{50}+\frac{4}{50}+\frac{1}{50}=1$

    Try It 4.1

    A hospital researcher is interested in the number of times the average post-op patient will ring the nurse during a 12-hour shift. For a random sample of 50 patients, the following information was obtained. Let X = the number of times a patient rings the nurse during a 12-hour shift. For this exercise, x = 0, 1, 2, 3, 4, 5. P(x) = the probability that X takes on value x. Why is this a discrete probability distribution function (two reasons)?

    X P(x)
    0 $P(x=0) = \frac{4}{50}$
    1 $P(x=1) = \frac{8}{50}$
    2 $P(x=2) = \frac{16}{50}$
    3 $P(x=3) = \frac{14}{50}$
    4 $P(x=4) = \frac{6}{50}$
    5 $P(x=5) = \frac{2}{50}$
    Table 4.3

    Example 4.2

    Suppose Nancy has classes three days a week. She attends classes three days a week 80% of the time, two days 15% of the time, one day 4% of the time, and no days 1% of the time. Suppose one week is randomly selected.

     

    1. Let X = the number of days Nancy ____________________.
    2. X takes on what values?
    3. Suppose one week is randomly chosen. Construct a probability distribution table (called a PDF table) like the one in Example 4.1. The table should have two columns labeled x and P(x). What does the P(x) column sum to?

    Solution

    1. Let X = the number of days Nancy attends class per week.
    2. 0, 1, 2, and 3
    3. x P(x)
      0 0.01
      1 0.04
      2 0.15
      3 0.80
      Table 4.4

    Try It 4.2

    Jeremiah has basketball practice two days a week. Ninety percent of the time, he attends both practices. Eight percent of the time, he attends one practice. Two percent of the time, he does not attend either practice. What is X and what values does it take on?


    4.1: Random Variable – Discrete is shared under a not declared license and was authored, remixed, and/or curated by LibreTexts.

    • Was this article helpful?