PYQ Vault

HSC Maths · Probability Distributions

Random Variables: Discrete and Continuous

A random variable gives one real number to every outcome of a random experiment; it is discrete when its values can be counted and continuous when its values fill an interval.

Why this matters

6 questions, all from the textbook and none from board papers so far: writing the possible values of a random variable (Exercise 7.1 Q.1 and Q.2, and the worked examples of 7.1 and 7.3.2) and naming a variable as discrete or continuous with its range (Miscellaneous Exercise 7). Every later page starts by writing the values of X, so this is the first line of most board answers in the chapter.

Concept 1 of 2: Random variable, its range and the event X = x

Often we do not care about the outcome of an experiment itself but about a number got from it: when two coins are tossed we may only want the number of heads. A rule that gives one real number to every outcome is a random variable. Its value changes from outcome to outcome, which is why it is a variable, and it comes from a random experiment, which is why it is random.

Definition

  • A random variable is a real-valued function defined on the sample space SS of a random experiment: X:S→RX : S \to \mathbb{R}.
  • It is written with a capital letter (XX, YY, ZZ); a particular value it takes is written with a small letter xx.
  • The set of possible values of XX is called the range of XX.
  • The set of all outcomes for which XX takes the value xx is the event [X=x][X = x].
  • Every outcome gets exactly one value, but several outcomes may share a value.
  • Several random variables can be defined on the same sample space, and their values may be negative or fractions.

Random variable

X:S→R,[X=x]=the set of outcomes whose value is xX : S \to \mathbb{R}, \qquad [X = x] = \text{the set of outcomes whose value is } x

Worked example

A family has two children. Using BB for a boy and GG for a girl, write the sample space. Let XX be the number of girls. Find XX for every outcome, the range of XX and the event [X=1][X = 1].
Practise this conceptself-check · 3 quick reps

The same idea in a textbook question:

Balbharati textbook · Ex 7.1 Q.2Easy

Example 1 · Probability Distributions · Random Variables and Their Types

An urn contains 5 red and 2 black balls. Two balls are drawn at random. XX denotes number of black balls drawn. What are possible values of XX ?

Calling the outcome the value

HTHT is an outcome; the value of XX is the number given to it. Write X(HT)=1X(HT) = 1, not X=HTX = HT.

Missing a possible value

Write out the outcomes first and read the value of XX for each. The value 0 (no success at all) is the one most often left out of the range.

Concept 2 of 2: Discrete and continuous random variables

Ask how a value of the variable is obtained. If you get it by counting (children, cars, defective bulbs), the variable is discrete. If you get it by measuring (height, weight, time, speed), it can take every value in an interval and is continuous.

Definition

  • Discrete: the number of possible values is finite or countably infinite. The values are obtained by counting.
  • Continuous: the possible values form an interval of real numbers. The values are obtained by measurement.
  • A board answer names the type and writes the range: a list such as {0,1,2,…}\{0, 1, 2, \ldots\} for a discrete variable, an interval such as (0,∞)(0, \infty) for a continuous one.
PointDiscrete random variableContinuous random variable
Possible valuesFinite or countably infinite in numberEvery number of an interval
How a value is obtainedBy countingBy measurement
Examples from the textbookNumber of children in a family, number of cars sold by a dealerHeights of trees in a forest, daily temperature of a city, speed of a vehicle
Probability is described byThe probability mass function, which gives P[X=x]P[X = x] for each valueThe probability density function, whose area over an interval gives the probability
Range written asA list, such as {0,1,2,3}\{0, 1, 2, 3\}An interval, such as (0,60)(0, 60)
Practise this conceptself-check · 2 quick reps

The same idea in a textbook question:

Balbharati textbook · Misc 7 II (1)Easy

Example 2 · Probability Distributions · Random Variables and Their Types

Identify the random variable as either discrete or continuous in each of the following. Write down the range of it. (i) An economist is interested the number of unemployed graduate in the town of population 1 lakh. (ii) Amount of syrup prescribed by physician. (iii) The person on the high protein diet is interested gain of weight in a week. (iv) 20 white rats are available for an experiment. Twelve rats are male. Scientist randomly selects 5 rats number of female rats selected on a specific day. (v) A highway safety group is interested in studying the speed (km/hrs) of a car at a check point.

Calling a rounded measurement discrete

A weight written as 52 kg is still a measurement; the true value can be anything in an interval. The variable is continuous.

Leaving out the range

A question that says 'write down the range' carries marks for it. After naming the type, write the set of values or the interval.

Summary — formulas & gotchas at a glance

A revision cheat-sheet for the formulas and gotchas above. Click any concept name to jump back to its full explanation.

Formulas (1)

  • Random variable, its range and the event X = x

    Random variable

    X:S→R,[X=x]=the set of outcomes whose value is xX : S \to \mathbb{R}, \qquad [X = x] = \text{the set of outcomes whose value is } x

Reference tables (1)

Discrete and continuous random variables5 rows
PointDiscrete random variableContinuous random variable
Possible valuesFinite or countably infinite in numberEvery number of an interval
How a value is obtainedBy countingBy measurement
Examples from the textbookNumber of children in a family, number of cars sold by a dealerHeights of trees in a forest, daily temperature of a city, speed of a vehicle
Probability is described byThe probability mass function, which gives P[X=x]P[X = x] for each valueThe probability density function, whose area over an interval gives the probability
Range written asA list, such as {0,1,2,3}\{0, 1, 2, 3\}An interval, such as (0,60)(0, 60)

Watch out for (4)

Test yourself on Probability Distributions

10 past MH HSC 12 questions from this chapter, timed at 15 minutes and marked the way the exam marks it. You see your score and every answer the moment you finish. Free to start.