Question
Your assignment is to write a MATLAB script which can take data from a diagnostic trial and calculate the parameters to evaluate the efficacy of
Your assignment is to write a MATLAB script which can take data from a diagnostic trial and calculate the parameters to evaluate the efficacy of the diagnostic.
We will use the imaging diagnostic that we performed in lecture. You should run you code on at least your own data set, but you can also generate multiple data sets (from you or friend or pet or whomever) to compare diagnostic skills.
We will also generate a purely random diagnostic using Excel. To generate a random integer 1-5 in Excel, you can use the command =CEILING(RAND()*5,1) in a cell.
We only have 20 samples for this project, but your script should be set up to handle any data set size so that it could be used for any type of diagnostic. Your script should also be able to use thresholds from any diagnostic - not just the 1-5 rating scale that we used. You might even be able to use this script later in your BME education (like senior design, depending on your project). I expect VERY LITTLE text discussion of results: just report the required numbers. You should only write a shortparagraph of text drawing conclusions from the results.
Here are the required elements. You need to compare your diagnosis with the random Excel diagnosis:
Receiver Operating Characteristic (ROC) curve
Area under the ROC
Choose a "threshold" value to use for the diagnostic from the ROC. At that threshold value, show the confusion matrix and calculate the following:
Accuracy
Prevalence
Sensitivity
Specificity
Positive Predictive Value
Negative Predictive Value
One conclusion paragraph.
Your script should output all of these elements and it should not be much work to put them in a Word (or similar) document for export to .pdf.
Trial Rating Truth 0Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started