


Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
Prepare for your exams
Study with the several resources on Docsity
Earn points to download
Earn points by helping other students or get them with a premium plan
The instructions and problems for the midterm #1 exam of ee 126, a fall 2006 course focused on probability theory and random variables. The exam consists of three problems that involve computing joint and conditional probability mass functions, determining expected values and variances, and analyzing waiting times for buses.
Typology: Exams
1 / 4
This page cannot be seen from the preview
Don't miss anything!



Consider the following game: first a coin with P(heads) = q is tossed once. If the coin comes up tails, then you roll a 4sided die ; otherwise, you roll a 6sided die. You win the amount of money (in dollars $) corresponding to the given die roll. Let X be an indicator random variable for the coin toss (X = 0 if toss is tails; X = 1 if toss is heads), and let Y be the random variable corresponding to the amount of money that you win. (a) (3pt) Compute the joint PMF pX,Y. (It will be a function of q). (b) (4pt) Compute the conditional PMF pX | Y , again as a function of q. Supposing that it is known that (on some trial of this game) you made 2$ or less, determine the probability that the initial coin toss was heads, as a function of q. (c) (3pt) Assume that you have have to pay 3$ each time that you play this game. Determine, as a function of q, how much money you will win or lose on average. For what value of q do you break even?
John can either walk to school (which takes 25 min), or take the bus (the bus takes 10 min). However, the buses don’t have a fixed schedule. Instead, there is probability p that a bus will arrive on each even numbered minute (e.g., t = 0, 2, 4,.. .). If John goes to the bus stop, then he always arrives at some oddn umbered minute (e.g., t = 1, 3, 5.. .). Buses never arrive at an oddnu mbered minute. (a) (2 pt) Let X be a random variable associated with the time between two consecutive buses. Find the expected value E[X]. (b) (3 pt) What is the expected time it takes to get to school if John goes by bus (including both the waiting time at the bus stop, and driving time)? Now suppose that John has no idea what p is, so that his strategy is to flip a fair coin: if the coin is heads, he walks, if the coin is tails, he waits for the bus. (c) (3 pt) Letting Y be the total time it takes to get to school, find the PMF of Y and compute E[Y ]. (d) (3 pt) We are interested in the variance of Y. John’s friend Bob gives the following argument: “Let v1 be the variance of the time needed to go to school if John walks, and v2 the variance of the time needed if he waits for the bus. Because John has equal chances of walking or taking the bus, the variance of Y is just the average of v1 and v2 ”. Is Bob right? Explain why or why not. (In doing so, you are not required to find the variance of X). For the following two parts, suppose that John always decides to take the bus. (e) (4 pt) Let Znext be a discrete random variable corresponding to the time (in minutes) that elapses from John’s arrival at the bus stop until the next bus comes, and Zlast a random variable associated with the time by which John missed the last bus. Compute the expected values E[Znext ] and E[Zlast ]. (f) (3 pt) One might that expect E[X] = E[Znext ] + E[Zlast ] (see part (a) for the definition of X). Explain why this is not true.