29650 Engineering Mathematics 2 - Tutorial sheet 2
Question 1
Let r1 and r2 be continuous random variables. Show that if r1 and r2 are independent then they are also uncorrelated.
Question 2
A bag contains 60 dice. 30 of the dice are fair dice (F), 20 are weighted such that P(6) = 0.8, P(x) = 0.04, (n = 1, 2, 3, 4, 5) (these are referred to as type W1), and the remaining 10 are weighted such that P(6) = 0.9, P(x) = 0.02, (n = 1, 2, 3, 4, 5) (these are refered to as type W2) . A dice is chosen at random from the bag and thrown.
1. Calculate the probability that the value on the dice is a 6?
2. Calculate the posterior probabilities P(Fj6), P(W1j6) and P( W2j6) that the dice is of type F, W1 and W2, respectively, given that a 6 was thrown?
3. Therefore, if a 6 is thrown, what is the most probable type of dice that was selected?
Question 3
A dark room contains two bags, each of which contains red and white balls. The first bag B1 contains 20 red balls and 5 white balls. The second bag B2 contains 8 red balls and 15 white balls. Because of the positions of the bags in the room, people choose to take balls from B1 five times as often as people choose B2
A person goes into the room, chooses a bag and takes one ball and then a second ball from the same bag. On leaving the room, the person sees that he has a red ball and a white ball.
1. Calculate the prior probabilities P(B1) and P(B2) .
2. Calculate the probability that the person has a red ball and a white ball if the balls were selected from bag B1 .
3. Calculate the probability of a red ball and a white ball if the balls were taken from bag B2 .
4. Calculate the probability that the person has a red ball and a white ball.
5. Calculate the probability of B1, given that the experiment resulted in a red ball and a white ball.
6. Calculate the probability of B2, given that the experiment resulted in a red ball and a white ball.
7. Which bag did the person most probably take the balls from?
Question 4
A bag contains 50 fair dice and N weighted dice.
For fair dice F, P (x|F) 1/6 for any value x ∈ {1, 2, 3, 4, 5, 6} .
For a weighted dice W, P(x = 6|W) = 4/5 and P (x|W) 1/25 x ∈ {1, 2, 3, 4, 5} .
A person chooses a dice at random from the bag, throws it, and the result ia a 6 .
1. Write down an expression, as a function of N, for the probability that the dice is weighted
2. What is the smallest value of N that leads to the conclusion that the dice was most probably weighted?
Question 5
A subject looks at an image consisting of two simple objects, O1 and O2, while an eye-tracker returns the (x, y) coordinates of the focus of his gaze. When the subject looks at O1, the x coordinate of the focus of gaze is characterised by a Gaussian probability density function g1 with mean -5 and variance 5, while a Gaussian probability density functiom g2 with mean 5 and variance 7 is used for object O2 . The probabilities that the subject looks at objects O1 and O2 are P(O1) = 0.6 and P(O2) = 0.4.
1. Calculate the posterior probability P(O1|x = 1)
2. Is it more probable that the subject was looking at object O1 or O2?