Rule
A rule is an explicitly specified condition, procedure, or directive that governs behavior, decisions, or outcomes in a defined domain.
Outlier Detection in Python
A rule is an explicitly specified condition or procedure that classifies or responds to data according to predetermined criteria.
- How it is used
- Flags known patterns in records or sorts detector-flagged outliers into categories for investigation.
- How deep it goes
- Works through row-wise tests, immediate flags, weighted scores, and post-detection labels; cautions that thresholds need judgment and tuning.
- Examples
- Uses staff-expense checks and network-session duration and error-rate tests.
- What you can do after
- Build it from scratch to flag specified records or label detector results, then inspect scores for patterns the labels may miss.
Collaborative Software Design: How to facilitate domain modeling decisions
A rule is a prescribed condition or policy that determines permitted behavior or outcomes in a domain.
- How it is used
- Uses rules to expose stakeholder expectations and discover acceptance criteria through collaborative examples.
- How deep it goes
- Explains rule capture, concrete-example testing, and discovery of additional rules through what-if discussions.
- Examples
- Uses cinema seating, “Only 1 ticket per seat,” adjacent reservations, and “No Orphan Seats” as concrete examples.
- What you can do after
- Apply via Example Mapping to document known policies, test edge cases, and turn discussions into clarified rules.
Read how Collaborative Software Design: How to facilitate domain modeling decisions explains rule →
Related concepts
- rule-based systemused by · A rule-based system produces outputs or actions by applying explicitly specified rules or conditions to inputs or represented facts.
- instructionpart of · An instruction is a directive that specifies an action, task, operation, constraint, or expected behavior for a person or computational system.
- regulationcontrasts with · A regulation is a binding rule or requirement established by an authorized body to govern conduct, activities, or operations.
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.

