Lemonmath
Tiếng Việt

Revision: statistics and probability

Lesson 7.8 · 40 min read · Updated

Statistics and probability is certain to appear in the graduation exam. Part I usually has two or three questions that ask for a quick measure from a grouped frequency table or a probability. Part II or Part III usually has one real-life question on conditional probability or Bayes' theorem. Altogether this topic is usually worth about 11 to 1.51.5 marks.

The statistics part of this lesson uses one data set throughout. The daily phone use (minutes) of 4040 students is grouped as follows:

Time (minutes) [0,30)[0, 30) [30,60)[30, 60) [60,90)[60, 90) [90,120)[90, 120) [120,150)[120, 150)
Number of students 44 1010 1414 88 44
Midpoint 1515 4545 7575 105105 135135
Cumulative frequency 44 1414 2828 3636 4040

Measures of central tendency

For the table above, n2=20\dfrac n2=20 lies in the class [60,90)[60, 90) (because 14<20≤2814<20\le28), so Me=60+20−1414⋅30≈72.86M_e=60+\dfrac{20-14}{14}\cdot30\approx72.86. The class with the highest frequency is also [60,90)[60, 90), so Mo=60+44+6⋅30=72M_o=60+\dfrac{4}{4+6}\cdot30=72.

Measures of spread

Conditional probability and the multiplication rule

The law of total probability and Bayes' theorem

0.020.980.950.050.10.9Person testedHas the diseaseDoes notPositive: 0.019Negative: 0.001Positive: 0.098Negative: 0.882
Tree diagram for a screening test

Key terms

Exercises

The exercises go from easy to hard, and each one states its exam format.

Exercise 1 Multiple choice

The waiting times (minutes) of 1010 customers are grouped: the class [0,4)[0, 4) has 33 people, [4,8)[4, 8) has 55 people and [8,12)[8, 12) has 22 people. The mean of the data is

A. 5.65.6. B. 66. C. 18.6718.67. D. 3.63.6.

What you need and how to start

What you need: xˉ=∑nixin\bar x=\dfrac{\sum n_ix_i}{n}, where xix_i are the class midpoints.

Steps:

  1. The midpoints are 22, 66, 1010.
  2. Find the sum of nixin_ix_i and divide by 1010.
Show solution

xˉ=3⋅2+5⋅6+2⋅1010=5610=5.6\bar x=\dfrac{3\cdot2+5\cdot6+2\cdot10}{10}=\dfrac{56}{10}=5.6. Option B is the mean of the three midpoints, option C divides by 33 instead of 1010, and option D uses the left endpoints.

Answer. A.

Exercise 2 Multiple choice

The test marks of 5050 students are given in the table. The median of the data (to 2 decimal places) is

Mark [5,6)[5, 6) [6,7)[6, 7) [7,8)[7, 8) [8,9)[8, 9) [9,10)[9, 10)
Number of students 44 88 1616 1414 88

A. 7.817.81. B. 7.57.5. C. 6.816.81. D. 7.937.93.

What you need and how to start

What you need: the median class is the first class with cumulative frequency ≥n2\ge\dfrac n2.

Steps:

  1. Cumulative frequencies: 44, 1212, 2828, 4242, 5050; n2=25\dfrac n2=25.
  2. Substitute into the formula with C=12C=12, nm=16n_m=16.
Show solution

Me=7+25−1216⋅1=7.8125≈7.81M_e=7+\dfrac{25-12}{16}\cdot1=7.8125\approx7.81. Option C takes C=28C=28 (including the median class), option D uses the frequency 1414 of the next class, and option B is just the midpoint of the class.

Answer. A.

Exercise 3 True/false

The masses (kg) of 2020 students: the class [45,50)[45, 50) has 55 students, [50,55)[50, 55) has 1010 and [55,60)[55, 60) has 55.

a) The mode of the data lies in the class [55,60)[55, 60).

b) The lower quartile is Q1=50Q_1=50.

c) The variance of the data is 12.512.5.

d) The standard deviation of the data is 12.512.5 kg.

What you need and how to start

What you need: the mode lies in the class with the highest frequency; s2=∑ni(xi−xˉ)2ns^2=\dfrac{\sum n_i(x_i-\bar x)^2}{n} and s=s2s=\sqrt{s^2}.

Steps:

  1. The midpoints are 47.547.5, 52.552.5, 57.557.5 and the mean is xˉ=52.5\bar x=52.5.
  2. Cumulative frequencies 55, 1515, 2020; n4=5\dfrac n4=5.
Show solution

a) False. The class with the highest frequency is [50,55)[50, 55).

b) True. The first class with cumulative frequency ≥5\ge5 is [45,50)[45, 50): Q1=45+5−05⋅5=50Q_1=45+\dfrac{5-0}{5}\cdot5=50.

c) True. s2=5⋅(−5)2+10⋅02+5⋅5220=25020=12.5s^2=\dfrac{5\cdot(-5)^2+10\cdot0^2+5\cdot5^2}{20}=\dfrac{250}{20}=12.5.

d) False. s=12.5≈3.54s=\sqrt{12.5}\approx3.54 kg.

Answer. a) False; b) True; c) True; d) False.

Exercise 4 Short answer

Find the interquartile range of the following grouped data (to 1 decimal place).

Class [0,10)[0, 10) [10,20)[10, 20) [20,30)[20, 30) [30,40)[30, 40)
Frequency 55 1212 1515 88
What you need and how to start

What you need: ΔQ=Q3−Q1\Delta_Q=Q_3-Q_1; the positions of Q1Q_1, Q3Q_3 are n4\dfrac n4, 3n4\dfrac{3n}{4}.

Steps:

  1. n=40n=40; cumulative frequencies 55, 1717, 3232, 4040.
  2. Position 1010 is in [10,20)[10, 20) and position 3030 is in [20,30)[20, 30).
Show solution

Q1=10+10−512⋅10=856≈14.17,Q3=20+30−1715⋅10=863≈28.67.Q_1=10+\frac{10-5}{12}\cdot10=\frac{85}{6}\approx14.17,\qquad Q_3=20+\frac{30-17}{15}\cdot10=\frac{86}{3}\approx28.67.

To avoid rounding errors, we subtract the fractions: ΔQ=863−856=876=14.5\Delta_Q=\dfrac{86}{3}-\dfrac{85}{6}=\dfrac{87}{6}=14.5.

Answer. 14.514.5.

Exercise 5 Multiple choice

AA and BB are independent events with P(A)=0.4P(A)=0.4 and P(B)=0.5P(B)=0.5. The probability P(A∪B)P(A\cup B) is

A. 0.90.9. B. 0.20.2. C. 0.70.7. D. 0.30.3.

What you need and how to start

What you need: P(A∪B)=P(A)+P(B)−P(A∩B)P(A\cup B)=P(A)+P(B)-P(A\cap B) and P(A∩B)=P(A)P(B)P(A\cap B)=P(A)P(B).

Steps:

  1. Find P(A∩B)P(A\cap B).
  2. Substitute into the addition rule.
Show solution

P(A∩B)=0.2P(A\cap B)=0.2, so P(A∪B)=0.4+0.5−0.2=0.7P(A\cup B)=0.4+0.5-0.2=0.7. Option A treats AA, BB as mutually exclusive; option B is P(A∩B)P(A\cap B); option D is 1−0.71-0.7.

Answer. C.

Exercise 6 Short answer

A box holds 1010 cards, 44 of which are red. Two cards are taken one after the other, without replacement. Find the probability that both cards are red (to 2 decimal places).

What you need and how to start

What you need: P(A∩B)=P(A)⋅P(B∣A)P(A\cap B)=P(A)\cdot P(B\mid A).

Steps:

  1. P(first red)=410P(\text{first red})=\dfrac{4}{10}.
  2. After one red card is taken, 33 of the 99 remaining cards are red.
Show solution

P=410⋅39=215≈0.133P=\dfrac{4}{10}\cdot\dfrac39=\dfrac{2}{15}\approx0.133.

Answer. 0.130.13.

Exercise 7 Short answer

In a company's inbox, 30%30\% of the emails are spam. A filter marks 90%90\% of spam emails as "spam" and also 5%5\% of normal emails. An email is marked "spam". Find the probability that it really is spam (to 2 decimal places).

What you need and how to start

What you need: the law of total probability and Bayes' theorem.

Steps:

  1. Find P(marked)=0.3⋅0.9+0.7⋅0.05P(\text{marked})=0.3\cdot0.9+0.7\cdot0.05.
  2. Divide the branch "spam and marked" by that result.
Show solution

P(marked)=0.27+0.035=0.305P(\text{marked})=0.27+0.035=0.305, so P(spam∣marked)=0.270.305≈0.885P(\text{spam}\mid\text{marked})=\dfrac{0.27}{0.305}\approx0.885.

Answer. 0.890.89.

Exercise 8 Written answer

In a city, the probability of rain on a given day is 0.30.3. If it rains, the probability that Minh is late for school is 0.40.4; if it does not rain, that probability is 0.10.1. Find the probability that Minh is late on a randomly chosen day. Given that Minh is late today, find the probability that it is raining today.

What you need and how to start

What you need: draw a tree diagram with the branches "rain" and "no rain".

Steps:

  1. Use the law of total probability for the event "late".
  2. Use Bayes' theorem for "rain given late".
Show solution

P(late)=0.3⋅0.4+0.7⋅0.1=0.12+0.07=0.19P(\text{late})=0.3\cdot0.4+0.7\cdot0.1=0.12+0.07=0.19. Then P(rain∣late)=0.120.19=1219≈0.63P(\text{rain}\mid\text{late})=\dfrac{0.12}{0.19}=\dfrac{12}{19}\approx0.63.

Answer. 0.190.19 and about 0.630.63.

Exercise 9 Short answer

Find the standard deviation of the following grouped data.

Class [2,4)[2, 4) [4,6)[4, 6) [6,8)[6, 8) [8,10)[8, 10)
Frequency 44 88 66 22
What you need and how to start

What you need: s2=∑nixi2n−xˉ2s^2=\dfrac{\sum n_ix_i^2}{n}-\bar x^2.

Steps:

  1. The midpoints are 33, 55, 77, 99; find xˉ\bar x.
  2. Find the mean of the squares, subtract xˉ2\bar x^2, then take the square root.
Show solution

xˉ=12+40+42+1820=5.6\bar x=\dfrac{12+40+42+18}{20}=5.6. 4⋅9+8⋅25+6⋅49+2⋅8120=69220=34.6\dfrac{4\cdot9+8\cdot25+6\cdot49+2\cdot81}{20}=\dfrac{692}{20}=34.6, so s2=34.6−31.36=3.24s^2=34.6-31.36=3.24 and s=1.8s=1.8.

Answer. 1.81.8.

Exercise 10 Short answer (challenge)

A shop buys components from three suppliers X, Y, Z in the proportions 50%50\%, 30%30\%, 20%20\%. The defect rates of X, Y, Z are 1%1\%, 2%2\%, 3%3\% respectively. A component chosen at random is found to be faulty. Find the probability that it came from Z (to 2 decimal places).

What you need and how to start

What you need: the law of total probability with the three cases X, Y, Z; Bayes' theorem.

Steps:

  1. Find P(faulty)P(\text{faulty}) as the sum of three branches.
  2. Divide the branch for Z by P(faulty)P(\text{faulty}).
Show solution

P(faulty)=0.5⋅0.01+0.3⋅0.02+0.2⋅0.03=0.005+0.006+0.006=0.017P(\text{faulty})=0.5\cdot0.01+0.3\cdot0.02+0.2\cdot0.03=0.005+0.006+0.006=0.017. Then P(Z∣faulty)=0.0060.017≈0.353P(Z\mid\text{faulty})=\dfrac{0.006}{0.017}\approx0.353.

Answer. 0.350.35.

Mini test

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 set of grouped data has the class [10,20)[10, 20) with frequency 22, [20,30)[20, 30) with frequency 55 and [30,40)[30, 40) with frequency 33. The mean of the data is
Question 2. For the data in the previous question, the class containing the upper quartile Q3Q_3 is
Question 3. Let AA, BB be events with P(B)>0P(B)>0. The probability of AA given that BB has happened is
Question 4. Given P(A)=0.3P(A)=0.3 and P(B∣A)=0.5P(B\mid A)=0.5, the value of P(A∩B)P(A\cap B) is

Part II. True or false

Question 1. A bag holds 55 red and 33 white marbles. Two marbles are taken one after the other, without replacement.
a) The probability that the first marble is red is 58\dfrac58.
b) The probability that the second marble is red, given that the first is red, is 47\dfrac47.
c) The probability that both marbles are red is 514\dfrac{5}{14}.
d) The probability that the second marble is red is 47\dfrac47.

Part III. Short answer

Question 1. A set of grouped data has the class [0,2)[0, 2) with frequency 33, [2,4)[2, 4) with frequency 44 and [4,6)[4, 6) with frequency 33. Find its standard deviation (to 2 decimal places).

Question 2. Given P(B)=0.4P(B)=0.4, P(A∣B)=0.5P(A\mid B)=0.5 and P(A∣B‾)=0.25P(A\mid\overline B)=0.25, find P(B∣A)P(B\mid A) (to 2 decimal places).

Show answers and explanations
  1. Part I, question 1: B. xˉ=2⋅15+5⋅25+3⋅3510=26\bar x=\dfrac{2\cdot15+5\cdot25+3\cdot35}{10}=26. Option A is the midpoint of the middle class, option C divides by 33, and option D uses the left endpoints.
  2. Part I, question 2: C. The cumulative frequencies are 22, 77, 1010 and 3n4=7.5\dfrac{3n}{4}=7.5; the first class with cumulative frequency ≥7.5\ge7.5 is [30,40)[30, 40). Option B is the class with the highest frequency.
  3. Part I, question 3: C. We restrict the sample space to BB, so we divide by P(B)P(B). Option A is P(B∣A)P(B\mid A); option B is only P(A∩B)P(A\cap B) when AA and BB are independent.
  4. Part I, question 4: A. P(A∩B)=P(A)⋅P(B∣A)=0.3⋅0.5=0.15P(A\cap B)=P(A)\cdot P(B\mid A)=0.3\cdot0.5=0.15. Option B adds the two numbers and option C divides 0.30.3 by 0.50.5.
  5. Part II, question 1: a) True; b) True; c) True; d) False. a) True. b) True: 44 red marbles remain out of 77. c) True: 58⋅47=2056=514\dfrac58\cdot\dfrac47=\dfrac{20}{56}=\dfrac5{14}. d) False: by the law of total probability, 58⋅47+38⋅57=3556=58\dfrac58\cdot\dfrac47+\dfrac38\cdot\dfrac57=\dfrac{35}{56}=\dfrac58.
  6. Part III, question 1: 1.55. The midpoints are 11, 33, 55 and xˉ=3\bar x=3. s2=3⋅4+4⋅0+3⋅410=2.4s^2=\dfrac{3\cdot4+4\cdot0+3\cdot4}{10}=2.4, so s=2.4≈1.549s=\sqrt{2.4}\approx1.549, which rounds to 1.551.55.
  7. Part III, question 2: 0.57. P(A)=0.4⋅0.5+0.6⋅0.25=0.35P(A)=0.4\cdot0.5+0.6\cdot0.25=0.35, so P(B∣A)=0.20.35≈0.571P(B\mid A)=\dfrac{0.2}{0.35}\approx0.571, which rounds to 0.570.57.