AUC By Hand

AUC By Hand

Calculating the area under a curve by hand never really appealed to me. R and Python did the trick nicely. Unfortunately, in a recent Biostatistics class, I had to calculate it by hand. Luckily, it was a rather simple receiver operator curve (ROC) that consisted of just five points. I would not want to do this for more than 10 points.

In R, as part of the caTools package trapz() works very nicely. I utilized this to submit my answer and I was asked to show my work. So the above graphic, simple in nature is what I used. So what is the formula, well its the area of a triangle plus the area of trapezoid for each subsequent point. You the typed formula in the cover photo.

For a complete story on how I got to above ROC, head on over to Medium.

要查看或添加评论,请登录

John B.的更多文章

  • Expectation Management

    Expectation Management

    Today I write this post in response to a connection’s survey I saw over the weekend. It may seem like a little bit of a…

  • SQL Select

    SQL Select

    I once was oblivious to querying databases with this statement. Prior to taking a few courses on SQL, the closest I got…

  • AUC

    AUC

    Suppose we observe 84 alcoholics with cirrhosis of the liver, of whom 29 have hepatomas - that is, liver-cell…

社区洞察

其他会员也浏览了