Random Variables and Distributions

Chapter 5 · Tamil Nadu State Board

  • 25 min read
  • 5-question quiz

Every key point below shows the sentence from your textbook it comes from. Book back answers are solved and checked against the book; answers we could not prove are left out. How we check content

In short

This lesson explains how a random variable assigns real numbers to outcomes in a sample space and how probabilities describe its values. It compares discrete random variables, which take countably many values, with continuous random variables, which can take values across an interval. It shows how probability mass functions, probability density functions, and cumulative distribution functions describe distributions and how to move between them. It also introduces expectation as a way to summarize a random variable by a single value.

Written by AI from this lesson. How we check it

Key points

  • A random variable is a real-valued function defined on the sample space of a random experiment.
    From your textbook
    “A random variable X is a function defined on a sample space S into the real numbers”
  • A random variable is discrete when its range has a finite or countably infinite number of values.
    From your textbook
    “it can assume only a finite or countably infinite number of values”
  • For a discrete random variable, the probability mass function gives the probability of each possible value.
    From your textbook
    “The probability that a discrete random variable X takes on a particular value x”
  • The cumulative distribution function gives the probability that the random variable is no greater than x.
    From your textbook
    “Writing F x P X x ( ) for every real number x”
  • For a continuous random variable, the probability of taking any one particular value is zero.
    From your textbook
    “probability when X takes on any one particular value is zero.”
  • A probability density function is non-negative and has total integral one.
    From your textbook
    “f x ( ) ≥0, for every x and (ii) f x dx ( )”
  • Expectation is also called expected value, mean, or first moment.
    From your textbook
    “Synonyms for expectation are expected value, mean, and first moment.”
Test yourself: 5 questions

Formulas in this chapter

  • Cumulative distribution functionF(x) = P(X ≤ x) = Σ f(xi), for xi ≤ xExplained here
  • Probability from a jumpf(xi) = F(xi) − F(xi−1)Explained here
  • Probability over an intervalP(a ≤ X ≤ b) = ∫ from a to b f(x) dxExplained here
  • Cumulative distribution functionF(x) = P(X ≤ x) = ∫ from −∞ to x f(u) duExplained here
  • Probability between two valuesP(a ≤ X ≤ b) = F(b) − F(a)Explained here
  • Probability density functionf(x) = dF(x)/dxExplained here
  • Probability over an intervalP(a ≤ X ≤ b) = F(b) − F(a) = ∫ from a to b f(u) duExplained here
  • Expected value of XE(X) = Σ x f(x) for a discrete X; E(X) = ∫ x f(x) dx for a continuous XExplained here
  • Expected value of a function and k-th momentE(g(X)) = Σ g(x)f(x) for a discrete X; E(g(X)) = ∫ g(x)f(x) dx for a continuous X. E(X^k) is the k-th moment about the origin.Explained here
  • VarianceVar(X) = E((X − E(X))^2) = E(X^2) − (E(X))^2Explained here
  • Expectation of a linear expressionE(aX + b) = aE(X) + bExplained here
  • Variance after scaling and shiftingVar(aX + b) = a^2 Var(X)Explained here

Random variables and sample spaces

A sample space lists the possible outcomes of a random experiment. Those outcomes do not have to be numbers. A random variable assigns a real number to each outcome, so we can describe outcomes using numbers.

Definition

Random variable
A random variable X is a function from a sample space S to the real numbers, where the inverse image of a point or set of real numbers is an event in S to which probability can be assigned.

Symbols used for a random variable

  • Capital letters such as X, Y, and Z name random variables.
  • Small letters such as x, y, and z name possible values of random variables.
  • The range set Rx contains the values X(ω) for sample points ω in S.

Remember: A random variable is a function that turns each sample outcome into a real number.

Finding values and inverse images

The value of a random variable depends on the outcome. An inverse image collects all outcomes that give the same value. The number of outcomes in each inverse image can be counted.

Worked example

Two coins are tossed once. X is the number of tails. Find the sample space, the values of X, and the inverse image of 1.

Try it first, then show the solution
  1. The sample space is S = {TT, TH, HT, HH}.
  2. X(TT) = 2, X(TH) = 1, X(HT) = 1, and X(HH) = 0.
  3. The values taken by X are 0, 1, and 2.
  4. The outcomes that give X = 1 are TH and HT.

Answer: The inverse image of 1 is {TH, HT}. The numbers of outcomes for X = 0, 1, and 2 are 1, 2, and 1.

Two-coin outcomes and values

Value of XOutcomes
0HH
1TH, HT
2TT

Worked example

A pair of unbiased dice is rolled once. X is the total score. Find the possible values of X and the inverse image of 10.

Try it first, then show the solution
  1. There are 36 ordered pairs in the sample space.
  2. The possible total scores are 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, and 12.
  3. The ordered pairs that give a total of 10 are (4, 6), (5, 5), and (6, 4).

Answer: The inverse image of 10 is {(4, 6), (5, 5), (6, 4)}. The numbers of outcomes for totals 2 through 12 are 1, 2, 3, 4, 5, 6, 5, 4, 3, 2, and 1.

Remember: To find an inverse image, list every sample outcome that produces the required random-variable value.

Examples of random variables

A random variable can count objects, record an amount won, or describe which group an outcome belongs to. Its possible values depend on the experiment and on what the variable is defined to measure.

Examples from this chapter

  • When 3 balls are chosen from an urn with 2 white and 3 red balls, the number of red balls can be 1, 2, or 3. Their inverse images contain 3, 6, and 1 outcomes.
  • For a randomly chosen student among 150 students in 4 buses, X is the number of students on that student's bus. X can be 32, 36, 38, or 44.
  • When 2 balls are chosen from 6 white and 4 black balls, the winning amount is 60, 10, or − 40, depending on the colours selected.
  • If a coin is tossed until head occurs, X, the number of tosses, can be 1, 2, 3, and so on.
  • The number N of customers who arrive at a service desk during a time period can be 0, 1, 2, 3, and so on.

Choosing what the variable measures

What is counted or recordedPossible values shown in this chapter
Number of red balls chosen1, 2, 3
Students on the chosen student's bus32, 36, 38, 44
Winning amount60, 10, − 40
Tosses until head occurs1, 2, 3, ...
Customers arriving in a time period0, 1, 2, 3, ...

Worked example

Two balls are chosen from an urn containing 6 white and 4 black balls. You win ` 30 for each black ball and lose ` 20 for each white ball. Find the possible winning amounts and the number of outcomes for each.

Try it first, then show the solution
  1. If both balls are black, the amount is ` 2(30) = ` 60.
  2. If one ball is black and one is white, the amount is ` 30 − ` 20 = ` 10.
  3. If both balls are white, the amount is ` 2( − 20) = ` 40, so the value is − 40.
  4. The numbers of outcomes for these amounts are 6, 24, and 15.

Answer: The possible values are 60, 10, and − 40. Their numbers of outcomes are 6, 24, and 15, for a total of 45.

Remember: First decide exactly what X measures. Then assign a number to each outcome using that meaning.

Cumulative distribution function for a discrete random variable

Definition

Cumulative distribution function
The cumulative distribution function F(x) gives the probability that X is less than or equal to x: F(x) = P(X ≤ x).

For a discrete random variable, add the probabilities of all values of X that are at most x. The probability mass function gives probabilities only at the possible values of X, but F(x) is defined for every real x.

Cumulative distribution function

F(x) = P(X ≤ x) = Σ f(xi), for xi ≤ x

f(xi) is the probability that X equals xi. Add these probabilities for all xi that are at most x.

Properties of F(x)

  • 0 ≤ F(x) ≤ 1 for every real x.
  • F(x) is non-decreasing: if x ≤ y, then F(x) ≤ F(y).
  • F(x) is right continuous.
  • lim x→−∞ F(x) = 0 and lim x→∞ F(x) = 1.
  • P(x1 < X ≤ x2) = F(x2) − F(x1).
  • P(X > x) = 1 − F(x).
  • P(X = xk) = F(xk) − F(xk−1).

Remember: To find F(x), add the probabilities of all possible X values up to and including x.

Finding a distribution function from a probability mass function

Arrange the possible values of X from smallest to largest. At each value, add its probability to the probabilities already counted. Between two successive values, F(x) stays constant.

Worked example

X takes the values 1, 2, 3, 4 with probabilities 1/12, 5/12, 5/12, 1/12. Find F(x), P(X ≤ 3), and P(X ≥ 2).

Try it first, then show the solution
  1. For x < 1, no value of X is included, so F(x) = 0.
  2. At 1, F(1) = 1/12.
  3. At 2, F(2) = 1/12 + 5/12 = 1/2.
  4. At 3, F(3) = 1/12 + 5/12 + 5/12 = 11/12.
  5. At 4, F(4) = 1.
  6. Use F(3) for P(X ≤ 3). For P(X ≥ 2), add the probabilities at 2, 3, and 4.

Answer: F(x) is 0 for x < 1, 1/12 for 1 ≤ x < 2, 1/2 for 2 ≤ x < 3, 11/12 for 3 ≤ x < 4, and 1 for x ≥ 4. P(X ≤ 3) = 11/12 and P(X ≥ 2) = 11/12.

Worked example

A six sided die has ‘1’ on one face, ‘2’ on two faces, and ‘3’ on three faces. It is rolled twice. X is the total score. Find the probability mass function, the cumulative distribution function, P(3 ≤ X ≤ 6), and P(X ≥ 4).

Try it first, then show the solution
  1. The possible totals are 2, 3, 4, 5, and 6. Their numbers of outcomes are 1, 4, 10, 12, and 9, out of 36.
  2. So the probabilities are 1/36, 4/36, 10/36, 12/36, and 9/36.
  3. Add these probabilities in order to get cumulative values 1/36, 5/36, 15/36, 27/36, and 1.
  4. For P(3 ≤ X ≤ 6), add the probabilities for 3, 4, 5, and 6.
  5. For P(X ≥ 4), add the probabilities for 4, 5, and 6.

Answer: The probability mass function at 2, 3, 4, 5, 6 is 1/36, 4/36, 10/36, 12/36, 9/36. F(x) is 0 for x < 2, 1/36 for 2 ≤ x < 3, 5/36 for 3 ≤ x < 4, 15/36 for 4 ≤ x < 5, 27/36 for 5 ≤ x < 6, and 1 for x ≥ 6

Finding a probability mass function from a distribution function

A discrete distribution function is constant between possible values of X. It rises in jumps at those values. The size of each jump gives the probability at that value.

Probability from a jump

f(xi) = F(xi) − F(xi−1)

F(xi) is the value at the jump, and F(xi−1) is the level just before that jump.

Worked example

A distribution function has jumps at −2, −1, 0, and 1. Its levels after these jumps are 0.25, 0.60, 0.90, and 1. Find the probability mass function, P(X < 0), and P(X ≥ 1).

Try it first, then show the solution
  1. At −2, the jump is 0.25 − 0 = 0.25.
  2. At −1, the jump is 0.60 − 0.25 = 0.35.
  3. At 0, the jump is 0.90 − 0.60 = 0.30.
  4. At 1, the jump is 1 − 0.90 = 0.10.
  5. For P(X < 0), add the probabilities at −2 and −1. For P(X ≥ 1), use the probability at 1.

Answer: The probabilities at −2, −1, 0, and 1 are 0.25, 0.35, 0.30, and 0.10. P(X < 0) = 0.60 and P(X ≥ 1) = 0.10.

Continuous random variables

Some measurements can take any value within an interval of real numbers. A random variable that represents such a measurement is continuous. For a continuous random variable, the probability of getting any one exact value is zero.

Definition

Continuous random variable
A random variable X is continuous if P(X = x) = 0 for every possible value x in its range.

Remember: A continuous random variable can take values across an interval, and the probability of one exact value is zero.

Probability density function

Definition

Probability density function
A non-negative function f(x) is a probability density function when probabilities over intervals are found by integrating f(x), and its total integral is 1.
Probability over an interval

P(a ≤ X ≤ b) = ∫ from a to b f(x) dx

f(x) is the probability density function, and a and b are the interval endpoints.

Properties of a probability density function

  • f(x) ≥ 0 for every x.
  • ∫ f(x) dx over the full range = 1.

For a continuous random variable, f(a) is not the probability that X equals a. That probability is zero. To find the probability that X lies in an interval, integrate the density over that interval.

Cumulative distribution function

Definition

Cumulative distribution function
The cumulative distribution function F(x) gives the probability that a continuous random variable X is at most x.
Cumulative distribution function

F(x) = P(X ≤ x) = ∫ from −∞ to x f(u) du

f(u) is the probability density function, and u is the variable of integration.

Probability between two values

P(a ≤ X ≤ b) = F(b) − F(a)

F(a) and F(b) are cumulative probabilities at the interval endpoints.

Properties of a continuous distribution function

  • 0 ≤ F(x) ≤ 1.
  • F(x) is non-decreasing: if x < y, then F(x) ≤ F(y).
  • F(x) is continuous everywhere.
  • lim as x → −∞ F(x) = 0, and lim as x → ∞ F(x) = 1.

Discrete and continuous random variables

Discrete caseContinuous case
f(a) = P(X = a).P(X = a) = 0.
Probabilities are found using summation.Probabilities are found using integration.

Remember: For continuous X, changing ≤ to < at an endpoint does not change the probability, because P(X = a) = 0.

Finding a Probability Density Function from a Distribution Function

For a continuous random variable, the probability density function f(x) is the derivative of the distribution function F(x), wherever that derivative exists. The distribution function can also be used to find probabilities over intervals.

Probability density function

f(x) = dF(x)/dx

F(x) is the distribution function and f(x) is the probability density function.

Probability over an interval

P(a ≤ X ≤ b) = F(b) − F(a) = ∫ from a to b f(u) du

F is the distribution function, f is the probability density function, and a and b are the interval limits.

Remember: For an interval probability, subtract the distribution function value at the lower limit from its value at the upper limit.

Finding Probabilities and Distribution Functions from a Density

Useful rules for a continuous random variable

  • A probability density function is non-negative and its integral over the full range is 1.
  • The distribution function is F(x) = ∫ from −∞ to x f(u) du.
  • For a continuous random variable, P(X = a) = 0.

Worked example

In Example 11.15, an equipment lifetime has density f(x) = 2e^(−2x) for x ≥ 0 and f(x) = 0 for x < 0. Find the constant, distribution function, and requested probabilities.

Try it first, then show the solution
  1. Set the integral of the density over its range equal to 1; this gives k = 2.
  2. Integrate the density to obtain F(x) = 0 for x ≤ 0 and F(x) = 1 − e^(−2x) for x > 0.
  3. Use F(x) to find P(X < 2) and P(X ≥ 4).
  4. For a continuous random variable, a single value has probability 0.

Answer: k = 2; F(x) = 0 for x ≤ 0 and F(x) = 1 − e^(−2x) for x > 0; P(X < 2) = 1 − e^(−4); P(X ≥ 4) = e^(−8); P(X = 3) = 0.

Remember: The value of a probability density at one point is not the probability that the random variable equals that point.

Mathematical Expectation, Mean and Variance

Definition

Mathematical expectation
Mathematical expectation, also called expected value, mean, or first moment, summarizes the values of a random variable using their probabilities.

For a discrete random variable, multiply each possible value by its probability and add the products. This is a probability-weighted average. For a continuous random variable, integrals take the place of summations.

Worked example

The ten numbers in Illustration 11.7 have values −4, 1, 2, 5 and 6 with probabilities 1/10, 1/10, 3/10, 3/10 and 2/10. Find their average using the probabilities.

Try it first, then show the solution
  1. Multiply each value by its corresponding probability.
  2. Add the products: (−4)(1/10) + (1)(1/10) + (2)(3/10) + (5)(3/10) + (6)(2/10).

Answer: The average is 3.

Two ways to describe a probability distribution

MeasureWhat it describes
MeanThe centre tendency of the distribution.
VarianceThe dispersion or variability in the distribution.

Remember: Different probability distributions can have the same mean and variance.

Mean and Expected Value

Definition

Mean
The mean, or expected value, of a random variable is its long-run average over many independent repetitions of an experiment.

The mean is written as E(X) or μ. For a discrete variable, multiply each value by its probability and add the results. For a continuous variable, find the integral of x f(x).

Expected value of X

E(X) = Σ x f(x) for a discrete X; E(X) = ∫ x f(x) dx for a continuous X

x is a value of the random variable, and f(x) is its probability mass function or density function.

The expected value is not always a value that the random variable can actually take. For a function g(X), find its expected value by using g(x) in place of x in the corresponding sum or integral.

Expected value of a function and k-th moment

E(g(X)) = Σ g(x)f(x) for a discrete X; E(g(X)) = ∫ g(x)f(x) dx for a continuous X. E(X^k) is the k-th moment about the origin.

g is a function of X, and k is the power used to find the moment.

Remember: For k = 0, the moment is 1.

Variance and Standard Deviation

Definition

Variance
Variance is the mean of the squared differences between the values of a random variable and its mean.

Definition

Standard deviation
The standard deviation is the square root of the variance.
Variance

Var(X) = E((X − E(X))^2) = E(X^2) − (E(X))^2

E(X) is the mean, and E(X^2) is the expected value of the square of X.

Variance describes how far the values spread around the mean. A smaller variance means the values are more clustered around the mean. A bigger variance means they are more spread out.

How variance describes spread

Smaller varianceBigger variance
Values are more clustered around the mean.Values are more scattered from the mean.
The mean can be the same as that of another distribution.The mean can be the same as that of another distribution.

Remember: Variance and standard deviation are always non-negative.

Rules for Expectation and Variance

Expectation of a linear expression

E(aX + b) = aE(X) + b

a and b are constants, and X is a random variable.

Useful expectation results

  • E(aX) = aE(X) when b = 0.
  • E(b) = b when a = 0.
Variance after scaling and shifting

Var(aX + b) = a^2 Var(X)

a and b are constants, and X is a random variable.

Useful variance results

  • Var(aX) = a^2 Var(X) when b = 0.
  • Var(b) = 0 when a = 0.

Remember: Adding a constant changes the mean but does not change the variance. Multiplying X by a scales its variance by a^2.

Finding Mean and Variance in Examples

Worked example

For x = 1, 2, 3, 4, 5, 6, the probability mass function is c, 2c, 2c, 3c, 2c, 4c. Find c, the mean, and the variance.

Try it first, then show the solution
  1. Since the probabilities add to 1, c + 2c + 2c + 3c + 2c + 4c = 1. This gives c = 1/5 or −1/2.
  2. Probabilities must be non-negative, so choose c = 1/5.
  3. Using the resulting probability mass function, Σ x f(x) = 115/25, so the mean is 4.6.
  4. Also, Σ x^2 f(x) = 585/25. Thus the variance is 585/25 − (115/25)^2 = 2.24.

Answer: c = 1/5; mean = 4.6; variance = 2.24.

Worked example

Two balls are chosen randomly from an urn containing 8 white and 4 black balls. A black ball gives a win of Rs 20, and a white ball gives a loss of Rs 10. Find the expected winning amount and variance.

Try it first, then show the solution
  1. The possible winning amounts are 40 for two black balls, 10 for one black and one white ball, and −20 for two white balls.
  2. There are 66 ways to choose 2 balls. The numbers of ways for these three outcomes are 6, 32, and 28.
  3. The probabilities are 6/66, 32/66, and 28/66. Their weighted mean is 40(6/66) + 10(32/66) − 20(28/66) = 0.
  4. The expected value of X^2 is 40^2(6/66) + 10^2(32/66) + (−20)^2(28/66) = 4000/11.
  5. Use Var(X) = E(X^2) − (E(X))^2. Since E(X) = 0, the variance is 4000/11.

Answer: Expected winning amount = 0; variance = 4000/11.

Worked example

For the continuous probability density function f(x) = λe^(−λx) for x ≥ 0 and 0 otherwise, find the mean and variance.

Try it first, then show the solution
  1. Using E(X) = ∫ x f(x) dx, the mean is 1/λ.
  2. Using E(X^2) = ∫ x^2 f(x) dx, E(X^2) = 2/λ^2.
  3. Use Var(X) = E(X^2) − (E(X))^2.

Answer: Mean = 1/λ; variance = 1/λ^2.

One-point and two-point distributions

A one-point distribution puts all probability at a single value, x0. Its mean is x0 and its variance is 0. A two-point distribution assigns probability to two values, x1 and x2.

Two-point distributions

CaseMean and variance
Unsymmetrical, with probabilities p and q = 1 − p at x1 and x2Mean = px1 + qx2; variance = pq(x2 − x1)²
Symmetrical, where p = q = 1/2Mean = (x1 + x2)/2; variance = (x2 − x1)²/4

Remember: For a one-point distribution, the value never varies, so its variance is 0.

Bernoulli distribution

Definition

Bernoulli trial
A Bernoulli trial has two possible outcomes, called success and failure, and the probability of success stays the same in independent repeated trials.

Definition

Bernoulli random variable
A random variable X is Bernoulli when X = 1 for success and X = 0 for failure, with success probability p and failure probability q = 1 − p.
Bernoulli mean and variance

μ = p; σ² = pq

p is the probability of success and q = 1 − p is the probability of failure.

A Bernoulli random variable can take only 0 or 1. Its expected value is p, even though p is not necessarily one of the values that X can take. When p = q = 1/2, the mean is 1/2 and the variance is 1/4.

Remember: In a Bernoulli model, success is coded as 1 and failure as 0.

Binomial distribution and its conditions

Definition

Binomial random variable
A binomial random variable counts the number of successes in n finite, independent trials, where each trial has two outcomes and the success probability p stays constant.
Binomial probability mass function

P(X = x) = (n choose x)p^x q^(n − x), where q = 1 − p and x = 0, 1, 2, ..., n

n is the number of trials, x is the number of successes, p is the probability of success, and q is the probability of failure.

Binomial mean and variance

μ = np; σ² = npq

n is the number of trials, p is the probability of success, and q = 1 − p.

Conditions for a binomial distribution

  • There are n finite, independent trials.
  • Each trial has only two outcomes: success or failure.
  • The probability of success p is the same in every trial.

When p = q = 1/2, the binomial mean is n/2 and its variance is n/4. The binomial theorem is suitable to apply when n is a small number less than 30.

Remember: Before using the binomial distribution, check that the trials are independent and that p stays constant.

Solved binomial distribution examples

Worked example

Five fair coins are tossed, and X is the number of heads. Find the binomial distribution.

Try it first, then show the solution
  1. There are n = 5 trials. For each coin, p = 1/2 and q = 1/2.
  2. X counts the heads, so X takes values 0, 1, 2, 3, 4, and 5.
  3. Use P(X = x) = (5 choose x)(1/2)^x(1/2)^(5 − x).

Answer: X follows B(5, 1/2), with f(x) = (5 choose x)(1/2)^5 for x = 0, 1, 2, 3, 4, 5.

Worked example

A fair die is rolled 10 times, and X is the number of times 4 appears. Find the binomial distribution.

Try it first, then show the solution
  1. There are n = 10 trials. The probability of a 4 on each roll is p = 1/6, so q = 5/6.
  2. X can take values 0, 1, 2, ..., 10.
  3. Use P(X = x) = (10 choose x)(1/6)^x(5/6)^(10 − x).

Answer: X follows B(10, 1/6), with f(x) = (10 choose x)(1/6)^x(5/6)^(10 − x) for x = 0, 1, 2, ..., 10.

Worked example

A multiple-choice examination has ten questions, each with four distractors and exactly one correct answer. A student guesses each answer. Find the binomial distribution and the probability of seven correct answers.

Try it first, then show the solution
  1. There are n = 10 trials. The probability of a correct answer is p = 1/4, and the probability of a wrong answer is q = 3/4.
  2. X, the number of correct answers, follows B(10, 1/4).
  3. For seven correct answers, use P(X = 7) = (10 choose 7)(1/4)^7(3/4)^3.

Answer: The distribution is f(x) = (10 choose x)(1/4)^x(3/4)^(10 − x), for x = 0, 1, 2, ..., 10. The probability of seven correct answers is (10 choose 7)(1/4)^7(3/4)^3.

Continuous and Discrete Mathematics

How the two branches differ

Continuous MathematicsDiscrete Mathematics
Uses results about the real numbers, which form an uncountably infinite set.Uses distinct values that are finite or countably infinite.
Between any two real numbers, there are uncountably infinite numbers.Between any two points, there are finitely many or countably infinite points.
A function can be shown as a smooth curve without a break.A function on a finite set can be shown as a complete list of ordered pairs.

Definition

Discrete set
A set with a finite or countably infinite number of elements.

The elements of a discrete set can be matched one-to-one with the natural numbers. This means its elements can be arranged as a sequence. An uncountable set, such as the real numbers, does not have this feature.

Why Discrete Mathematics Matters

Computers work with computable discrete sets, so computer science needs clear ways to describe them. Programming languages also need concise descriptions. This leads computer scientists to study algorithms based on discrete sets.

Benefits and branches

  • Studying discrete mathematics helps improve reasoning and problem-solving capabilities.
  • Its branches include combinatorics, mathematical logic, boolean algebra, graph theory, and coding theory.
  • The chapter discusses binary operations and mathematical logic.

Remember: Discrete Mathematics studies finite or countably infinite sets, whose elements can be arranged as a sequence.

Questions students ask

Short, direct answers to what students search for in this chapter.

What is a random variable?

A random variable is a function that assigns a real number to each outcome in a sample space. The outcomes that give a particular value form its inverse image. That inverse image must be an event to which probability can be assigned.

What is the inverse image of 1 when two coins are tossed and X is the number of tails?

The sample space is {TT, TH, HT, HH}. The outcomes TH and HT each contain exactly one tail, so both give X = 1. Therefore, the inverse image of 1 is {TH, HT}.

What totals can you get when you roll two dice?

The total score of two dice can be 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, or 12. These are the possible values of the random variable that records the total score.

What values can the number of customers arriving at a service desk take?

If N records the number of customers arriving during a time period, its possible values are the non-negative integers: 0, 1, 2, 3, and so on. The value 0 means that no customers arrive during that period.

What is a discrete random variable?

A discrete random variable can take only a finite or countably infinite number of values. It may be defined on a discrete or continuous sample space. For each possible value, it has a probability, and the probabilities of all its possible values add up to one.

What is a probability mass function?

A probability mass function, or pmf, gives the probability that a discrete random variable X takes a particular value x. It is written as f(x) = P(X = x) or p(x) = P(X = x). Its probabilities are non-negative and add up to one.

Show 24 more questions

How do you find the probability mass function for two fair coins?

For two fair coins, the outcomes are TT, TH, HT, and HH. The number of heads X can be 0, 1, or 2. The probabilities are f(0) = 1/4, f(1) = 1/2, and f(2) = 1/4.

What is the probability distribution for the number of fours when two dice are rolled?

When a pair of fair dice is rolled once, the number of fours can be 0, 1, or 2. Out of 36 outcomes, 25 give no fours, 10 give one four, and 1 gives two fours. Thus the probabilities are 25/36, 10/36, and 1/36.

What is a cumulative distribution function?

A cumulative distribution function, written as F(x), gives the probability that a random variable X is less than or equal to x. For a discrete variable, add the probabilities of all possible values of X that are at most x.

How do you find F(x) from a probability mass function?

Arrange the possible values of X from smallest to largest. For each x, add the probabilities of every value of X that is less than or equal to x. The resulting total is F(x), and it remains constant between successive possible values.

How can you find a probability mass function from a cumulative distribution function?

For a discrete random variable, the probability at a value is the size of the jump in F(x) there. Subtract the level just before the jump from the level at the jump: f(xi) = F(xi) − F(xi−1).

What is the probability that X lies between two values using F(x)?

For a discrete random variable, P(x1 < X ≤ x2) = F(x2) − F(x1). The cumulative value at the upper endpoint includes values up to that endpoint, while the value at the lower endpoint removes those up to and including x1.

What is a continuous random variable?

A continuous random variable can take any value in an interval of real numbers. For every possible exact value x, the probability P(X = x) is zero. Probabilities are found over intervals using its probability density function.

What is a probability density function?

A probability density function f(x) is a non-negative function used to find probabilities for a continuous random variable. The probability over an interval from a to b is the integral of f(x) from a to b, and the total integral over the full range is 1.

How do you find the cumulative distribution function from a density function?

Integrate the probability density function from −∞ up to x. The result is F(x) = P(X ≤ x) = ∫ from −∞ to x f(u) du. To find a probability between a and b, use F(b) − F(a).

Why is the probability of one exact value zero for a continuous random variable?

For a continuous random variable, probability is measured over intervals by integrating its density. An exact value is an interval with no width, so it has probability zero. Therefore, including or excluding an endpoint does not change an interval probability.

How do you find a probability density function from a distribution function?

For a continuous random variable, differentiate the distribution function F(x). Wherever the derivative exists, the probability density function is f(x) = dF(x)/dx. Values at points where the derivative does not exist can be defined without changing interval probabilities.

How do you find the probability that a continuous random variable lies between two values?

For a ≤ b, find the difference between the distribution function at the upper and lower limits: P(a ≤ X ≤ b) = F(b) − F(a). Equivalently, integrate the probability density function from a to b.

How do you find the distribution function from a probability density function?

Integrate the probability density function from −∞ to x: F(x) = ∫ from −∞ to x f(u) du. If the density has different formulas over different ranges, calculate the integral for each range.

What is mathematical expectation in a probability distribution?

Mathematical expectation is also called expected value, mean, or first moment. For a discrete random variable, multiply each possible value by its probability and add the products. For a continuous random variable, integrals replace summations.

What is the probability that a continuous random variable equals one exact value?

The probability is 0. For a continuous random variable, P(X = a) = 0 for any value a. The probability density value at a point is not the probability that the variable takes that value.

What is the mean of a random variable?

The mean, also called the expected value, is the long-run average value of a random variable over many independent repetitions of an experiment. For a discrete variable, multiply each possible value by its probability and add the results.

How do you calculate the variance of a random variable?

Calculate the expected value of X^2, then subtract the square of the mean: Var(X) = E(X^2) − (E(X))^2. Variance measures how spread out the values are around the mean.

What is the relationship between variance and standard deviation?

The standard deviation is the square root of the variance. Variance and standard deviation are both non-negative measures of spread, describing how values vary around the mean.

What happens to variance when a constant is added to a random variable?

Adding a constant to a random variable does not change its variance. The rule is Var(aX + b) = a^2 Var(X), where a and b are constants. If only a constant is added, the variance stays the same.

What is a one-point distribution?

A one-point distribution places all probability at one value, x0. The random variable always equals x0, so its mean is x0 and its variance is 0.

What are the mean and variance of a Bernoulli distribution?

For a Bernoulli random variable, the mean is p and the variance is pq, where p is the probability of success and q = 1 − p is the probability of failure. The variable is 1 for success and 0 for failure.

What are the conditions for a binomial distribution?

A binomial distribution counts successes in n finite, independent trials. Each trial must have two outcomes, success or failure, and the probability of success p must remain constant from trial to trial.

What is the formula for binomial probability?

The probability of exactly x successes is P(X = x) = (n choose x)p^x q^(n − x), where n is the number of trials, p is the probability of success, and q = 1 − p is the probability of failure.

What are the mean and variance of a binomial distribution?

For a binomial random variable with n trials, success probability p, and failure probability q = 1 − p, the mean is np and the variance is npq.

Book back answers

4 textbook exercises, solved and checked against the book. Questions we could not prove are left out.

EXERCISE 11.6 — Choose the Correct or the most suitable answer from the given four alterna

  1. A pair of dice numbered 1, 2, 3, 4, 5, 6 of a six-sided die and 1, 2, 3, 4 of a four-sided die is rolled and the sum is determined. Let the random variable X denote this sum. Then the number of elements in the inverse image of 7 is (1) 1 (2) 2 (3) 3 (4) 4

    • (1) 1
    • (2) 2
    • (3) 3
    • (4) 4
    Try it, then show the answer

    (4) 4

    The pairs summing to 7 are (3,4), (4,3), (5,2), and (6,1), where the first entry is on the six-sided die.

    From the book: “the inverse image of 10, and (iv) the number of elements in inverse image of X.”

  2. Let X represent the difference between the number of heads and the number of tails obtained when a coin is tossed n times. Then the possible values of X are (1) i+2n, i = 0,1,2...n (2) 2i–n, i = 0,1,2...n (3) n–i, i = 0,1,2...n (4) 2i+2n, i = 0,1,2...n

    • (1) i+2n, i = 0,1,2...n
    • (2) 2i–n, i = 0,1,2...n
    • (3) n–i, i = 0,1,2...n
    • (4) 2i+2n, i = 0,1,2...n
    Try it, then show the answer

    (2) 2i–n, i = 0,1,2...n

    If there are i heads, there are n−i tails. The difference is i−(n−i) = 2i−n.

    From the book: “Then X takes on the values 0, 1, 2, …, n.”

  3. Which of the following is a discrete random variable? I. The number of cars crossing a particular signal in a day. II. The number of customers in a queue to buy train tickets at a moment. III. The time taken to complete a telephone call. (1) I and II (2) II only (3) III only (4) II and III

    • (1) I and II
    • (2) II only
    • (3) III only
    • (4) II and III
    Try it, then show the answer

    (1) I and II

    The number of cars and number of customers are counts and take discrete integer values. Time is a measurement that can vary continuously.

    From the book: “Discrete Random variable (for counting the quantity) (ii) Continuous Random variable (for measuring the quantity)”

  4. If in 6 trials, X is a binomial variable which follows the relation 9P(X=4) = P(X=2), then the probability of success is (1)0.125 (2) 0.25 (3) 0.375 (4) 0.75

    • (1)0.125
    • (2) 0.25
    • (3) 0.375
    • (4) 0.75
    Try it, then show the answer

    (2) 0.25

    For n = 6, P(X=4)/P(X=2) = [C(6,4)/C(6,2)]·[p²/(1−p)²] = p²/(1−p)². The relation makes this ratio 1/9, so p/(1−p)=1/3 and p=1/4.

    From the book: “The probability mass function of X is f x n x p p x n x n x ( ) ( ) , , , ,..., .”

Practice

Question 1 of 5Score 0

In the lesson's coin example, X counts the number of heads in one toss. What values can X take?

Exam questions

Practice questions with model answers. These are not from an official paper.

What is a random variable?2 marks

A random variable is a real-valued function defined on the sample space of a random experiment, with inverse images that are events to which probability can be assigned.

Distinguish between discrete and continuous random variables.2 marks

A discrete random variable has a finite or countably infinite set of possible values. A continuous random variable can take values across an interval of real numbers, and the probability of any one exact value is zero.

State the meaning of the cumulative distribution function for a random variable X.2 marks

The cumulative distribution function is F(x) = P(X ≤ x); it gives the probability that X is less than or equal to x.

What is mathematical expectation, and what other names are used for it?2 marks

Mathematical expectation summarizes a random variable with a numerical average. It is also called expected value, mean, or first moment.

Watch out

  • Do not confuse a probability density value f(a) with the probability P(X = a) for a continuous random variable; the latter is zero.
  • Do not confuse the probability mass function, which gives probabilities at discrete values, with the cumulative distribution function, which gives P(X ≤ x).

Still stuck on this lesson?

Get an AI answer grounded in your actual textbook — with the exact page reference.

Ask AI about this topic →