Skip to content
  1. IB Question Bank
  2. Maths AA
  3. Statistics & Probability
Topic 4.14 · HL only

Random variables + effects linear transformations (mean, variance): notes and practice questions

Summary
  • Random variables can be discrete (countable) or continuous (measurable).
  • For discrete variables, use Probability Mass Functions (PMF) to define probabilities, and calculate mean and variance using summations.
  • For continuous variables, use Probability Density Functions (PDF) where probabilities are areas under the curve, and calculate mean and variance using integrals.
  • Linear transformations Y=aX+bY = aX + b affect the mean by E(Y)=aE(X)+bE(Y) = aE(X) + b and the variance by Var(Y)=a2Var(X)Var(Y) = a^2 Var(X).
  • Standard deviation is affected by the absolute value of aa: σ(Y)=∣a∣σ(X)\sigma(Y) = |a| \sigma(X).
  • Key distributions like Binomial and Normal have specific formulas for mean and variance.

How it is examined

The only place in AA statistics where calculus is required, so it pulls in topic 5 and can be set on Paper 1. Standard chain: use ∫f=1\int f = 1 to find a constant, then mode by differentiating, then median by solving an integral equation. The a2a^2 in Var(aX+b)\mathrm{Var}(aX+b) is the classic slip. 7 to 10 marks across parts.

Given in the booklet

Var(X)=E(X2)−[E(X)]2\mathrm{Var}(X) = \mathrm{E}(X^2) - [\mathrm{E}(X)]^2 and the integral forms of E(X)\mathrm{E}(X) and Var(X)\mathrm{Var}(X) for a continuous variable are given.

Key ideas
  • Variance of a discrete random variable.
  • Continuous random variables and their probability density functions.
  • Mode and median of continuous random variables.
  • Mean, variance and standard deviation of both discrete and continuous random variables.

Linking questions

  • Other contexts: the Poisson distribution may be appropriate for the exploration, but it is not on the AA syllabus and must not appear in a question.

Practice questions

21 questions · 1 easy · 15 medium · 5 hard
Showing 20 of 20

Question 1

EasyPaper 1 · no calculator3 marks

The mean monthly salary of the employees at a company is 3500andthestandarddeviationis3500 and the standard deviation is 450. In December, every employee receives a Christmas bonus of $200. Find the new mean and standard deviation of the employees' income for December.

Question 2

MediumPaper 1 · no calculator8 marks
(a)

The continuous random variable XX has probability density function

f(x)={k1+4x2,0≤x≤120,otherwise.f(x) = \begin{cases} \frac{k}{1+4x^2}, & 0 \le x \le \frac{1}{2} \\ 0, & \text{otherwise.} \end{cases}

(a) Find the value of kk.

[4]
(b)

(b) Find E(X)E(X).

[4]

Question 3

HardPaper 2 · calculator19 marks
(a)

A new automated manufacturing process produces components. The time, in minutes, taken for a critical assembly step is modelled by a continuous random variable XX, with a probability density function defined by

f(x)={2π9−x20≤x≤30,otherwise.f(x) = \begin{cases} \frac{2}{\pi \sqrt{9-x^2}} & 0 \leq x \leq 3 \\ 0, & \text{otherwise.} \end{cases}

Find the exact value of E(X)E(X).

[5]
(b)

Find P(X<1.5)P(X < 1.5).

[2]
(c)

The assembly step is considered "efficient" if it takes less than 1.5 minutes. Each assembly step is independent. Determine the least number of assembly steps required to be 99% sure of at least one efficient step.

[3]
(d)

Ten assembly steps were conducted.

Find the probability that exactly three steps were efficient.

[2]
(e)

Write down the number of ways these three efficient steps could have occurred consecutively in a batch of 10.

[1]
(f)(i)

Now consider a batch of nn assembly steps where it is given that exactly three efficient steps have occurred.

Write down an expression for the number of ways these three efficient steps could have occurred consecutively.

[1]
(f)(ii)

Find the greatest value of nn such that the probability of three consecutive efficient steps is more than 0.05, given that exactly three efficient steps have occurred in the batch.

[5]

Question 4

MediumPaper 1 · no calculator5 marks
(a)

A continuous random variable YY has probability density function gg defined by

g(y)={14c,−c≤y≤3c0,otherwiseg(y)=\begin{cases} \frac{1}{4c}, & -c \le y \le 3c \\ 0, & \text{otherwise} \end{cases}

where cc is a positive real number.

(a) State E(Y)E(Y) in terms of cc.

[1]
(b)

(b) Use integration to find Var(Y)Var(Y) in terms of cc.

[4]

Question 5

HardPaper 1 · no calculator14 marks
(a)(i)

A marine biologist is studying a species of sea turtle. She collects data on the carapace length, LL cm, and mass, MM kg, for 30 turtles. The Pearson's product-moment correlation coefficient for this data is found to be r=−0.92r = -0.92. The equation of the regression line of MM on LL is M=−2.5L+150M = -2.5L + 150.

The biologist discovers her measuring tape was misaligned, and all length measurements are 2 cm too short. Her weighing scale was also faulty, showing a mass 1.5 kg less than the true mass for each turtle. The data is corrected for these errors.

(i) State the new value of the Pearson's product-moment correlation coefficient, rr.

[1]
(a)(ii)

(ii) State the new value for the gradient of the regression line of MM on LL.

[1]
(a)(iii)

(iii) Briefly justify your answers to part (a)(i) and (a)(ii).

[2]
(b)(i)

The biologist decides to present her findings to an international conference and converts her original measurements to different units. She converts the original length measurements from cm to mm, and the original mass measurements from kg to g.

(i) State the new value of rr.

[1]
(b)(ii)

(ii) Find the new value for the gradient of the regression line of mass on length.

[2]
(b)(iii)

(iii) Briefly justify your answer for the new gradient.

[2]
(c)(i)

For a different analysis, the biologist defines a "size index", SS, as S=200−LS = 200 - L. She investigates the relationship between the size index SS and the original mass MM in kg.

(i) Find the value of rr for the correlation between SS and MM.

[2]
(c)(ii)

(ii) Find the gradient of the regression line of MM on SS.

[2]
(c)(iii)

(iii) Describe the linear correlation between the size index SS and the mass MM.

[1]

Question 6

MediumPaper 1 · no calculator7 marks
(a)

A biologist records the number of eggs in the nests of a certain species of bird. The results for 25 nests are shown in the following frequency table.

Number of eggs (x)12345
Frequency (f)p6q42

It is given that the mean number of eggs per nest is 2.6.

(a) Find the value of p and the value of q.

[5]
(b)

The biologist enters the data into a competition. The competition score is calculated using the formula S=10x−5S = 10x - 5, where xx is the number of eggs in a nest.

(b) Find the mean competition score.

[2]

Question 7

HardPaper 1 · no calculator12 marks
(a)

A continuous random variable XX has probability density function

f(x)={kxe−xx≥00otherwisef(x) = \begin{cases} kx e^{-x} & x \ge 0 \\ 0 & \text{otherwise} \end{cases}

Show that k=1k = 1.

[4]
(b)

Find the variance of XX.

[8]

Question 8

MediumPaper 1 · no calculator21 marks
(a)

A new coffee shop records the number of customers, cc, per hour during its 120 opening hours in a week. The number of customers per hour is shown in the following frequency table.

Number of customers (cc)Frequency (hours)
0<c≤100 < c \le 1015
10<c≤2010 < c \le 2028
20<c≤3020 < c \le 30kk
30<c≤4030 < c \le 4022
40<c≤5040 < c \le 5013

(a) Find the value of kk.

[2]
(b)

(b) Write down the modal class.

[1]
(c)

The following cumulative frequency diagram also displays these data.

A cumulative frequency diagram showing the number of customers per hour. The x-axis is 'Number of customers (c)' from 0 to 50. The y-axis is 'Cumulative frequency' from 0 to 120. The curve starts at (0,0) and ends at (50,120), passing through points approximately (10,15), (20,43), (30,85), (40,107).

(c) Use the cumulative frequency curve to estimate the median number of customers per hour.

[2]
(d)

(d) The coffee shop is considered 'busy' when there are more than 35 customers. Use the cumulative frequency curve to estimate the number of hours the coffee shop was busy.

[3]
(e)

The coffee shop manager wants to survey customers about their experience.

(e) State one disadvantage of surveying only the customers who arrive between 8 am and 9 am on a Monday.

[1]
(f)

(f) Describe how the manager could use systematic sampling to survey customers throughout a single day.

[2]
(g)

The total number of customers for the week was 2900. The following box and whisker diagram displays the amount of money, in USD, spent by customers during their visit.

A box and whisker diagram showing the amount spent by customers. The minimum is 2, lower quartile (Q1) is 4.50, median is 8, upper quartile (Q3) is 16, and the maximum is 25.

(g) Estimate the number of customers who spent between $4.50 and $16.

[3]
(h)

(h) The top 25% of customers spent more than dd USD. Find the value of dd.

[2]
(i)

The following week, a new promotion is introduced, which is expected to attract an additional 3 customers per hour.

(i) Calculate the new mean number of customers per hour.

[3]
(j)

(j) State, with a reason, the effect this increase would have on the range of the number of customers per hour.

[2]

Question 9

HardPaper 3 · calculator25 marks
(a)(i)

This question asks you to investigate the motion of a buoy bobbing up and down in the water.

A buoy bobs up and down in the water.

A fixed origin O\text{O} is the equilibrium position of the buoy (the water level).

The buoy's displacement, yy metres, from O\text{O} at time tt seconds is given by

y=6sin⁡(2t+π6), for 0≤t≤π.y = 6\sin\left(2t + \frac{\pi}{6}\right), \text{ for } 0 \le t \le \pi.

Determine

the amplitude of the buoy's motion;

[1]
(a)(ii)

the buoy's initial displacement from O\text{O};

[2]
(a)(iii)

the value of tt when the buoy first passes through O\text{O}.

[2]
(b)

Now consider the general case of a buoy bobbing up and down.

The buoy's acceleration is always directed towards a fixed origin O\text{O} at its equilibrium position.

The buoy's acceleration, aa, at a displacement, yy, from O\text{O} satisfies the differential equation

a=−ω2y, where ω>0.a = -\omega^2 y, \text{ where } \omega > 0.

The buoy's displacement, yy, from O\text{O} at time tt is given by

y=Hsin⁡(ωt+c), where t≥0, H,ω>0 and −π≤c≤π.y = H\sin(\omega t + c), \text{ where } t \ge 0,\ H, \omega > 0 \text{ and } -\pi \le c \le \pi.

By finding expressions for dydt\frac{\mathrm{d}y}{\mathrm{d}t} and d2ydt2\frac{\mathrm{d}^2y}{\mathrm{d}t^2}, verify that y=Hsin⁡(ωt+c)y = H\sin(\omega t + c) satisfies the differential equation a=−ω2ya = -\omega^2 y.

[2]
(c)(i)

Use the chain rule to show that a=vdvdya = v\frac{\mathrm{d}v}{\mathrm{d}y}, where vv is velocity.

[1]
(c)(ii)

By solving the differential equation, vdvdy=−ω2yv\frac{\mathrm{d}v}{\mathrm{d}y} = -\omega^2 y, show that v2=ω2(H2−y2)v^2 = \omega^2(H^2 - y^2).

[5]
(c)(iii)

Hence, or otherwise, find the buoy's maximum speed.

[2]
(d)

The continuous random variable YY denotes the buoy's displacement, yy, from O\text{O} at time tt.

The probability density function ff of YY is defined by

f(y)={1πH2−y2,−H<y<H0,otherwise.f(y) = \begin{cases} \frac{1}{\pi\sqrt{H^2 - y^2}}, & -H < y < H \\ 0, & \text{otherwise.} \end{cases}

Show that P(0≤Y≤H32)=13\mathrm{P}\left(0 \le Y \le \frac{H\sqrt{3}}{2}\right) = \frac{1}{3}.

[4]
(e)

For −H<y<H-H < y < H, the function f(y)f(y) can be expressed in the form m∣v(y)∣\frac{m}{|v(y)|}, where m>0m > 0 and v(y)v(y) is the buoy's velocity at a displacement, yy, from O\text{O}.

Find the value of mm.

[3]
(f)(i)

Determine E(Y)\mathrm{E}(Y), justifying your answer.

[2]
(f)(ii)

Interpret the result found in part (f)(i) in the context of the buoy's motion.

[1]

Question 10

MediumPaper 1 · no calculator8 marks
(a)

A spinner has four sectors. When the spinner is spun, the score, Y, is a discrete random variable. The probability distribution of Y is given in the following table:

y-1012
P(Y=y)k2k0.5-k0.5-2k

(a) Find the range of possible values of k.

[2]
(b)

(b) In the case where k=0.1k = 0.1, determine Var⁡(3Y+1)\operatorname{Var}(3Y+1).

[6]

Question 11

HardPaper 1 · no calculator8 marks
(a)

The continuous random variable YY has the following probability density function:

g(y)={a4−y2,0≤y≤10,otherwise g(y) = \begin{cases} \frac{a}{\sqrt{4 - y^2}}, & 0 \leq y \leq 1 \\ 0, & \text{otherwise} \end{cases}

(a) Determine the value of aa.

[4]
(b)

bb Find the expected value E(Y)E(Y)

[4]

Question 12

MediumPaper 2 · calculator6 marks
(a)

A manufacturing process produces components whose defect rate, XX, is a continuous random variable. The probability density function for the defect rate XX is modelled by

fn(x)={(n+1)xn,0≤x≤10,otherwisef_n(x) = \begin{cases} (n+1)x^n, & 0 \le x \le 1 \\ 0, & \text{otherwise} \end{cases}

where n∈R,n≥0n \in \mathbb{R}, n \ge 0 is a parameter reflecting the stringency of the quality control.

(a) Show that the expected defect rate, E(X)E(X), is given by E(X)=n+1n+2E(X) = \frac{n+1}{n+2}.

[2]
(b)

(b) Show that the variance of the defect rate, Var(X)Var(X), is given by Var(X)=n+1(n+2)2(n+3)Var(X) = \frac{n+1}{(n+2)^2(n+3)}.

[4]

Question 13

MediumPaper 2 · calculator5 marks
(a)

A quality control manager inspects a batch of 40 components for defects. The number of defective components, XX, follows a binomial distribution, X∼B(40,p)X \sim B(40, p). The variance of the number of defective components is known to be 8.4.

(a) Find the possible values of pp.

[3]
(b)

The cost of repairing the batch of components, YY, is given by the formula Y=7−4XY = 7 - 4X (in dollars).

(b) Find Var(YY).

[2]

Question 14

MediumPaper 1 · no calculator5 marks
(a)

A set of daily temperature readings for a city, recorded in degrees Celsius (CC), has a mean of 2020 and a standard deviation of 33. These temperatures are converted to degrees Fahrenheit (FF) using the formula F=95C+32F = \frac{9}{5}C + 32.

(a) Find the mean of the temperatures in degrees Fahrenheit.

[2]
(b)

(b) Find the standard deviation and the variance of the temperatures in degrees Fahrenheit.

[3]

Question 15

MediumPaper 2 · calculator8 marks
(a)

A research team is studying the relationship between the average daily temperature (xx in ∘C^\circ C) during a growing season and the average height of a specific plant species (yy in cm) at harvest. They collected data over seven growing seasons.

Average Daily Temperature (xx in ∘C^\circ C)Plant Height (yy in cm)
18187272
20207878
22228585
24249090
26269696
2828102102
3030108108

(a) Write down the equation of the yy on xx regression line for this data, giving your coefficients to three significant figures.

[3]
(b)

(b) Estimate the average plant height if the average daily temperature during the growing season was 25∘C25^\circ C.

Give your answer to one decimal place.

[2]
(c)(i)

(c) The average daily temperatures were converted from Celsius to Fahrenheit using the formula F=95C+32F = \frac{9}{5}C + 32.

For each of the following quantities, state whether it would change or remain the same:

(i) the mean of the average daily temperatures

[1]
(c)(ii)

(ii) the standard deviation of the average daily temperatures

[1]
(c)(iii)

(iii) the correlation coefficient, rr

[1]

Question 16

MediumPaper 2 · calculator8 marks
(a)

A new model of industrial machine has an operating lifetime XX (in years) which is modelled by a continuous random variable with the following probability density function:

f(x)={150≤x<2−140x+142≤x≤60otherwise.f(x) = \begin{cases} \frac{1}{5} & 0 \le x < 2 \\ -\frac{1}{40}x + \frac{1}{4} & 2 \le x \le 6 \\ 0 & \text{otherwise.} \end{cases}

(a) Calculate the expected operating lifetime of the machine, E(X)E(X).

[3]
(b)

(b) The manufacturer offers an extended warranty for kk years. If the expected value of (k−3X)(k - 3X) is 00, determine the value of kk.

[2]
(c)

(c) Find the median operating lifetime of the machine.

[3]

Question 17

MediumPaper 1 · no calculator6 marks
(a)

A farmer has nn plots of land. The total yield of wheat from all plots is 7200 kg and the mean yield per plot is 120 kg.

(a) Find the number of plots, nn.

[2]
(b)(i)

The standard deviation of the yield per plot is 15 kg. The farmer decides to report the yield in a different unit, where all yield values are multiplied by 2.

(b) (i) Write down the value of the new mean yield.

[1]
(b)(ii)

(ii) Find the value of the new variance.

[3]

Question 18

MediumPaper 2 · calculator5 marks
(a)

A spinner used in a children's board game can land on one of six sectors, with scores 0, 1, 2, 3, 4, and 5. Let S be the discrete random variable representing the score from a single spin. The probability distribution of S is given in the table below.

ss012345
P(S=s)\text{P}(S=s)0.100.200.300.200.150.05

(a) Calculate the value of E(S2)\text{E}(S^2).

[2]
(b)

(b) Find Var(S)\text{Var}(S).

[3]

Question 19

MediumPaper 2 · calculator7 marks
(a)

A continuous random variable TT models the time, in hours, a student spends on a specific online learning module. The probability density function is given by

f(t)={0.5t0≤t≤20otherwisef(t)=\begin{cases} 0.5t & 0 \le t \le 2 \\ 0 & \text{otherwise} \end{cases}

(a) Determine the median time, mm, spent on the module.

[3]
(b)

(b) Given that P(∣T−m∣≤a)=0.3P(|T-m| \le a) = 0.3, determine the value of aa.

[4]

Question 20

MediumPaper 1 · no calculator4 marks
(a)

A spinner is divided into eight equally sized sectors. The sectors are numbered 1, 2, 2, 3, 3, 3, 4, 4. Let XX be the discrete random variable representing the number obtained when the spinner is spun once.

(a) Complete the probability distribution table for XX.

(X)1234
(P(X=x))
[2]
(b)

(b) Find the expected value of XX.

[2]

1 more Random variables + effects linear transformations (mean, variance) question in the app

Every answer is marked mark by mark, IB-style, and the AI tutor helps when you are stuck.

Where marks are lost

  • Using your own wrong value after failing a "show that".
Free. Every IB subject.
No card, no trial that runs out. Just a free account.
  • 50 marked answers a month
    Marked mark by mark, IB-style
  • Hints and mark schemes
    On every part of every question
  • 3,000+ questions
    All 6 subjects, SL and HL, mapped to the syllabus
  • Progress that adapts
    Your Study Profile picks what to practise next

Practise this topic as a session

Pick a difficulty and paper, and FourtyFive tracks your progress on this topic as you go.

or with email
FAQ

Questions,
answered.

Can't find what you're looking for? Email our student team.

What does Random variables + effects linear transformations (mean, variance) cover in IB Maths AA?

Random variables can be discrete (countable) or continuous (measurable). For discrete variables, use Probability Mass Functions (PMF) to define probabilities, and calculate mean and variance using summations. For continuous variables, use Probability Density Functions (PDF) where probabilities are areas under the curve, and calculate mean and variance using integrals.

Is Random variables + effects linear transformations (mean, variance) SL or HL?

Random variables + effects linear transformations (mean, variance) is HL only. SL students are not examined on it.

How do I revise Random variables + effects linear transformations (mean, variance) for IB Maths AA?

Start from the core idea: random variables can be discrete (countable) or continuous (measurable). In the exam: the only place in AA statistics where calculus is required, so it pulls in topic 5 and can be set on Paper 1. Standard chain: use ∫ f = 1 to find a constant, then mode by differentiating, then median by solving an integral equation. Then practise exam-style questions, easiest first, writing out every step of your working before you check it.

How does FourtyFive help me practise Random variables + effects linear transformations (mean, variance)?

FourtyFive has 21 Random variables + effects linear transformations (mean, variance) questions. Every answer you write is marked mark by mark, IB-style, and you see where each mark was won or lost. Every part has a hint, the AI tutor helps you through the step you are stuck on, and your Study Profile picks what to practise next.

Is FourtyFive free for Random variables + effects linear transformations (mean, variance) practice?

Yes. A free account gives you 50 marked answers a month, and you do not need a card to sign up.

Can I handwrite Random variables + effects linear transformations (mean, variance) answers on an iPad?

Yes. In the FourtyFive iPad app you write your working by hand with Apple Pencil, the way you would on paper, and it is marked the same way.

Start with the IB question
bank built for you.

Free to start, no card needed. Thousands of syllabus-mapped questions, AI Examiner marking, your weakest topics first.