МатематикаМоя статистика
Тест по теории вероятностей и статистике
130 вопросов в 11 темах (лёгкий — 45, средний — 52, сложный — 33). Выберите темы, уровень и количество вопросов — к каждому ответу есть объяснение.
Вероятность и комбинаторика, условная вероятность и формула Байеса, случайные величины, дискретные и непрерывные распределения, ЦПТ, оценивание, проверка гипотез и регрессия. Вопросы на английском.
Все вопросы теста 130
Нажмите на вариант ответа, чтобы проверить себя, или «Показать ответ».
Basic probability11
A fair die is rolled once. What is P(the result is even or greater than 4)?
- 5/6
- 2/3
- 1/6
- 1/2
Even = {2, 4, 6}, greater than 4 = {5, 6}; the union is {2, 4, 5, 6}, so P = 4/6 = 2/3. 5/6 comes from adding 3/6 + 2/6 — the events are not disjoint (6 is counted twice), so P(A ∪ B) = P(A) + P(B) − P(A ∩ B) = 3/6 + 2/6 − 1/6.
Two fair coins are tossed. What is P(at least one head)?
- 1/2
- 2/3
- 1
- 3/4
The sample space is {HH, HT, TH, TT}, all equally likely; only TT has no head, so P = 1 − 1/4 = 3/4. 2/3 comes from treating "0, 1, 2 heads" as three equally likely outcomes — they are not (1 head happens in two ways).
Two fair dice are rolled. What is the probability that the sum is 7?
- 1/6
- 1/11
- 7/36
- 1/12
There are 36 equally likely ordered pairs, and 6 of them give 7: (1,6), (2,5), (3,4), (4,3), (5,2), (6,1). P = 6/36 = 1/6. 1/11 wrongly assumes the 11 possible sums 2…12 are equally likely.
P(A) = 0.6 and P(B) = 0.5. What is the smallest possible value of P(A ∩ B)?
- 0
- 0.3
- 0.1
- 0.5
P(A ∩ B) = P(A) + P(B) − P(A ∪ B) ≥ 0.6 + 0.5 − 1 = 0.1, because P(A ∪ B) ≤ 1. The events cannot be disjoint: their probabilities add up to more than 1. 0.3 = 0.6·0.5 is the value only if A and B are independent; 0.5 is the largest possible value.
One card is drawn from a well-shuffled standard deck of 52 cards. What is P(the card is a heart or a king)?
- 17/52
- 4/13
- 1/52
- 1/4
There are 13 hearts and 4 kings, but the king of hearts is in both groups: P = 13/52 + 4/52 − 1/52 = 16/52 = 4/13. 17/52 counts the king of hearts twice (forgets to subtract P(A ∩ B)), 1/52 is the intersection only, and 1/4 is just P(heart).
Birthdays are equally likely to fall on any of 365 days (ignore leap years) and are independent. What is the smallest group size for which P(at least two people share a birthday) exceeds 1/2?
- 183
- 366
- 57
- 23
P(all different) = (365/365)·(364/365)·…·((365 − n + 1)/365). For n = 22 it is about 0.524, for n = 23 about 0.493, so P(shared birthday) ≈ 0.507 > 1/2. The number is small because what matters is the number of pairs, C(23, 2) = 253, not the number of people. 183 ≈ 365/2 is the intuitive guess, 366 is the size that makes a match certain (pigeonhole principle), and 57 already gives about 0.99.
An integer is chosen uniformly at random from 1 to 100. What is the probability that it is divisible by 2, 3 or 5?
- 0.74
- 0.71
- 0.67
- 0.26
Inclusion–exclusion with counts ⌊100/k⌋: 50 (by 2) + 33 (by 3) + 20 (by 5) − 16 (by 6) − 10 (by 10) − 6 (by 15) + 3 (by 30) = 74, so P = 0.74. 0.71 forgets to add back the triple intersection (multiples of 30), 0.67 counts only multiples of 2 or 3, and 0.26 is the complement (divisible by none of them).
A point is chosen uniformly at random inside a square of side 2. What is the probability that it lies within distance 1 of the centre of the square?
- 1/2
- π/2 ≈ 1.571
- π/4 ≈ 0.785
- 1/4
The favourable region is a disk of radius 1 around the centre; it fits inside the square. Geometric probability = favourable area / total area = π·1² / 2² = π/4 ≈ 0.785. 1/2 compares lengths (radius 1 vs side 2) instead of areas, π/2 divides by 2 instead of the area 4 — and a probability cannot exceed 1, and 1/4 = 1²/2² treats the disk as if it were a square of side 1.
Which is more likely: (A) at least one six in 4 rolls of a fair die, or (B) at least one double six in 24 rolls of a pair of fair dice?
- They are equally likely, since 4·(1/6) = 24·(1/36) = 2/3
- A: 1 − (5/6)⁴ ≈ 0.518 vs 1 − (35/36)²⁴ ≈ 0.491
- B, because 24 rolls give many more chances than 4
- Neither: both probabilities are exactly 1/2
Use the complement of "never": P(A) = 1 − (5/6)⁴ ≈ 1 − 0.482 = 0.518 and P(B) = 1 − (35/36)²⁴ ≈ 1 − 0.509 = 0.491, so A is (slightly) more likely — the Chevalier de Méré's famous puzzle. The "equal" answer adds the per-roll probabilities, which is only an upper bound because the events overlap (a six may come up more than once); B has more rolls, but each one succeeds far less often.
The odds in favour of an event are 3 : 2. What is the probability of the event?
- 3/2
- 3/5
- 2/5
- 2/3
Odds a : b in favour mean a favourable "parts" out of a + b in total: P = 3/(3 + 2) = 3/5 = 0.6. 3/2 is the odds ratio itself read as a probability (it exceeds 1), 2/5 is the probability that the event does not happen, and 2/3 is the odds against (2 : 3) read as a probability.
Two friends each arrive at a café at a uniformly random time between 12:00 and 13:00, independently. Each waits 15 minutes for the other and then leaves. What is the probability that they meet?
- 1/4
- 9/16
- 7/16
- 1/2
Let X, Y be the arrival minutes, a uniform point in the 60 × 60 square. They meet iff |X − Y| ≤ 15. The complement is two corner triangles with legs 45: area 2·½·45² = 2025 out of 3600 = 9/16, so P(meet) = 1 − 9/16 = 7/16. 1/4 = 15/60 looks only at one person's waiting window, 9/16 is P(they do not meet), and 1/2 = 30/60 adds both waiting windows as a length instead of using the area in two dimensions.
Combinatorics10
In how many ways can a committee of 3 people be chosen from 5 people?
- 60
- 15
- 10
- 125
Order does not matter in a committee: C(5, 3) = 5! / (3!·2!) = 10. 60 = 5·4·3 counts ordered selections (permutations), and 125 = 5³ allows the same person to be picked repeatedly.
In how many different orders can 4 different books be placed on a shelf?
- 16
- 24
- 10
- 256
4 choices for the first place, 3 for the second, 2 for the third, 1 for the last: 4! = 4·3·2·1 = 24. 10 = 4 + 3 + 2 + 1 adds the choices instead of multiplying them.
How many distinct arrangements of the letters of the word LEVEL are there?
- 120
- 60
- 20
- 30
LEVEL has 5 letters with L repeated twice and E repeated twice: 5! / (2!·2!) = 120 / 4 = 30. 120 ignores the repeats, and 60 divides by only one of the 2! factors.
A committee of 3 is chosen at random from 4 men and 3 women. What is P(exactly 2 women)?
- 12/35
- 18/35
- 108/343
- 3/35
Total: C(7, 3) = 35. Favourable: choose 2 of the 3 women and 1 of the 4 men, C(3, 2)·C(4, 1) = 3·4 = 12. P = 12/35. 3/35 forgets to choose the man, 18/35 is P(exactly 1 woman), and 108/343 = C(3, 2)·(3/7)²·(4/7) treats the draws as with replacement (binomial) when people are chosen without replacement.
8 runners take part in a race. In how many ways can the gold, silver and bronze medals be awarded (no ties)?
- 56
- 512
- 336
- 24
The medals are different, so order matters: 8 choices for gold, then 7 for silver, then 6 for bronze, 8·7·6 = 336. 56 = C(8, 3) only chooses the three medallists without deciding who gets which medal, 512 = 8³ lets one runner win several medals, and 24 = 4! is unrelated.
A 4-digit PIN is chosen uniformly at random from 0000 to 9999. What is the probability that all four digits are different?
- 0.729
- 0.021
- 0.504
- 0.496
There are 10⁴ = 10000 PINs, and 10·9·8·7 = 5040 of them have distinct digits, so P = 0.504. 0.729 = 0.9³ only requires each digit to differ from the previous one (adjacent digits), 0.021 = C(10, 4)/10⁴ counts unordered sets of digits instead of ordered PINs, and 0.496 is the complement (at least one repeated digit).
In how many ways can 5 identical candies be distributed among 3 children, if some children may get none?
- 21
- 243
- 6
- 10
Stars and bars: arrange 5 stars (candies) and 2 bars (dividers between 3 children) in a row, C(5 + 3 − 1, 3 − 1) = C(7, 2) = 21. 243 = 3⁵ treats the candies as distinguishable, 6 = C(4, 2) is the count when every child must get at least one candy, and 10 = C(5, 2) uses n instead of n + k − 1 in the formula.
Six people are split into labelled teams: team A of 3 people, team B of 2 and team C of 1. In how many ways can this be done?
- 60
- 720
- 20
- 729
Multinomial coefficient: 6! / (3!·2!·1!) = 720 / 12 = 60. Equivalently C(6, 3)·C(3, 2)·C(1, 1) = 20·3·1 = 60. 720 = 6! counts orders inside the teams, which do not matter, 20 = C(6, 3) only picks team A and forgets to split the rest, and 729 = 3⁶ lets every person choose any team, ignoring the team sizes.
Four letters are put into four addressed envelopes at random, one letter per envelope. What is the probability that no letter is in its correct envelope?
- 81/256
- 1/e ≈ 0.368
- 3/8
- 23/24
Count derangements by inclusion–exclusion: D₄ = 4!·(1 − 1/1! + 1/2! − 1/3! + 1/4!) = 24 − 24 + 12 − 4 + 1 = 9, so P = 9/24 = 3/8. 81/256 = (3/4)⁴ treats the four "letter k is misplaced" events as independent — they are not, 1/e ≈ 0.368 is only the limit as n → ∞, and 23/24 is P(not every letter is correct).
In how many ways can 5 people be seated around a round table, if seatings that differ only by a rotation are considered the same?
- 24
- 120
- 12
- 60
Fix one person's seat to remove the rotations, then arrange the other 4: 4! = 24 (equivalently 5!/5). 120 = 5! counts the 5 rotations of each seating as different, 60 = 5!/2 divides by the 2 mirror images instead of the 5 rotations, and 12 = 4!/2 also identifies mirror images, which the question does not do.
Conditional probability13
A fair die is rolled and you are told the result is even. What is the probability that it is a 6?
- 1/6
- 1/2
- 2/3
- 1/3
Given "even", the sample space shrinks to {2, 4, 6}, so P(6 | even) = 1/3. Equivalently, P(6 ∩ even) / P(even) = (1/6) / (1/2) = 1/3. 1/6 ignores the information.
P(A ∩ B) = 0.12 and P(B) = 0.4. What is P(A | B)?
- 0.3
- 0.048
- 0.12
- 0.52
P(A | B) = P(A ∩ B) / P(B) = 0.12 / 0.4 = 0.3. 0.048 = 0.12·0.4 multiplies instead of dividing, and 0.12 is the joint probability, not the conditional one.
Results of 100 students are shown in the table. A student who passed is picked at random. What is the probability that this student studied?
Passed Failed Total
Studied 40 10 50
Didn't study 20 30 50
Total 60 40 100- 4/5
- 2/3
- 2/5
- 3/5
Condition on the "Passed" column: P(Studied | Passed) = 40/60 = 2/3. 4/5 = 40/50 is P(Passed | Studied) — the conditional the other way round. 2/5 = 40/100 is the joint P(Studied ∩ Passed), and 3/5 is just P(Passed).
A disease affects 1% of people. A test for it has the characteristics below. A random person tests positive. What is the probability that they have the disease?
P(D) = 0.01 (prevalence)
P(+ | D) = 0.99 (sensitivity)
P(+ | Dᶜ) = 0.01 (false positive rate)- 99%
- 1%
- 50%
- 98%
Bayes' theorem: P(+) = 0.99·0.01 + 0.01·0.99 = 0.0099 + 0.0099 = 0.0198, so P(D | +) = 0.0099 / 0.0198 = 0.5. Answering 99% confuses P(D | +) with P(+ | D) and ignores the low base rate (base-rate fallacy): among the many healthy people, 1% false positives are as numerous as the true positives.
Box 1 has 3 red and 2 blue balls, box 2 has 1 red and 4 blue balls. A box is chosen by a fair coin toss and one ball is drawn; it is red. What is P(box 1 | red)?
- 3/5
- 2/5
- 1/2
- 3/4
P(red) = ½·3/5 + ½·1/5 = 0.3 + 0.1 = 0.4. Bayes: P(box 1 | red) = P(red | box 1)·P(box 1) / P(red) = 0.3 / 0.4 = 3/4. 3/5 is P(red | box 1), 2/5 is P(red), and 1/2 is the prior that ignores the evidence.
Machine A makes 60% of a factory's items and 2% of its items are defective; machine B makes the other 40% and 5% of its items are defective. An item is picked at random. What is P(it is defective)?
- 0.032
- 0.035
- 0.07
- 0.001
Law of total probability: P(D) = P(D | A)·P(A) + P(D | B)·P(B) = 0.02·0.6 + 0.05·0.4 = 0.012 + 0.020 = 0.032. 0.035 is the plain average of the two defect rates (ignores that A makes more items), 0.07 adds the rates, and 0.001 = 0.02·0.05 multiplies them as if both machines had to fail.
Monty Hall: a car is behind one of 3 doors, goats behind the other two. You pick door 1. The host, who knows where the car is and always opens a goat door you did not pick, opens door 3 and shows a goat. What is the probability of winning the car if you switch to door 2?
- 1/2
- 1/3
- 1
- 2/3
Your first pick is right with probability 1/3, and the host's action cannot change that. In the other 2/3 of cases the car is behind one of the two other doors, and the host removes the goat among them, so switching wins exactly when the first pick was wrong: 2/3. 1/2 treats the two remaining doors as equally likely, ignoring that the host's choice depends on where the car is; 1/3 is the chance of winning by staying.
A family has two children; each child is independently a boy or a girl with probability 1/2. You learn that at least one of the two children is a boy. What is the probability that both are boys?
- 1/2
- 1/3
- 1/4
- 2/3
The equally likely outcomes are BB, BG, GB, GG. "At least one boy" leaves BB, BG, GB, so P(BB | at least one boy) = (1/4)/(3/4) = 1/3. 1/2 answers a different question ("the older child is a boy"), which leaves only BB and BG; 1/4 ignores the information, and 2/3 is P(exactly one boy | at least one boy).
A medical test has specificity 0.95. What does this mean?
- P(test positive | person has the disease) = 0.95
- P(test negative | person does not have the disease) = 0.95
- P(person has the disease | test positive) = 0.95
- P(person does not have the disease | test negative) = 0.95
Specificity is the true negative rate: among people without the disease, 95% test negative (so the false positive rate is 5%). P(+ | disease) is the sensitivity, P(disease | +) is the positive predictive value, and P(no disease | −) is the negative predictive value — the last two also depend on how common the disease is.
1000 people are tested for a disease, with the results below. What is the probability that a person with a positive test actually has the disease? (Round to 3 decimals.)
Test + Test − Total
Disease 40 10 50
No disease 95 855 950
Total 135 865 1000- 0.800
- 0.900
- 0.040
- 0.296
Condition on the "Test +" column: PPV = P(disease | +) = 40/135 ≈ 0.296. 0.800 = 40/50 is the sensitivity P(+ | disease), 0.900 = 855/950 is the specificity, and 0.040 = 40/1000 is the joint probability P(disease and +). Most positives are false here because healthy people vastly outnumber sick ones.
A disease has prevalence 2%. A test has sensitivity 0.9 and false positive rate 0.05, and repeated tests are conditionally independent given the person's true status. A person tests positive twice. What is the probability that they have the disease? (Round to 3 decimals.)
- 0.269
- 0.072
- 0.810
- 0.869
P(+ + | D) = 0.9² = 0.81 and P(+ + | Dᶜ) = 0.05² = 0.0025. Bayes: 0.02·0.81 / (0.02·0.81 + 0.98·0.0025) = 0.0162 / 0.01865 ≈ 0.869. Equivalently, the first positive updates 2% to 0.018/0.067 ≈ 0.269, and that becomes the prior for the second test. 0.269 stops after one test, 0.072 = 0.269² multiplies posteriors (they are not probabilities of independent events), and 0.810 is P(two positives | disease), the reverse conditional.
Survival rates for two hospitals are shown below. Which conclusion is correct?
Mild cases Severe cases All patients
Hospital A 18/20 (90%) 48/80 (60%) 66/100 (66%)
Hospital B 68/80 (85%) 10/20 (50%) 78/100 (78%)- A does better for both mild and severe cases; B looks better overall only because most of its patients are mild cases
- B is the better hospital, since its overall survival rate is 12 points higher
- The table must contain an error: a hospital that is better in every group must be better overall
- The split by severity should be ignored, because the overall rates are based on more patients
This is Simpson's paradox. A beats B within each group (90% vs 85%, 60% vs 50%), but 80 of A's 100 patients are severe cases, while 80 of B's are mild. The overall rate is a weighted average of the group rates, and the weights differ: 0.2·90% + 0.8·60% = 66% for A, 0.8·85% + 0.2·50% = 78% for B. Severity is a confounder, so the overall comparison is misleading — and the numbers are entirely consistent.
Two cards are drawn without replacement from a well-shuffled standard deck of 52 cards. What is the probability that both are aces?
- 1/169
- 1/221
- 2/13
- 1/17
Multiplication rule: P(first ace)·P(second ace | first ace) = 4/52 · 3/51 = 12/2652 = 1/221. 1/169 = (4/52)² assumes the first card is put back, 2/13 = 1/13 + 1/13 adds instead of multiplying, and 1/17 = 3/51 is only the conditional probability of the second ace.
Independence10
A and B are independent, P(A) = 0.5 and P(B) = 0.4. What is P(A ∩ B)?
- 0.9
- 0.1
- 0.2
- 0.45
For independent events P(A ∩ B) = P(A)·P(B) = 0.5·0.4 = 0.2. 0.9 is P(A) + P(B), which is not even the union (P(A ∪ B) = 0.9 − 0.2 = 0.7).
A and B are disjoint (mutually exclusive) events with P(A) > 0 and P(B) > 0. Are they independent?
- No: P(A ∩ B) = 0, but P(A)·P(B) > 0
- Yes: disjoint events never influence each other
- Yes, but only if P(A) = P(B)
- Only if P(A) + P(B) = 1
Independence requires P(A ∩ B) = P(A)·P(B). Disjoint events have P(A ∩ B) = 0, while the product is positive, so they are dependent: if A happens, B is certainly excluded — knowing A changes P(B) to 0. "Disjoint" and "independent" are often confused, but they are almost opposites.
A shooter hits the target with probability 0.2 on each shot, independently. What is P(at least one hit in 3 shots)?
- 0.6
- 0.488
- 0.008
- 0.384
Use the complement: P(no hits) = 0.8³ = 0.512, so P(at least one) = 1 − 0.512 = 0.488. 0.6 = 3·0.2 adds probabilities of events that are not disjoint, 0.008 = 0.2³ is P(all three hit), and 0.384 = 3·0.2·0.8² is P(exactly one hit).
Two fair coins are tossed. A = "first coin is heads", B = "second coin is heads", C = "the two coins show the same side". Which statement is true?
- A, B and C are mutually independent
- A and C are dependent, because C is defined using the first coin
- No two of the events A, B, C are independent
- A, B, C are pairwise independent but not mutually independent
P(A) = P(B) = P(C) = 1/2 (C = {HH, TT}), and every pairwise intersection is the single outcome HH: P(A ∩ B) = P(A ∩ C) = P(B ∩ C) = 1/4 = ½·½, so every pair is independent. But P(A ∩ B ∩ C) = P(HH) = 1/4 ≠ 1/8 = P(A)P(B)P(C): A and B together determine C. Pairwise independence does not imply mutual independence.
A and B are independent events with P(A) = 0.3 and P(B) = 0.5. What is P(A ∪ B)?
- 0.65
- 0.8
- 0.15
- 0.35
P(A ∪ B) = P(A) + P(B) − P(A)·P(B) = 0.3 + 0.5 − 0.15 = 0.65. Equivalently, 1 − P(neither) = 1 − 0.7·0.5 = 0.65. 0.8 forgets the overlap (adding is valid only for disjoint events), 0.15 is the intersection, and 0.35 is P(neither A nor B).
A system consists of components A and B connected in parallel (the pair works if at least one of them works), followed in series by component C (the system works only if the pair and C both work). A and B work with probability 0.9 each, C with probability 0.95, all independently. What is P(the system works)?
- 0.7695
- 0.9995
- 0.9405
- 0.855
Parallel pair: 1 − P(both fail) = 1 − 0.1·0.1 = 0.99. In series with C: 0.99·0.95 = 0.9405. 0.7695 = 0.9·0.9·0.95 puts all three in series, 0.9995 = 1 − 0.1·0.1·0.05 puts all three in parallel, and 0.855 = 0.9·0.95 ignores the backup component.
A person is picked at random from the 150 people in the table. Are the events "male" and "likes tea" independent?
Likes tea Doesn't Total
Male 60 40 100
Female 30 20 50
Total 90 60 150- No: twice as many men as women like tea (60 vs 30)
- Yes: P(likes tea | male) = 60/100 = 0.6 = P(likes tea) = 90/150
- No: the events overlap (60 people are in both), so they are dependent
- It cannot be decided without knowing the size of the whole population
Independence means P(A | B) = P(A), or P(A ∩ B) = P(A)·P(B). Here P(likes tea | male) = 0.6, P(likes tea | female) = 30/50 = 0.6 and P(likes tea) = 0.6, and P(male ∩ likes) = 60/150 = 0.4 = (100/150)·(90/150). The 60 vs 30 comparison only reflects that there are twice as many men; overlapping is necessary for independence (disjoint events with positive probabilities are dependent).
A and B are independent, P(A) = 0.3 and P(B) = 0.6. What is the probability that exactly one of A and B occurs?
- 0.9
- 0.72
- 0.54
- 0.18
Exactly one = (A and not B) or (B and not A), two disjoint cases: 0.3·0.4 + 0.7·0.6 = 0.12 + 0.42 = 0.54. Complements of independent events are independent, so the products are valid. 0.9 just adds P(A) + P(B), 0.72 = 0.9 − 0.18 is P(A ∪ B), which also counts "both", and 0.18 is P(both).
A bag holds a fair coin and a two-headed coin. One coin is picked at random and tossed twice. Given that the first toss is heads, what is the probability that the second toss is also heads?
- 3/4
- 1/2
- 1
- 5/6
P(H₁) = ½·½ + ½·1 = 3/4 and P(H₁ ∩ H₂) = ½·¼ + ½·1 = 5/8, so P(H₂ | H₁) = (5/8)/(3/4) = 5/6. The tosses are independent given the coin (conditional independence), but not unconditionally: a head is evidence for the two-headed coin. 3/4 assumes the tosses are independent, 1/2 assumes the fair coin, and 1 assumes the first head proves the coin is two-headed.
When is an event A independent of itself?
- Always, since an event cannot influence itself
- Only when P(A) = 0 or P(A) = 1
- Never, since A determines itself completely
- Only when P(A) = 1/2
Independence of A and A requires P(A ∩ A) = P(A)·P(A), i.e. P(A) = P(A)², whose only solutions are 0 and 1. Such events carry no information, so knowing them changes nothing. "Always" and "never" ignore the definition, and for P(A) = 1/2 we get P(A)² = 1/4 ≠ 1/2.
Random variables13
X has the distribution below. What is E[X]?
x 0 1 2
P(X=x) 0.2 0.5 0.3- 1
- 1.1
- 1.7
- 3
E[X] = Σ x·P(X = x) = 0·0.2 + 1·0.5 + 2·0.3 = 0 + 0.5 + 0.6 = 1.1. 1 is the plain average of the values (ignores the probabilities), and 1.7 is E[X²] = 0·0.2 + 1·0.5 + 4·0.3.
E[X] = 3. What is E[2X + 5]?
- 11
- 6
- 16
- 8
Expectation is linear: E[aX + b] = a·E[X] + b = 2·3 + 5 = 11. 16 = 2·(3 + 5) multiplies the constant too, and 6 forgets the + 5.
Var(X) = 4. What is Var(3X + 2)?
- 12
- 14
- 38
- 36
Var(aX + b) = a²·Var(X) = 9·4 = 36. A constant shift does not change the spread, so the + 2 disappears; 12 forgets to square the factor 3, and 14 / 38 wrongly add the shift.
X has the distribution below (E[X] = 1.1). What is Var(X)?
x 0 1 2
P(X=x) 0.2 0.5 0.3- 1.7
- 0.6
- 0.49
- 0.7
E[X²] = 0·0.2 + 1·0.5 + 4·0.3 = 1.7, so Var(X) = E[X²] − (E[X])² = 1.7 − 1.21 = 0.49. 1.7 forgets to subtract (E[X])², 0.6 subtracts E[X] instead of its square, and 0.7 = √0.49 is the standard deviation, not the variance.
X and Y are independent, Var(X) = 4 and Var(Y) = 9. What is Var(X − Y)?
- −5
- 5
- 13
- 1
Var(X − Y) = Var(X) + (−1)²·Var(Y) − 2·Cov(X, Y) = 4 + 9 − 0 = 13. Variances of independent variables add even when the variables are subtracted — a difference is as uncertain as a sum. A variance can never be negative, and 1 = (3 − 2)² wrongly subtracts the standard deviations.
You pay $4 to roll a fair die once and then receive as many dollars as the number shown. What is your expected net gain per game?
- $0.50
- −$0.50
- $3.50
- −$4.00
E[payout] = (1 + 2 + 3 + 4 + 5 + 6)/6 = 3.5, so E[net gain] = 3.5 − 4 = −0.5: on average you lose 50 cents per game. +$0.50 subtracts in the wrong order, $3.50 forgets the entry fee, and −$4.00 forgets the payout.
Var(X) = 4, Var(Y) = 9 and Cov(X, Y) = 2. What is Var(X + Y)?
- 13
- 15
- 25
- 17
Var(X + Y) = Var(X) + Var(Y) + 2·Cov(X, Y) = 4 + 9 + 2·2 = 17. 13 treats X and Y as uncorrelated, 15 adds the covariance only once, and 25 = (2 + 3)² adds the standard deviations, which is correct only for perfect correlation (Cov = 6).
X and Y each take the values 0 and 1 with the joint distribution below. What is Cov(X, Y)?
Y = 0 Y = 1
X = 0 0.4 0.1
X = 1 0.1 0.4- 0.4
- 0
- 0.6
- 0.15
Margins: P(X = 1) = 0.1 + 0.4 = 0.5, P(Y = 1) = 0.5, so E[X] = E[Y] = 0.5. E[XY] = P(X = 1, Y = 1) = 0.4. Cov(X, Y) = E[XY] − E[X]·E[Y] = 0.4 − 0.25 = 0.15. 0.4 is E[XY] without subtracting the product of the means, 0 would hold only under independence (here P(1, 1) = 0.4 ≠ 0.25), and 0.6 = 0.15/√(0.25·0.25) is the correlation, not the covariance.
A random variable has density f(x) = c·x for 0 ≤ x ≤ 2 and f(x) = 0 elsewhere. What is c?
- 2
- 1/4
- 1/2
- 1
A density must integrate to 1: ∫₀² c·x dx = c·x²/2 |₀² = 2c = 1, so c = 1/2. 2 inverts the result, 1/4 forgets the factor ½ of the antiderivative (sets c·2² = 1), and c = 1 is not normalized — the total area would be 2.
Ten people put their hats in a box and each takes one back at random. What is the expected number of people who get their own hat?
- 0.1
- 1/e ≈ 0.368
- 5
- 1
Let Iₖ = 1 if person k gets their own hat; P(Iₖ = 1) = 1/10. By linearity of expectation E[ΣIₖ] = 10·(1/10) = 1 — for any number of people, and even though the Iₖ are dependent (linearity does not need independence). 0.1 is the probability for one person, 1/e ≈ 0.368 is approximately the probability that nobody gets their own hat, and 5 is just half the group.
A random variable X has moment generating function M(t) = (0.3 + 0.7eᵗ)¹⁰. What is E[X]?
- 7
- 3
- 2.1
- 10
E[X] = M′(0): M′(t) = 10·(0.3 + 0.7eᵗ)⁹·0.7eᵗ, so M′(0) = 10·1·0.7 = 7. Recognizing the form (q + p·eᵗ)ⁿ gives Binomial(n = 10, p = 0.7) with mean np = 7. 3 uses the wrong probability (0.3 is q), 2.1 = npq is the variance, and 10 is just n.
In a group of 30 people with independent birthdays uniform over 365 days, what is the expected number of pairs of people who share a birthday? (Round to 2 decimals.)
- 2.38
- 0.08
- 1.19
- 0.71
There are C(30, 2) = 435 pairs, and each pair shares a birthday with probability 1/365. Linearity of expectation over pair indicators: 435/365 ≈ 1.19. 2.38 counts ordered pairs (30·29 = 870), 0.08 = 30/365 counts people instead of pairs, and 0.71 is P(at least one shared birthday) — a probability, not an expected count.
Each cereal box contains one of 4 different toys, each equally likely, independently of other boxes. What is the expected number of boxes you must buy to collect all 4 toys? (Round to 2 decimals.)
- 4
- 16
- 8.33
- 5.55
Coupon collector: after collecting k different toys, the wait for a new one is geometric with success probability (4 − k)/4, mean 4/(4 − k). Total: 4/4 + 4/3 + 4/2 + 4/1 = 4·(1 + 1/2 + 1/3 + 1/4) = 25/3 ≈ 8.33. 4 assumes no duplicates, 16 = 4² is a guess, and 5.55 = 4·ln 4 is only the leading term n·ln n of the large-n approximation, dropping the ≈ 0.577·n term.
Discrete distributions12
X ~ Bernoulli(p = 0.3). What is Var(X)?
- 0.21
- 0.3
- 0.09
- 0.7
For a Bernoulli variable Var(X) = p(1 − p) = 0.3·0.7 = 0.21. 0.3 is the mean p, and 0.09 = p² is E[X]², not the variance.
A fair coin is tossed 4 times. What is P(exactly 2 heads)?
- 1/2
- 3/8
- 1/16
- 1/4
Binomial(n = 4, p = 0.5): P(X = 2) = C(4, 2)·0.5²·0.5² = 6/16 = 3/8. 1/16 is the probability of one particular sequence (like HHTT) — it forgets the C(4, 2) = 6 orders. 1/2 is the intuitive "half the tosses" guess.
X ~ Binomial(n = 20, p = 0.3). What are E[X] and Var(X)?
- mean 6, variance 6
- mean 6, variance 1.8
- mean 0.3, variance 0.21
- mean 6, variance 4.2
E[X] = np = 20·0.3 = 6 and Var(X) = np(1 − p) = 20·0.3·0.7 = 4.2. "Variance = mean" holds for the Poisson distribution, not the binomial; 1.8 = n·p² uses the wrong factor, and 0.3 / 0.21 are the values for a single Bernoulli trial.
Each attempt succeeds with probability 0.2, independently. What is the expected number of attempts up to and including the first success?
- 4
- 0.2
- 5
- 1.25
The number of trials until the first success is geometric with E[X] = 1/p = 1/0.2 = 5. 4 = (1 − p)/p is the expected number of failures before the first success — the other common parameterization. 1.25 = 1/(1 − p) inverts the wrong probability.
Calls arrive at a call centre as a Poisson process with an average of 2 calls per minute. What is the probability of at least one call in a 30-second interval? (Round to 3 decimals.)
- 0.865
- 0.632
- 0.368
- 0.5
In 30 seconds the expected count is λ = 2·0.5 = 1. P(X ≥ 1) = 1 − P(X = 0) = 1 − e^(−1) ≈ 0.632. 0.865 = 1 − e^(−2) forgets to rescale λ to the shorter interval, and 0.368 = e^(−1) is P(no calls).
The number of typos on a page follows a Poisson distribution with mean λ = 4. What is the standard deviation of the number of typos?
- 4
- 2
- 16
- 0.25
For a Poisson distribution the variance equals the mean: Var = λ = 4, so the standard deviation is √4 = 2. 4 is the variance, not the standard deviation, 16 = λ² squares instead of taking the root, and 0.25 = 1/λ is the mean waiting time between events (exponential), not a spread of the count.
A lot of 20 items contains 4 defective ones. An inspector draws 3 items at random without replacement. What is P(none of them is defective)? (Round to 3 decimals.)
- 0.512
- 0.509
- 0.491
- 0.400
Hypergeometric: P = C(16, 3)/C(20, 3) = 560/1140 ≈ 0.491, or step by step 16/20 · 15/19 · 14/18. 0.512 = 0.8³ is the binomial answer, which assumes drawing with replacement — without replacement each good item drawn makes the next one slightly less likely to be good. 0.509 is the complement (at least one defective), and 0.400 = 1 − 3·0.2 subtracts overlapping probabilities.
Each spin of a slot machine wins with probability 0.1, independently of other spins. The first 20 spins have all lost. What is the probability that the next 5 spins also all lose? (Round to 3 decimals.)
- 0.590
- 0.072
- 0.410
- 0.656
The waiting time X until the first win is geometric, which is memoryless: P(X > 25 | X > 20) = 0.9²⁵ / 0.9²⁰ = 0.9⁵ ≈ 0.590 — exactly the same as for a fresh start. 0.072 = 0.9²⁵ is the unconditional probability of 25 losses in a row (ignores that 20 of them already happened), 0.410 = 1 − 0.9⁵ is P(at least one win in the next 5), and 0.656 = 0.9⁴ miscounts the spins.
A machine produces 1000 items; each is defective with probability 0.002, independently. Using the Poisson approximation, what is the probability of no defective items? (Round to 3 decimals.)
- 0.135
- 0.865
- 0.271
- 0.998
For large n and small p, Binomial(n, p) ≈ Poisson(λ = np) = Poisson(2). P(X = 0) ≈ e^(−2) ≈ 0.135 (the exact value 0.998¹⁰⁰⁰ is also ≈ 0.135). 0.865 is P(at least one defective), 0.271 = 2e^(−2) is P(exactly one), and 0.998 is the probability that a single item is good.
A fair coin is tossed repeatedly. What is the probability that the 3rd head appears exactly on the 5th toss?
- 5/16
- 1/8
- 1/32
- 3/16
Negative binomial: toss 5 must be a head, and the first 4 tosses must contain exactly 2 heads: C(4, 2)·(1/2)⁴·(1/2) = 6/32 = 3/16. 5/16 = C(5, 3)/32 is P(exactly 3 heads in 5 tosses), which also counts sequences like HHHTT where the 3rd head came earlier, 1/8 = (1/2)³ ignores the tails, and 1/32 is the probability of one particular sequence.
X ~ Poisson(2) and Y ~ Poisson(3) are independent. Given that X + Y = 5, what is P(X = 2)? (Round to 4 decimals.)
- 0.2707
- 0.4000
- 0.2304
- 0.3456
X + Y ~ Poisson(5), and given X + Y = n, X ~ Binomial(n, 2/(2 + 3)) — each of the 5 events comes from X with probability 0.4. So P = C(5, 2)·0.4²·0.6³ = 10·0.16·0.216 = 0.3456. 0.2707 = e^(−2)·2²/2! is the unconditional P(X = 2), 0.4 is the share 2/5 itself, and 0.2304 = C(5, 2)·0.6²·0.4³ swaps the two proportions.
Emails arrive as a Poisson process with an average of 3 per hour. For the number of emails in an 8-hour day, what are the mean and the variance?
- mean 24, variance 3
- mean 24, variance 192
- mean 24, variance 24
- mean 3, variance 3
Counts over 8 hours are Poisson with λ = 3·8 = 24, and for a Poisson distribution the variance equals the mean: 24 and 24. Variance 3 keeps the hourly value, 192 = 8²·3 scales the variance like a multiplied variable (8X) instead of a sum of 8 independent hours, and mean 3 forgets to rescale the interval.
Continuous distributions13
X is uniformly distributed on [0, 10]. What is P(2 ≤ X ≤ 5)?
- 0.3
- 0.5
- 3
- 0.2
The density is 1/10 on [0, 10], so P(2 ≤ X ≤ 5) = (5 − 2)/10 = 0.3. 3 is the length of the interval without dividing by the total length — a probability cannot exceed 1. 0.2 is P(X ≤ 2).
IQ scores are normal with μ = 100 and σ = 15. What is the z-score of a score of 130?
- 30
- 2
- 0.5
- −2
z = (x − μ)/σ = (130 − 100)/15 = 2: the score is 2 standard deviations above the mean. 30 is the raw distance without dividing by σ, and the sign is negative only for values below the mean.
X ~ N(μ = 50, σ = 10). By the 68–95–99.7 rule, approximately what is P(30 < X < 70)?
- 0.68
- 0.997
- 0.475
- 0.95
30 and 70 are μ ± 2σ, and about 95% of a normal distribution lies within 2 standard deviations of the mean. 0.68 is the ±1σ share, 0.997 the ±3σ share, and 0.475 is only one half (from μ to μ + 2σ).
Exam scores are N(μ = 70, σ = 10). Using Φ(1) ≈ 0.8413, what is P(score > 80)? (Round to 4 decimals.)
- 0.8413
- 0.3174
- 0.1587
- 0.3413
z = (80 − 70)/10 = 1, so P(X > 80) = 1 − Φ(1) ≈ 1 − 0.8413 = 0.1587. 0.8413 is P(X < 80) (forgetting the complement), 0.3174 counts both tails |z| > 1, and 0.3413 is P(70 < X < 80).
Waiting time for a bus is exponential with mean 10 minutes. You have already waited 10 minutes. What is the probability you will wait at least 5 more minutes? (Round to 2 decimals.)
- 0.61
- 0.22
- 0.39
- 0.37
The exponential distribution is memoryless: P(T > 15 | T > 10) = P(T > 5) = e^(−5/10) = e^(−0.5) ≈ 0.61 — the time already waited does not matter. 0.22 = e^(−1.5) is the unconditional P(T > 15), 0.39 = 1 − e^(−0.5) is P(T ≤ 5), and 0.37 = e^(−1) is P(T > 10).
Household incomes in a country are strongly right-skewed (a long tail of very high incomes). How do the mean and the median usually compare?
- The median is larger than the mean
- The mean is larger than the median
- They are equal, because the sample is large
- They are equal, because both measure the centre
The mean is pulled toward the long tail by the few very large values, while the median only depends on the middle observation, so for a right-skewed distribution mean > median. That is why typical income is usually reported as the median. A large sample does not remove skewness, and mean = median holds for symmetric distributions.
X is uniformly distributed on [0, 12]. What is Var(X)?
- 12
- 6
- 3.46
- 48
For U[a, b], Var(X) = (b − a)²/12 = 144/12 = 12. Check: E[X²] = b²/3 = 48 and E[X] = 6, so Var = 48 − 36 = 12. 6 is the mean, 3.46 = √12 is the standard deviation, and 48 is E[X²] without subtracting (E[X])².
The lifetime of a device is exponentially distributed with mean 10 years. What is its median lifetime? (Round to 2 decimals.)
- 10.00 years
- 5.00 years
- 14.43 years
- 6.93 years
Solve P(T ≤ m) = 1 − e^(−m/10) = 1/2: m = 10·ln 2 ≈ 6.93 years. The exponential distribution is right-skewed, so the median is below the mean; 10 assumes mean = median as for a symmetric distribution, 5 halves the mean, and 14.43 = 10/ln 2 divides instead of multiplying.
Z is standard normal and Φ(1.5) ≈ 0.9332. What is P(Z < −1.5)?
- 0.0668
- 0.9332
- 0.4332
- 0.1336
By symmetry of the standard normal, P(Z < −1.5) = P(Z > 1.5) = 1 − Φ(1.5) ≈ 1 − 0.9332 = 0.0668. 0.9332 is P(Z < 1.5), 0.4332 is P(0 < Z < 1.5), and 0.1336 counts both tails |Z| > 1.5.
X ~ N(μ = 10, σ = 3) and Y ~ N(μ = 20, σ = 4) are independent. Using Φ(2) ≈ 0.9772, what is P(X + Y > 40)? (Round to 4 decimals.)
- 0.0766
- 0.0228
- 0.0456
- 0.9772
A sum of independent normals is normal; means add and variances add: X + Y ~ N(30, 3² + 4² = 25), so σ = 5. z = (40 − 30)/5 = 2 and P = 1 − 0.9772 = 0.0228. 0.0766 adds the standard deviations (σ = 7, z ≈ 1.43), 0.0456 counts both tails, and 0.9772 is P(X + Y < 40).
Z₁, Z₂, Z₃, Z₄ are independent standard normal variables. What are the mean and the variance of Q = Z₁² + Z₂² + Z₃² + Z₄²?
- mean 4, variance 4
- mean 0, variance 4
- mean 4, variance 8
- mean 2, variance 4
Q ~ χ²(4), which is the Gamma distribution with shape k/2 = 2 and scale 2: mean k = 4, variance 2k = 8. Per term: E[Z²] = 1 and Var(Z²) = E[Z⁴] − 1 = 3 − 1 = 2. "Variance 4" assumes Var(Z²) = 1, mean 0 / variance 4 describes Z₁ + … + Z₄ (no squares), and mean 2 takes the gamma shape k/2 as the mean, forgetting the scale 2.
Customers arrive as a Poisson process at a rate of 2 per hour. What is the probability that the 3rd customer arrives more than 1 hour after opening? (Round to 3 decimals.)
- 0.135
- 0.406
- 0.677
- 0.323
The time T₃ of the 3rd arrival is Gamma(shape 3, rate 2), and T₃ > 1 exactly when fewer than 3 customers arrive in the first hour, N ~ Poisson(2): P = e^(−2)·(1 + 2 + 2²/2) = 5e^(−2) ≈ 0.677. 0.135 = e^(−2) is P(no arrivals), i.e. the answer for the 1st customer, 0.406 = 3e^(−2) forgets the term for 2 arrivals, and 0.323 is P(T₃ ≤ 1).
X is uniformly distributed on [0, 0.5]. What is the value of its density f(x) for 0 ≤ x ≤ 0.5?
- 2
- 0.5
- 1
- 0.25
The density of U[a, b] is 1/(b − a) = 1/0.5 = 2, so that the total area is 2·0.5 = 1. A density is not a probability and can exceed 1 — only its integral over an interval must be ≤ 1. 0.5 is the interval length, 1 is the mistaken "a density cannot exceed 1", and 0.25 = 0.5² has no basis.
Limit theorems10
What does the law of large numbers say about i.i.d. observations with mean μ?
- After a long run of heads, tails becomes more likely, so the results even out
- Each individual observation becomes normally distributed as n grows
- The sample mean x̄ gets arbitrarily close to μ as the sample size n grows
- The sample variance grows without bound as n grows
The LLN says x̄ₙ → μ as n → ∞. It does not work by "compensation": independent trials have no memory, so believing tails becomes due after many heads is the gambler's fallacy. Early deviations are simply diluted by many later observations.
A population has mean μ = 50 and standard deviation σ = 20. What is the standard deviation of the sample mean x̄ for samples of size n = 100?
- 20
- 4
- 2
- 0.2
The standard error is σ/√n = 20/√100 = 20/10 = 2. 20 is the spread of a single observation, 4 = σ²/n is the variance of x̄ (not its standard deviation), and 0.2 = σ/n divides by n instead of √n.
A fair coin is tossed 100 times. By the normal approximation, the number of heads lies in about 95% of cases between…
- 45 and 55
- 48 and 52
- 30 and 70
- 40 and 60
X ~ Binomial(100, 0.5) has mean np = 50 and standard deviation √(np(1 − p)) = √25 = 5. About 95% lies within ±2σ: 50 ± 10, i.e. 40 to 60. 45–55 is only ±1σ (about 68%).
A population has mean μ = 50 and standard deviation σ = 20; samples of size n = 100 are taken. Using the CLT and Φ(2) ≈ 0.9772, approximately what is P(x̄ > 54)? (Round to 3 decimals.)
- 0.023
- 0.421
- 0.046
- 0.159
By the CLT x̄ ≈ N(50, 2²), so z = (54 − 50)/2 = 2 and P(x̄ > 54) ≈ 1 − 0.9772 = 0.0228 ≈ 0.023. 0.421 = P(Z > 0.2) uses σ = 20 instead of the standard error σ/√n = 2, 0.046 counts both tails, and 0.159 = P(Z > 1) uses the variance 4 as the standard deviation.
What does the central limit theorem state for i.i.d. observations with finite variance?
- As n grows, the population distribution itself becomes approximately normal
- The histogram of a large sample always looks like a normal curve
- For large n, the sample mean x̄ is approximately normal, whatever the shape of the population
- It applies only when the population is already normally distributed
The CLT is about the sampling distribution of x̄ (or of a sum): it approaches N(μ, σ²/n) as n grows, even for skewed or discrete populations. The population does not change, and the histogram of a large sample resembles the population's shape, not a normal curve. For a normal population x̄ is exactly normal for every n — the CLT is what extends this to other populations.
A fair coin is tossed 100 times. Using the normal approximation with continuity correction and Φ(1.9) ≈ 0.9713, Φ(2.0) ≈ 0.9772, Φ(2.1) ≈ 0.9821, what is approximately P(at least 60 heads)? (Round to 4 decimals.)
- 0.0228
- 0.0179
- 0.0287
- 0.0574
X ~ Binomial(100, 0.5) has mean 50 and standard deviation √(100·0.5·0.5) = 5. "At least 60" includes the bar at 60, which starts at 59.5: z = (59.5 − 50)/5 = 1.9, so P ≈ 1 − 0.9713 = 0.0287 (the exact binomial value is about 0.0284). 0.0228 uses z = 2 without the correction, 0.0179 corrects in the wrong direction (60.5, which gives P(X ≥ 61)), and 0.0574 counts both tails.
A random variable has mean μ and standard deviation σ, but its distribution is unknown. By Chebyshev's inequality, at least what fraction of the probability lies within μ ± 3σ?
- 99.7%
- 2/3 ≈ 66.7%
- 1/9 ≈ 11.1%
- 8/9 ≈ 88.9%
Chebyshev: P(|X − μ| ≥ kσ) ≤ 1/k², so at least 1 − 1/3² = 8/9 lies within 3σ — for any distribution with finite variance. 99.7% is the normal-distribution figure, valid only for the normal, 2/3 uses 1 − 1/k instead of 1 − 1/k², and 1/9 is the bound for the tails outside μ ± 3σ.
X ≥ 0 has mean E[X] = 5. What upper bound does Markov's inequality give for P(X ≥ 20)?
- 1/4
- 1/16
- 3/4
- 4
Markov: for a non-negative X, P(X ≥ a) ≤ E[X]/a = 5/20 = 1/4. 1/16 squares the ratio as in Chebyshev, which would need the variance, 3/4 is a lower bound for P(X < 20), and 4 = 20/5 inverts the ratio — it is not even a probability.
A fair coin is tossed n times. As n grows, which statement is true?
- Both |proportion of heads − 1/2| and |heads − n/2| shrink to 0
- The proportion of heads tends to 1/2, while the typical size of |heads − n/2| grows like √n
- |heads − n/2| shrinks to 0, because tails must catch up after a run of heads
- The proportion of heads keeps fluctuating as much as for small n; only its histogram becomes bell-shaped
The number of heads has standard deviation √n/2 (5 for n = 100, 50 for n = 10 000), so the absolute difference from n/2 typically grows. Dividing by n gives the proportion, whose standard deviation 1/(2√n) → 0: that is the law of large numbers. The LLN works by dilution, not by tails "catching up" (gambler's fallacy), and the CLT describes the bell shape of fluctuations whose size shrinks like 1/√n.
An elevator's limit is 3000 kg. Passenger weights are i.i.d. with mean 80 kg and standard deviation 12 kg, and 36 passengers board. Using the CLT and Φ(1.67) ≈ 0.9525, approximately what is P(total weight > 3000 kg)?
- 0.39
- ≈ 0 (z = 10)
- 0.0475
- 0.095
The total S has mean 36·80 = 2880 and standard deviation 12·√36 = 72, and by the CLT S ≈ N(2880, 72²). z = (3000 − 2880)/72 ≈ 1.67, so P ≈ 1 − 0.9525 = 0.0475. 0.39 uses 36·12 = 432 as the standard deviation (z ≈ 0.28) — standard deviations of a sum grow like √n, not n; z = 10 uses the standard deviation of one passenger, and 0.095 counts both tails.
Estimation13
What is the sample variance s² of the data below?
2, 4, 6, 8- 5
- 20/3 ≈ 6.67
- 2.58
- 20
x̄ = 5; the deviations are −3, −1, 1, 3, and the sum of squares is 9 + 1 + 1 + 9 = 20. s² = 20/(n − 1) = 20/3 ≈ 6.67. 5 = 20/4 divides by n (the population formula), 20 forgets to divide, and 2.58 = √(20/3) is the sample standard deviation s.
Why is the sample variance computed as s² = Σ(xᵢ − x̄)² / (n − 1) rather than dividing by n?
- Dividing by n − 1 makes s an unbiased estimator of σ
- Dividing by n − 1 makes s² an unbiased estimator of σ²
- One observation is discarded as a potential outlier
- It makes s² smaller, so the estimate is more conservative
Deviations are measured from x̄, which is fitted to the same data, so Σ(xᵢ − x̄)² is on average smaller than Σ(xᵢ − μ)²; dividing by n underestimates σ². Dividing by n − 1 (one degree of freedom is used up by x̄) gives E[s²] = σ². It makes s² larger, not smaller, and s itself is still slightly biased for σ — the square root does not preserve unbiasedness.
A sample of n = 25 has mean x̄ = 20; the population standard deviation is known, σ = 5. What is the 95% confidence interval for μ? (z = 1.96)
- (10.2, 29.8)
- (19.608, 20.392)
- (18.355, 21.645)
- (18.04, 21.96)
The standard error is σ/√n = 5/5 = 1, so the interval is 20 ± 1.96·1 = (18.04, 21.96). (10.2, 29.8) uses σ instead of σ/√n, (19.608, 20.392) divides σ by n, and (18.355, 21.645) uses z = 1.645, which gives a 90% interval.
What is the correct interpretation of a 95% confidence interval for the population mean μ?
- 95% of the population values lie inside the interval
- The sample mean x̄ lies inside the interval with probability 0.95
- If the sampling were repeated many times, about 95% of the intervals built this way would contain μ
- μ varies from sample to sample and falls into this interval 95% of the time
μ is a fixed (unknown) number; it is the interval that is random. The 95% describes the method: in repeated sampling about 95% of such intervals cover μ. The interval is about the mean, not about individual values, and x̄ is always at its centre.
A survey of n = 25 people gives a 95% confidence interval with margin of error 6. With the same σ and confidence level, what sample size gives a margin of error of 2?
- 75
- 225
- 43
- 625
The margin of error z·σ/√n is proportional to 1/√n. Making it 3 times smaller requires √n to be 3 times larger, i.e. n multiplied by 3² = 9: 25·9 = 225. 75 = 25·3 assumes the margin shrinks like 1/n, 43 ≈ 25·√3 applies the square root the wrong way, and 625 = 25² squares the sample size.
A 95% confidence interval for μ was computed from a sample. Using the same sample, a 99% confidence interval is computed instead. How does the interval change?
- It becomes narrower, because we are more confident
- It stays the same, because the data are the same
- It shifts away from x̄ but keeps its width
- It becomes wider, with the same centre x̄
The interval is x̄ ± z·SE, and the critical value grows with the confidence level (1.96 for 95%, about 2.576 for 99%). To be more sure of covering μ, the interval must cover more — it gets wider, still centred at x̄. Higher confidence costs precision; only a larger sample can give both.
A sample of n = 16 has mean x̄ = 50 and sample standard deviation s = 8; σ is unknown and the population is roughly normal. Using the critical values below, what is the 95% confidence interval for μ?
t(0.025; 15 df) = 2.131
t(0.025; 16 df) = 2.120
z(0.025) = 1.96- (45.738, 54.262)
- (46.08, 53.92)
- (45.76, 54.24)
- (32.952, 67.048)
With σ unknown use the t distribution with n − 1 = 15 degrees of freedom: SE = s/√n = 8/4 = 2, and 50 ± 2.131·2 = 50 ± 4.262 = (45.738, 54.262). (46.08, 53.92) uses z = 1.96 as if σ were known — too narrow for a small sample; (45.76, 54.24) uses n instead of n − 1 degrees of freedom, and (32.952, 67.048) uses s instead of s/√n.
X₁, …, X₅ are i.i.d. with variance σ² = 10. The variance is estimated by σ̂² = Σ(Xᵢ − X̄)² / n, dividing by n = 5. What is E[σ̂²]?
- 10
- 8
- 12.5
- 2
E[Σ(Xᵢ − X̄)²] = (n − 1)·σ² = 4·10 = 40, so E[σ̂²] = 40/5 = 8 = ((n − 1)/n)·σ². The estimator is biased downward by σ²/n = 2; dividing by n − 1 instead gives E[s²] = 10. Answering 10 assumes the estimator is unbiased, 12.5 = (n/(n − 1))·σ² applies the correction factor the wrong way, and 2 = σ²/n is the variance of X̄.
In 20 independent Bernoulli trials there are 7 successes. What is the maximum likelihood estimate of the success probability p?
- 0.35
- 0.5
- 7
- 0.538
L(p) = p⁷(1 − p)¹³; setting the derivative of the log-likelihood to zero, 7/p − 13/(1 − p) = 0, gives p̂ = 7/20 = 0.35 — the sample proportion. 0.5 is a prior guess that ignores the data, 7 is the count, not a probability, and 0.538 = 7/13 is the ratio of successes to failures (the odds).
How large a sample is needed to estimate a population proportion to within ±3 percentage points with 95% confidence, if nothing is known about p? (z = 1.96)
- 2135
- 33
- 752
- 1068
The margin of error is z·√(p(1 − p)/n); the worst case is p = 0.5. n = z²·p(1 − p)/E² = 1.96²·0.25/0.03² = 3.8416·0.25/0.0009 ≈ 1067.1, rounded up to 1068. 2135 uses p instead of p(1 − p), 33 forgets to square the margin 0.03, and 752 uses z = 1.645, which gives 90% confidence.
The waiting times 1, 2, 3, 6 (minutes) are a sample from an exponential distribution with density λe^(−λx). What is the maximum likelihood estimate of the rate λ?
- 3
- 1/12
- 0.4
- 1/3
log L(λ) = n·ln λ − λ·Σxᵢ; setting n/λ − Σxᵢ = 0 gives λ̂ = n/Σxᵢ = 4/12 = 1/3 = 1/x̄. 3 is x̄, the MLE of the mean 1/λ, not of the rate, 1/12 forgets the factor n, and 0.4 = 1/2.5 uses the median instead of the mean.
In a random sample of 400 voters, 120 support a proposal. What is the approximate 95% confidence interval for the population proportion? (z = 1.96)
- (0.255, 0.345)
- (0.262, 0.338)
- (0.299, 0.301)
- (0.271, 0.329)
p̂ = 120/400 = 0.3, SE = √(p̂(1 − p̂)/n) = √(0.21/400) ≈ 0.0229, margin 1.96·0.0229 ≈ 0.045, so 0.3 ± 0.045 = (0.255, 0.345). (0.262, 0.338) uses z = 1.645 (a 90% interval), (0.299, 0.301) uses the variance 0.000525 as if it were the standard error, and (0.271, 0.329) uses p̂ instead of √(p̂(1 − p̂)) as the standard deviation.
Estimator A of θ is unbiased with variance 4. Estimator B has bias 1 and variance 2. Which one has the smaller mean squared error?
- B: MSE = 1² + 2 = 3, less than 4
- A: an unbiased estimator always has the smaller MSE
- B: MSE = 2, since the bias does not enter the MSE
- A: the MSE of B is (1 + 2)² = 9
MSE = E[(θ̂ − θ)²] = Var(θ̂) + bias². A: 4 + 0 = 4; B: 2 + 1² = 3. A small bias can be worth a large reduction in variance — the bias–variance trade-off (shrinkage estimators and regularization rely on it). Unbiasedness alone does not guarantee the smallest error, the bias does count (squared), and MSE is not (bias + variance)².
Hypothesis testing13
What is a type I error?
- Rejecting H₀ when H₀ is actually true
- Failing to reject H₀ when H₀ is actually false
- Rejecting H₀ when H₀ is actually false
- Choosing the wrong significance level α
A type I error is a false positive: rejecting a true null hypothesis; its probability is the significance level α. Failing to reject a false H₀ is a type II error (probability β), and rejecting a false H₀ is a correct decision.
A test gives p-value = 0.03. What does this mean?
- The probability that H₀ is true is 0.03
- The probability that H₁ is true is 0.97
- The probability of a type II error is 0.03
- If H₀ were true, a result at least this extreme would occur with probability 0.03
The p-value is computed assuming H₀ is true: p = P(data at least as extreme as observed | H₀). It is not P(H₀ | data) — reading it as "3% chance that H₀ is true" is the classic misinterpretation (the same P(A|B) vs P(B|A) confusion as in Bayes problems).
The significance level is α = 0.05 and the test gives p = 0.08. What is the correct conclusion?
- Reject H₀, since 0.08 is a small probability
- Fail to reject H₀ at the 5% level
- H₀ is proven to be true
- Accept H₁ with 92% confidence
H₀ is rejected only when p ≤ α; here 0.08 > 0.05, so we fail to reject it. That is not a proof of H₀ — the data are just not strong enough evidence against it. 1 − p is not a "confidence" in H₁.
With the significance level α kept fixed, what happens when the sample size is increased (for a fixed true effect)?
- The probability of a type I error decreases
- The power decreases, because there is more noise in the data
- The power of the test increases and the type II error probability β decreases
- Nothing changes: power depends only on α
A larger n shrinks the standard error, so a real effect is easier to detect: power 1 − β grows and β falls. The type I error probability stays at α — that is exactly what fixing α means.
H₀: μ = 100 vs H₁: μ ≠ 100, σ = 10 known, n = 25, sample mean x̄ = 104, α = 0.05 (critical value 1.96, Φ(2) ≈ 0.9772). What is the result of the z-test?
- z = 2; reject H₀ (two-sided p ≈ 0.046)
- z = 0.4; do not reject H₀
- z = 2; do not reject H₀, since p ≈ 0.954 > 0.05
- z = 10; reject H₀ (p ≈ 0)
z = (x̄ − μ₀)/(σ/√n) = (104 − 100)/(10/5) = 2 > 1.96, so H₀ is rejected; the two-sided p-value is 2·(1 − 0.9772) ≈ 0.046. z = 0.4 forgets the √n (uses σ instead of the standard error), z = 10 divides σ by n, and 0.954 is the probability of the non-extreme region, not the p-value.
What is the power of a statistical test?
- The probability of rejecting H₀ when H₀ is false
- The probability of rejecting H₀ when H₀ is true
- The probability that H₀ is true, given the data
- The confidence level 1 − α
Power = P(reject H₀ | H₀ false) = 1 − β, the chance of detecting an effect that really exists. Rejecting a true H₀ is a type I error with probability α, and 1 − α is the probability of correctly keeping a true H₀ — not the power. Tests never give P(H₀ | data).
A z-test gives z = 1.8, α = 0.05. The critical values are 1.645 (one-sided) and 1.96 (two-sided). Which conclusion is correct?
- Reject H₀ in both the one-sided and the two-sided test
- Reject H₀ in the one-sided test (H₁: μ > μ₀), but not in the two-sided test
- Reject H₀ in the two-sided test, but not in the one-sided test
- Reject H₀ in neither test
One-sided: 1.8 > 1.645, p = 1 − Φ(1.8) ≈ 0.036 < 0.05 — reject. Two-sided: 1.8 < 1.96, p = 2·0.036 ≈ 0.072 > 0.05 — do not reject. The two-sided test splits α between both tails, so it needs a more extreme z. That is also why the direction of H₁ must be fixed before seeing the data — switching to a one-sided test afterwards to get significance is cheating.
To test whether a die is fair, it is rolled 60 times with the results below. What is the chi-square goodness-of-fit statistic and its number of degrees of freedom?
Face 1 2 3 4 5 6
Observed 8 12 9 11 6 14- χ² = 42 with 5 degrees of freedom
- χ² = 4.2 with 6 degrees of freedom
- χ² = 4.2 with 5 degrees of freedom
- χ² = 0, because Σ(O − E) = 0
Under H₀ each face is expected E = 60/6 = 10 times. χ² = Σ(O − E)²/E = (4 + 4 + 1 + 1 + 16 + 16)/10 = 4.2, with k − 1 = 5 degrees of freedom (the counts must add up to 60). 4.2 is far below the 5% critical value 11.07, so fairness is not rejected. 42 forgets to divide by E, 6 df forgets the constraint, and Σ(O − E) is always 0 — that is why the deviations are squared.
A researcher runs 10 tests and wants the family-wise type I error rate to be at most 0.05. Using the Bonferroni correction, what significance level should each test use?
- 0.05
- 0.5
- 0.0005
- 0.005
Bonferroni divides α by the number of tests: 0.05/10 = 0.005. Then P(at least one false positive) ≤ Σ 0.005 = 0.05. Keeping 0.05 per test lets the family-wise error grow, 0.5 multiplies instead of dividing, and 0.0005 divides by 100.
A researcher measures 20 different outcomes, tests each at α = 0.05 and publishes only the one that came out significant, without mentioning the others. What is the main problem?
- Nothing: a p-value below 0.05 is valid regardless of how many tests were run
- The reported result overstates the evidence: with many tries, a false positive is likely even if there is no effect
- The sample must have been too large, which makes every test significant
- α = 0.05 is too strict for 20 outcomes, so real effects were missed
This is p-hacking (selective reporting): each test has a 5% false-positive rate under H₀, so among 20 tries one "significant" result is expected by chance alone. The p-value of the chosen test no longer means what it claims. Honest options: pre-register the main outcome, report all tests, or correct for multiple testing (e.g. Bonferroni).
20 independent tests are each done at α = 0.05, and all 20 null hypotheses are true. What is the probability of at least one false positive? (Round to 3 decimals.)
- 0.05
- 0.642
- 1
- 0.358
P(no false positive) = 0.95²⁰ ≈ 0.358, so P(at least one) = 1 − 0.358 ≈ 0.642. 0.05 is the error rate of a single test, 1 = 20·0.05 adds probabilities of overlapping events (this sum is only the Bonferroni upper bound), and 0.358 is the probability of no false positive.
A study with 20 000 participants finds that a training programme raises test scores by 0.5 points on average (the standard deviation of scores is 15 points), p < 0.001. What is Cohen's d, and what is the right conclusion?
- d = 0.5: a medium-sized effect
- d = 30: an enormous effect
- d ≈ 0.03: statistically significant, but practically negligible
- d ≈ 0.03, but p < 0.001 shows the effect is large
Cohen's d = difference / standard deviation = 0.5/15 ≈ 0.033, far below even a "small" effect (0.2). With 20 000 participants the standard error is tiny, so even a negligible effect gives a tiny p-value: p measures how surprising the data are under H₀, not how big the effect is. d = 0.5 uses the raw difference without standardizing, and 30 = 15/0.5 inverts the ratio.
Five patients have their blood pressure measured before and after a treatment; the differences (before − after) are below. What is the paired t statistic and its number of degrees of freedom?
Differences: 2, 4, 3, 5, 1- t ≈ 1.90 with 4 df
- t ≈ 4.24 with 4 df
- t ≈ 4.24 with 8 df
- t ≈ 4.74 with 4 df
A paired test is a one-sample t-test on the differences: d̄ = 3, s_d = √(Σ(d − d̄)²/(n − 1)) = √(10/4) ≈ 1.581, SE = 1.581/√5 ≈ 0.707, t = 3/0.707 ≈ 4.24 with n − 1 = 4 df. 1.90 = d̄/s_d forgets the √n, 8 df = n₁ + n₂ − 2 belongs to a two-sample test, which is wrong for two measurements of the same patients, and 4.74 divides by n instead of n − 1 in s_d.
Correlation and regression12
The correlation between two variables is r = 0.8. What share of the variance of y is explained by the linear regression on x?
- 80%
- 64%
- 89%
- 40%
In simple linear regression the coefficient of determination is R² = r² = 0.8² = 0.64, i.e. 64%. Reading r itself as the explained share gives 80%; 89% ≈ √0.8 applies the root the wrong way.
Across summer months, ice-cream sales and the number of drownings are strongly positively correlated. What is the most reasonable conclusion?
- Eating ice cream increases the risk of drowning
- Drownings boost ice-cream sales
- Correlation alone does not show causation; a third variable (hot weather) likely drives both
- The correlation must be a calculation error, since the variables are unrelated
Correlation measures association, not cause and effect. Here a confounding variable — temperature — increases both ice-cream sales and swimming (and so drownings). The correlation is real; the causal story is not.
What is the least-squares regression line ŷ = a + bx for the data below?
x: 1 2 3 4
y: 2 4 5 7- ŷ = 1.6x
- ŷ = 2.94 + 0.625x
- ŷ = 1/3 + (5/3)x
- ŷ = 0.5 + 1.6x
x̄ = 2.5, ȳ = 4.5. Sxy = Σ(x − x̄)(y − ȳ) = 3.75 + 0.25 + 0.25 + 3.75 = 8, Sxx = Σ(x − x̄)² = 5, so b = Sxy/Sxx = 1.6 and a = ȳ − b·x̄ = 4.5 − 4 = 0.5. ŷ = 1.6x forgets the intercept, 0.625 = Sxx/Sxy is the slope fraction upside down, and 1/3 + (5/3)x is just the line through the first and last points.
For a data set, the Pearson correlation is r = 0. What can be concluded?
- There is no linear relationship, but a strong non-linear one is still possible
- x and y are independent
- There is no relationship of any kind between x and y
- The regression line has slope 1
r measures only linear association. For example, x = −2, −1, 0, 1, 2 with y = x² gives r = 0, although y is a function of x. Independence implies r = 0, but not the other way round. With r = 0 the least-squares slope b = r·s_y/s_x is 0, not 1.
The fitted regression line is ŷ = 2 + 3x. For the observed point (x = 4, y = 11), what is the residual?
- 3
- 14
- 9
- −3
The predicted value is ŷ = 2 + 3·4 = 14, and the residual is observed minus predicted: e = y − ŷ = 11 − 14 = −3 (the point lies below the line). 3 is ŷ − y (the wrong order), 14 is the prediction itself, and 9 = 11 − 2 subtracts only the intercept.
The points (1, 1), (2, 2), (3, 3), (4, 4), (5, 5) have correlation r = 1. The point (20, 0) is added. What happens to r?
- It stays close to 1, because one point out of six has little influence
- It drops to about −0.49 — the sign flips
- It becomes about 0.83 = 5/6, since 5 of the 6 points lie on the line
- It becomes undefined, because the points no longer lie on one line
r is not resistant to outliers. The new point is far from the others in x, so it has high leverage and dominates both the covariance and the variance of x: with x̄ = 35/6 and ȳ = 15/6 the computation gives r ≈ −0.49. One influential point can create, destroy or even reverse a correlation — always plot the data. r is defined for any data with non-zero spread in both variables, not only for points on a line.
For a data set, the correlation is r = 0.6, the standard deviation of x is s_x = 2 and of y is s_y = 5. What is the slope of the least-squares regression line of y on x?
- 1.5
- 0.24
- 2.5
- 0.6
b = r·s_y/s_x = 0.6·5/2 = 1.5: one standard deviation of x (2 units) moves the prediction by r = 0.6 standard deviations of y (3 units). 0.24 = r·s_x/s_y inverts the ratio (that is the slope of the regression of x on y), 2.5 = s_y/s_x ignores r (that would be the slope only for r = 1), and 0.6 confuses the slope with the correlation, which coincide only when s_x = s_y.
For children aged 2 to 10, height in cm is well described by ŷ = 80 + 6·age. The model predicts 80 + 6·40 = 320 cm for a 40-year-old. What is wrong?
- Nothing: the line fits the data well, so it is valid for all ages
- The prediction extrapolates far outside the range of ages used to fit the model, where the linear trend does not hold
- Only the sign is wrong: for adults the slope should be negative
- The intercept is wrong, so the line has to be refitted with age 0 included
A regression line describes the relationship only within the range of the data (ages 2–10). Growth stops in the late teens, so applying the line at age 40 is extrapolation. A good fit inside the range says nothing about the outside, and the problem is not a wrong sign or intercept but using a model where it was never checked.
After fitting a straight line, the residual plot (residuals against fitted values) shows a clear U-shaped curve. What does this suggest?
- The relationship is non-linear, so a straight line is the wrong model (for example, add a quadratic term)
- The model fits well, because the residuals average to zero
- The correlation between x and y is negative
- The residuals are normally distributed, as required
A good linear fit leaves residuals scattered randomly around 0 with no pattern. A systematic curve means the line is too high in the middle and too low at the ends (or vice versa): the true relationship bends. Least-squares residuals always average to zero, so that proves nothing; the shape of the residual plot says nothing about the sign of r or about normality.
Students who scored in the top 10% on a first exam score, on average, noticeably lower on a similar second exam, while the bottom 10% score on average higher. Nothing happened in between. What is the most likely explanation?
- Top students became overconfident and bottom students tried harder
- Regression to the mean: scores contain random luck, and extreme first scores partly reflect luck that does not repeat
- The second exam was graded more strictly
- Extreme students should stay extreme, so the exams must be measuring different things
Each score = ability + chance. A group selected for extreme first scores is enriched with people who were lucky (top) or unlucky (bottom) that day; the luck does not repeat, so both groups move toward the average. Stricter grading would lower everyone, including the bottom group, and no psychological story is needed — the effect appears whenever the correlation between the two measurements is less than 1.
In a simple linear regression of y on x, R² = 0.36 and the fitted slope is negative. What is the correlation coefficient r?
- 0.6
- −0.36
- −0.1296
- −0.6
In simple regression R² = r², so |r| = √0.36 = 0.6, and r has the same sign as the slope (b = r·s_y/s_x): r = −0.6. 0.6 ignores the sign, −0.36 takes R² itself as r, and −0.1296 = −0.36² squares instead of taking the root.
A logistic regression gives log-odds of purchase = −2 + 0.8x, where x is the number of site visits. For x = 5, what is the predicted probability of purchase, and how do the odds change per extra visit?
- p = 2; the odds increase by 0.8 per visit
- p ≈ 0.881; the probability increases by 0.8 per visit
- p ≈ 7.389; the odds are multiplied by 0.8 per visit
- p ≈ 0.881; the odds are multiplied by e^0.8 ≈ 2.23 per visit
Log-odds = −2 + 0.8·5 = 2, so odds = e² ≈ 7.389 and p = odds/(1 + odds) = 7.389/8.389 ≈ 0.881. A coefficient adds 0.8 to the log-odds, i.e. multiplies the odds by e^0.8 ≈ 2.23; its effect on the probability is not constant (p is an S-shaped function of x). p = 2 reads the log-odds as a probability, 7.389 is the odds, not the probability, and adding 0.8 to a probability would quickly exceed 1.
Как проходить тест
- Выберите темы и уровень — лёгкий уровень проверяет определения и задачи в одно действие, средний — стандартные вычисления, сложный — многошаговые задачи и теорию.
- Отвечайте касанием или с клавиатуры: 1–4 или A–D, Enter — следующий вопрос.
- Читайте объяснения — после ошибки разбор открывается сразу, после верного ответа его можно раскрыть кнопкой «Почему».
- Работайте над ошибками — «Повторить ошибки» в конце теста или режим «Только мои ошибки» потом: ответы запоминаются в этом браузере.
Незавершённый тест сохраняется — после перезагрузки страницы можно продолжить с того же вопроса.
Темы теста
- Basic probability 11
- Combinatorics 10
- Conditional probability 13
- Independence 10
- Random variables 13
- Discrete distributions 12
- Continuous distributions 13
- Limit theorems 10
- Estimation 13
- Hypothesis testing 13
- Correlation and regression 12
Другие тесты
Тест по линейной алгебре160 вопросовТест по дифференциальным уравнениям130 вопросовТест по SAS100 вопросовТест по языку R100 вопросовТест по LaTeX100 вопросовТест по системам компьютерной алгебры100 вопросовТест по Fortran120 вопросовТест по языку C100 вопросовТест по COBOL100 вопросовТест по MATLAB100 вопросовТест по PowerBuilder100 вопросовТест по UNIX100 вопросов
