maths.freeStatistics & Probability › Discrete random variables

Discrete random variables

Probability distributions, expected value, and the binomial, geometric and Poisson families.

A random variable attaches a number to each outcome; its distribution lists the probabilities. The expected value is the probability-weighted average. The binomial distribution counts successes in n independent trials: P(k) = C(n, k) pᵏ(1 − p)ⁿ⁻ᵏ — three heads in ten fair flips is C(10, 3)/2¹⁰.

Probability Distribution Function (PDF) for a Discrete Random Variable

There are two types of random variables, discrete random variables and continuous random variables. The values of a discrete random variable are countable, which means the values are obtained by counting. All random variables we discussed in previous examples are discrete random variables. We counted the number of red balls, the number of heads, or the number of female children to get the corresponding random variable values. The values of a continuous random variable are uncountable, which means the values are not obtained by counting. Instead, they are obtained by measuring. For example, let X = temperature of a randomly selected day in June in a city. The value of X can be 68°, 71.5°, 80.6°, or 90.32°. These values are obtained by measuring by a thermometer. Another example of a continuous random variable is the height of a randomly selected high school student. The value of this random variable can be 5'2", 6'1", or 5'8". Those values are obtained by measuring by a ruler.

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

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.

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

X takes on the values 0, 1, 2, 3, 4, 5. This is a discrete PDF because we can count the number of values of x and also because of the following two reasons:

  1. Each P(x) is between zero and one, therefore 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\]

Condensed — the full section is in OpenStax Statistics.

Probability Distribution Function (PDF) for a Discrete Random Variable

Use the following information to answer the next five exercises: A company wants to evaluate its attrition rate, or in other words, how long new hires stay with the company. Over the years, the company has established the following probability distribution:

Let X = the number of years a new hire will stay with the company.

Let P(x) = the probability that a new hire will stay with the company x years.


Use the following information to answer the next four exercises: A baker is deciding how many batches of muffins to make to sell in his bakery. He wants to make enough to sell every one and no fewer. Through observation, the baker has established a probability distribution.

xP(x)
1.15
2.35
3.40
4.10


Use the following information to answer the next two exercises: Ellen has music practice three days a week. She practices for all of the three days 85 percent of the time, two days 8 percent of the time, one day 4 percent of the time, and no days 3 percent of the time. One week is selected at random.


Use the following information to answer the next five exercises: Javier volunteers in community events each month. He does not do more than five events in a month. He attends exactly five events 35 percent of the time, four events 25 percent of the time, three events 20 percent of the time, two events 10 percent of the time, one event 5 percent of the time, and no events 5 percent of the time.

Mean or Expected Value and Standard Deviation

The expected value of a discrete random variable X, symbolized as E(X), is often referred to as the long-term average or mean (symbolized as μ). This means that over the long term of doing an experiment over and over, you would expect this average. For example, let X = the number of heads you get when you toss three fair coins. If you repeat this experiment (toss three fair coins) a large number of times, the expected value of X is the number of heads you expect to get for each three tosses on average.

Example

A men's soccer team plays soccer zero, one, or two days a week. The probability that they play zero days is .2, the probability that they play one day is .5, and the probability that they play two days is .3. Find the long-term average or expected value, μ, of the number of days per week the men's soccer team plays soccer.

To do the problem, first let the random variable X = the number of days the men's soccer team plays soccer per week. X takes on the values 0, 1, 2. Construct a PDF table adding a column x*P(x), the product of the value x with the corresponding probability P(x). In this column, you will multiply each x value by its probability.

xP(x)x*P(x)
0.2(0)(.2) = 0
1.5(1)(.5) = .5
2.3(2)(.3) = .6

Add the last column \(x*P(x)\) to get the expected value/mean of the random variable X.

\[E(X)=\mu =\sum xP(x)=0+.5+.6=1.1\]

The expected value/mean is 1.1. The men's soccer team would, on the average, expect to play soccer 1.1 days per week. The number 1.1 is the long-term average or expected value if the men's soccer team plays soccer week after week after week.

The law of large numbers states that, as the number of trials in a probability experiment increases, the difference between the theoretical probability of an event and the relative frequency approaches zero (the theoretical probability and the relative frequency get closer and closer together). The relative frequency is also called the experimental probability, a term that means what actually happens.

Condensed — the full section is in OpenStax Statistics.

Mean or Expected Value and Standard Deviation

Use the following information to answer the next five exercises: A physics professor wants to know what percent of physics majors will spend the next several years doing postgraduate research. He has the following probability distribution:

xP(x)x*P(x)
1.35
2.20
3.15
4
5.10
6.05


Use the following information to answer the next seven exercises: A ballet instructor is interested in knowing what percent of each year's class will continue on to the next so that she can plan what classes to offer. Over the years, she has established the following probability distribution:

  • Let X = the number of years a student will study ballet with the teacher.
  • Let P(x) = the probability that a student will study ballet x years.

Binomial Distribution (Optional)

There are three characteristics of a binomial experiment:

  1. There are a fixed number of trials. Think of trials as repetitions of an experiment. The letter n denotes the number of trials.
  2. There are only two possible outcomes, called success and failure, for each trial. The outcome that we are measuring is defined as a success, while the other outcome is defined as a failure. The letter p denotes the probability of a success on one trial, and q denotes the probability of a failure on one trial. p + q = 1.
  3. The n trials are independent and are repeated using identical conditions. Because the n trials are independent, the outcome of one trial does not help in predicting the outcome of another trial. Another way of saying this is that for each individual trial, the probability, p, of a success and probability, q, of a failure remain the same. Let us look at several examples of a binomial experiment.
    Example 1: Toss a fair coin once and record the result.
    This is a binomial experiment since it meets all three characteristics. The number of trials n = 1. There are only two outcomes, a head or a tail, of each trial. We can define a head as a success if we are measuring number of heads. For a fair coin, the probabilities of getting head or tail are both .5. So, p = q − .5. Both p and q remain the same from trial to trial. This experiment is also called a Bernoulli trial, named after Jacob Bernoulli who, in the late 1600s, studied such trials extensively. Any experiment that has characteristics two and three and where n = 1 is called a Bernoulli trial. A binomial experiment takes place when the number of successes is counted in one or more Bernoulli trials.
    Example 2: Randomly guess a multiple choice question has A, B, C and D four options.
    This is a binomial experiment since it meets all three characteristics. The number of trials n = 1. There are only two outcomes, guess correctly or guess wrong, of each trial. We can define guess correctly as a success. For a random guess (you have no clue at all), the probability of guessing correct should be \(\frac{1}{4}\) because there are four options and only one option is correct. So, and \(p=\frac{1}{4}\) and \(q=1-p=1-\frac{1}{4}=\frac{3}{4}\). Both p and q remain the same from trial to trial. This experiment is also a Bernoulli trial. It meets the characteristics two and three and n = 1.
    Example 3: Toss a fair coin five times and record the result.
    This is a binomial experiment since it meets all three characteristics. The number of trials n = 5. There are only two outcomes, head or tail, of each trial. If we define head as a success, then p = q = 0.5. Both p and q remain the same for each trial. Since n = 5, this experiment is not a Bernoulli trial although it meets the characteristics two and three.
    Example 4: Randomly guess 10 multiple choice questions in an exam. Each question has A, B, C and D four options.
    This is a binomial experiment since it meets all three characteristics. The number of trials n = 10. There are only two outcomes, guess correctly or guess wrong, of each trial. We can define guess correctly as a success. As we explained in example 2, \(p=\frac{1}{4}\) and \(q=1-p=1-\frac{1}{4}=\frac{3}{4}\). Both p and q remain the same for each guess. Since n = 10, this experiment is not a Bernoulli trial.
    The next two experiments are not binomial experiments.
    Example 5: Randomly select two balls from a jar with five red balls and five blue balls without replacement. This means we select the first ball, and then without returning the selected ball into the jar, we will select the second ball.
    This is not a binomial experiment since the third characteristic is not met. The number of trials n = 2. There are only two outcomes, a red ball or a blue ball, of each trial. If we define selecting a red ball as a success, then selecting a blue ball is a failure. The probability of getting the first ball red is \(\frac{5}{10}\) since there are five red balls out of 10 balls. So, \(p=\frac{5}{10}\) and \(q=1-p=1-\frac{5}{10}=\frac{5}{10}\). However, p and q do not remain the same for the second trial. If the first ball selected is red, then the probability of getting the second ball red is \(\frac{4}{9}\) since there are only four red balls out of nine balls. But if the first ball selected is blue, then the probability of getting the second ball red is \(\frac{5}{9}\) since there are still five red balls out of nine balls.
    Example 6: Toss a fair coin until a head appears.
    This is not a binomial experiment since the first characteristic is not met. The number of trials n is not fixed. n could be 1 if a head appears from the first toss. n could be 2 if the first toss is a tail and the second toss is a head. So on and so forth.
    More examples of binomial and non-binomial experiments will be discussed in this section later.

Condensed — the full section is in OpenStax Statistics.

Notation for the Binomial:

X ~ B(n, p)

Read this as X is a random variable with a binomial distribution. The parameters are n and p: n = number of trials, p = probability of a success on each trial.

Binomial Distribution (Optional)

Use the following information to answer the next eight exercises: Researchers collected data from 203,967 incoming first-time, full-time freshmen from 270 four-year colleges and universities in the United States. Of those students, 71.3 percent replied that, yes, they agreed with a recent federal law that was passed.

Suppose that you randomly pick eight first-time, full-time freshmen from the survey. You are interested in the number who agreed with that law.

Geometric Distribution (Optional)

There are three main characteristics of a geometric experiment:

  1. Repeating independent Bernoulli trials until a success is obtained. Recall that a Bernoulli trial is a binomial experiment with number of trials n = 1. In other words, you keep repeating what you are doing until the first success. Then you stop. For example, you throw a dart at a bull's-eye until you hit the bull's-eye. The first time you hit the bull's-eye is a success so you stop throwing the dart. It might take six tries until you hit the bull's-eye. You can think of the trials as failure, failure, failure, failure, failure, success, stop.
  2. In theory, the number of trials could go on forever. There must be at least one trial.
  3. The probability, p, of a success and the probability, q, of a failure do not change from trial to trial. p + q = 1 and q = 1 − p. For example, the probability of rolling a three when you throw one fair die is \(\frac{1}{6}\). This is true no matter how many times you roll the die. Suppose you want to know the probability of getting the first three on the fifth roll. On rolls one through four, you do not get a face with a three. The probability for each of the rolls is q = \(\frac{\text{5}}{\text{6}}\), the probability of a failure. The probability of getting a three on the fifth roll is \((\frac{5}{6})(\frac{5}{6})(\frac{5}{6})(\frac{5}{6})(\frac{1}{6})\) = .0804.

X = the number of independent trials until the first success.

p = the probability of a success, q = 1 – p = the probability of a failure.

There are shortcut formulas for calculating mean μ, variance σ2, and standard deviation σ of a geometric probability distribution. The formulas are given as below. The deriving of these formulas will not be discussed in this book.

\[\mu =\frac{1}{p},{\sigma }^{2}=(\frac{1}{p})(\frac{1}{p}-1),\sigma =\sqrt{(\frac{1}{p})(\frac{1}{p}-1)}\]

Condensed — the full section is in OpenStax Statistics.

Notation for the Geometric: G = Geometric Probability Distribution Function

X ~ G(p)

Read this as X is a random variable with a geometric distribution. The parameter is p; p = the probability of a success for each trial.

Geometric Distribution (Optional)

Use the following information to answer the next six exercises: Researchers collected data from 203,967 incoming first-time, full-time freshmen from 270 four-year colleges and universities in the United States. Of those students, 71.3 percent replied that, yes, they agree with a recent law that was passed. Suppose that you randomly select freshman from the study until you find one who replies yes. You are interested in the number of freshmen you must ask.

Hypergeometric Distribution (Optional)

There are five characteristics of a hypergeometric experiment:

  1. You take samples from two groups.
  2. You are concerned with a group of interest, called the first group.
  3. You sample without replacement from the combined groups. For example, you want to choose a softball team from a combined group of 11 men and 13 women. The team consists of 10 players.
  4. Each pick is not independent, since sampling is without replacement. In the softball example, the probability of picking a woman first is \(\frac{13}{24}\). The probability of picking a man second is \(\frac{11}{23}\) if a woman was picked first. It is \(\frac{10}{23}\) if a man was picked first. The probability of the second pick depends on what happened in the first pick.
  5. You are not dealing with Bernoulli trials.

The outcomes of a hypergeometric experiment fit a hypergeometric probability distribution. The random variable X = the number of items from the group of interest.

Example

Try it.

A candy dish contains 100 jelly beans and 80 gumdrops. Fifty candies are picked at random. What is the probability that 35 of the 50 are gumdrops? The two groups are jelly beans and gumdrops. Since the probability question asks for the probability of picking gumdrops, the group of interest (first group) is gumdrops. The size of the group of interest (first group) is 80. The size of the second group is 100. The size of the sample is 50 (jelly beans or gumdrops). Let X = the number of gumdrops in the sample of 50. X takes on the values x = 0, 1, 2, . . . , 50. What is the probability statement written mathematically?

Solution

P(x = 35)

Condensed — the full section is in OpenStax Statistics.

Notation for the Hypergeometric: H = Hypergeometric Probability Distribution Function

X ~ H(r, b, n)

Read this as X is a random variable with a hypergeometric distribution. The parameters are r, b, and n: r = the size of the group of interest (first group), b = the size of the second group, n = the size of the chosen sample.

Hypergeometric Distribution (Optional)

Use the following information to answer the next five exercises: Suppose that a group of statistics students is divided into two groups: business majors and non-business majors. There are 16 business majors in the group and seven non-business majors in the group. A random sample of nine students is taken. We are interested in the number of business majors in the sample.

Poisson Distribution (Optional)

There are two main characteristics of a Poisson experiment.

  1. The Poisson probability distribution gives the probability of a number of events occurring in a fixed interval of time or space if these events happen with a known average rate and independently of the time since the last event. For example, a book editor might be interested in the number of words spelled incorrectly in a particular book. It might be that, on the average, there are five words spelled incorrectly in 100 pages. The interval is the 100 pages.
  2. The Poisson distribution may be used to approximate the binomial if the probability of success is small (such as .01) and the number of trials is large (such as 1,000). You will verify the relationship in the homework exercises. n is the number of trials, and p is the probability of a success.

The random variable X = the number of occurrences in the interval of interest.

Notation for the Poisson: P = Poisson Probability Distribution Function

X ~ P(μ)

Read this as X is a random variable with a Poisson distribution. The parameter is μ (or λ); μ (or λ) = the mean for the interval of interest.

Poisson Distribution (Optional)

Use the following information to answer the next six exercises: On average, a clothing store gets 120 customers per day.


Use the following information to answer the next six exercises: On average, eight teens in the United States die from motor vehicle injuries per day. As a result, states across the country are debating raising the driving age.

Vinna dæmi: 10 choose 3 * (1/2)^3 * (1/2)^7

Evaluate 10 choose 3 * (1/2)^3 * (1/2)^7

\frac{15}{128}

Skref fyrir skref

  1. 120 \left(1 \cdot \frac{1}{2}\right)^{3} \left(1 \cdot \frac{1}{2}\right)^{7} = \frac{15}{128}

    Power: (1/2)^3 = 1/8.

Sýna svarið
\frac{15}{128} \approx 0.11719

Practice (40)

Try each one on paper first. Reveal the answer to check; verified ones can be opened in the solver for every step.

  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)?

    XP(x)
    0P(x = 0) = \(\frac{4}{50}\)
    1P(x = 1) = \(\frac{8}{50}\)
    2P(x = 2) = \(\frac{16}{50}\)
    3P(x = 3) = \(\frac{14}{50}\)
    4P(x = 4) = \(\frac{6}{50}\)
    5P(x = 5) = \(\frac{2}{50}\)
    Sýna svarið

    Each P(x) is between 0 and 1, inclusive, and the sum of the probabilities is 1, that is: \(\frac{4}{50}+\frac{8}{50}+\frac{16}{50}+\frac{14}{50}+\frac{6}{50}+\frac{2}{50}=1\)

  2. Describe the random variable in words. Let X = the number of days Nancy ________.

    Sýna svarið

    a. Let X = the number of days Nancy attends class per week.

  3. b. In this example, what are possible values of X?

    Sýna svarið

    b. 0, 1, 2, and 3

  4. c. Suppose one week is randomly chosen. Construct a probability distribution table (called a PDF table) like the one in . The table should have two columns labeled x and P(x).

    Sýna svarið

    c.

    xP(x)
    0.01
    1.04
    2.15
    3.80

    The sum of the P(x) column is 0.01+0.04+0.15+0.80 = 1.00.

  5. Jeremiah has basketball practice two days a week. 90 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?

    Sýna svarið

    X is the number of days Jeremiah attends basketball practice per week. X takes on the values 0, 1, and 2.

  6. Complete using the data provided.

    xP(x)
    0.12
    1.18
    2.30
    3.15
    4
    5.10
    6.05
    Sýna svarið
    xP(x)
    0.12
    1.18
    2.30
    3.15
    4.10
    5.10
    6.05
  7. P(x = 4) = ________

  8. P(x ≥ 5) = ________

    Sýna svarið

    .10 + .05 = .15

  9. On average, how long would you expect a new hire to stay with the company?

  10. What does the column “P(x)” sum to?

    Sýna svarið

    1

  11. Define the random variable X.

  12. What is the probability the baker will sell more than one batch? P(x > 1) = ________

    Sýna svarið

    .35 + .40 + .10 = .85

  13. What is the probability the baker will sell exactly one batch? P(x = 1) = ________

  14. On average, how many batches should the baker make?

    Sýna svarið

    1(.15) + 2(.35) + 3(.40) + 4(.10) = .15 + .70 + 1.20 + .40 = 2.45

  15. Define the random variable X.

  16. Construct a probability distribution table for the data.

    Sýna svarið
    xP(x)
    0.03
    1.04
    2.08
    3.85
  17. We know that for a probability distribution function to be discrete, it must have two characteristics. One is that the sum of the probabilities is one. What is the other characteristic?

  18. Define the random variable X.

    Sýna svarið

    Let X = the number of events Javier volunteers for each month.

  19. What values does x take on?

  20. Construct a PDF table.

    Sýna svarið
    xP(x)
    0.05
    1.05
    2.10
    3.20
    4.25
    5.35
  21. Find the probability that Javier volunteers for fewer than three events each month. P(x < 3) = ________

  22. Find the probability that Javier volunteers for at least one event each month. P(x > 0) = ________

    Sýna svarið

    1 – .05 = .95

  23. Suppose that the PDF for the number of years it takes to earn a bachelor of science (B.S.) degree is given in .

    xP(x)
    3.05
    4.40
    5.30
    6.15
    7.10
    1. In words, define the random variable X.
    2. What does it mean that the values 0, 1, and 2 are not included for x in the PDF?
  24. 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. What is the expected value?

    xP(x)
    0P(x = 0) = \(\frac{4}{50}\)
    1P(x = 1) = \(\frac{8}{50}\)
    2P(x = 2) = \(\frac{16}{50}\)
    3P(x = 3) = \(\frac{14}{50}\)
    4P(x = 4) = \(\frac{6}{50}\)
    5P(x = 5) = \(\frac{2}{50}\)
    Sýna svarið

    The expected value is 2.24

    (0)\(\frac{4}{50}\) + (1)\(\frac{4}{50}\) + (2)\(\frac{16}{50}\) + (3)\(\frac{14}{50}\) + (4)\(\frac{6}{50}\) + (5)\(\frac{2}{50}\) = 0 + \(\frac{8}{50}\) + \(\frac{32}{50}\) +\(\frac{42}{50}\) + \(\frac{24}{50}\) + \(\frac{10}{50}\) = \(\frac{116}{50}\) = 2.24

  25. You are playing a game of chance in which four cards are drawn from a standard deck of 52 cards. You guess the suit of each card before it is drawn. The cards are replaced in the deck on each draw. You pay $1 to play. If you guess the right suit every time, you get your money back and $256. What is your expected profit of playing the game over the long term?

    Sýna svarið

    Let X = the amount of money you profit. The x-values are –$1 and $256.

    The probability of guessing the right suit each time is \((\frac{1}{4})(\frac{1}{4})(\frac{1}{4})(\frac{1}{4})=\frac{1}{256}\) = 0.0039

    The probability of losing is 1 – \(\frac{1}{256}\) = \(\frac{255}{256}\) = 0.9961

    (0.0039)256 + (0.9961)(–1) = 0.9984 + (–0.9961) = 0.0023 or 0.23 cents.

  26. a. Define a random variable X.

    Sýna svarið

    a. X = amount of profit

  27. b. Complete the following expected value table.

    x________
    WIN10\(\frac{1}{3}\)____
    LOSE________\(\frac{-12}{3}\)
    Sýna svarið

    b.

    xP(x)xP(x)
    WIN10\(\frac{1}{3}\)\(\frac{10}{3}\)
    LOSE–6\(\frac{2}{3}\)\(\frac{-12}{3}\)

  28. c. What is the expected value, μ? Do you come out ahead?

    Sýna svarið

    c. Add the last column of the table. The expected value \(E(X)=\mu =\frac{10}{3}+(-\frac{12}{3})=-\frac{2}{3}\approx -.67\). You lose, on average, about 67 cents each time you play the game, so you do not come out ahead.

  29. Suppose you play a game with a spinner. You play each game by spinning the spinner once. P(red) = \(\frac{2}{5}\), P(blue) = \(\frac{2}{5}\), and P(green) = \(\frac{1}{5}\). If you land on red, you pay $10. If you land on blue, you don't pay or win anything. If you land on green, you win $10. Complete the following expected value table.

    xP(x)
    Red\(\text{-}\frac{20}{5}\)
    Blue\(\frac{2}{5}\)
    Green10
    Sýna svarið
    xP(x)x*P(x)
    Red–10\(\frac{2}{5}\)\(-\frac{20}{5}\)
    Blue0\(\frac{2}{5}\) \(\frac{0}{5}\)
    Green10\(\frac{1}{5}\)\(\frac{10}{5}\)
  30. Toss a fair, six-sided die twice. Let X = the number of faces that show an even number. Construct a table like and calculate the mean μ and standard deviation σ of X.

    Sýna svarið

    Tossing one fair six-sided die twice has the same sample space as tossing two fair six-sided dice. The sample space has 36 outcomes.

    (1, 1)(1, 2)(1, 3)(1, 4)(1, 5)(1, 6)
    (2, 1)(2, 2)(2, 3)(2, 4)(2, 5)(2, 6)
    (3, 1)(3, 2)(3, 3)(3, 4)(3, 5)(3, 6)
    (4, 1)(4, 2)(4, 3)(4, 4)(4, 5)(4, 6)
    (5, 1)(5, 2)(5, 3)(5, 4)(5, 5)(5, 6)
    (6, 1)(6, 2)(6, 3)(6, 4)(6, 5)(6, 6)

    Use the sample space to complete the following table.

    xP(x)xP(x)(xμ)2 \(⋅\) P(x)
    0\(\frac{9}{36}\)0(0 – 1)2 ⋅ \(\frac{9}{36}\) = \(\frac{9}{36}\)
    1\(\frac{18}{36}\)\(\frac{18}{36}\)(1 – 1)2 ⋅ \(\frac{18}{36}\) = 0
    2\(\frac{9}{36}\) \(\frac{18}{36}\) (2 – 1)2 ⋅ \(\frac{9}{36}\) = \(\frac{9}{36}\)

    Add the values in the third column to find the expected value: μ = \(\frac{36}{36}\) = 1. Use this value to complete the fourth column.

    Add the values in the fourth column and take the square root of the sum: σ = \(\sqrt{\frac{18}{36}}\) ≈ .7071.

  31. Complete the expected value table.

    xP(x)x*P(x)
    0.2
    1.2
    2.4
    3.2
  32. Find the expected value from the expected value table.

    xP(x)x*P(x)
    2.12(.1) = .2
    4.34(.3) = 1.2
    6.46(.4) = 2.4
    8.28(.2) = 1.6
    Sýna svarið

    .2 + 1.2 + 2.4 + 1.6 = 5.4

  33. Find the standard deviation.

    xP(x)x*P(x)(xμ)2P(x)
    20.12(.1) = .2(2–5.4)2(.1) = 1.156
    40.34(.3) = 1.2(4–5.4)2(.3) = .588
    60.46(.4) = 2.4(6–5.4)2(.4) = .144
    80.28(.2) = 1.6(8–5.4)2(.2) = 1.352
  34. Identify the mistake in the probability distribution table.

    xP(x)x*P(x)
    1.15.15
    2.25.50
    3.30.90
    4.20.80
    5.15.75
    Sýna svarið

    The values of P(x) do not sum to one.

  35. Identify the mistake in the probability distribution table.

    xP(x)x*P(x)
    1.15.15
    2.25.40
    3.25.65
    4.20.85
    5.151
  36. Define the random variable X.

    Sýna svarið

    Let X = the number of years a physics major will spend doing postgraduate research.

  37. Define P(x), or the probability of x.

  38. Find the probability that a physics major will do postgraduate research for four years. P(x = 4) = ________

    Sýna svarið

    1 – .35 – .20 – .15 – .10 – .05 = .15

  39. Find the probability that a physics major will do postgraduate research for at most three years. P(x ≤ 3) = ________

  40. On average, how many years would you expect a physics major to spend doing postgraduate research?

    Sýna svarið

    1(.35) + 2(.20) + 3(.15) + 4(.15) + 5(.10) + 6(.05) = .35 + .40 + .45 + .60 + .50 + .30 = 2.6 years

Symbols used here

\sum_{k=1}^{n} a_k
summation
Add a_k for k = 1 up to n.
\bar{x},\ \mu
sample mean, population mean
Average of the data; average of the whole population.
P(A),\ P(A \mid B)
probability, conditional probability
Chance of A; chance of A given that B happened.
y',\ y''
first and second derivative of y
Prime notation for derivatives with respect to x (or t).
\approx
approximately equal
Equal to the precision shown, not exactly.
\leq,\ \geq
less/greater than or equal
Inequalities that allow equality; < and > exclude it.
\pm
plus or minus
Both signs at once: x = 3 ± 2 means 5 and 1.
n!
factorial
n × (n−1) × … × 1; the number of orderings of n things. 0! = 1.
\binom{n}{k}
binomial coefficient, "n choose k"
Number of k-element subsets of n things: n!/(k!(n−k)!).
A \cup B,\ A \cap B,\ A \setminus B
union, intersection, difference
In either; in both; in A but not B.
\sigma,\ s,\ \sigma^2
standard deviation, sample s.d., variance
Typical distance from the mean; its square.
E[X],\ \operatorname{Var}(X)
expected value, variance
Probability-weighted average of X; its spread.
N(\mu, \sigma^2),\ z
normal distribution, z-score
The bell curve with mean μ and variance σ²; (x − μ)/σ.

How to: Discrete random variables

  1. Power: (1/2)^3 = 1/8.

Questions people ask

Mean or median — which should I use?

Median when the data have outliers or a long tail (incomes, house prices); mean when the data are roughly symmetric and you want every value to count. Report both if they disagree — the gap is itself information.

What does a p-value actually say?

The probability of seeing data at least this extreme if the null hypothesis were true. It is not the probability that the null hypothesis is true.

Why divide by n − 1 for the sample variance?

The sample mean sits closer to the sample than the true mean does, so squared deviations from it are slightly too small on average; dividing by n − 1 instead of n corrects the bias.

Prófaðu þitt eigið

Parts of this page are adapted from OpenStax Statistics (CC BY 4.0). Condensed and re-explained here; errors are ours.

Meira í Statistics & Probability