Question

4.7 The R&D department of a company has developed a new home screening test for diabetes....

4.7 The R&D department of a company has developed a new home screening test for diabetes. A demonstration of the type of results that may occur was mandated by upper management. Simulate the probability of obtaining at least 24 positive results and 6 negative results in a set of 30 results. The researchers state that the probability of obtaining a positive result is 80%.

  1. Let a two-digit number represent the outcome of running the screening test. Which numbers should represent a positive result?

  2. Approximate the probability of obtaining at least 24 positive results and 6 negative results in a set of 30 results by generating 10,000 sets of 30 two-digit numbers.

Homework Answers

Answer #1

An R Script can work for solving this problem as:

----------------------------------------------------------------------------------------------------------

## Simulation of a list of 10000 random samples with TRUE (+ve) and FALSE (-ve)
rnd <- list()
for(i in 1:10000){
rnd[[i]] <- sample(c(T, F), size = 30, replace = T, prob = c(0.8, 0.2))
}

## Generate a vector to obtain the respective 2-digit numbers of TRUEs (+ve) in the simulations
asgn.num <- c()
for(i in 1:10000){
asgn.num[i] <- sum(rnd[[i]])
}

## Unique two digits are
unique(asgn.num)

----------------------------------------------------------------------------------------------------------

(i) For first question for positive results we can assign the numbers:

22, 26, 24, 21, 25, 28, 23, 27, 19, 30, 20, 29, 17, 18, 16, 15, 14

(ii) The ratio for approximate probability can be given by the R code:

----------------------------------------------------------------------------------------------------------

sum(asgn.num >= 24)/10000

----------------------------------------------------------------------------------------------------------

which is always near by 0.60.

Know the answer?
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for?
Ask your own homework help question
Similar Questions
A company has developed a new dipstick test for urinary tract infection (UTI). The test shows...
A company has developed a new dipstick test for urinary tract infection (UTI). The test shows either “positive” or “negative” (there are no equivocal results). You wish to test this in your A&E, where, on average, 15% of your patients under 1 year of age with fever have a true UTI, as diagnosed by a positive urine culture (> 105 cfu/ml) when obtained under sterile conditions (e.g. suprapubic aspirate or catheter-obtained urine). Over the next 6 months, you evaluate the...
Gender Bias in the Executive Suite Worldwide The Grant Thornton International Business Report (IBR) has described...
Gender Bias in the Executive Suite Worldwide The Grant Thornton International Business Report (IBR) has described itself as "a quarterly survey of business leaders from across the globe … surveying 11,500 businesses in 40 economies across the globe on an annual basis." 1 According to the 2011 IBR, the Asia Pacific region had a higher percentage (27 percent) of female chief executive officers (CEOs) than Europe and North America. Japan is the only Asia Pacific region exception. The report further...
What tools could AA leaders have used to increase their awareness of internal and external issues?...
What tools could AA leaders have used to increase their awareness of internal and external issues? ???ALASKA AIRLINES: NAVIGATING CHANGE In the autumn of 2007, Alaska Airlines executives adjourned at the end of a long and stressful day in the midst of a multi-day strategic planning session. Most headed outside to relax, unwind and enjoy a bonfire on the shore of Semiahmoo Spit, outside the meeting venue in Blaine, a seaport town in northwest Washington state. Meanwhile, several members of...
Please read the article and answear about questions. Determining the Value of the Business After you...
Please read the article and answear about questions. Determining the Value of the Business After you have completed a thorough and exacting investigation, you need to analyze all the infor- mation you have gathered. This is the time to consult with your business, financial, and legal advis- ers to arrive at an estimate of the value of the business. Outside advisers are impartial and are more likely to see the bad things about the business than are you. You should...
ADVERTISEMENT
Need Online Homework Help?

Get Answers For Free
Most questions answered within 1 hours.

Ask a Question
ADVERTISEMENT