Docsity
Docsity

Prepare for your exams
Prepare for your exams

Study with the several resources on Docsity


Earn points to download
Earn points to download

Earn points by helping other students or get them with a premium plan


Guidelines and tips
Guidelines and tips

CS70 Discrete Mathematics for Computer Science, Summer 2011, Lecture notes of Discrete Mathematics

Four sections with various problems related to probability and random variables. The first section deals with estimating the probability of cheating on a planet. The second section involves finding the joint and conditional distributions of random variables. The third section focuses on computing conditional distributions and expectations using the total expectation rule. The fourth section presents a modified version of the Monty Hall problem.

Typology: Lecture notes

2010/2011

Uploaded on 05/11/2023

jacksonfive
jacksonfive 🇺🇸

4.4

(31)

31 documents

1 / 2

Toggle sidebar

Related documents


Partial preview of the text

Download CS70 Discrete Mathematics for Computer Science, Summer 2011 and more Lecture notes Discrete Mathematics in PDF only on Docsity! CS70 Discrete Mathematics for Computer Science, Summer 2011 Section 13 1. On the planet Vegas, everyone carries a coin. Many people are honest and carry a fair coin (heads on one side and tails on the other), but a p fraction of them cheat and carry a trick coin with heads on both sides. You want to estimate p with the following experiment: you pick a random sample of n people and ask each one to flip his or her coin. Assume that each person is independently likely to carry a fair or a trick coin. (a) Given the results of your experiment, how should you estimate p? (b) How many people do you need to ask to be 95% sure that your answer is off by at most 0.05? 2. Chuck will go shopping for probability books for K hours. Here, K is a random variable and is equally likely to be 1, 2, 3, or 4. The number of books N that he buys is random and depends on how long he shops. We are told that Pr[N = n|K = k] = 1 k , for n = 1, . . . , k (a) Find the joint distribution of K and N . (b) Find the marginal distribution of N . (c) Find the conditional distribution of K given that N = 2. (d) We are now told that he bought at least 2 but no more than 3 books. Find the conditional mean and variance of K, given this piece of information. (e) The cost of each book is a random variable with mean 3. What is the expectation of his total expendi- ture? Hint: Condition on events N = 1, . . . , N = 4 and use the total expectation theorem. 3. Let X be a random variable with a geometric distribution, X ∼ Geom(p). (a) Compute the distribution of X conditioned on the event X > 1, i.e. Pr[X = i|X > 1]. (b) How does the conditional distribution above compare to the unconditional distribution of X? Given this, how is E(X|X > 1) related to E(X)? Write down E(X|X > 1) in terms of E(X). (c) Using the total expectation rule, we can compute E(X) in terms of E(X|X = 1) and E(X|X > 1). Determine E(X) from the total expectation rule and your expression for E(X|X > 1) from part (b). 4. Tired of hosting the same game year after year, Monty Hall decided to make some changes to his game. There are still three doors, but now one contains 1000 dollars, one contains 500 dollars, and one contains 0 dollars, with the order of the prizes randomly permuted. The contestant first selects a door. Then she has the choice of paying X dollars for Monty to open, among the two unchosen doors, the one that contains the smaller amount of money. If the contestant paid Monty, she then has the choice of switching to the other unopened door. (a) Suppose the contestant refuses to pay Monty. In this case, what is the expected value of her prize? (b) Suppose that the contestant decides to pay, and then Monty opens a door that contains $500. Given this, what is the expected value of her prize if she switches, and what is the expected value of her prize if she sticks with her original door? (c) Now for a different scenario: Suppose that the contestant pays, and then Monty opens a door that contains $0. Given this, what is the expected value of her prize if she switches, and what is the expected value of her prize if she sticks with her original door? (d) Now suppose a second contestant, Bob, decides in advance that he will always pay and always switch to the unopened door (no matter what he sees behind the door that Monty opens). What is the overall expected value of his prize, with this strategy?
Docsity logo



Copyright © 2024 Ladybird Srl - Via Leonardo da Vinci 16, 10126, Torino, Italy - VAT 10816460017 - All rights reserved