1 The problem A physician assigns certain probabilities to some of his patients. These probabilities are chances of getting the flu in the coming winter. For example he assigns a probability of 0.29 to David. That is P(David getting the Flu in Winter) = 0.38 A clinic must plan on buying certain amount of medication for the patients that might get the flu in winter. They use a thresold to classify the patients as Will Get the Flue and Will not Get the Flu. Here is the list of the patients: Patients = {Aisha, Devon, David, Ali, Samuel, Kofi, Brian, Tracy, Nami, Van} The physician assigns the following probabilities to his patients. 1 Aisha 0.56 Devon 0.21 David 0.38 Ali 0.89 Samuel 0.76 Kofi Brian 0.45 0.52 Tracy 0.05 Nami Van 0.95 0.65 During the flu season the following patients get the flu: Got the Flu {Aisha, Ali, Kofi, Tracy} and the following did not get the flu: Did not Get the Flu = {Devon, David, Samuel, Brian, Nami, Van} 4 Project 1. Suppose you are employed by the same clinic and are supposed to assign certain probabilioties to the same patients. Based on the results of the flu season you assign the following probabilities Aisha 0.85 David 0.38 Devon 0.21 During the flu season the following patients get the flu: Ali 0.89 Samuel 0.41 Kofi Brian 0.95 0.52 Tracy 0.92 Nami Van 0.95 0.65 Get the Flu = {Devon, David, Samuel, Kofi, Tracy, Nami} Plot the ROC and calculate the AUC. 2. Generate 10 random numbers between 0 and 1 rounded to two decimal points. Take these 10 numbers as the probabilities for your patients and plot the ROC and calculate the AUC. Assume the same people as in part (1) get the flu during the flu season. 3. Generate 10 random numbers from the Beta distribution Beta(2, 2) and repeat part (2). Note: Round the numbers to two decimal places. Here is an example: # bc(0.2345, 0.01567, 0.8756) bb round (b, 2) print (bb) ## [1] 0.23 0.02 0.88

Holt Mcdougal Larson Pre-algebra: Student Edition 2012
1st Edition
ISBN:9780547587776
Author:HOLT MCDOUGAL
Publisher:HOLT MCDOUGAL
Chapter11: Data Analysis And Probability
Section11.8: Probabilities Of Disjoint And Overlapping Events
Problem 2C
icon
Related questions
Question

Please solve the following attached questions in section 4 which is "The project", first section explains the problem which is called "The problem". 

1. Plot the ROC and calculate the AUC.
2.Generate 10 random numbers between 0 and 1 rounded to two decimal points. Take these 10 numbers
as the probabilities for your patients and plot the ROC and calculate the AUC. Assume the same
people as in part (1) get the flu during the flu season.
3. Generate 10 random numbers from the Beta distribution Beta(2, 2) and repeat part (2).
1
The problem
A physician assigns certain probabilities to some of his patients. These probabilities are chances of getting
the flu in the coming winter. For example he assigns a probability of 0.29 to David. That is
P(David getting the Flu in Winter) = 0.38
A clinic must plan on buying certain amount of medication for the patients that might get the flu in winter.
They use a thresold to classify the patients as Will Get the Flue and Will not Get the Flu. Here is
the list of the patients:
Patients = {Aisha, Devon, David, Ali, Samuel, Kofi, Brian, Tracy, Nami, Van}
The physician assigns the following probabilities to his patients.
1
Aisha
0.56
Devon
0.21
David
0.38
Ali
0.89
Samuel
0.76
Kofi Brian
0.45 0.52
Tracy
0.05
Nami
Van
0.95
0.65
During the flu season the following patients get the flu:
Got the Flu {Aisha, Ali, Kofi, Tracy}
and the following did not get the flu:
Did not Get the Flu = {Devon, David, Samuel, Brian, Nami, Van}
Transcribed Image Text:1 The problem A physician assigns certain probabilities to some of his patients. These probabilities are chances of getting the flu in the coming winter. For example he assigns a probability of 0.29 to David. That is P(David getting the Flu in Winter) = 0.38 A clinic must plan on buying certain amount of medication for the patients that might get the flu in winter. They use a thresold to classify the patients as Will Get the Flue and Will not Get the Flu. Here is the list of the patients: Patients = {Aisha, Devon, David, Ali, Samuel, Kofi, Brian, Tracy, Nami, Van} The physician assigns the following probabilities to his patients. 1 Aisha 0.56 Devon 0.21 David 0.38 Ali 0.89 Samuel 0.76 Kofi Brian 0.45 0.52 Tracy 0.05 Nami Van 0.95 0.65 During the flu season the following patients get the flu: Got the Flu {Aisha, Ali, Kofi, Tracy} and the following did not get the flu: Did not Get the Flu = {Devon, David, Samuel, Brian, Nami, Van}
4 Project
1. Suppose you are employed by the same clinic and are supposed to assign certain probabilioties to the
same patients. Based on the results of the flu season you assign the following probabilities
Aisha
0.85
David
0.38
Devon
0.21
During the flu season the following patients get the flu:
Ali
0.89
Samuel
0.41
Kofi Brian
0.95
0.52
Tracy
0.92
Nami
Van
0.95
0.65
Get the Flu = {Devon, David, Samuel, Kofi, Tracy, Nami}
Plot the ROC and calculate the AUC.
2. Generate 10 random numbers between 0 and 1 rounded to two decimal points. Take these 10 numbers
as the probabilities for your patients and plot the ROC and calculate the AUC. Assume the same
people as in part (1) get the flu during the flu season.
3. Generate 10 random numbers from the Beta distribution Beta(2, 2) and repeat part (2).
Note: Round the numbers to two decimal places. Here is an example:
#
bc(0.2345, 0.01567, 0.8756)
bb round (b, 2)
print (bb)
## [1] 0.23 0.02 0.88
Transcribed Image Text:4 Project 1. Suppose you are employed by the same clinic and are supposed to assign certain probabilioties to the same patients. Based on the results of the flu season you assign the following probabilities Aisha 0.85 David 0.38 Devon 0.21 During the flu season the following patients get the flu: Ali 0.89 Samuel 0.41 Kofi Brian 0.95 0.52 Tracy 0.92 Nami Van 0.95 0.65 Get the Flu = {Devon, David, Samuel, Kofi, Tracy, Nami} Plot the ROC and calculate the AUC. 2. Generate 10 random numbers between 0 and 1 rounded to two decimal points. Take these 10 numbers as the probabilities for your patients and plot the ROC and calculate the AUC. Assume the same people as in part (1) get the flu during the flu season. 3. Generate 10 random numbers from the Beta distribution Beta(2, 2) and repeat part (2). Note: Round the numbers to two decimal places. Here is an example: # bc(0.2345, 0.01567, 0.8756) bb round (b, 2) print (bb) ## [1] 0.23 0.02 0.88
Expert Solution
trending now

Trending now

This is a popular solution!

steps

Step by step

Solved in 2 steps

Blurred answer
Recommended textbooks for you
Holt Mcdougal Larson Pre-algebra: Student Edition…
Holt Mcdougal Larson Pre-algebra: Student Edition…
Algebra
ISBN:
9780547587776
Author:
HOLT MCDOUGAL
Publisher:
HOLT MCDOUGAL
Calculus For The Life Sciences
Calculus For The Life Sciences
Calculus
ISBN:
9780321964038
Author:
GREENWELL, Raymond N., RITCHEY, Nathan P., Lial, Margaret L.
Publisher:
Pearson Addison Wesley,