Skip to content
ToolUlkaa Tool
All tools

Machine Learning

TensorFlow PlaygroundConfusion Matrix CalculatorROC Curve and AUC CalculatorK-Means Clustering VisualizerGradient Descent VisualizerDecision Tree BuilderClassifier PlaygroundPCA VisualizerActivation Function Plotter

Categories

AcademicTextMathematicsStatisticsMachine LearningAIData ScienceFile
All tools
Machine Learning

Precision-Recall Curve Calculator

See precision against recall for every threshold, and compare it with the no-skill line.

Try:
Format: score,label with label 1 (positive) or 0 (negative). A header line is fine.
Curve shown

Scores at or above the threshold are predicted positive.

Area under the ROC curve (AUC)

0.7867

An AUC of 0.787 means a randomly chosen positive gets a higher score than a randomly chosen negative 78.7% of the time (ties count half): fair separation.

Average precision
0.4335
base rate 0.1
Positives
5
Negatives
45
Best threshold
0.52
Youden J 0.489

Precision-recall curve

Confusion matrix at threshold 0.475

Actual \ PredictedPositiveNegative
Positive41
Negative1629
Accuracy
0.66
Precision
0.2
Recall (TPR)
0.8
False positive rate
0.3556
F1
0.32
MCC
0.2722

How the numbers are computed

AUC, trapezoid rule

AUC=∑i(FPRi−FPRi−1)(TPRi+TPRi−1)2\mathrm{AUC} = \sum_i \frac{(\mathrm{FPR}_i-\mathrm{FPR}_{i-1})(\mathrm{TPR}_i+\mathrm{TPR}_{i-1})}{2}AUC=∑i​2(FPRi​−FPRi−1​)(TPRi​+TPRi−1​)​

Average precision

AP=∑n(Rn−Rn−1) Pn\mathrm{AP} = \sum_n (R_n - R_{n-1})\,P_nAP=∑n​(Rn​−Rn−1​)Pn​

Scores are sorted from high to low. Each distinct score is a threshold; tied scores move together, so a tie between a positive and a negative cuts a diagonal step and counts half.

Curve points

ThresholdFPRTPR (recall)Precision
0.9200.21
0.880.02220.20.5
0.850.04440.20.3333
0.810.04440.40.5
0.790.06670.40.4
0.770.08890.40.3333
0.740.11110.40.2857
0.720.13330.40.25
0.70.15560.40.2222
0.680.17780.40.2
0.660.17780.60.2727
0.640.20.60.25
0.620.22220.60.2308
0.60.24440.60.2143
0.570.26670.60.2
0.550.28890.60.1875
0.530.31110.60.1765
0.520.31110.80.2222
0.50.33330.80.2105
0.480.35560.80.2
0.460.37780.80.1905
0.440.40.80.1818
0.420.42220.80.1739
0.40.44440.80.1667
0.380.46670.80.16
0.360.48890.80.1538
0.340.51110.80.1481
0.320.53330.80.1429
0.310.533310.1724
0.30.555610.1667
0.280.577810.1613
0.260.610.1563
0.250.622210.1515
0.230.644410.1471
0.210.666710.1429
0.20.688910.1389
0.180.711110.1351
0.170.733310.1316
0.150.755610.1282
0.140.777810.125

Showing the first 40 of 50 thresholds.

  1. Tools
  2. Machine Learning
  3. ROC Curve and AUC Calculator
  4. Precision-Recall Curve Calculator

About Precision-Recall Curve Calculator

This precision-recall curve calculator plots precision against recall for your scores and reports average precision, with a dashed line for the no-skill baseline. It is free, needs no sign-up and runs in your browser, so nothing you enter is uploaded.

The no-skill baseline is the share of positives in the data: a classifier that guesses at random has that precision at every recall. On the imbalanced example here only 5 of 50 cases are positive, so the baseline is 0.10. Its ROC AUC is 0.79, but its average precision is only 0.43, because many negatives outscore the positives.

The curve is a staircase because precision changes only when the threshold crosses a case. A sharp drop at high recall tells you how many false alarms you accept to find the last positives.

How to use Precision-Recall Curve Calculator

  1. 1Paste your data as score,label lines. A label is 1 for the positive class and 0 for the negative class; true and false also work.
  2. 2Or tap an example to load a good model, a weak model, an imbalanced set or the classic four-point example.
  3. 3Read the AUC and average precision in the result card.
  4. 4Switch between the ROC curve and the precision-recall curve.
  5. 5Move the threshold slider, or press the best-threshold button, to see the confusion matrix and metrics at that cut-off.
  6. 6Open the curve points table to see every threshold, false positive rate, true positive rate and precision.

Features

  • ROC curve with the chance diagonal, shaded area and a marker for your chosen threshold.
  • AUC by the trapezoid rule, with ties between a positive and a negative counted as half.
  • Precision-recall curve with the no-skill baseline, and average precision.
  • A threshold slider with the live confusion matrix, accuracy, precision, recall, false positive rate, F1 and MCC.
  • The best threshold by Youden's J statistic in one tap.
  • Up to 20,000 rows, with a table of the curve points.
  • A plain-English reading of what the AUC means for your model.

Worked examples

  • The imbalanced sample: 50 cases, 5 positive → gives average precision 0.433, AUC 0.787

    The ROC AUC looks stronger than the average precision because the 45 negatives keep the false positive rate small even when many are scored high.

Privacy: how it works

  • Your scores and labels are processed by code running in your browser tab. They are never sent to Ulkaa or anyone else.

Tips

  • Scores need not be probabilities. Any number where higher means more likely positive works, because only the ranking matters.
  • The AUC depends only on the order of the scores. Multiplying all scores by a constant changes nothing.
  • Tied scores are handled as one step. A tie between a positive and a negative cuts a diagonal and counts half.
  • Both classes must appear in the data, or the rates are undefined and the tool asks for more.

Frequently asked questions

Is it really free?

Yes. There is no price, no trial and no credit card. Ulkaa Tool does the work with your own device, so there is no server bill to pass on to you.

Do I need an account?

No. There is no sign-up and no login. Open the page and use it. An Ulkaa account is not needed for anything on this tool.

Does it run in my browser?

Yes. Your scores and labels are processed by code running in your browser tab, on your own device.

Is my data uploaded?

No. Your scores and labels are never sent to Ulkaa or to anyone else. You can check this yourself by watching the Network tab in your browser developer tools while you use the tool.

When is the precision-recall curve better than ROC?

When positives are rare and you care about the quality of positive predictions. Precision shows the false alarms that the false positive rate hides.

What is the no-skill line?

A horizontal line at the proportion of positive cases. A model must be above it to be better than guessing.

More ROC Curve and AUC Calculator pages

  • ROC Curve and AUC CalculatorPaste model scores and true labels to draw the ROC curve, find the AUC and explore thresholds.
  • ROC Curve CalculatorPaste scores and labels to plot the ROC curve and move along it with a threshold slider.
  • AUC CalculatorPaste scores and labels and get the area under the ROC curve.
  • Average Precision CalculatorGet the average precision of a ranked list of predictions.
  • Optimal Classification Threshold FinderFind the cut-off that best balances true positives and false positives.
  • ROC AUC for Imbalanced DataCheck what a ROC AUC means when only a few cases are positive.

Ulkaa Apps

  • Ulkaa
  • Calendar
  • Task
  • Note
  • Disk
  • Call
  • Contact
  • Mail
  • Finance
  • Health
  • Office
  • Work
  • Workspace
  • Halum
  • Jaal
  • Islam
  • Game
  • Weather
  • Campus
  • News
  • Developer
  • Help
  • Account
About·Privacy·Terms·© 2026 Ulkaa

What is Ulkaa Tool?

Ulkaa Tool is a free collection of fast, privacy-friendly online tools from Ulkaa Network. Calculate your GPA and CGPA, edit rich text, count words and characters, replace text and more — all in your browser.

Every tool runs entirely in your browser — no sign-up, and your data never leaves your device.

Academic

  • GPA Calculator
  • CGPA Calculator
  • Citation Generator
  • Quiz Maker

Text

  • Rich Text Editor
  • Word Counter
  • Character Counter
  • Text Replacement

Ulkaa

  • Ulkaa
  • Ulkaa News
  • Ulkaa Campus
  • Ulkaa Tool
  • Ulkaa Game
  • Ulkaa Weather
  • Ulkaa Islam

Company

  • About Ulkaa
  • Careers
  • Support
  • Help
  • Privacy Policy
  • Terms of Service
  • Disclaimer
  • Sitemap

© 2015-26, Ulkaa. All rights reserved.
Facebook PageLinkedIn CompanyX (Twitter) ProfileInstagram ProfileGitHub Account