Simulation
Simulation is the modeled enactment of a system, process, or scenario under specified conditions to examine its behavior or possible outcomes.
Outlier Detection in Python
A simulation is a computational representation of a process or environment that generates observations under specified rules and conditions.
- How it is used
- Generates state-dependent synthetic data to test outlier detectors, especially on unusual sequences or groups of records.
- How deep it goes
- Explains sequential agents and state through a company simulation, with Python listings; cautions that realistic simulations are difficult to set up.
- Examples
- Uses a year of purchase and sale transactions with inventory, plus a rogue purchaser whose purchases differ as a group.
- What you can do after
- Build it from scratch to generate plausible transaction histories with known anomalous behavior and test detector reliability across varied datasets.
Robotics for Programmers
Simulation is the execution of a computational model to reproduce or predict a system's behavior without operating the physical system.
- How it is used
- Supports robotics learning, prototyping, and concurrent hardware-software development without requiring a physical robot.
- How deep it goes
- Explains simulator components and simplified kinematic models, while deferring specific simulator software architecture.
- Examples
- Uses a virtual 3D-printing manipulator, a cylinder on an inclined plane, and a robot destabilized by position commands.
- What you can do after
- Apply it via Gazebo and ROS to run virtual robots and evaluate reachability, collisions, and basic physical behavior.
Digital Twins in Action
The computational modeling of possible conditions or changes in order to predict their effects before acting on a real system.
- How it is used
- Supports what-if decisions in digital twins before changes are made to physical systems.
- How deep it goes
- Defines model execution and works through continuous tank drainage and discrete-event scheduling, including tool mechanics and model assumptions.
- Examples
- Uses tank drainage and household appliance power scheduling to illustrate continuous and discrete-event simulations.
- What you can do after
- Apply simulation via OpenModelica and SimPy to explore tank drainage and power-constrained appliance scheduling.
Experimentation for Engineers
A computational representation of a system that estimates its business metrics offline by combining data, models, scientific models, or heuristics.
- How it is used
- Estimates offline business or operational metrics to compare system changes before committing to real experiments.
- How deep it goes
- Explains components, data flow, reruns, speed, and bias, then demonstrates parameterized Python and production-log simulations.
- Examples
- Uses trading-strategy replay, market-response modeling, JIT CPU-time measurement, production-request logs, and repeated parameter variants.
- What you can do after
- Evaluate offline metric estimates, compare many variants quickly, and choose candidates for production experiments while accounting for bias.
Read how Experimentation for Engineers explains simulation →
Fundamentals of Cybersecurity
A simulation is an exercise that models a disruptive scenario to evaluate organizational responses without causing an actual disruption.
- How it is used
- Tests business continuity, disaster recovery, and security responses through controlled scenarios that avoid affecting live operations.
- How deep it goes
- Explains full reenactments, system interaction, time-based decisions, plan validation, and immediate feedback without detailing implementation procedures.
- Examples
- Uses full-scale continuity reenactments, time-pressured scenarios, and simulated phishing, smishing, vishing, and quishing attempts.
- What you can do after
- Apply simulations to validate plans, clarify responsibilities, identify weaknesses, and improve decisions under pressure.
Read how Fundamentals of Cybersecurity explains simulation →
Grokking Statistics
A simulation is a computational procedure that generates artificial outcomes according to specified rules or probability models.
- How it is used
- Uses repeated random trials to judge whether an observed result could arise from expected variation.
- How deep it goes
- Explains the simulation loop, outcome counting, visualization, and run-to-run variation, then compares results with binomial probabilities.
- Examples
- Demonstrates 10,000 experiments of 10 device trials with a 90% success threshold and charts the resulting success counts.
- What you can do after
- Apply simulation in Python to estimate outcome frequencies and interpret whether an observed trial result is plausible.
Architecting Autonomous Agentic Systems
Simulation is a technique that models or rehearses system behavior across varied inputs, conditions, and scenarios to evaluate outcomes and risks.
- How it is used
- Explores autonomous-system behavior under uncertainty to set safer decision boundaries and escalation thresholds.
- How deep it goes
- Treats simulation architecturally through failure modes, boundary conditions, stress behavior, and model drift, stopping short of exhaustive correctness.
- Examples
- Uses clinical pathway model-drift scenarios with gradual, sudden, and simultaneous confidence-score degradation.
- What you can do after
- Evaluate uncertainty-driven behavior and adjust escalation thresholds before deploying autonomous systems.
Read how Architecting Autonomous Agentic Systems explains simulation →
Julia as a Second Language
A simulation is a computational representation that models the behavior of a system by advancing its state according to specified rules.
- How it is used
- Models rocket flight by advancing state in small time steps rather than solving the entire system with one equation.
- How deep it goes
- Implements propellant updates and a launch loop, but omits air resistance and staged-rocket launches.
- Examples
- Uses a rocket launch with a 300-unit payload and invites experiments with payload and tank sizes.
- What you can do after
- Build it from scratch: implement a simplified time-step rocket launch and explore how payload and tank size affect its result.
Data for All
Simulation is the technique of representing a real or hypothetical system and running it under varying conditions to evaluate possible outcomes.
- How it is used
- Uses repeated scenarios to compare plans, test assumptions, and guide decisions before changing real markets or operations.
- How deep it goes
- Explains objectives, variable changes, repeated runs, and safe validation, but does not provide implementation or mathematical detail.
- Examples
- Uses store-network planning, pricing, promotions, products, customer counts, time boundaries, markets, and digital twins as examples.
- What you can do after
- Evaluate plans and assumptions, compare projected outcomes, and identify promising actions before committing resources.
Applied Reinforcement Learning
Simulation is the execution of a model that reproduces interactions or outcomes of an environment without operating directly in the real environment.
- How it is used
- Uses simulation as a safe sandbox for reinforcement-learning exploration and as a classical decision model compared with adaptive reinforcement learning.
- How deep it goes
- Demonstrates Markov-chain simulation and frequency-based estimates of next-state probabilities, alongside a high-level account of safe learning environments.
- Examples
- Uses software-service customer transitions for probability estimates and names warehouse robots, dynamic pricing, and trailer loading as environment scenarios.
- What you can do after
- Evaluate next-state probabilities by simulating customer transitions and normalizing observed state frequencies.
Read how Applied Reinforcement Learning explains simulation →
Machines that Think
Simulation is the computational or formal reproduction of the behavior or operation of a system.
- How it is used
- Frames whether reproducing a process’s behavior counts as performing it, especially in debates about machine intelligence.
- How deep it goes
- Defines simulation against instantiation and uses storms and arithmetic to illustrate the distinction, while leaving reasoning’s status unresolved.
- Examples
- Contrasts a simulated storm with arithmetic and compares a skilled copyist’s painting with an original.
- What you can do after
- Evaluate whether a system performs an activity or merely reproduces its structure.
Also covered in
- Tech Startup Toolkit
- Statistics Every Programmer Needs
- Grokking AI Algorithms, Second Edition
- Advanced Algorithms and Data Structures
- Build a Text-to-Image Generator (from Scratch)
- The Art of AI Product Development
- Machine Learning System Design
- Cyber Threat Hunting
- Causal Inference for Data Science
- Causal AI
- Software Testing with Generative AI
- Evolutionary Deep Learning: Genetic algorithms and neural networks
What to know first
- language modelA language model is a computational model that represents patterns in linguistic sequences to assign probabilities, predict, generate, or evaluate language.
- generationGeneration is the production of an output by a computational model from supplied input or context, often using patterns learned from data.
- business continuityBusiness continuity is an organization's capability to maintain or resume essential operations during and after a disruption.
- incident responseIncident response is the organized process of detecting, investigating, containing, resolving, and recovering from disruptive or harmful events.
Related concepts
- dynamic analysiskind of · Dynamic analysis is the examination of a program or system by executing it and observing its behavior during operation.
- simulatorimplemented by · A simulator is a computational system that models selected behavior of another system or environment to generate outcomes for testing, analysis, or experimentation.
- timestepuses · A timestep is a discrete position or interval in an ordered temporal or sequential process at which state, computation, or output may change.
- experimentationalternative to · Experimentation is the planned investigation of a question or hypothesis by conducting trials or interventions and observing their outcomes.
- discrete event simulationincludes · Discrete-event simulation is a method that models a system as an ordered sequence of distinct events that change its state over time.
- reinforcement learningused by · Reinforcement learning is a machine-learning paradigm in which an agent learns behavior or a decision policy through interaction with an environment and evaluative feedback, such as rewards.
Questions about simulation
What is simulation?
Simulation is the modeled enactment of a system, process, or scenario under specified conditions to examine its behavior or possible outcomes.
Which Manning books explain simulation?
Outlier Detection in Python, Robotics for Programmers, Digital Twins in Action, Experimentation for Engineers, Fundamentals of Cybersecurity, Grokking Statistics, Architecting Autonomous Agentic Systems, Julia as a Second Language and 3 more.
What should I know before learning simulation?
Manning books that teach simulation usually introduce language model, generation, business continuity and incident response first.
What is the difference between simulation and experimentation?
Simulation is the modeled enactment of a system, process, or scenario under specified conditions to examine its behavior or possible outcomes. Experimentation is the planned investigation of a question or hypothesis by conducting trials or interventions and observing their outcomes.
What kinds of simulation are there?
Kinds of simulation include discrete event simulation.
What is simulation a kind of?
Simulation is a kind of dynamic analysis. Dynamic analysis is the examination of a program or system by executing it and observing its behavior during operation.
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.










