Professional Documents
Culture Documents
Homework 1
Homework 1
Homework Assignment I
Due: Wed. Oct. 6
Notes:
1) Hand in a paper copy at the beginning of the class period on the due date.
2) The paper copy (properly stapled together) must include the following items if any:
Detailed calculation for probability problems;
Source code of your program;
Output produced by the program;
A brief description if needed.
3) Late assignments will be penalized at a rate of 25 points per 24-hour period.
a) What is the probability for a patient to have the disease given that his test result is positive?
b) If the patient did another test and the result turned out to be positive again, what is the
probability for the patient to be ill this time? Assume that the two tests are independent.
c) Assume that the patient keeps on trying the tests, what is the minimum number of tests that
the patient has to try to be 99% percent sure that he is actually ill? Assume that all tests are
independent.
Pr(W|R) R R
Pr(U|R) R R
W U
Figure 1: Graphical representation of events R, W, and U
1) The data set pi2000 (UsingR) contains the first 2,000 digits of π. What is the percentage of
digits that are 3 or less? What percentage of the digits are 5 or more?
2) The time variable in the nym.2002 (UsingR) data set contains the time to finish the 2002
New York City marathon for a random sample of the finishers.
1. What percent ran the race in under 3 hours?
2. What is the time cutoff for the top 10%? The top 25%?
3. What time cuts off the bottom 10%?
Do you expect this data set to by symmetrically distributed?