liveBook · Manning

Precision

Precision is the proportion of items identified as positive, selected, or retrieved that satisfy the relevant correctness or relevance criterion.

How 20 Manning books explain it

Grokking Machine Learning

A classification metric measuring the proportion of examples predicted as positive that are actually positive.

How it is used
Evaluates how trustworthy positive predictions are when false positives matter, particularly in spam filtering.
How deep it goes
Defines precision with a formula and confusion-matrix counts, then compares concrete classification errors rather than model-training internals.
Examples
Uses spam-filter and medical-diagnosis counts, plus exercises about video and movie recommendations.
What you can do after
Practice/perform precision calculations from classification counts and judge when false positives warrant emphasis.

Read how Grokking Machine Learning explains precision →

Natural Language Processing in Action, Second Edition

Precision is the proportion of retrieved or classified items that are relevant or correct.

How it is used
Evaluates whether toxic-comment alerts or search results are relevant rather than merely numerous.
How deep it goes
Defines precision through counted classifier predictions and contrasts it with recall and accuracy; does not develop a broader evaluation procedure.
Examples
Uses a toxic-comment classifier’s 125 correct alerts among 1,038 alerts and an Age versus age search.
What you can do after
Diagnose/debug with it when a classifier produces excessive false alerts despite seemingly acceptable accuracy.

Read how Natural Language Processing in Action, Second Edition explains precision →

Delivering Machine Learning Projects: From design to deployment

Precision is the proportion of instances predicted as positive that are actually positive.

How it is used
Sets prediction-performance expectations in project hypotheses and informs context-dependent model testing.
How deep it goes
Uses precision as a performance measure without deriving its calculation or setting a threshold.
Examples
Applies precision-and-recall measurement to proposed customer-churn and demand-prediction systems.
What you can do after
Evaluate/understand prediction performance beyond accuracy and document the basis for model selection.

Read how Delivering Machine Learning Projects: From design to deployment explains precision →

Effective Conversational AI

Precision is the proportion of a classifier's positive or selected predictions that are correct.

How it is used
Measures whether selected chatbot intents are correct and whether retrieved documents are relevant to a user’s query.
How deep it goes
Works through true and false positives, a per-intent calculation, blind-test diagnosis, and a training change; treats retrieval precision more briefly.
Examples
Uses agent-request utterances yielding 4 correct selections out of 6, plus a virtual-assistant intent improved by pruning training examples.
What you can do after
Diagnose/debug with it by locating over-selected intents, revising training examples, and retesting for effects on other intents.

Read how Effective Conversational AI explains precision →

Financial AI in Practice

Precision is the proportion of positive classifications made by a system that are correct.

How it is used
Measures how often fraud alerts are correct when comparing detection rules or evaluating a fraud model.
How deep it goes
Defines the flagged-fraud proportion and calculates it in a rule-evaluation workflow, without detailing model training or threshold selection.
Examples
Uses labeled transactions and pandas-based fraud rules, including high-value transactions from new accounts.
What you can do after
Evaluate/understand whether a fraud rule’s correct alerts justify its false positives, while checking separately how much fraud it misses.

Read how Financial AI in Practice explains precision →

Machine Learning System Design

The proportion of predicted positive cases that are actually positive.

How it is used
Measures the share of fraud alerts that identify actual fraud.
How deep it goes
Defines the ratio, works through false-positive comparisons, and cautions that changing class balance affects it.
Examples
Compares fraud models with equal recall but 20 versus 920 false positives.
What you can do after
Evaluate/understand it by checking whether changing fraud prevalence or false positives explain a reported precision score.

Read how Machine Learning System Design explains precision →

Knowledge Graphs and LLMs in Action

Precision is the proportion of predicted positive instances that are correct.

How it is used
Guides quantitative evaluation of extraction systems and graph models before deployment or large-scale knowledge-graph production.
How deep it goes
Defines prediction correctness and applies it through per-class scoring, weighted averaging, validation plots, and confusion matrices.
Examples
Uses AML models classifying licit and illicit nodes and information-extraction systems predicting entities and relations.
What you can do after
Evaluate model predictions with scikit-learn scoring functions and compare precision across classes, models, epochs, and validation data.

Read how Knowledge Graphs and LLMs in Action explains precision →

Experimentation for Engineers

Precision is the degree to which repeated estimates or measurements concentrate closely around their expected value.

How it is used
Guides reliable comparisons of noisy system measurements by using replicated aggregates rather than isolated observations.
How deep it goes
Explains aggregation, distribution narrowing, sample-size effects, and standard-error calculation, but does not establish the unknowable expectation.
Examples
Uses NumPy measurements and repeated execution-cost comparisons between ASDAQ and BYSE.
What you can do after
Evaluate noisy alternatives by computing replicated means, comparing their spread, and reporting standard error.

Read how Experimentation for Engineers explains precision →

Advanced Algorithms and Data Structures

Precision is the proportion of positive membership-test results that correspond to elements actually present in the represented set.

How it is used
Guides Bloom-filter sizing and hash-function choices when membership checks must trade memory use against false positives.
How deep it goes
Derives the false-positive estimate and optimizes k while treating n and m as fixed practical constraints.
Examples
Uses crawled URLs, indexed documents, cached values, and Bloom-filter buffer parameters as concrete applications and artifacts.
What you can do after
Apply Bloom-filter precision estimates to select memory capacity and hash-function count for a target false-positive ratio.

Read how Advanced Algorithms and Data Structures explains precision →

Generative AI in Action

Precision is the proportion of items identified as positive by a system that are actually positive.

How it is used
Evaluates the correctness of positive selections in summaries, content filters, and fine-tuned model outputs.
How deep it goes
Defines the measure and situates it among recall, F1, false positives, and qualitative checks without deriving its mathematics.
Examples
Uses ROUGE summary comparison and content-filter assessment as applied evaluation examples.
What you can do after
Evaluate model or filter decisions by comparing precision with recall, F1, error rates, qualitative evidence, and operational constraints.

Read how Generative AI in Action explains precision →

Building Reliable AI Systems

Retrieval precision is the proportion of retrieved text chunks that are relevant to a query.

How it is used
Measures the relevance of retrieved chunks when evaluating RAG and improving search results.
How deep it goes
Defines the relevant-to-retrieved ratio and illustrates it numerically, then explains a multistage retrieval strategy without prescribing relevance labels.
Examples
Uses seven relevant chunks out of ten and a remote-work policy ranked below less-relevant results.
What you can do after
Evaluate/understand it by calculating retrieved-set relevance and identifying when filtering or reranking may improve results.

Read how Building Reliable AI Systems explains precision →

The Art of AI Product Development

Precision is the proportion of retrieved search results that are relevant to the query.

How it is used
Evaluates search retrieval against annotated query sets and monitors whether optimization changes improve result relevance.
How deep it goes
Defines precision as the share of retrieved documents relevant to a query and links low scores to irrelevant results, without detailing calculation internals.
Examples
Uses API integration case studies, workflow automation, and freemium-plan feedback queries to demonstrate relevance evaluation.
What you can do after
Evaluate search quality, compare retrieval changes, and identify when results contain excessive irrelevant information.

Read how The Art of AI Product Development explains precision →

LLMs in Production

Precision is the proportion of predicted items that are correct among all predicted items.

How it is used
Evaluates generated text by measuring prediction-target overlap, especially for machine translation.
How deep it goes
Explains standard precision, demonstrates its short-output failure, and introduces BLEU’s brevity penalty and modified N-gram precision without deriving them.
Examples
Uses the “cat hat” counterexample and an NLTK BLEU comparison involving Zelda-related sentences.
What you can do after
Evaluate text predictions with NLTK’s BLEU implementation and recognize when standard precision overstates quality.

Read how LLMs in Production explains precision →

Introduction to Generative AI, Second Edition

Precision is the proportion of positive predictions that are correct among all positive predictions made by a classifier.

How it is used
Evaluates whether positive labels from an LLM judge agree reliably with expert annotations.
How deep it goes
Defines positive-prediction correctness and applies it to classifier evaluation, without detailing calculation steps or threshold selection.
Examples
Uses an LLM judge scoring enthusiasm and positivity in generated real-estate listing descriptions.
What you can do after
Evaluate annotation prompts and compare future model changes against expert-labeled judgments.

Read how Introduction to Generative AI, Second Edition explains precision →

Machine Learning Algorithms in Depth

The proportion of positive predictions that are correct.

How it is used
Evaluates binary classifier predictions, especially in information retrieval, using false-positive and true-positive counts.
How deep it goes
Defines the formula and relates it to thresholds, precision-recall curves, and F1, without deriving classifier internals.
Examples
Uses confusion matrices and threshold-varying ROC and precision-recall plots as evaluation artifacts.
What you can do after
Evaluate/understand classifier performance by computing precision and comparing it across classification thresholds.

Read how Machine Learning Algorithms in Depth explains precision →

100 Go Mistakes and How to Avoid Them

Precision is the degree to which a numerical representation or computation preserves significant detail.

How it is used
Diagnoses inaccurate results and comparisons caused by floating-point approximation in Go computations.
How deep it goes
Explains finite-bit approximations, IEEE-754 fields, comparison risks, and accumulation order, but defers conversion mechanics.
Examples
Uses float32 multiplication, IEEE-754 representation, accumulation-order functions, and numeric result comparisons.
What you can do after
Diagnose surprising floating-point results and choose comparison and evaluation-order strategies more carefully.

Read how 100 Go Mistakes and How to Avoid Them explains precision →

Data-Driven Cybersecurity

Precision is the proportion of instances predicted as a class that actually belong to that class.

How it is used
Evaluates whether high-risk, low-risk, or threat alerts are reliable enough to support cybersecurity decisions.
How deep it goes
Defines class-specific correctness and interprets reports, but stops short of presenting a mathematical formula or threshold-selection procedure.
Examples
Uses high- and low-risk news articles, network-traffic alerts, classification reports, and confusion-matrix heatmaps.
What you can do after
Evaluate model alerts by reading class-specific precision and relating false-positive costs to operational cybersecurity requirements.

Read how Data-Driven Cybersecurity explains precision →

Grokking Statistics

Precision is the proportion of predicted positive cases that are actually positive.

How it is used
Guides evaluation of positive predictions in classification systems, especially when false alarms matter.
How deep it goes
Explains interpretation through confusion-matrix examples and contrasts precision with recall, while stopping short of other negative-focused measures.
Examples
Uses wolf-detection alarms, zero-percent and 94.7-percent precision, false alarms, and accuracy under class imbalance.
What you can do after
Evaluate classification alarms by interpreting correct positive predictions, false alarms, recall, and class-imbalance effects.

Read how Grokking Statistics explains precision →

AI-Powered Search

Precision is the degree of accuracy or detail retained by a vector representation relative to the information it represents.

How it is used
Evaluates search ranking and structured generative outputs by measuring the proportion of selected results or predictions that are relevant or correct.
How deep it goes
Defines precision and works through query-level ranking, top-k counting, averaging, and entity-level error categories.
Examples
Uses top-five search judgments, a 0.36 evaluation output, and labeled news-article entities for concrete calculations.
What you can do after
Evaluate model rankings with query-level top-k precision and compare generated entities against labeled reference data.

Read how AI-Powered Search explains precision →

Time Series Forecasting Using Foundation Models

Precision is the proportion of observations labeled positive by a detection system that are actually positive.

How it is used
Evaluates the reliability of positive anomaly alerts alongside recall and F1 score.
How deep it goes
Defines and implements the metric, then demonstrates its trade-off with recall when prediction intervals change.
Examples
Uses TimeGPT, Chronos, Llama-3.2, and Time-LLM anomaly detections on daily New York City taxi data.
What you can do after
Diagnose false-positive-heavy detectors and choose larger prediction intervals when avoiding false positives matters.

Read how Time Series Forecasting Using Foundation Models explains precision →

Related concepts

These guides are generated from the text of Manning books by Manning's knowledge graph and link to the sections they draw on. The full books are available on liveBook and at manning.com.