Random Variables and Mathematical Expectation

Chapter 5 · Tamil Nadu State Board

  • 24 min read
  • 4-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 numerical values to outcomes and distinguishes discrete from continuous random variables. It introduces probability functions and distribution functions for describing the probabilities of their values. It also teaches that mathematical expectation is a probability-weighted average, while variance measures how spread out the values are. These ideas help describe random situations and calculate their average outcomes and variability.

Written by AI from this lesson. How we check it

Key points

  • A random variable assigns a real number to each outcome in a sample space.
    From your textbook
    “A random variable (r.v.) is a real valued function defined on a sample space S”
  • A discrete random variable has a finite or countable set of possible values.
    From your textbook
    “A variable which can assume finite number of possible values or an infinite sequence of countable real numbers”
  • A continuous random variable can take values across an interval, including fractional values.
    From your textbook
    “A random variable X which can take on any value (integral as well as fraction) in the interval”
  • For a discrete random variable, its probability mass function gives the probability of each possible value.
    From your textbook
    “This is defined to be the probability mass function or discrete probability function of X.”
  • A cumulative distribution function gives the probability that a random variable is at most a specified value.
    From your textbook
    “F x P X x for all x R X( ) ( ), = ≤ ∈”
  • Expected value is a weighted average, with probabilities acting as the weights.
    From your textbook
    “The expected value is a weighted average of the values of a random variable may assume. The weights are the probabilities.”
  • Variance describes the spread or variability of a random variable's values.
    From your textbook
    “The variance of a random variable X will be a measure of the spread or dispersion of the density of X”
Test yourself: 4 questions

Formulas in this chapter

  • Probability over an intervalP(t1 ≤ X ≤ t2) = ∫ from t1 to t2 fX(x) dxExplained here
  • Variance for a discrete random variableVar(X) = ∑ [x − E(X)]² p(x)Explained here
  • Variance for a continuous random variableVar(X) = ∫ from −∞ to ∞ [x − E(X)]² f(x) dxExplained here
  • Variance using the second momentVar(X) = E(X²) − [E(X)]²Explained here
  • Mean or expected valueE(X) = Σ x P(x)Explained here
  • VarianceV(X) = E(X²) − [E(X)]²Explained here
  • Expected number of successesExpected value = N × pExplained here
  • Expected value for a continuous random variableE(X) = ∫ x f(x) dxExplained here
  • Conditions for a discrete probability mass functionp(xi) ≥ 0 and ∑ p(xi) = 1Explained here
  • Discrete distribution functionF(x) = P(X ≤ x) = ∑ p(xi), for xi ≤ xExplained here
  • Conditions for a probability density functionf(x) ≥ 0 and ∫ from −∞ to ∞ f(x) dx = 1Explained here
  • Expected value of a discrete random variableE(X) = ∑ x p(x)Explained here

Random Variables and Their Values

A random experiment can have different outcomes. A random variable assigns a real number to each outcome. We often use capital letters such as X to name a random variable, and lower-case letters such as x for its possible values.

Definition

Random variable
A random variable is a real-valued function defined on a sample space, whose possible values are numerical outcomes of a random experiment.

Examples of random variables

  • The number of heads when a coin is tossed 8 times.
  • The return on an investment in a one-year period.
  • The face shown when a die is rolled.
  • The number of customers arriving at a bank in one hour.
  • The sale volume of a store on a particular day.

Worked example

A coin is tossed three times. Let X be the number of heads. What values does X assign to the outcomes?

Try it first, then show the solution
  1. HHH has 3 heads, so X = 3.
  2. HHT, HTH and THH each have 2 heads, so X = 2.
  3. HTT, THT and TTH each have 1 head, so X = 1.
  4. TTT has no heads, so X = 0.

Answer: The possible values are RX = {0, 1, 2, 3}.

Remember: A random variable connects each outcome of an experiment to a number.

Discrete Random Variables

Definition

Discrete random variable
A variable that can take a finite number of possible values or an infinite sequence of countable real numbers is called a discrete random variable.

Examples

  • Marks obtained in a test.
  • The number of red marbles in a jar.
  • The number of telephone calls at a particular time.
  • The number of cars sold by a car dealer in one month.

Worked example

Three people, P1, P2 and P3, each answer Yes or No about building a model school. Let X be the number of Yes answers. What values can X take?

Try it first, then show the solution
  1. If all three answer No, X = 0.
  2. If one answers Yes, X = 1.
  3. If two answer Yes, X = 2.
  4. If all three answer Yes, X = 3.

Answer: X can take the values 0, 1, 2 and 3.

Probability Mass Function

Definition

Probability mass function
For a discrete random variable X, the function p(x) = P(X = x) gives the probability that X takes the value x.

If the distinct possible values of X are x1, x2, ..., then p(xi) is the probability that X = xi. For a value that X cannot take, its probability is 0.

Conditions for a probability mass function

  • p(xi) ≥ 0 for every possible value xi.
  • The sum of p(xi) over all possible values is 1.

Remember: Every probability in a probability mass function is non-negative, and all the probabilities add up to 1.

Probability mass functions

A probability mass function gives the probability of each value of a discrete random variable. Every probability must be at least 0, and all the probabilities must add up to 1.

Checks for a probability mass function

  • Each p(xi) is at least 0.
  • The sum of all p(xi) values is 1.

Worked example

Households have 0, 1, 2, 3, or 4 cars. The numbers of households are 30, 320, 380, 190, and 80. Estimate the probability mass function and check it.

Try it first, then show the solution
  1. The total number of households is 1000.
  2. Divide each household count by 1000 to get the probabilities: 0.03, 0.32, 0.38, 0.19, and 0.08.
  3. All these probabilities are at least 0.
  4. Their sum is 0.03 + 0.32 + 0.38 + 0.19 + 0.08 = 1.

Answer: The probabilities for 0, 1, 2, 3, and 4 cars are 0.03, 0.32, 0.38, 0.19, and 0.08. They form a probability mass function.

Worked example

The probability function for X = 0, 1, 2, 3, 4, 5, 6, 7 is 0, a, 2a, 2a, 3a, a², 2a², 7a² + a. Find a, P(X < 3), P(X > 2), and P(2 < X ≤ 5).

Try it first, then show the solution
  1. The probabilities add to 1: 0 + a + 2a + 2a + 3a + a² + 2a² + 7a² + a = 1.
  2. This gives 10a² + 9a – 1 = 0, or (10a – 1)(a + 1) = 0. Since probabilities cannot be negative, a = 1/10.
  3. P(X < 3) = 0 + a + 2a = 3a = 3/10.
  4. P(X > 2) = 1 – P(X ≤ 2) = 1 – (0 + a + 2a) = 7/10.
  5. P(2 < X ≤ 5) = 2a + 3a + a² = 5a + a² = 51/100.

Answer: a = 1/10; P(X < 3) = 3/10; P(X > 2) = 7/10; P(2 < X ≤ 5) = 51/100.

Worked example

For X = 0, 1, 2, 3, 4, 5, the probability at each value is 1/20. Find P(X < 3) and P(2 < X ≤ 4).

Try it first, then show the solution
  1. P(X < 3) = P(X = 0) + P(X = 1) + P(X = 2) = 1/20 + 1/20 + 1/20.
  2. P(2 < X ≤ 4) = P(X = 3) + P(X = 4) = 3/20 + 4/20.

Answer: P(X < 3) = 3/20 and P(2 < X ≤ 4) = 7/20.

Worked example

A fair coin is tossed three times. Let X count the number of heads. Find its probability mass function and check its properties.

Try it first, then show the solution
  1. The outcomes give X values: HHH gives 3; HHT, HTH, and THH give 2; HTT, THT, and TTH give 1; TTT gives 0.
  2. There are eight equally likely outcomes, so the probabilities for X = 0, 1, 2, 3 are 1/8, 3/8, 3/8, 1/8.
  3. Each probability is at least 0, and their sum is 1.

Answer: The probability mass function is p(0) = 1/8, p(1) = 3/8, p(2) = 3/8, and p(3) = 1/8. It satisfies both properties.

Worked example

Two unbiased dice are thrown together. Construct the probability mass function for the sum of the upturned faces.

Try it first, then show the solution
  1. There are 36 total outcomes.
  2. The numbers of outcomes giving sums 2 through 12 are 1, 2, 3, 4, 5, 6, 5, 4, 3, 2, 1.
  3. Divide each count by 36 to get the probability for its sum.

Answer: For sums 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, the probabilities are 1/36, 2/36, 3/36, 4/36, 5/36, 6/36, 5/36, 4/36, 3/36, 2/36, 1/36.

Cumulative distribution function for a discrete variable

Definition

Discrete cumulative distribution function
For a discrete random variable X, the distribution function is FX(x) = P(X ≤ x), found by adding the probabilities for values of X that are at most x.

To find the cumulative probability at a value, add the probability at that value to all the probabilities before it. The cumulative total cannot decrease as x increases.

Worked example

A family has two children. The sample space is {bb, bg, gb, gg}, where b = boy and g = girl. Let X count the number of boys. Find the distribution of X and its cumulative probabilities.

Try it first, then show the solution
  1. The values of X for the outcomes are 2, 1, 1, and 0.
  2. Thus, X = 0, 1, 2 have probabilities 1/4, 1/2, and 1/4.
  3. Add probabilities from the smallest value upward to get cumulative probabilities 1/4, 3/4, and 1.

Answer: FX(0) = 1/4, FX(1) = 3/4, and FX(2) = 1.

Worked example

A coin is tossed three times. Let X be the number of heads. Find the cumulative distribution function.

Try it first, then show the solution
  1. For X = 0, 1, 2, 3, the probabilities are 1/8, 3/8, 3/8, 1/8.
  2. The cumulative values at 0, 1, 2, 3 are 1/8, 4/8, 7/8, 1.

Answer: F(x) = 0 for x < 0; 1/8 for 0 ≤ x < 1; 4/8 for 1 ≤ x < 2; 7/8 for 2 ≤ x < 3; and 1 for x ≥ 3.

Remember: A discrete cumulative probability is a running total: include the probability at x and every probability below x.

Continuous random variables and probability density functions

Definition

Continuous random variable
A random variable that can take any value, including integral and fractional values, in an interval is called a continuous random variable.

Examples of continuous random variables

  • The amount of water in a 10 ounce bottle.
  • The speed of a car.
  • Electricity consumption in kilowatt hours.
  • The height of people in a population.
  • The weight of students in a class.
  • The length of time taken by a truck driver to go from Chennai to Madurai.

Definition

Probability density function
A probability density function fX(x) gives the probability that X lies between t1 and t2 by integrating fX(x) over that interval.
Probability over an interval

P(t1 ≤ X ≤ t2) = ∫ from t1 to t2 fX(x) dx

X is the continuous random variable, fX(x) is its density function, and t1 and t2 are the interval limits.

Conditions for a probability density function

  • f(x) ≥ 0 for all x.
  • ∫ from −∞ to ∞ f(x) dx = 1.

Worked example

A continuous random variable has density f(x) = ax for 0 ≤ x ≤ 1. Find a and P(X ≤ 1/2).

Try it first, then show the solution
  1. Use the total probability condition: ∫ from 0 to 1 ax dx = 1.
  2. This gives a/2 = 1, so a = 2.
  3. P(X ≤ 1/2) = ∫ from 0 to 1/2 2x dx = 1/4.

Answer: a = 2 and P(X ≤ 1/2) = 1/4.

Distribution function for a continuous variable

Definition

Continuous distribution function
For a continuous random variable X with density fX(x), its distribution function is FX(x) = P(X ≤ x) = ∫ from −∞ to x fX(t) dt.

Properties of a cumulative distribution function

  • 0 ≤ F(x) ≤ 1.
  • F(x) approaches 0 as x approaches −∞ and approaches 1 as x approaches ∞.
  • F(x) is non-decreasing.
  • F(x) is continuous from the right.
  • Its derivative is f(x): F′(x) = f(x).
  • P(a ≤ X ≤ b) = F(b) – F(a).

Worked example

The lifetime in hours of a radio tube has density f(x) = 100/x² for x ≥ 100 and f(x) = 0 for x < 100. Find the distribution function.

Try it first, then show the solution
  1. For x < 100, the density is 0 throughout the interval up to x, so F(x) = 0.
  2. For x ≥ 100, integrate the density from 100 to x: ∫ from 100 to x 100/t² dt = 1 – 100/x.

Answer: F(x) = 0 for x < 100, and F(x) = 1 – 100/x for x ≥ 100.

Remember: For a continuous variable, probabilities over intervals come from integrating the density, while the distribution function gives the accumulated probability up to x.

Expected Value of a Random Variable

Expected value is the average value a random variable is expected to take. It is a weighted average, where each value is weighted by its probability. It can describe average winnings or average profits.

Definition

Expected value of a discrete random variable
For a discrete random variable X with probability mass function p(x), its expected value is E(X) = ∑ x p(x), provided the series is absolutely convergent.

Definition

Expected value of a continuous random variable
For a continuous random variable X with probability density function f(x), its expected value is E(X) = ∫ from −∞ to ∞ x f(x) dx, provided the integral exists.

Expected value for discrete and continuous variables

Discrete random variableContinuous random variable
Uses the probability mass function p(x).Uses the probability density function f(x).
E(X) = ∑ x p(x).E(X) = ∫ from −∞ to ∞ x f(x) dx.

Remember: Expected value is a probability-weighted average, not necessarily a value the random variable must actually take.

Variance and Standard Deviation

The mean shows where values are centred. Variance shows how spread out they are around the mean. It is the weighted average of squared deviations from the mean.

Variance for a discrete random variable

Var(X) = ∑ [x − E(X)]² p(x)

x is a value of X, E(X) is its mean, and p(x) is the probability of that value.

Variance for a continuous random variable

Var(X) = ∫ from −∞ to ∞ [x − E(X)]² f(x) dx

x is a value of X, E(X) is its mean, and f(x) is its probability density function.

Variance using the second moment

Var(X) = E(X²) − [E(X)]²

E(X²) is the expected value of X², and E(X) is the expected value of X.

Definition

Standard deviation
The standard deviation of X, denoted by sX, is the positive square root of Var(X).

Remember: Variance measures spread; standard deviation is its positive square root.

Properties of Mathematical Expectation

Expectation and variance properties

  • E(a) = a, where a is a constant.
  • E(aX) = aE(X).
  • E(aX + b) = aE(X) + b, where a and b are constants.
  • If X ≥ 0, then E(X) ≥ 0.
  • V(a) = 0.
  • V(aX + b) = a²V(X).

Moments of a Random Variable

A moment is the expected value of a power of a random variable. A central moment measures powers of the distance from a chosen value. When that chosen value is the mean, it is a central moment about the mean.

Definition

rth moment
The rth moment m′r is E(Xʳ), calculated as ∑ xʳp(x) for a discrete random variable or ∫ xʳf(x) dx for a continuous random variable, provided the expectation exists.

Definition

rth central moment about a
The rth central moment about a is E[(X − a)ʳ]; when a = mX, it is denoted by mr.

Important moments about the mean

  • m′1 = E(X) = mX, the mean of X.
  • m1 = E[X − mX] = 0.
  • m2 = E[(X − mX)²], the variance of X.
  • All odd moments about mX are 0 if the density function is symmetrical about mX, provided those moments exist.

Mean and variance of a discrete random variable

Mean or expected value

E(X) = Σ x P(x)

x is a possible value of the random variable X, and P(x) is its probability.

Variance

V(X) = E(X²) − [E(X)]²

E(X²) is the expected value of the squared outcomes, and E(X) is the mean.

To find the mean, multiply each possible value by its probability and add the results. To find variance, first calculate E(X²), then subtract the square of the mean.

Worked example

For X = 1, 2, 3, 4, 5, 6, with probability 1/6 for each value, find the mean and variance.

Try it first, then show the solution
  1. The mean is (1 + 2 + 3 + 4 + 5 + 6)/6 = 7/2.
  2. E(X²) = (1² + 2² + 3² + 4² + 5² + 6²)/6 = 91/6.
  3. V(X) = 91/6 − (7/2)² = 35/12.

Answer: The mean is 7/2 and the variance is 35/12.

Worked example

For the distribution X = 0, 1, 2, 3 with probabilities 0.2, 0.1, 0.4, 0.3, find E(3X + 2X²).

Try it first, then show the solution
  1. E(X) = (0 × 0.2) + (1 × 0.1) + (2 × 0.4) + (3 × 0.3) = 1.8.
  2. E(X²) = (0² × 0.2) + (1² × 0.1) + (2² × 0.4) + (3² × 0.3) = 4.4.
  3. E(3X + 2X²) = 3E(X) + 2E(X²) = (3 × 1.8) + (2 × 4.4).

Answer: E(3X + 2X²) = 14.2.

Remember: Variance is E(X²) minus the square of the mean.

Expected value in selection and repeated experiments

Expected value is a probability-weighted average. For repeated experiments with the same probability of success, the expected number of successes is the number of experiments multiplied by the probability of success.

Expected number of successes

Expected value = N × p

N is the number of experiments, and p is the probability of success in one experiment.

Worked example

Two applicants are selected for an interview from six men and five women. The probability distribution for the number of women X is P(0) = 2/11, P(1) = 5/11, and P(2) = 4/11. Find the expected number of women.

Try it first, then show the solution
  1. E(X) = 0 × (2/11) + 1 × (5/11) + 2 × (4/11).
  2. Add the weighted values.

Answer: The expected number of women is 13/11.

Worked example

A blue ball has probability 0.25 of being selected in each experiment. Find the expected number of blue balls in 30 experiments with replacement.

Try it first, then show the solution
  1. Expected value = N × p.
  2. Expected value = 30 × 0.25 = 7.50.

Answer: The expected value is 7.50, approximately 8.

Worked example

A fair six-sided die is thrown. Find the expected value of its outcomes.

Try it first, then show the solution
  1. Each outcome 1, 2, 3, 4, 5, and 6 has probability 1/6.
  2. E(X) = (1 + 2 + 3 + 4 + 5 + 6)/6 = 7/2.

Answer: The expected value is 3.5.

Using a cumulative distribution to find probabilities

Definition

Cumulative distribution function
F(x) gives the cumulative probability up to the value x.

For a discrete random variable, find the probability at a value by subtracting the previous cumulative probability from the current one. The first probability is the first cumulative value.

Steps for converting cumulative probabilities

  • For the first value, use its cumulative probability as its probability.
  • For each later value, subtract the previous cumulative probability from the current cumulative probability.
  • Use the resulting probabilities to calculate the mean and variance.

Worked example

The cumulative values for X = 1, 2, 3, 4, 5, 6 are 1/6, 2/6, 3/6, 4/6, 5/6, 6/6. Find the mean and variance.

Try it first, then show the solution
  1. Subtract consecutive cumulative values. Each probability is 1/6.
  2. E(X) = (1 + 2 + 3 + 4 + 5 + 6)/6 = 7/2.
  3. E(X²) = (1² + 2² + 3² + 4² + 5² + 6²)/6 = 91/6.
  4. V(X) = 91/6 − (7/2)² = 35/12.

Answer: The mean is 7/2 and the variance is 35/12.

Expected value for continuous random variables

Expected value for a continuous random variable

E(X) = ∫ x f(x) dx

x is a value of the random variable, and f(x) is its probability density function; integrate over the range of X.

Worked example

A commuter waits for a train, with density f(x) = 1/25 for 0 < x < 25. Find the expected waiting time.

Try it first, then show the solution
  1. E(X) = ∫₀²⁵ x × (1/25) dx.
  2. Evaluate the integral over 0 to 25.

Answer: The expected waiting time is 12.5 minutes.

Worked example

The life of a radio tube has density f(x) = (1/100)e^(−x/100) for x ≥ 0. Find its mean life.

Try it first, then show the solution
  1. Use E(X) = ∫ x f(x) dx over the range x ≥ 0.
  2. Evaluate the integral for the given density.

Answer: The mean life is 7,358 hours.

Remember: For a continuous random variable, multiply x by its density and integrate over the stated range.

Discrete and continuous random variables

Definition

Discrete random variable
A variable that can take a finite number of possible values or an infinite sequence of countable real numbers.

Definition

Continuous random variable
A variable that can take any value, including fractions, in an interval.

Two types of random variable

Discrete random variableContinuous random variable
Takes a finite or countable set of values.Can take any value in an interval.
Described by a probability mass function, or p.m.f.Described by a probability density function, or p.d.f.

A random variable assigns numerical values to outcomes in a sample space. A probability distribution lists outcomes or values and their probabilities. For a discrete random variable, the probabilities add up to one.

Conditions for a discrete probability mass function

p(xi) ≥ 0 and ∑ p(xi) = 1

p(xi) is the probability of the value xi; the sum is over all possible values.

Discrete distribution function

F(x) = P(X ≤ x) = ∑ p(xi), for xi ≤ x

F(x) is the probability that X is at most x; p(xi) is the probability of each value xi.

Remember: A discrete probability is never negative, and all probabilities in a discrete distribution sum to 1.

Probability density and cumulative distribution functions

Definition

Probability density function (p.d.f.)
A function whose integral over an interval gives the probability that a continuous random variable lies in that interval.
Probability for a continuous random variable

P(t1 ≤ X ≤ t2) = ∫ from t1 to t2 fX(x) dx

fX(x) is the probability density function, and t1 and t2 are the interval limits.

Conditions for a probability density function

f(x) ≥ 0 and ∫ from −∞ to ∞ f(x) dx = 1

The density is non-negative, and its integral over the full range is 1.

Definition

Cumulative distribution function (c.d.f.)
The function F(x) = P(X ≤ x), which gives the probability that X is at most x.

Key properties of a c.d.f.

  • 0 ≤ F(x) ≤ 1.
  • F(x) approaches 0 as x approaches −∞ and approaches 1 as x approaches ∞.
  • F(x) does not decrease as x increases.
  • For a continuous random variable, F(x) = ∫ from −∞ to x f(t) dt.
  • For a continuous random variable, f(x) is the derivative of F(x).

For a continuous random variable, the probability of falling between a and b is the area under the density function from a to b. It can also be found using the c.d.f.: P(a ≤ X ≤ b) = F(b) − F(a).

Remember: A p.d.f. gives probabilities over intervals through integration; the c.d.f. gives the probability up to a value.

Expected value and variance

Definition

Expected value
The weighted average of the values that a random variable may take.
Expected value of a discrete random variable

E(X) = ∑ x p(x)

x is a possible value of X, and p(x) is the probability of that value.

Expected value of a continuous random variable

E(X) = ∫ from −∞ to ∞ x f(x) dx

x is a possible value of X, and f(x) is its probability density function.

Definition

Variance
The weighted average of the squared differences between a random variable's values and its expected value.
Variance of a discrete random variable

Var(X) = ∑ [x − E(X)]² p(x)

x is a possible value, E(X) is the expected value, and p(x) is the probability of x.

Variance of a continuous random variable

Var(X) = ∫ from −∞ to ∞ [x − E(X)]² f(x) dx

x is a possible value, E(X) is the expected value, and f(x) is the probability density function.

The expected value is also the mean of the random variable. Variance measures squared deviations from that mean. The expected value of [X − E(X)]² is the variance.

Remember: For expectation, multiply each value by its probability and add; variance uses squared deviations from the expected value.

Variance and Standard Deviation

Variance measures how far the values of a random variable vary around its mean. The standard deviation is the positive square root of the variance. The text denotes the variance by sX², Var X, or V(X).

Variance

Var X = E(X²) − [E(X)]²

E(X) is the expected value of X, and E(X²) is the expected value of X².

Variance for a discrete random variable

Var X = ∑ x² p(x) − [E(X)]²

x is a value of X, p(x) is its probability, and E(X) is the expected value of X.

Variance for a continuous random variable

Var X = ∫ x² f(x) dx − [E(X)]²

f(x) is the density function of X, and E(X) is the expected value of X.

Definition

Standard deviation
The standard deviation of X, denoted by sX, is the positive square root of Var X.

Remember: Standard deviation is the positive square root of variance.

Properties of Mathematical Expectation and Variance

Properties of mathematical expectation

  • E(a) = a, where a is a constant.
  • E(aX) = aE(X).
  • E(aX + b) = aE(X) + b, where a and b are constants.
  • If X ≥ 0, then E(X) ≥ 0.

Properties of variance

  • V(a) = 0.
  • V(aX + b) = a² V(X).

Remember: Adding a constant changes the expectation, but it does not change the variance.

Raw Moments and Central Moments

Raw moments are calculated using powers of X. Central moments are calculated using powers of the difference between X and its mean, mX.

rth raw moment

m′r = E(Xʳ)

For a discrete random variable, m′r = ∑ xʳ p(x). For a continuous random variable, m′r = ∫ xʳ f(x) dx.

rth central moment

mr = E[(X − mX)ʳ]

X is the random variable, and mX is the mean of X.

First and second moments

  • m′1 = E(X) = mX, the mean of X.
  • m1 = E[X − mX] = 0.
  • m2 = E[(X − mX)²], the variance of X.

Remember: The first central moment is 0, and the second central moment is the variance.

Questions students ask

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

What is a random variable?

A random variable is a real-valued function defined on the sample space of a random experiment. It assigns a number to each outcome. For example, when a coin is tossed three times, the number of heads is a random variable.

What are the possible values of the number of heads in three coin tosses?

If X is the number of heads in three coin tosses, its possible values are 0, 1, 2 and 3. The value depends on the outcome: TTT gives 0, while HHH gives 3.

What is a discrete random variable?

A discrete random variable can take a finite number of possible values or an infinite sequence of countable real numbers. Examples include marks in a test and the number of telephone calls at a particular time.

What is a probability mass function?

A probability mass function gives the probability that a discrete random variable takes a particular value. It is written as p(x) = P(X = x). Its probabilities must be non-negative and must add up to 1.

What are the conditions for a probability mass function?

Every probability in a probability mass function must be at least 0. The probabilities for all possible values of the discrete random variable must add up to 1. Checking both conditions confirms that the table can represent a probability mass function.

How do you find a cumulative distribution function for a discrete random variable?

For each value x, add the probabilities of all outcomes where the random variable is at most x. In symbols, FX(x) = P(X ≤ x). The results form a running total, so they stay the same or increase as x increases.

Show 18 more questions

What is a continuous random variable?

A continuous random variable can take any value in an interval, including integral and fractional values. Examples in the text include speed, height, weight, electricity consumption, and the time taken for a journey.

What conditions must a probability density function satisfy?

A probability density function must be non-negative for every x. Its integral over the full range from −∞ to ∞ must equal 1. To find the probability that X lies in an interval, integrate the density over that interval.

How is the probability of an interval found using a continuous distribution function?

If F is the cumulative distribution function, the probability that X lies between a and b is P(a ≤ X ≤ b) = F(b) – F(a). For a continuous variable, this is also found by integrating the density from a to b.

What is the expected value of a random variable?

The expected value is the probability-weighted average of the values a random variable can take. For a discrete variable, E(X) = ∑ x p(x). For a continuous variable, E(X) = ∫ from −∞ to ∞ x f(x) dx, provided the series or integral exists.

How do you calculate the variance of a random variable?

Variance is the expected squared distance from the mean. For a discrete variable, Var(X) = ∑ [x − E(X)]² p(x). For a continuous variable, Var(X) = ∫ from −∞ to ∞ [x − E(X)]² f(x) dx. It can also be written as E(X²) − [E(X)]².

What is the difference between variance and standard deviation?

Variance measures how spread out a random variable’s values are around its mean, using squared deviations. The standard deviation, denoted by sX, is the positive square root of the variance: sX = √Var(X).

What is the rth moment of a random variable?

The rth moment is the expected value of the rth power of a random variable. It is denoted by m′r and equals E(Xʳ). For a discrete variable it is ∑ xʳp(x); for a continuous variable it is ∫ xʳf(x) dx, provided the expectation exists.

How do you find the mean of a discrete random variable?

Multiply each possible value x by its probability P(x), then add the products. The formula is E(X) = Σ x P(x). This probability-weighted average is the expected value of the random variable.

How do you calculate variance using mathematical expectation?

First find E(X²), the expected value of the squared outcomes. Then subtract the square of the mean, [E(X)]². The formula is V(X) = E(X²) − [E(X)]².

How do you find an expected number of successes in repeated experiments?

Multiply the number of experiments by the probability of success in one experiment. The formula is expected value = N × p, where N is the number of experiments and p is the probability of success.

How do you calculate the expected value of a continuous random variable?

Multiply each value x by the probability density function f(x), then integrate over the range of the random variable. In formula form, E(X) = ∫ x f(x) dx, with the limits taken from the stated range.

What is the difference between a probability mass function and a probability density function?

A probability mass function gives probabilities for the possible values of a discrete random variable. A probability density function describes a continuous random variable; its integral over an interval gives the probability that the variable lies in that interval.

How do you find the expected value of a discrete random variable?

Multiply each possible value x by its probability p(x), then add the products. The formula is E(X) = ∑ x p(x). This weighted average is the mean or expected value of the random variable.

What does the cumulative distribution function tell you?

The cumulative distribution function F(x) gives the probability that the random variable X is less than or equal to x. It is written as F(x) = P(X ≤ x), and its values stay between 0 and 1.

What is the variance of a random variable?

Variance is the expected value of the squared difference between the random variable and its mean. For a discrete variable, Var(X) = ∑ [x − E(X)]² p(x). It describes weighted squared deviations from the expected value.

What is the relation between variance and standard deviation?

The standard deviation of X is the positive square root of its variance. If the variance is denoted by Var X, then the standard deviation is sX = √Var X.

What is the variance of aX + b?

The variance property is V(aX + b) = a² V(X), where a and b are constants. This means the multiplier a affects the variance through its square, while adding the constant b does not affect it.

What are the first and second central moments?

The first central moment is m1 = E[X − mX] = 0. The second central moment is m2 = E[(X − mX)²], and it is the variance of X.

Book back answers

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

Choose the correct Answer

  1. Value which is obtained by multiplying possible values of random variable with probability of occurrence and is equal to weighted average is called

    • (a) discrete value
    • (b) weighted value
    • (c) expected value
    • (d) cumulative value
    Try it, then show the answer

    (c) expected value

    The expected value is a weighted average of the values a random variable may assume, with probabilities as weights.

    From the book: “The expected value is a weighted average of the values of a random variable may assume.”

  2. Probability which explains x is equal to or less than particular value is classified as

    • (a) discrete probability
    • (b) cumulative probability
    • (c) marginal probability
    • (d) continuous probability
    Try it, then show the answer

    (b) cumulative probability

    A cumulative distribution function gives the probability that X is less than or equal to a specified value.

    From the book: “The discrete cumulative distribution function or distribution function of a real valued discrete random variable X”

  3. Given E(X) = 5 and E(Y) = -2, then E(X – Y) is

    • (a) 3
    • (b) 5
    • (c) 7
    • (d) –2
    Try it, then show the answer

    (c) 7

    By linearity of expectation, E(X – Y) = E(X) – E(Y) = 5 – (–2) = 7.

    From the book: “E aX b aE X b ( ) ( ) + = + , where ‘a’ and ‘b’ are constants.”

  4. A variable that can assume any possible value between two points is called

    • (a) discrete random variable
    • (b) continuous random variable
    • (c) discrete sample space
    • (d) random variable
    Try it, then show the answer

    (b) continuous random variable

    A continuous random variable can take any value in an interval.

    From the book: “A random variable X which can take on any value (integral as well as fraction) in the interval is called continuous random variable.”

All 17 book back answers →

Practice

Question 1 of 4Score 0

A variable counts the number of heads in several coin tosses. Which type of random variable is it?

Exam questions

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

Define a random variable. (2 marks)2 marks

A random variable is a real-valued function defined on a sample space, whose possible values are numerical outcomes of a random experiment.

Distinguish between discrete and continuous random variables. (2 marks)2 marks

A discrete random variable has finitely many or countably many possible values. A continuous random variable can take any value in an interval, including fractional values.

What is mathematical expectation, and what does variance measure? (2 marks)2 marks

Mathematical expectation is the probability-weighted average of the values of a random variable. Variance measures the spread or variability of those values.

State the probability conditions for a discrete probability mass function. (2 marks)2 marks

Each probability must be non-negative, and the sum of the probabilities over all possible values must be 1.

Watch out

  • Do not confuse a random variable, which assigns numerical values to outcomes, with the outcomes themselves.
  • Do not treat a probability mass function and a probability density function as interchangeable: the lesson uses the former for discrete variables and the latter for continuous variables.

Still stuck on this lesson?

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

Ask AI about this topic →