Plot Receiver Operating Characteristics (ROC) curve from a given probability distribution of an input variable
2 views (last 30 days)
Show older comments
Hello,
I have a probability distribution function of an input variable (rupture time of a Ligand-Receptor bond).
where t is the rupture time
k, F, d, Kb and T are known constants.
I want to plot ROC curve from it. If an input (rupture time) is greater than a given threshold then there is a selection. Could anyone please help in getting this in MATLAB?
0 Comments
Answers (1)
KALYAN ACHARJYA
on 19 Jan 2021
Hint:
Define rupture time (asssuming vector data)
t=
Define other Known Parameters
k=
F=
d=
Kb=
T=
Calculate P(t), whcih is function of t
Pt=k*exp((F*d)/(Kb*T))*exp(-k*exp((F*d)/(Kb*T))*t)
Define Threshold (th)
"If an input (rupture time) is greater than a given threshold then there is a selection"
Use the t>th for logical indexing then get the required plot. (Use Condition to cetegories the data)
Ensure that at the end you have two vector for x (may be rupture time) and y of equal length?? I am not sure here, after that just do that plot(t,??)
0 Comments
See Also
Categories
Find more on ROC - AUC in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!