Learn on your own. Parents beside you. Teachers guide.

Lemonmath
Tiếng Việt

Statistics and probability

Lesson 2.4 · 45 min read · Updated

When the GDC does the arithmetic, what is left is whether you told it to do the right thing. Topic 4 is mostly a Paper 2 topic: the GDC does the arithmetic, and the marks go to choosing the right model, entering the right numbers and stating the answer in context. Two habits pay off. First, define the random variable in words and write its distribution, for example "X∼B(10,0.3)X\sim B(10, 0.3), where XX is the number of defective items". Second, write the probability statement you are calculating, such as P(X≥2)P(X\ge2), before the number. Both take very little time, and they save you from slips in the later steps.

Data and regression

Your GDC gives the mean, the standard deviation, the quartiles and the regression line. The Pearson correlation coefficient rr measures the strength of a linear relationship: close to 11 or −1-1 means strong, close to 00 means weak. The regression line of yy on xx is for predicting yy from xx, but you should only trust it within the range of the data. Why? Because outside that range we do not know whether the trend continues. A prediction inside the range is interpolation, and it is reasonable. A prediction outside it is extrapolation, and it is not.

Probability rules

P(A\cup B)=P(A)+P(B)-P(A\cap B),\qquad P(A\mid B)=\frac{P(A\cap B)}{P(B)}. These two ideas are easy to mix up. A and B are mutually exclusive if P(A\cap B)=0: they cannot both happen. A and B are independent if P(A\cap B)=P(A)P(B), equivalently P(A\mid B)=P(A): knowing B has happened does not change the probability of A.

Discrete random variables

A discrete random variable is described by a probability distribution: a list of each value x with its probability, and the probabilities add up to 1 because some value must happen. The expected value is the average we would expect over many repeats, found from E(X)=\sum xP(X=x). A game is fair when the expected gain is 0.

Binomial and normal distributions

A seed either germinates or it does not, an item is either fine or defective: situations with just two outcomes, repeated many times, are modelled by the binomial distribution. Binomial: X\sim B(n,p) counts successes in n independent trials with the same probability p. E(X)=np and \mathrm{Var}(X)=np(1-p). On the GDC, the probability of exactly k successes is the binomial pdf, and the probability of at most k is the binomial cdf. For "at least", use the complement, since finding the opposite is usually shorter than adding up every case.

Normal: X\sim N\left(\mu,\sigma^2\right) is a symmetric bell curve; heights, test scores and measurement errors often look roughly like this. The GDC gives P(a<X<b) directly. The inverse normal works the other way round: you give it the probability below, and it finds the matching value.

Similar exercises

Exercise 1 A missing value

Five numbers have mean 12. A sixth number is added and the mean becomes 13. Find the sixth number. [3 marks]

What you need and how to start

What you need: total = mean \times count.

Show solution

The mean equals the total of the numbers divided by how many there are. Five numbers with mean 12 have total 5\cdot12=60.

After the sixth number is added, there are six numbers with mean 13, so their total is 6\cdot13=78.

The sixth number is the difference of the two totals: 78-60=18.

So the sixth number is 18.

Answer. 18.

Exercise 2 Independent events

A and B are independent, with P(A)=0.3 and P(B)=0.6. Find P(A\cup B). [3 marks]

What you need and how to start

What you need: P(A\cap B)=P(A)P(B).

Show solution

Since A and B are independent, P(A\cap B)=P(A)\cdot P(B)=0.3\cdot0.6=0.18.

Using the addition formula for probabilities: P(A\cup B)=P(A)+P(B)-P(A\cap B)=0.3+0.6-0.18=0.72.

So P(A\cup B)=0.72.

Answer. 0.72.

Exercise 3 Expected value from a table
x 0 1 2
P(X=x) 0.2 0.5 0.3

Find E(X). [2 marks]

What you need and how to start

What you need: \sum xP(X=x).

Show solution

Check the distribution table: 0.2+0.5+0.3=1, so the table is valid.

The expected value of a discrete random variable is E(X)=\sum x\cdot P(X=x). Therefore E(X)=0\cdot0.2+1\cdot0.5+2\cdot0.3=0+0.5+0.6=1.1.

So E(X)=1.1.

Answer. 1.1.

Exercise 4 Binomial probability

A fair coin is tossed 8 times. Find the probability of exactly 4 heads. [2 marks]

What you need and how to start

What you need: X\sim B(8, 0.5).

Show solution

Let X be the number of heads in 8 tosses. The tosses are independent and each shows a head with probability 0.5, so X\sim B(8, 0.5).

Using the binomial probability formula P(X=k)=\binom nk\,p^k(1-p)^{n-k} with n=8, k=4, p=0.5: P(X=4)=\binom84\cdot(0.5)^4(0.5)^4=70\cdot(0.5)^8=\frac{70}{256}.

Here \binom84=\dfrac{8!}{4!\,4!}=70. Hence P(X=4)=\dfrac{70}{256}\approx0.273.

So the probability of exactly 4 heads is about 0.273.

Answer. \dfrac{70}{256}\approx0.273.

Exercise 5 Normal probability

X\sim N\left(50, 4^2\right). Find P(46<X<58). [2 marks]

What you need and how to start

What you need: the normal cdf with lower bound 46, upper bound 58, \mu=50, \sigma=4.

Show solution

For X\sim N\left(50, 4^2\right), the mean is \mu=50 and the standard deviation is \sigma=4.

We standardise using Z=\dfrac{X-\mu}{\sigma}, where Z\sim N(0, 1): z_1=\frac{46-50}{4}=-1,\qquad z_2=\frac{58-50}{4}=2.

Therefore P(46<X<58)=P(-1<Z<2)=P(Z<2)-P(Z<-1)\approx0.97725-0.15866\approx0.819.

Using a GDC (normal distribution function) with bounds 46 and 58, \mu=50, \sigma=4 gives 0.819 as well.

So P(46<X<58)\approx0.819.

Answer. \approx0.819.

Application exercises

Exercise 6 Quality control

2\% of the light bulbs made in a factory are defective. A random sample of 20 bulbs is checked. Find the probability that at most one bulb is defective. [3 marks]

What you need and how to start

What you need: X\sim B(20, 0.02) and P(X\le1).

Show solution

Let X be the number of defective bulbs among the 20 bulbs checked. Each bulb is defective with probability 0.02 and the bulbs are taken to be independent, so X\sim B(20, 0.02).

The event "at most one bulb is defective" is X\le1, so P(X\le1)=P(X=0)+P(X=1).

Using the binomial formula: P(X=0)=(0.98)^{20}\approx0.6676, P(X=1)=\binom{20}{1}\cdot0.02\cdot(0.98)^{19}=20\cdot0.02\cdot(0.98)^{19}\approx0.2725.

Adding: P(X\le1)\approx0.6676+0.2725\approx0.940. (A GDC with the cumulative binomial function gives 0.940 as well.)

So the probability that at most one bulb is defective is about 0.940.

Answer. \approx0.940.

Exercise 7 Grade boundaries

Scores on a test are normally distributed with mean 65 and standard deviation 12. The top 10\% of students receive the highest grade. Find the lowest score that receives this grade. [3 marks]

What you need and how to start

What you need: P(S>k)=0.1 means P(S<k)=0.9.

Show solution

Let X be a student's score, X\sim N\left(65, 12^2\right). Let k be the lowest score that receives the highest grade. Since the top 10\% of students receive this grade, P(X\ge k)=0.1,\ \text{that is}\ P(X<k)=0.9.

Use the standard normal variable Z=\dfrac{X-65}{12}. The inverse normal function on a GDC with probability 0.9 gives z\approx1.2816, that is \frac{k-65}{12}\approx1.2816.

It follows that k\approx65+12\cdot1.2816\approx80.4.

So the lowest score that receives the highest grade is about 80.4.

Answer. k\approx80.4.

Exercise 8 A two-way table

A survey of 200 students records whether they studied more than 5 hours and whether they passed.

Passed Failed
More than 5 hours 90 30
5 hours or less 50 30

(a) Find the probability that a student passed, given that they studied more than 5 hours. [2 marks]

(b) Find the probability that a student studied more than 5 hours, given that they passed. [2 marks]

What you need and how to start

What you need: the condition decides the denominator: a row total in (a), a column total in (b).

Show solution

Let A be the event "the student passed" and B the event "the student studied more than 5 hours". From the table, 90+30=120 students studied more than 5 hours and 90+50=140 students passed; 90 students both studied more than 5 hours and passed.

a) We need P(A\mid B). Of the 120 students who studied more than 5 hours, 90 passed, so P(A\mid B)=\frac{90}{120}=0.75.

So the probability that a student passed, given that they studied more than 5 hours, is 0.75.

b) We need P(B\mid A). Of the 140 students who passed, 90 studied more than 5 hours, so P(B\mid A)=\frac{90}{140}=\frac{9}{14}\approx0.643.

So the probability that a student studied more than 5 hours, given that they passed, is about 0.643.

The two answers differ because the conditions (the reference groups) differ: P(A\mid B)\neq P(B\mid A) in general.

Answer. a) 0.75; b) \dfrac{90}{140}\approx0.643.

Exercise 9 Challenge: a fair game

A player pays k dollars to roll a fair six-sided die and wins, in dollars, the number shown. Find k so that the game is fair. [3 marks]

What you need and how to start

What you need: expected winnings equal the cost.

Show solution

Let W be the number of dollars the player wins. The die is fair, so each face 1,2,3,4,5,6 shows with probability \dfrac16. The expected winnings are E(W)=\frac{1+2+3+4+5+6}{6}=\frac{21}{6}=3.5\ \text{(dollars)}.

The game is fair when the player's expected profit is 0, that is, when the average winnings equal the amount paid: E(W)-k=0\iff k=E(W)=3.5.

So for the game to be fair, k=3.5 dollars.

Answer. k=3.5 dollars.

Mini test

Marked like the Vietnamese graduation exam: Part I 0.25 points per question; Part II up to 1 point per question (1, 2, 3, 4 correct statements give 0.1, 0.25, 0.5, 1 point); Part III 0.5 points per question.

Part I. Multiple choice

Question 1. A and B are mutually exclusive, with P(A)=0.4 and P(B)=0.5. What is P(A\cup B)?
Question 2. X\sim B(5, 0.2). What is E(X)?
Question 3. X\sim N\left(\mu,\sigma^2\right). What is P(X<\mu)?
Question 4. A random variable takes the values 1, 2, 3 with probabilities 0.2, k, 0.5. What is k?

Part II. True or false

Question 1. X\sim N\left(100, 15^2\right).
a) P(X<100)=0.5.
b) P(X>115)=P(X<85).
c) P(X>130)>0.05.
d) The variance of X is 15.

Part III. Short answer

Question 1. A fair six-sided die is rolled. Find the expected score.

Question 2. A fair coin is tossed twice. Find the probability of two heads.

Show answers and explanations
  1. Part I, question 1: C. For mutually exclusive events, P(A\cup B)=P(A)+P(B).
  2. Part I, question 2: A. np=5(0.2)=1.
  3. Part I, question 3: D. The normal distribution is symmetric about its mean.
  4. Part I, question 4: B. 0.2+k+0.5=1.
  5. Part II, question 1: a) True; b) True; c) False; d) False. a) True: symmetry. b) True: symmetry. c) False: P(X>130)\approx0.0228. d) False: the variance is 225.
  6. Part III, question 1: 3.5. \dfrac{21}{6}=3.5.
  7. Part III, question 2: 0.25. 0.5^2=0.25.
📈 My progress

Finding Lemonmath useful?

Send this page to a friend, a parent or a teacher who could use it. Studying on your own is easier with company, and Lemonmath is free for everyone.

Facebook ✉ Email