100% satisfaction guarantee Immediately available after payment Both online and in PDF No strings attached
logo-home
CS 70 Fall 2017 Discrete Mathematics and Probability Theory Kannan Ramchandran and Satish Rao $7.49   Add to cart

Exam (elaborations)

CS 70 Fall 2017 Discrete Mathematics and Probability Theory Kannan Ramchandran and Satish Rao

 2 views  0 purchase
  • Course
  • Institution

CS 70 Fall 2017 Discrete Mathematics and Probability Theory Kannan Ramchandran and Satish Rao

Preview 2 out of 9  pages

  • October 24, 2021
  • 9
  • 2021/2022
  • Exam (elaborations)
  • Questions & answers
avatar-seller
CS 70 Discrete Mathematics and Probability Theory
Fall 2017 Kannan Ramchandran and Satish Rao

HW 12

Sundry
Before you start your homework, write down your team. Who else did you work with on this
homework? List names and email addresses. (In case of homework party, you can also just describe
the group.) How did you work on this homework? Working in groups of 3-5 will earn credit for
your "Sundry" grade.
Please copy the following statement and sign next to it:
I certify that all solutions are entirely in my words and that I have not looked at another student’s
solutions. I have credited all external sources in this write up.

I certify that all solutions are entirely in my words and that I have not looked at another student’s
solutions. I have credited all external sources in this write up. (signature here)


1 Darts with Friends
Michelle and Alex are playing darts. Being the better player, Michelle’s aim follows a uniform
distribution over a circle of radius r around the center. Alex’s aim follows a uniform distribution
over a circle of radius 2r around the center.

(a) Let the distance of Michelle’s throw be denoted by the random variable X and let the distance
of Alex’s throw be denoted by the random variable Y .
• What’s the cumulative distribution function of X?
• What’s the cumulative distribution function of Y ?
• What’s the probability density function of X?
• What’s the probability density function of Y ?
(b) What’s the probability that Michelle’s throw is closer to the center than Alex’s throw? What’s
the probability that Alex’s throw is closer to the center?

(c) What’s the cumulative distribution function of U = min{X,Y }?
(d) What’s the cumulative distribution function of V = max{X,Y }?


CS 70, Fall 2017, HW 12 1

, (e) What is the expectation of the absolute difference between Michelle’s and Alex’s distances
from the center, that is, what is E[|X −Y |]? [Hint: There are two ways of solving this part.]

Solution:

(a) • To get the cumulative distribution function of X, we’ll consider the ratio of the area where
the distance to the center is less than x, compared to the entire available area. This gives
us the following expression:

πx2 x2
P(X ≤ x) = = , x ∈ [0, r]
πr2 r2
• Using the same approach as the previous part:

πy2 y2
P(Y ≤ y) = = , y ∈ [0, 2r]
π · 4r2 4r2
• We’ll take the derivative of the CDF to get the following:
dP(X ≤ x) 2x
fX (x) = = 2, x ∈ [0, r]
dx r
• Using the same approach as the previous part:
dP(Y ≤ y) y
fY (y) = = 2, y ∈ [0, 2r]
dy 2r

(b) We’ll condition on Alex’s outcome and then integrate over all the possibilities to get the
marginal P(X ≤ Y ) as following:
Z 2r Z r 2 Z 2r
y y y
P(X ≤ Y ) = P(X ≤ Y | Y = y) fY (y) dy = 2
× 2 dy + 1× dy
0 0 r 2r r 2r2
r4 − 0 4r2 − r2 1 3 7
= + = + =
8r4 4r2 8 4 8

Note the range within which P(X ≤ Y ) = 1. This allowed us to separate the integral to simplify
our solution. Using this, we can get P(Y ≤ X) by the following:
1
P(Y ≤ X) = 1 − P(X ≤ Y ) =
8
A similar approach to the integral above could be used to verify this result.
Z r 2
r4
Z r Z r
x 2x 1 1
P(Y ≤ X) = P(Y ≤ X | X = x) fX (x) dx = 2 2
dx = 4 x3 dx = 4
=
0 0 4r r 2r 0 8r 8




CS 70, Fall 2017, HW 12 2

The benefits of buying summaries with Stuvia:

Guaranteed quality through customer reviews

Guaranteed quality through customer reviews

Stuvia customers have reviewed more than 700,000 summaries. This how you know that you are buying the best documents.

Quick and easy check-out

Quick and easy check-out

You can quickly pay through credit card or Stuvia-credit for the summaries. There is no membership needed.

Focus on what matters

Focus on what matters

Your fellow students write the study notes themselves, which is why the documents are always reliable and up-to-date. This ensures you quickly get to the core!

Frequently asked questions

What do I get when I buy this document?

You get a PDF, available immediately after your purchase. The purchased document is accessible anytime, anywhere and indefinitely through your profile.

Satisfaction guarantee: how does it work?

Our satisfaction guarantee ensures that you always find a study document that suits you well. You fill out a form, and our customer service team takes care of the rest.

Who am I buying these notes from?

Stuvia is a marketplace, so you are not buying this document from us, but from seller solutions. Stuvia facilitates payment to the seller.

Will I be stuck with a subscription?

No, you only buy these notes for $7.49. You're not tied to anything after your purchase.

Can Stuvia be trusted?

4.6 stars on Google & Trustpilot (+1000 reviews)

82977 documents were sold in the last 30 days

Founded in 2010, the go-to place to buy study notes for 14 years now

Start selling
$7.49
  • (0)
  Add to cart