Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

your file. 2. DECISION THEORY Question 1. The Pennsylvania Chocolate Institute of Health has identified a new type of disease caused by a diet containing

image text in transcribed
image text in transcribed
your file. 2. DECISION THEORY Question 1. The Pennsylvania Chocolate Institute of Health has identified a new type of disease caused by a diet containing insufficient amount of chocolate. Treatment requires expensive imported chocolates, covered by most insurance plans. There are only two types of patients: A. Healthy chocolate eaters B. Patients suffering from low chocolate levels The insurance company has developed a test (machine learning model) which predicts p, the probability that the current patient is of type A. The company is erperimenting with a cost model: The cost of treating a patient of type A is a The cost of treating a patient of type B is some number treatB The cost of not treating a patient of type A is some number not TreatA The cost of not treating a patient of type B is some number notTreatB You must write a program to help the insurance company explore the cost of making decisions using decision theory. hue.py, fill in the function qi(p, treats, notTreata, notTreatB), where p is the predicted probability the patient is of type A. The output of this function should be the value of a for which the insurance company is indifferent between treating and not treating the patient. Question 2. After years of research, great progress has been made in treating Chocolate Deficiency Syndrome (CDS). The procedure is for a patient to walk into a CDS clinic and take a simple test. The test is a "has CDS"/"does not have CDS" classifier that outputs p, the probability the patient has CDS. Based on the results, the doctor can either (1) treat the patient, (2) not treat the patient, (3) request a more definitive test (but expensive) test. The associated costs are as follows: The cost of the additional test is some number testCost The cost of mistakenly treating a patient who does not have CDS is treat Healthy The cost of treating a patient with CDS is treat CDS The cost of not treating a healthy patient is not Treat Healthy The cost of mistakenly not treating a patient who has CDS is not TreatCDS In hw2.py, fill in the function 22(p, testCost, treatHealthy, treatCDS, notTreatHealthy, notTreatCDS) so that it outputs 1 if the doctor should treat the patient, -1 if the doctor should not treat the patient, and 0 if the doctor should ask for more tests. def qi(p, treats, notTreata, notTreats): pass def q2(p, testcost, treatHealthy, treatCDs, not TreatHealthy, notTreatCDs): pass your file. 2. DECISION THEORY Question 1. The Pennsylvania Chocolate Institute of Health has identified a new type of disease caused by a diet containing insufficient amount of chocolate. Treatment requires expensive imported chocolates, covered by most insurance plans. There are only two types of patients: A. Healthy chocolate eaters B. Patients suffering from low chocolate levels The insurance company has developed a test (machine learning model) which predicts p, the probability that the current patient is of type A. The company is erperimenting with a cost model: The cost of treating a patient of type A is a The cost of treating a patient of type B is some number treatB The cost of not treating a patient of type A is some number not TreatA The cost of not treating a patient of type B is some number notTreatB You must write a program to help the insurance company explore the cost of making decisions using decision theory. hue.py, fill in the function qi(p, treats, notTreata, notTreatB), where p is the predicted probability the patient is of type A. The output of this function should be the value of a for which the insurance company is indifferent between treating and not treating the patient. Question 2. After years of research, great progress has been made in treating Chocolate Deficiency Syndrome (CDS). The procedure is for a patient to walk into a CDS clinic and take a simple test. The test is a "has CDS"/"does not have CDS" classifier that outputs p, the probability the patient has CDS. Based on the results, the doctor can either (1) treat the patient, (2) not treat the patient, (3) request a more definitive test (but expensive) test. The associated costs are as follows: The cost of the additional test is some number testCost The cost of mistakenly treating a patient who does not have CDS is treat Healthy The cost of treating a patient with CDS is treat CDS The cost of not treating a healthy patient is not Treat Healthy The cost of mistakenly not treating a patient who has CDS is not TreatCDS In hw2.py, fill in the function 22(p, testCost, treatHealthy, treatCDS, notTreatHealthy, notTreatCDS) so that it outputs 1 if the doctor should treat the patient, -1 if the doctor should not treat the patient, and 0 if the doctor should ask for more tests. def qi(p, treats, notTreata, notTreats): pass def q2(p, testcost, treatHealthy, treatCDs, not TreatHealthy, notTreatCDs): pass

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image_2

Step: 3

blur-text-image_3

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Database Processing

Authors: David J. Auer David M. Kroenke

13th Edition

B01366W6DS, 978-0133058352

More Books

Students also viewed these Databases questions

Question

Explain basic guidelines for effective multicultural communication.

Answered: 1 week ago

Question

Identify communication barriers and describe ways to remove them.

Answered: 1 week ago

Question

Explain the communication process.

Answered: 1 week ago