Question: This needs to be done in R code only! You are studying a genetic marker for an increased risk of prostate cancer. You determine that

This needs to be done in R code only!

You are studying a genetic marker for an increased risk of prostate cancer. You determine that the probability of any one person having the marker is 0.05%.

a) What is the probability of getting 0 people with a positive marker out of 10? Now calculate the probability of 1, 2, 3, ...10 out of 10 people. Include the function you used to calculate this.

b) There are 3 other markers that are also used, and the probability of any one person having the marker is 5%, 25%, and 50%, respectively. For each of these markers, calculate the probability of 0, 1, 2 . . . 10 out of 10 people having the marker.

c) For each of the scenarios you just calculated, generate a graph that shows the probability of each outcome. In other words, generate a graph that shows the probability distribution for each of the 4 probabilities of a person having the positive marker

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Mathematics Questions!