liveBook · Manning

Simulation

A simulation is a modeled or controlled enactment of a system, process, or scenario used to examine or reproduce behavior under specified conditions.

How 6 Manning books explain it

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.

Read how Outlier Detection in Python explains simulation →

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
Tests changes to a physical system before implementation to support prediction, optimization, and operational decisions.
How deep it goes
Defines model execution and works through continuous and discrete-event implementations, while noting calibration and industrial maintenance demands.
Examples
Uses tank drainage in OpenModelica and household appliance power use in SimPy to show changing states and scheduled events.
What you can do after
Apply it via OpenModelica or SimPy to run scenarios, inspect predicted behavior, and compare predictions with observations.

Read how Digital Twins in Action explains simulation →

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 →

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.

Read how Grokking Statistics 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
Uses time-stepped state updates to model a rocket launch when a single analytical equation is impractical.
How deep it goes
Works through propellant and motion updates in a launch loop, but stops short of air resistance and stage transitions.
Examples
Runs a small-tank rocket at half-second steps, reaching about 31 kilometers after 45 seconds, then suggests varying payload and tank size.
What you can do after
Build it from scratch by combining a propellant update with a loop that advances rocket velocity and altitude.

Read how Julia as a Second Language explains simulation →

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.

Read how Data for All explains simulation →

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.