liveBook · Manning

Co-occurrence

Co-occurrence is the presence of two or more items, events, or attributes within the same observation, context, or defined sequence, without necessarily implying causation.

How 4 Manning books explain it

AI-Powered Search

Co-occurrence is the occurrence of two terms within the same document or contextual unit.

How it is used
Finds related terms and queries for semantic search, query expansion, and knowledge-graph edge weighting.
How deep it goes
Explains document and user-based counts, PMI adjustment, composite ranking, and sparsity limits without deriving the full statistical theory.
Examples
Uses document terms, health-related products, shared-user queries, and product pairs such as “iphone 4s” and “iphone.”
What you can do after
Apply it via SQL and search analytics to generate related-term pairs and rank them with co-occurrence, PMI, or both.

Read how AI-Powered Search explains co-occurrence →

Knowledge Graphs and LLMs in Action

Co-occurrence is the presence of two or more medical entities within the same sentence or textual context.

How it is used
Supports knowledge-graph use cases that combine unstructured medical text with structured ontology knowledge.
How deep it goes
Explains sentence-level pair generation, relationship aggregation, context retrieval, and ontology traversal, but not entity extraction itself.
Examples
Uses AIDS–Hepatitis, Zika virus–disease, and HPO disease–phenotype pairs with sentence context and ontology paths.
What you can do after
Apply via Cypher and APOC to create, rank, contextualize, validate, and explore medical-entity co-occurrences.

Read how Knowledge Graphs and LLMs in Action explains co-occurrence →

Natural Language Processing in Action, Second Edition

Co-occurrence is the occurrence of linguistic units together or in a shared sequence within a text.

How it is used
Uses neighboring terms to derive meaning, improve representations, learn embeddings, and support semantic search.
How deep it goes
Explains the shift from document-level counts to nearby context and self-supervised embeddings, but does not detail the training algorithm.
Examples
Uses short documents, nearby words, tokenized sentences, random text, and large machine-readable corpora as learning settings.
What you can do after
Evaluate how context-based counts improve language representations and support embeddings, topic analysis, and semantic search.

Read how Natural Language Processing in Action, Second Edition explains co-occurrence →

Machines that Think

The appearance of two or more events, features, or elements together, without necessarily implying causation.

How it is used
Explains how statistical associations support language-model representations while limiting claims about grounding and understanding.
How deep it goes
Connects frequency-based associations to relational semantics and multimodal conditioning, while stopping short of causal explanation or interaction-based learning.
Examples
Uses smoke with fire, sirens with emergencies, facial expressions with emotions, and related words clustering through linguistic contexts.
What you can do after
Evaluate claims of grounding by distinguishing recurring associations from causal explanation and direct interaction with the world.

Read how Machines that Think explains co-occurrence →

Related concepts

Questions about co-occurrence

What is co-occurrence?

Co-occurrence is the presence of two or more items, events, or attributes within the same observation, context, or defined sequence, without necessarily implying causation.

Which Manning books explain co-occurrence?

AI-Powered Search, Knowledge Graphs and LLMs in Action, Natural Language Processing in Action, Second Edition and Machines that Think.

What is the difference between co-occurrence and structural causal model?

Co-occurrence is the presence of two or more items, events, or attributes within the same observation, context, or defined sequence, without necessarily implying causation. A structural causal model represents causal relationships among variables through equations that determine each variable from other variables and exogenous factors.

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.