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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started