Question

SOLVE ON MATLAB According to USA Today (March 18, 1997), of 4 million workers in the general workforce, 5.8% tested positive for drugs. Of those testing positive, 22.5% were cocaine users and 54.4% marijuana users. (a) What is the probability that of 10 workers testing positive, 2 are cocaine users, 5 are marijuana users, and 3 are users of other drugs? (USE MATLAB) (b) What is the probability that of 10 workers testing positive, all are marijuana users? (USE MATLAB) (c) What is the probability that of 10 workers testing positive, none is a cocaine user? ve it using binomial distribution and multinational distribution on MATLAB Sol
0 0
Add a comment Improve this question Transcribed image text
Answer #1

part(a)

out of the positively tested workers:

The possibility of a worker being cocain user = 0.225

The possibility of a worker being marijuana user = 0.544

The possibility of a worker being other drug user = 0.231

The case is multinomial distribution with sample size of 10 and 3 outcomes with abovementioned probabilities. Hence, we use the mnpfd function of matlab to calcualte the requried probability as:

mnpdf([2 5 3] , [0.225,0.544,0.231])

Here mnpdf(X,P) represents the outcome of different trials in sample space and P is the corresponding probabilities. (As we want 2 people using cocaine, 5 with Marijuana and 3 others)

This gives the result as: 0.0749

part(b)

Similar to the above logic, we use:

mnpdf([0 10 0] , [0.225,0.544,0.231])

This gives the result as: 0.0023

part(c)

To tackle this, we need to sum the probabilities of the situation for all the combination of +ve tested people among marijuana or other drugs, while keeping the outcome for cocaine to be 0:

sum=0;
for i=0:10
   sum=sum+mnpdf([i 0 10-i] , [0.225,0.544,0.231])
end

This gives the result as: 0.00038873

Add a comment
Know the answer?
Add Answer to:
SOLVE ON MATLAB According to USA Today (March 18, 1997), of 4 million workers in the...
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. Our experts will answer your question WITHIN MINUTES for Free.
Similar Homework Help Questions
  • help answer completly please The President of a large company with 10,000 employees is considering mandatory...

    help answer completly please The President of a large company with 10,000 employees is considering mandatory cocaine testing for every employee. The test that would be used is 90% accurate, meaning that it will detect 90% of the cocaine users who are tested and that 90% of the nonusers will test negative. This also means that the test gives 10% false positive. Suppose that 1% of the employees actually use cocaine. Find the probability that someone who tests positive for...

  • Any reflection or opinion on these two essays? Should Marijuana be legal? 1 answer Within 200...

    Any reflection or opinion on these two essays? Should Marijuana be legal? 1 answer Within 200 words. 1. A Brief History of the Drug War Many currently illegal drugs, such as marijuana, opium, coca, and psychedelics have been used for thousands of years for both medical and spiritual purposes. The Early Stages of Drug Prohibition Why are some drugs legal and other drugs illegal today? It's not based on any scientific assessment of the relative risks of these drugs –...

ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT
ADVERTISEMENT