Practise

Exercises

Work out each answer, type it in and check it. Hints come one at a time, and the worked solution appears once you have tried.

0 of 50 answered correctly, kept in this browser.

1. Probability and events

Read the chapter

A total of 7 with two dice

Two fair dice are rolled. What is the probability that their total is 7? Give it to four decimals.

Your answer
A decimal or a fraction; within 0.0001 of the answer counts as right.

Neither symptom

Of 150 patients with a condition, 81 have a fever, 54 feel fatigue and 27 have both. What is the probability that a patient has neither symptom?

Your answer
A decimal or a fraction; within 0.0001 of the answer counts as right.

At least one head

A fair coin is flipped 5 times. What is the probability of at least one head?

Your answer
A decimal or a fraction; within 0.0001 of the answer counts as right.

2. Conditional probability and Bayes

Read the chapter

Fatigue without a fever

Of 150 patients, 81 have a fever, 54 feel fatigue and 27 have both. Among the patients without a fever, what is the probability of fatigue?

Your answer
A decimal or a fraction; within 0.0001 of the answer counts as right.

A positive screening result

A condition affects 2 % of the people screened. The test is positive for 90 % of the people with the condition and negative for 95 % of those without it. What is the probability that someone who tests positive has the condition?

Your answer
A decimal or a fraction; within 0.0001 of the answer counts as right.

Two machines

Two machines fail on a given day with probabilities 0.1 and 0.05, independently of each other. What is the probability that at least one of them fails?

Your answer
A decimal or a fraction; within 0.0001 of the answer counts as right.

3. Random variables

Read the chapter

Cakes in the last hour: the mean

A café sells 0, 1, 2 or 3 cakes in its last hour, with probabilities 0.1, 0.3, 0.4 and 0.2. What is the expected number of cakes sold?

Your answer
A decimal or a fraction; within 0.0001 of the answer counts as right.

Cakes in the last hour: the spread

For the same café (0, 1, 2 or 3 cakes with probabilities 0.1, 0.3, 0.4 and 0.2), what is the standard deviation of the number of cakes sold?

Your answer
A decimal or a fraction; within 0.0001 of the answer counts as right.

How many cakes to keep

For the same café, what is the smallest number of cakes to keep for the last hour so that the demand is met with a probability of at least 0.75?

Your answer
A whole number.

4. The uniform distribution

Read the chapter

The bookseller's middle days

A bookseller sells between 90 and 100 books a day, every total equally likely. What is the probability of selling between 92 and 97 books, both included?

Your answer
A decimal or a fraction; within 0.0001 of the answer counts as right.

A quick bug fix

Fixing a bug takes anywhere from 1 to 5 hours, every time equally likely. What is the probability that a fix takes less than 2.2 hours?

Your answer
A decimal or a fraction; within 0.0001 of the answer counts as right.

Three bug fixes in four

Fixing a bug takes anywhere from 1 to 5 hours, every time equally likely. How long do the quickest 75 % of fixes take at most (the 75th percentile, in hours)?

Your answer
A decimal or a fraction; within 0.0001 of the answer counts as right.

Spot the mistake: a continuous model for book sales

Spot the mistake

A bookseller sells between 90 and 100 books a day, every whole number equally likely. An analyst reports the chance of selling at most 95 books as uniform.cdf(95, loc=90, scale=10) = 0.5. What is the right probability?

Your answer
A decimal or a fraction; within 0.0001 of the answer counts as right.

Spot the mistake: a density read as a probability

Spot the mistake

Fixes of a small bug take anywhere from 1 to 1.5 hours, every time equally likely. A chart labels the flat line at height 2 as "probability", and a reader concludes that every fix time has probability 2. What is the probability that a fix takes between 1.1 and 1.3 hours?

Your answer
A decimal or a fraction; within 0.0001 of the answer counts as right.

5. The binomial distribution

Read the chapter

LED bulbs: none faulty

From the course's practice set: LED bulbs

Historically, 5 % of a company's LED bulbs are faulty. In a random sample of 10 bulbs, what is the probability that none is faulty?

Your answer
A decimal or a fraction; within 0.0001 of the answer counts as right.

LED bulbs: three or more faulty

From the course's practice set: LED bulbs

With the same fault rate of 5 %, what is the probability that three or more of the 10 bulbs are faulty?

Your answer
A decimal or a fraction; within 0.0001 of the answer counts as right.

Free throws: at least one

From the course's practice set: Free throws

A basketball player scores 93 % of free throws and takes two, independently. What is the probability of scoring at least one?

Your answer
A decimal or a fraction; within 0.0001 of the answer counts as right.

Sales trainees: exactly two outstanding

From the course's practice set: Sales trainees

In a large company, 10 % of sales trainees are rated outstanding. For 10 trainees chosen at random, what is the probability that exactly two are rated outstanding?

Your answer
A decimal or a fraction; within 0.0001 of the answer counts as right.

Sales trainees: two or more outstanding

From the course's practice set: Sales trainees

With 10 % of trainees rated outstanding, what is the probability that two or more of 10 trainees are rated outstanding?

Your answer
A decimal or a fraction; within 0.0001 of the answer counts as right.

Sales trainees: eight at the top

From the course's practice set: Sales trainees

Of all sales trainees, 10 % are rated outstanding and 75 % excellent. For 10 trainees chosen at random, what is the probability that exactly eight are rated either outstanding or excellent?

Your answer
A decimal or a fraction; within 0.0001 of the answer counts as right.

Spot the mistake: one third is not 0.33

Spot the mistake

A dose is unsatisfactory with probability one in three. For a batch of 10 doses, an analyst enters p = 0.33 and reports the chance of at most 3 unsatisfactory doses as 0.5684. What is the right probability?

Your answer
A decimal or a fraction; within 0.0001 of the answer counts as right.

6. The Poisson distribution

Read the chapter

A quiet ten minutes

A help desk receives on average 18 calls an hour. What is the probability that no call arrives in a given 10-minute period?

Your answer
A decimal or a fraction; within 0.0001 of the answer counts as right.

A busy hour

A help desk receives on average 4 calls an hour. What is the probability of 5 or more calls in an hour?

Your answer
A decimal or a fraction; within 0.0001 of the answer counts as right.

Typing errors

A report has on average 0.8 typing errors a page. What is the probability that a page has at most one error?

Your answer
A decimal or a fraction; within 0.0001 of the answer counts as right.

Rare fraud among many payments

Each of 1,000 card payments is fraudulent with probability 0.002, independently. Using the Poisson approximation, what is the probability that exactly 3 are fraudulent?

Your answer
A decimal or a fraction; within 0.0001 of the answer counts as right.

7. The normal distribution

Read the chapter

Phone bills: a large bill

From the course's practice set: Phone bills

Monthly phone bills are normal with a mean of 850 rupees and a standard deviation of 150 rupees. What is the probability that a bill is more than 1,200 rupees?

Your answer
A decimal or a fraction; within 0.0001 of the answer counts as right.

Phone bills: the top 15 %

From the course's practice set: Phone bills

With the same bills (normal, mean 850 rupees, standard deviation 150 rupees), above what amount lie the top 15 % of bills? Give it in rupees to four decimals.

Your answer
A decimal or a fraction; within 0.0001 of the answer counts as right.

Bottle filling

From the course's practice set: Bottle filling

A machine fills bottles with a normal amount, mean 500 ml and standard deviation 20 ml. What is the probability that a bottle holds between 470 and 525 ml?

Your answer
A decimal or a fraction; within 0.0001 of the answer counts as right.

The least in 99 % of bottles

From the course's practice set: Soft drink bottles

Two-litre bottles hold a normal amount of drink, mean 2.0 litres and standard deviation 0.05 litres. At least what amount do 99 % of bottles contain? Give it in litres to four decimals.

Your answer
A decimal or a fraction; within 0.0001 of the answer counts as right.

Spot the mistake: a 50 % drop is not a log return of −0.5

Spot the mistake
From the course's practice set: Simulated share

The simulated share's daily log returns have a mean of 0.00123 and a standard deviation of 0.0279, so the yearly log return (250 trading days) is modelled as normal with mean 250 × 0.00123 and standard deviation √250 × 0.0279. An analyst reports the chance of a drop of more than 50 % in a year as norm.cdf(-0.5, 250*0.00123, np.sqrt(250)*0.0279) = 0.034. What is the right probability?

Your answer
A decimal or a fraction; within 0.0001 of the answer counts as right.

Spot the mistake: a 5 % fall in a day

Spot the mistake
From the course's practice set: Simulated share

With the simulated share's daily log returns modelled as normal with mean 0.00123 and standard deviation 0.0279, an analyst computes the chance of a fall of more than 5 % in a day as norm.cdf(-0.05, 0.00123, 0.0279). What is the right probability?

Your answer
A decimal or a fraction; within 0.0001 of the answer counts as right.

8. The standard normal and z-scores

Read the chapter

A slow delivery

Deliveries take on average 35 minutes with a standard deviation of 8 minutes, roughly normally. What share of deliveries take longer than 47 minutes?

Your answer
A decimal or a fraction; within 0.0001 of the answer counts as right.

Between one below and two above

For the same deliveries (normal, mean 35 minutes, standard deviation 8 minutes), what is the exact probability that a delivery takes between 27 and 51 minutes?

Your answer
A decimal or a fraction; within 0.0001 of the answer counts as right.

A campaign that does well

An e-mail goes to 200 customers, each opening it with probability 0.25, independently. Using the normal approximation with the continuity correction, what is the probability of at least 60 opens?

Your answer
A decimal or a fraction; within 0.0001 of the answer counts as right.

Spot the mistake: the sample's mean in a z-score

Spot the mistake

A packing line fills bags to a mean of 500 g with a standard deviation of 4 g: that is the process. Five bags weighed this morning have a mean of 503 g and a standard deviation of 2 g. To judge a 508 g bag, an analyst computes z = (508 − 503)/2 = 2.5. What is the right z-score?

Your answer
A decimal or a fraction; within 0.0001 of the answer counts as right.

9. The exponential distribution

Read the chapter

The next customer

Customers arrive at a café at 12 an hour, at random. What is the probability that the next customer arrives within 3 minutes?

Your answer
A decimal or a fraction; within 0.0001 of the answer counts as right.

Half the components

A component's lifetime is exponential with a mean of 2,000 hours. By what time have half the components failed (the median lifetime, in hours)?

Your answer
A decimal or a fraction; within 0.0001 of the answer counts as right.

An old component

The same component (exponential lifetime, mean 2,000 hours) has already run for 3,000 hours. What is the probability that it runs at least another 500 hours?

Your answer
A decimal or a fraction; within 0.0001 of the answer counts as right.

10. Sampling distributions and the CLT

Read the chapter

Battery life: a disappointing batch

From the course's practice set: Battery life

A maker's batteries last on average 60 months, with a standard deviation of 6 months, roughly normally. What is the probability that the mean lifetime of 40 batteries chosen at random is below 58 months?

Your answer
A decimal or a fraction; within 0.0001 of the answer counts as right.

Sixteen deliveries

Deliveries take on average 35 minutes, with a standard deviation of 8 minutes. What is the probability that the mean of 16 deliveries lies between 33 and 37 minutes?

Your answer
A decimal or a fraction; within 0.0001 of the answer counts as right.

A slow sprint

Fixing a bug takes anywhere from 1 to 5 hours, every time equally likely. A sprint closes 40 bugs. Using the CLT, what is the probability that their average fix time is more than 3.3 hours?

Your answer
A decimal or a fraction; within 0.0001 of the answer counts as right.

How many orders to average

Order values vary with a standard deviation of £18. How many orders must be averaged for the standard error of the mean to be at most £1.5?

Your answer
A whole number.

A year's volatility

A share's daily log returns have a standard deviation of 0.018. If the days are independent, what is the standard deviation of its log return over a year of 250 trading days?

Your answer
A decimal or a fraction; within 0.0001 of the answer counts as right.

Spot the mistake: n = 30 is not always enough

Spot the mistake

Waiting times at a counter are exponential with a mean of 2 minutes. For the mean of 30 waits an analyst uses the CLT, \(\bar{X} \approx N(2, \tfrac{2}{\sqrt{30}})\), and reports \(P(\bar{X} > 2.8) = 0.0142\), since "n = 30 is large enough". The mean of 30 exponential waits in fact follows a gamma distribution, gamma(a=30, scale=2/30). What is the exact probability?

Your answer
A decimal or a fraction; within 0.0001 of the answer counts as right.

11. Student's t and confidence intervals

Read the chapter

Electricity usage: the lower end

From the course's practice set: Electricity bills

A random sample of 40 households used on average 310 kWh in a quarter. A large earlier study found a standard deviation of 89 kWh, taken as known. What is the lower end of the 95 % confidence interval for the mean usage, in kWh to four decimals?

Your answer
A decimal or a fraction; within 0.0001 of the answer counts as right.

t* for 99 %

A 99 % confidence interval is built from a sample of 12 values with σ unknown. What is the critical value t*?

Your answer
A decimal or a fraction; within 0.0001 of the answer counts as right.

Wildfires: a 90 % interval

Ten wildfires caused damage with a mean of 53.6 and a standard deviation of 40.24 (thousands of dollars). What is the upper end of the 90 % t interval for the mean damage, to four decimals?

Your answer
A decimal or a fraction; within 0.0001 of the answer counts as right.

Enough cups

Caffeine per cup has a known standard deviation of 7 mg. What is the smallest number of cups for which a 95 % z interval for the mean has a margin of error of at most 1 mg?

Your answer
A whole number.

Four measurements

Four measurements are 4, 7, 9 and 12. What is their sample standard deviation s, computed with n − 1?

Your answer
A decimal or a fraction; within 0.0001 of the answer counts as right.

Spot the mistake: an interval for the mean is not for single cups

Spot the mistake

From 50 cups, a 95 % confidence interval for a machine's mean caffeine runs from 111.24 to 115.12 mg (σ = 7 mg). A manager reads it as "95 % of cups contain between 111.24 and 115.12 mg". If cups are normal with mean 113.18 mg and standard deviation 7 mg, what share of cups really lies between 111.24 and 115.12 mg?

Your answer
A decimal or a fraction; within 0.0001 of the answer counts as right.
An unhandled error has occurred. Reload 🗙

Reconnecting…

Your connection to Introduction to Probability Lab dropped, probably a Wi-Fi blip. Hold on while it reconnects.

The connection could not be restored. The page will reload in a few seconds.