CSC211 Tutorial Sheet Solutions
Every question on the CSC211 tutorial sheet, solved step by step. Before each solution, a short box shows you how to recognise the type of problem and which tool to reach for.
What is inside
- 1Sample spaces
- 2Events as subsets
- 3Unions, intersections, complements
- 4The addition rule
- 5Counting a random draw
- 6One fair die
- 7Conditional probability: two dice
- 8Two-way tables
- 9Total probability and Bayes
- 10Drawing without replacement
- 11Venn diagrams
- 12Counting octal numbers
- 13Lottery odds (hypergeometric)
- 14Joint and conditional from a table
- 15Independent safety systems
- 16Imperfect tests (Bayes) 🔒
- 17Dartboard: independent throws 🔒
- 18Tree diagrams 🔒
- 19System reliability 🔒
- 20Permutations and combinations 🔒
- 21Bit strings as outcomes 🔒
- 22Subsets of a sample space 🔒
- 23Conditional probability: sums of dice 🔒
- 24Expectation and the CDF 🔒
- 25Proving the variance formula 🔒
- 26Distorted bits and the binomial 🔒
- 27Defectives without replacement 🔒
- 28Densities with an unknown constant 🔒
- 29Mean and variance of aX + b 🔒
- 30Binomial: impure wells 🔒
- 31A binomial on top of a binomial 🔒
- 32The geometric distribution 🔒
- 33Poisson approximation 🔒
- 34The normal distribution 🔒
- 35Means and variances of the common distributions 🔒
- B26Binomial: the shock test 🔒
- B27Binomial ranges and Chebyshev 🔒
- B28Repeat of Question 31 🔒
- B29Geometric: the first defective 🔒
- B30Poisson: the particle counter 🔒
- B31Poisson: tankers turned away 🔒
- B32Repeat of Question 33 🔒
- B33aX + b for a density 🔒
- B34(blank on the sheet)
- B35Joint probability function 🔒
- B36Joint density over a square 🔒
- B37Joint density over a triangle 🔒
- B38Independent exponential lifetimes 🔒
- B39Combined mean 🔒
Each question has a yellow box first. That box tells you how to recognise the type of problem and which tool to use. Read it before the solution. If you can explain the yellow box in your own words, you can solve any problem of the same type.
Every blue box gives the question word for word as it is on the original sheet, including its typing mistakes. Part B questions keep their sheet numbers, with a “B” in front.
The sheet has some typing mistakes and missing parts. Where an assumption was needed, the solution says so clearly. The sheet also numbers questions 1 to 35 and then starts again at 26: the first group is Part A and the second group is Part B.
Every question and every “how to think about it” box is free. The worked solutions to questions 1 to 15 are free too. The other 33 unlock for 200 FCFA, or for free when 3 classmates start reading through your link.
- Equally likely outcomes:
- Complement:
- Addition rule:
- Conditional probability:
- Independence:
- Total probability:
- Bayes:
Sample spaces
Part A · Question 1
Find the sample spaces of the following experiments
i) I attempt to sign up to AOL from my phone – to do so successfully the local phone number must be working and AOL's network must be working.
ii) Online, I attempt to access a web page and record the time required to receive and display it (in seconds).
iii) On a network, there are two possible routes a message can take to a destination – in order for a message to get to the recipient, one of the routes and the recipient's computer must be up.
A sample space is the list of every possible outcome of the experiment. Ask: "What are the separate things that can each be up or down?" If there are things with 2 states each, there are outcomes. If the outcome is a measurement (time, length), the sample space is an interval of real numbers, not a list.
Solution
Write = up (working), = down.
(i) Two things: phone line and network. Outcome = (phone, network).
(ii) Time can be any non-negative real number: .
(iii) Three things: route 1, route 2, recipient's computer. Outcome = .
Events as subsets
Part A · Question 2
With the same exercises as before, define the following events
i) A = fail to log on ; B = AOL network down
ii) C = at least 0s required
iii) D = message gets through;
An event is a subset of the sample space. Go through each outcome in and ask "does the statement hold here?" Keep the ones where the answer is yes.
Solution
(i) Log on succeeds only at . So failure is everything else:
(The network is the second entry.)
(ii) Every time is at least 0 s, so . This is the certain event.
(iii) The message gets through when the computer is up and at least one route is up:
Unions, intersections, complements
Part A · Question 3
a. Using exercise 1ii) with A, B, C and D the following events: A = [00, 200), B = [150, ∞), C = [200, ∞) and D = [50, 75]. find
i) A ∪ B, A ∪ C, A ∪ D.
ii) A ∩ B, A ∩ D
b. A ∩ B of 2i) above
c. Let D be the event that message gets through, find D̄
Union () = "in at least one of them": put the sets together. Intersection () = "in both": keep only the overlap. Complement () = everything in that is not in . For intervals, draw a number line and mark each interval. Watch the brackets: [ includes the end point, ) does not.
Solution
(a)(i)
(200 is missing from , but it is in .)
(ii) and .
(b) From 2(i): and . Both outcomes of are in , so
This makes sense: if the network is down you must fail to log on.
(c) , so : the message does not get through.
The addition rule
Part A · Question 4
Considering experiment 1i), if
P(phone up ) = 0.9
P(network up) = 0.6
P(phone up, network up) = 0.55
Find P(phone up or network up)
The word "or" means union. Use the addition rule. You must subtract the "both" part because it was counted twice.
Solution
Counting a random draw
Part A · Question 5
A box contains 4 chips, 1 of them is defective. Person draws one chip at random.
i) What is the probability that the person draws the defective chip?
ii) If the person draws two chips, what is the probability that the defective chip is among them?
Random draw means all chips are equally likely, so count. For "is among them" it is often easier to find the opposite ("not among them") and subtract from 1.
Solution
(i)
(ii) Ways to pick 2 chips from 4: . Ways to pick 2 from the 3 good chips: .
Check by direct count: pick the defective one (1 way) and one good chip (3 ways) gives .
One fair die
Part A · Question 6
A fair die is rolled, what is the probability that
a) We obtain a 7?
b) We do not get a 1?
c) We get a 1 or a 3?
, each with probability . Count the outcomes in the event. An outcome that is not in has probability 0. "Not" means complement. "Or" for outcomes that cannot happen together means just add.
Solution
(a) 7 is not in : .
(b)
(c)
Conditional probability: two dice
Part A · Question 7
A fair die is rolled twice. Let A be the event of getting a sum of 8 and B be the event of getting a sum at most 10
a) Find P(A)
b) Find P(A/B)
Two dice give equally likely pairs. List the pairs for the event. For a conditional probability, the new sample space is : count how many outcomes of are also in , then divide by the size of .
Solution
(a) , so .
(b) Sums greater than 10: , 3 outcomes. So has outcomes. Every outcome of (sum 8) is in , so .
Two-way tables
Part A · Question 8
A university has 600 freshmen, 500 sophomores and 400 juniors. 80 of the freshmen, 60 of the sophomores, and 50 of the juniors are Computer Science (CSC) majors.
a) What is the probability that a student selected at random is a freshman or an CSC major (or both)?
b) If a student is a CSC major, what is the probability that he/she is a sophomore?
Put the numbers in a table first. Then every probability is just (count in the cell or group) divided by (the right total). For "given", the total changes to the size of the given group.
Solution
| Fresh. | Soph. | Junior | Total | |
|---|---|---|---|---|
| CSC | 80 | 60 | 50 | 190 |
| Not CSC | 520 | 440 | 350 | 1310 |
| Total | 600 | 500 | 400 | 1500 |
(a)
(b)
Total probability and Bayes
Part A · Question 9
A Microsoft's internet explorer (IE) and Mozilla Firefox (MF) are two popular web browsers. IE support certain features that are present at a given site, such a security, that MF does not support and vice versa. Assume that all features on all sites are exploitable by either IE or MF. The probability that IE supports a given feature is 1 – δ and the probability that the MF fail to support a feature is δ.
a. A user selects a browser at random and attempts to assess it. What is the probability that the user will be forced to change the browser?
b. Given that the browser fails to assess a site, what is the probability that it is IE?
Two stages: first choose a browser (probability each), then it works or fails. Stage problems use the total probability rule for the overall chance of failure. The "given it failed, which browser was it?" question reverses the order, so use Bayes.
Solution
As the question is written, and .
(a) The user must change when the chosen browser fails:
(b)
General version. If your lecturer meant two different failure rates, say and , the same method gives and .
Drawing without replacement
Part A · Question 10
A batch of 25 injection-molded parts contains 5 that have suffered excessive shrinkage. If two parts are selected at random, without replacement, what is the probability that the second part selected is one with excessive shrinkage?
We are not told what the first part was, so split on the two cases for the first part (bad or good) and add them up. This is the total probability rule. Tip: when you know nothing about the earlier draws, the answer always equals the simple fraction (here ).
Solution
Let = first, second part has shrinkage.
Venn diagrams
Part A · Question 11
Out of a group of 100 students, 30 have laptop, 50 have a computer (desktop or laptop) of their own and 90 have access to a computer lab. One student is picked at random. By using a Venn diagram, what is the probability that he/she
a) has a computer but not a laptop?
b) has access to a lab and a computer of his/her own?
c) does have a laptop or a computer?
First see how the sets sit: every laptop is a computer, so the laptop circle is inside the computer circle. Then fill in counts region by region. For two overlapping sets use .
Solution
(a) Computer but no laptop: .
(b) The sheet does not give the overlap directly. Take the usual assumption that every student has at least one of the two (own computer or lab access), so the union is 100:
(Without that assumption, the overlap is somewhere between 40 and 50, so .)
(c) Laptop owners are already computer owners, so "laptop or computer" = "computer":
Counting octal numbers
Part A · Question 12
Find the probability that a randomly chosen five digit number is a valid octal number.
Octal numbers use only the digits 0 to 7. Count position by position (multiplication rule). Remember a five digit number cannot start with 0.
Solution
Five digit numbers run from 10000 to 99999: numbers.
Valid octal ones: first digit from 1 to 7 (7 choices), each of the other four digits from 0 to 7 (8 choices): .
Note. If leading zeros are allowed (any string of 5 digits), then .
Lottery odds (hypergeometric)
Part A · Question 13
Powerball. Pick five (different) numbers out of 49 – the lottery will also draw five numbers. You win if at least three of the numbers are right.
i) What is the probability to have five matching numbers?
ii) What is the probability to have exactly three matching numbers?
iii) What is the probability to win?
Order does not matter, so use combinations. For "exactly matches": choose of the 5 winning numbers and choose the remaining from the 44 losing numbers. Divide by all possible tickets. This pattern is called the hypergeometric distribution. "At least 3" means add the cases 3, 4 and 5.
Solution
Total tickets: .
(i)
(ii)
(iii) . So
Joint and conditional from a table
Part A · Question 14
Lot of unmarked Pentium III chips in box is as follows
| 400 mH | 500mH | Total | |
|---|---|---|---|
| Good | 480 | 490 | 970 |
| Defective | 20 | 10 | 30 |
| Total | 500 | 500 | 1000 |
i) Drawing a chip t random, what are the different possibilities?
ii) If you have the partial information that the chip selected is 400mH chip. What is the probability that it is defective?
A two-way table gives joint probabilities: each cell divided by the grand total. For "given", shrink to the row or column you are told about and divide by its total.
Solution
(i) Four possible outcomes:
| Outcome | Count | Probability |
|---|---|---|
| 400 MHz and good | 480 | 0.48 |
| 400 MHz and defective | 20 | 0.02 |
| 500 MHz and good | 490 | 0.49 |
| 500 MHz and defective | 10 | 0.01 |
(ii)
Independent safety systems
Part A · Question 15
Safety system at a nuclear reactor. Suppose there re two physically separate safety systems A and B in a molecular rector. An "incident can occur only when both of them fail in the event of a problem. Suppose the probabilities for the systems to fail in the event of a problem are: P(A fails) = 10-4 p(B fails) = 10-8. What is the probability for n event to occur?
"Physically separate" tells you the systems are independent. "Both" means intersection. For independent events, multiply.
Solution
Imperfect tests (Bayes)
Part A · Question 16 · Locked solution
Given lot of chips contains 2% of defective chips. Each chip is tested before delivery. However, the tester is not wholly reliable:
p("tester sys chip is good" | "chip is good" ) = 0.95
p("tester sys chip is defective "| " chip is defective") = 0.94
find the probability that chip selected t random is defective.
This is the classic "imperfect test" setup. There is a prior (2% defective) and a test with known accuracy. The useful questions are: how often does the tester say "defective" (total probability), and when it says so, how often is it right (Bayes). Draw a tree: first branch = true state, second branch = what the tester says.
Solution
Dartboard: independent throws
Part A · Question 17 · Locked solution
Very simple Dartboard: it is a board divided into 9 squares with one painted red and the others grey. We will assume that only those darts counts that actually hit the dartboard. If player throws dart and hits the board at random, the probability to hit the red one will be directly proportional to the red area. A player now throws three darts, one after the other. Find the sample space and the probabilities of each elementary event.
One throw: probability is proportional to area, so and . Three throws are independent, so an outcome is a sequence of three letters and its probability is the product of the three single-throw probabilities. Always check that all the probabilities add to 1.
Solution
Tree diagrams
Part A · Question 18 · Locked solution
One bag contains 4 white memory sticks and 3 black memory sticks and a second bag contains 3 white memory sticks and 5 black memory sticks. One memory stick is drawn from the first bag and placed unseen in the second bag. With the help of a tree diagram, find the probability that a memory stick drawn from the second bag is black?
Two stages, and the second stage depends on the first. Draw the tree: first branch is the colour moved, second branch is the colour drawn. Multiply along each path, then add the paths that end in "black".
Solution
System reliability
Part A · Question 19 · Locked solution
An electrical system consist of four components as illustrated below. The system works if components A and B work and either of the components C and D work. The reliability (probability of working) of each component is also shown. Find the probability that (a) the entire system works and (b) the component C does not work, given that the entire system works. Assume the four components work independently.
Series parts (one after the other) must all work: multiply. Parallel parts need at least one to work: use . For the conditional part, write the top as "C fails and system works" and think about what else must be true for that to happen.
Solution
Permutations and combinations
Part A · Question 20 · Locked solution
There are 12 marbles in an urn. 8 are white and 4 are red. The white marbles are numbered w1, w2, ···, w8 and the red ones are numbered r1, r2, r3, r4. For (a) - (d): Without looking into the urn you draw out 5 marbles.
(a) How many unique choices can you get if order matters?
(b) How many unique choices can you get if order does not matter?
(c) How many ways can you choose 3 white marbles and 2 red marbles if order matters?
(d) How many ways can you choose 3 white marbles and 2 red marbles if order does not matter?
(e) How many marbles =....=........must you draw to be sure of getting two red ones?
2. A printed circuit board has eight different locations in which a component can be placed. If five identical components are to be placed on the board, how many different designs are possible?
Ask one question first: does order matter? Yes: permutations . No: combinations . When choosing from two groups, choose from each group and multiply. To turn an unordered choice of 5 items into ordered ones, multiply by . For "to be sure", think of the worst possible luck. Identical objects in different places: only the set of places matters, so combinations.
Solution
Bit strings as outcomes
Part A · Question 21 · Locked solution
Four bits are transmitted over a digital communications channel. Each bit is either distorted or received without distortion. Let Ai denote the event that the ith bit is distorted, i = 1, 2, 3, 4.
(a) Describe the sample space.
(b) What is the event A1?
(c) What is the event A1 ∪ A2?
(c) What is the event A1 ∩ A2?
(d) What is the event A1c?
Write each outcome as a string of 4 letters, one per bit. With 2 choices per bit there are strings. An event like fixes one position and leaves the others free, so count the free positions.
Solution
Subsets of a sample space
Part A · Question 22 · Locked solution
We roll 1 die and obtain one of the numbers 1 through 6 with equal probability.
(a) What is the probability that we obtain a 7?
(b) What is the probability that we do NOT get a 1?
(c) What is the probability that we get a 1 or a 3?
(d) If E = {1, 4, 5, 6} , and E ⊆ G, what might the event G be?
Parts (a) to (c) are the same as Question 6. For (d), means every element of is also in , so is plus possibly some extra outcomes from .
Solution
Conditional probability: sums of dice
Part A · Question 23 · Locked solution
Let A be the event of getting 8 on the roll of two dice. Let B be the event that the sum of the two dice is greater than 6.
(a) The Find P (A)
(b) Find P (A|B)
Same method as Question 7. Know the count for each sum: sums 2 to 12 have 1, 2, 3, 4, 5, 6, 5, 4, 3, 2, 1 ways.
Solution
Expectation and the CDF
Part A · Question 24 · Locked solution
The probability mass function f of X, the number of imperfections per 10m of a synthetic fabric in continuous rolls of uniform width, is given by
| x | 0 | 1 | 2 | 3 | 4 |
|---|---|---|---|---|---|
| f(x) | 0.41 | 0.37 | 0.16 | 0.05 | 0.01 |
i) Find the expectation of x, E(X)
ii) Find the probability distribution function of X
For a discrete variable: (each value times its probability, then add). The distribution function is , a running total of the probabilities. It is a step function that ends at 1.
Solution
Proving the variance formula
Part A · Question 25 · Locked solution
Show that the variance of a random variable X is σ2 = E(X2) − µ2.
Start from the definition , expand the square, and use two facts: expectation is linear, and is a constant so and .
Solution
Distorted bits and the binomial
Part A · Question 26 · Locked solution
(i) In the transmission of digital information, the probability that a bit has high, moderate or low distortion is 0.01, 0.04, and 0.95 respectively. Suppose that 3 bits are transmitted and that the amount of distortion of each bit is assumed to be independent.
- What is the probability that two bits have high distortion and one has moderate distortion?
- What is the probability that all three bits have low distortion?
Let X denote the number of bits with high distortion out of the three transmitted.
Determine The probability distribution, mean and variance of X
Independent bits: multiply. But if the question does not say which bit is which, also count the number of arrangements. When you count how many of independent trials are a "success" with the same probability , that count is Binomial(): , mean , variance .
Solution
Defectives without replacement
Part A · Question 27 · Locked solution
a. A shipment of 8 similar microcomputers to a retail outlet contains 3 that are defective. If a school makes a random purchase of 2 of these computers, find the probability distribution for the number of defectives using permutations.
Sampling without replacement from a group with two types. Let = number of defectives, which can be 0, 1 or 2. "Using permutations" means count ordered picks: the total is , and for each count the ordered ways to get it. (Combinations give the same answer.)
Solution
Densities with an unknown constant
Part A · Question 28 · Locked solution
Suppose that the error in the reaction temperature, in °C, for a controlled laboratory experiment is a continuous random variable X having the probability density function f(x) = Find a then, find
i) P(0 < X ≤ 1)
ii) Suppose that Y = 2X2 +1. Find E(Y)
[The formula after "f(x) =" is blank on the original sheet.]
A density must have total area 1. That one equation gives the unknown constant. A probability is the area under between the limits. For the expectation of a function, , and linearity lets you write .
Solution
Mean and variance of aX + b
Part A · Question 29 · Locked solution
Given that the pmf of a random variable X is as follows
| x | 0 | 1 | 2 | 3 |
|---|---|---|---|---|
| f(x) | 1/4 | 1/8 | 1/2 | 1/8 |
Find the mean and variance of the random variable 2X + 3.
Do not build a new table for . Find and first, then use the rules and . Adding a constant shifts the mean but does not change the spread.
Solution
Binomial: impure wells
Part A · Question 30 · Locked solution
it is conjectured that an impurity exists in 30% of all drinking wells in a certain rural community. In order to gain some insight on this problem, it is determined that some tests should be made. It is too expensive to test all the many wells in the area so 10 were randomly selected for testing.
a) Using binomial distribution what is the probability that exactly three wells have the impurity assuming that the conjecture is correct?
b) What is the probability that more than three wells are impure?
Fixed number of trials (), each one yes or no, same probability (), independent: Binomial. "More than 3" has many cases (4 to 10), so use the complement: .
Solution
A binomial on top of a binomial
Part A · Question 31 · Locked solution
A large chain retailer purchases a certain kind of electronic device from a manufacturer. The manufacturer indicates that the defective rate of the device is 3%.
a. The inspector of the retailer randomly picks 20 items from a shipment. What is the probability that there will be at least one defective item among these 20?
b. Suppose that the retailer receives 10 shipments in a month and the inspector randomly tests 20 devices per shipment. What is the probability that there will be 3 shipments containing at least one defective device?
"At least one" almost always means . Part (b) is a binomial on top of a binomial: each shipment is now one trial, and "success" is the event from part (a), so reuse that answer as the new .
Solution
The geometric distribution
Part A · Question 32 · Locked solution
At busy time, a telephone exchange is very near capacity, so callers have difficulty placing their calls. It may be of interest to know the number of attempts necessary in order to gain a connection. Suppose that we let p = 0.05 be the probability of connection during busy time. We are interested in knowing the probability that 5 attempts are necessary for a successful call. Use geometric distribution.
"Number of tries until the first success" is the Geometric distribution: the first tries fail and try number succeeds. .
Solution
Poisson approximation
Part A · Question 33 · Locked solution
In a certain industrial facility accidents occur infrequently. It is known that the probability of an accident on any given day is 0.005 and accidents are independent of each other.(use Poisson distribution)
a)what is the probability that in any given period of 400 days there will be an accident on one day?
b)what is the probability that there are at most three days with an accident?
Many trials ( large) and a rare event ( small): approximate the binomial with Poisson, using . Then . "At most 3" means add .
Solution
The normal distribution
Part A · Question 34 · Locked solution
(i) Suppose that X ∼ N(1,2). Find P(1 < X < 2)
(ii) Suppose the battery life of a laptop is normally distributed with a standard deviation of 20minutes. Engineering design requires that only one percent of batteries fail to last 300 minutes. What mean battery life is required to ensure this condition?
Every normal problem uses the same step: standardise with and use the Z table. Forward problem: you have values, convert to , read probabilities. Backward problem: you have a probability, read from the table, then solve for the unknown ( here). Be careful with notation: gives the variance second.
Solution
Means and variances of the common distributions
Part A · Question 35 · Locked solution
It can be shown (check) that
| Name | Notation | Expected value | variance |
|---|---|---|---|
| Binomial | |||
| Geometric | |||
| Poisson | |||
| Uniform | |||
| Exponential | |||
| Erlang | |||
| Gaussian or Normal |
Same recipe each time: find , find (or when factorials are involved, because it cancels nicely), then . For distributions that are sums of simple independent pieces (Binomial, Erlang), just add the means and variances of the pieces. Write .
Solution
Binomial: the shock test
Part B · Question B26 · Locked solution
The probability that a certain component will survive a given shock test is 3/4. Find the probability that exactly 2 of the next 4 components tested survive.
Fixed number of independent trials, same success probability, "exactly successes": Binomial.
Solution
Binomial ranges and Chebyshev
Part B · Question B27 · Locked solution
The probability that a patient recovers from a rare blood disease is 0.4. if 15 people are known to have contracted this disease, what is the probability that a) at least 10 b) from 3 to 8 C) exactly 5 survive? Find the mean and variance of this random variable and then use Chebychev's theorem to interpret the interval µ ± 2σ
Binomial with , . For ranges, use the cumulative binomial table: . Note the "". Chebyshev's theorem says: for any distribution, at least of the probability lies within standard deviations of the mean.
Solution
Repeat of Question 31
Part B · Question B28 · Locked solution
A large chain retailer purchases a certain kind of electronic device from a manufacturer. The manufacturer indicates that the defective rate of the device is 3%.
a) the inspector of the retailer randomly picks 20 items from a shipment. What is the probability that there will be at least one defective item among these 20
b) Suppose that the retailer receives 10 shipments in a month and the inspector randomly tests 20 devices per shipment. What is the probability that there will be 3 shipments containing at least one defective device?
Identical question. See Part A Question 31 for the reasoning.
Solution
Geometric: the first defective
Part B · Question B29 · Locked solution
In a certain manufacturing process it is known that, on the average, 1 in every 100 items is defective. What is the probability that the fifth item inspected is the first defective item found?
"First success on trial number ": Geometric, as in Part A Question 32.
Solution
Poisson: the particle counter
Part B · Question B30 · Locked solution
During a laboratory experiment the average number of radioactive particles passing through a counter in 1millisecond is 4. What is the probability that 6 particles enter the counter in a given millisecond?
Counting random events in a fixed interval of time or space, when you are given the average rate: Poisson with = that average.
Solution
Poisson: tankers turned away
Part B · Question B31 · Locked solution
Ten is the average number of oil tankers arriving each day at a certain port city. The facilities at the port can handle at most 15 tankers per day. What is the probability that on a iven day tankers have to be turned away?
Poisson again (). Translate the words: tankers are turned away when more than 15 arrive, so we need . Use the cumulative Poisson table.
Solution
Repeat of Question 33
Part B · Question B32 · Locked solution
In a certain industrial facility accidents occur infrequently. It is known that the probability of an accident on any day is 0.005 and accidents are independent of each other.
a) What is the probability that in any given period of 400 days there will be an accident on one day?
b) What is the probability that there are at most three days with an accident?
Identical question. See Part A Question 33.
Solution
aX + b for a density
Part B · Question B33 · Locked solution
Let X be random variable having the density function given
Find the expected value and variance of g(X) = 4x + 3
Same idea as Part A Question 29, but with integrals. Find and , then apply and .
Solution
(blank on the sheet)
Part B · Question B34
This number is blank on the original sheet.
Joint probability function
Part B · Question B35 · Locked solution
Two refills of a ballpoint pen are selected at random from a box that contains 3 blue refills, 2 red refills and 3 green refills. If X is the number of the blue refills and Y is the number of red refills selected, find (a) the joint probability function f(x,y) and
(b) P[(X,Y) ∈ A], where A is the region {(x, y) | x + y ≤ 1}
(c) find their marginal distribution functions
(d) find the conditional distribution of X, given that Y = 1, and use it to determine P(X = 0|Y = 1).
(e) show that these random variables are not statistically independent.
Build the joint table cell by cell with combinations: choose blue, red, and the rest green, over all ways to choose 2 from 8. Then everything else comes from the table. Marginals: add along rows or columns. Conditional: take one column and divide by its total. Independence: needs in every cell, so one cell that fails is enough to disprove it.
Solution
Joint density over a square
Part B · Question B36 · Locked solution
A candy company distributes boxes of chocolates with a mixture of creams, toffees and nuts coated in both light and dark chocolate. For a randomly selected box, let X and Y, respectively, be the proportions of the light and dark chocolates that are creams and suppose that the joint density function is
a) Verify condition 2 of joint density function
b) Find P[(X, Y) ∈ A], where A is the region {(x, y) | 0 < x < 1/2, 1/4 < y < 1/2}
c) Find g(x) and h(y) for this joint density
Condition 2 is that the total volume is 1: . A probability over a region is the double integral over that region. A marginal is found by integrating out the other variable over its full range. Do the inner integral first, treating the other letter as a constant.
Solution
Joint density over a triangle
Part B · Question B37 · Locked solution
The Joint density for the random variable (X, Y), where X is the unit temperature change and Y is the proportion of spectrum shift that a certain atomic particle produces is
a) Find the marginal densities g(x), h(y) and the conditional density f(y|x)
b) Find the probability that the spectrum shifts more than half of the total observations, given the temperature is increased to 0.25 unit.
The region is a triangle, not a square, so the limits depend on the other variable. Sketch it: is below . For a fixed , runs from up to 1. For a fixed , runs from 0 up to . Getting these limits right is the whole problem. Conditional density: . To condition on , plug into and integrate over the range asked.
Solution
Independent exponential lifetimes
Part B · Question B38 · Locked solution
Suppose that the shelf life, in years of a certain perishable food packaged in cardboard containers is a random variable whose probability density function is given by
Let X1, X2 and X3 represent the shelf lives for three of these containers selected independently and find P(X1 < 2, 1 < X2 < 3, X3 > 2)
Independent variables: the joint probability is the product of the three separate probabilities. Find each one by integrating over its own range, then multiply.
Solution
Combined mean
Part B · Question B39 · Locked solution
Given two samples X and Y with means 9 and 8 respectively and sample sizes 50 and 40 respectively. Find their combined mean.
Never just average the two means when the sizes differ. A mean is total divided by count, so rebuild the totals (mean times size), add them, and divide by the total count. This is a weighted mean.
Solution
Quick guide: which tool for which problem?
Read the question, find the words, pick the tool.
| If the question says… | Use |
|---|---|
| “or” | Addition rule (subtract the overlap) |
| “given that”, “if you know” | Conditional probability |
| “at least one” | |
| Two stages, second depends on first | Tree diagram, total probability |
| “Given the result, what was the cause?” | Bayes |
| Choose items, order matters / does not | Permutation / Combination |
| fixed trials, count successes | Binomial |
| Trials until first success | Geometric |
| Rare events, or average rate given | Poisson ( or the given rate) |
| Bell curve, mean and s.d. | Standardise to , use table |
| Density with unknown constant | Set total area to 1 |
| Mean or variance of | and |
Probability is counting, done carefully. Every question on this sheet comes back to a handful of rules.