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

MATLAB: An Introduction with Applications
6th Edition
ISBN:9781119256830
Author:Amos Gilat
Publisher:Amos Gilat
Chapter1: Starting With Matlab
Section: Chapter Questions
Problem 1P
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
MATLAB: An Introduction with Applications
MATLAB: An Introduction with Applications
Statistics
ISBN:
9781119256830
Author:
Amos Gilat
Publisher:
John Wiley & Sons Inc
Probability and Statistics for Engineering and th…
Probability and Statistics for Engineering and th…
Statistics
ISBN:
9781305251809
Author:
Jay L. Devore
Publisher:
Cengage Learning
Statistics for The Behavioral Sciences (MindTap C…
Statistics for The Behavioral Sciences (MindTap C…
Statistics
ISBN:
9781305504912
Author:
Frederick J Gravetter, Larry B. Wallnau
Publisher:
Cengage Learning
Elementary Statistics: Picturing the World (7th E…
Elementary Statistics: Picturing the World (7th E…
Statistics
ISBN:
9780134683416
Author:
Ron Larson, Betsy Farber
Publisher:
PEARSON
The Basic Practice of Statistics
The Basic Practice of Statistics
Statistics
ISBN:
9781319042578
Author:
David S. Moore, William I. Notz, Michael A. Fligner
Publisher:
W. H. Freeman
Introduction to the Practice of Statistics
Introduction to the Practice of Statistics
Statistics
ISBN:
9781319013387
Author:
David S. Moore, George P. McCabe, Bruce A. Craig
Publisher:
W. H. Freeman