Written by students who passed Immediately available after payment Read online or as PDF Wrong document? Swap it for free 4.6 TrustPilot
logo-home
Exam (elaborations)

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

Rating
-
Sold
-
Pages
9
Grade
A+
Uploaded on
24-10-2021
Written in
2021/2022

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

Institution
Course

Content preview

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

Written for

Course

Document information

Uploaded on
October 24, 2021
Number of pages
9
Written in
2021/2022
Type
Exam (elaborations)
Contains
Questions & answers

Subjects

$7.99
Get access to the full document:

Wrong document? Swap it for free Within 14 days of purchase and before downloading, you can choose a different document. You can simply spend the amount again.
Written by students who passed
Immediately available after payment
Read online or as PDF


Also available in package deal

Get to know the seller

Seller avatar
Reputation scores are based on the amount of documents a seller has sold for a fee and the reviews they have received for those documents. There are three levels: Bronze, Silver and Gold. The better the reputation, the more your can rely on the quality of the sellers work.
StuviaGuides West Virgina University
Follow You need to be logged in order to follow users or courses
Sold
16172
Member since
7 year
Number of followers
8362
Documents
5972
Last sold
2 hours ago
Accounting, Finance, Statistics, Computer Science, Nursing, Chemistry, Biology & More — A+ Test Banks, Study Guides & Solutions

As a Top 1st Seller on Stuvia and a nursing professional, my mission is to be your light in the dark during nursing school and beyond. I know how stressful exams and assignments can be, which is why I’ve created clear, reliable, and well-structured resources to help you succeed. I offer test banks, study guides, and solution manuals for all subjects — including specialized test banks and solution manuals for business books. My materials have already supported countless students in achieving higher grades, and I want them to be the guide that makes your academic journey easier too. I’m passionate, approachable, and always focused on quality — because I believe every student deserves the chance to excel.

Read more Read less
4.3

2292 reviews

5
1569
4
305
3
183
2
74
1
161

Recently viewed by you

Why students choose Stuvia

Created by fellow students, verified by reviews

Quality you can trust: written by students who passed their tests and reviewed by others who've used these notes.

Didn't get what you expected? Choose another document

No worries! You can instantly pick a different document that better fits what you're looking for.

Pay as you like, start learning right away

No subscription, no commitments. Pay the way you're used to via credit card and download your PDF document instantly.

Student with book image

“Bought, downloaded, and aced it. It really can be that simple.”

Alisha Student

Working on your references?

Create accurate citations in APA, MLA and Harvard with our free citation generator.

Working on your references?

Frequently asked questions