CSC 408
CSC 408
Simulation is the process of designing a model of a real system and conducting experiments with
this model to understand its behavior and evaluate various strategies for its operation.
2. Characteristics of Simulation
3. Types of Simulation
Static Simulation Represents a system at a single point in time Monte Carlo method
Discrete-Event Simulation (DES) State changes at discrete points Call center operations
1. Problem Formulation
2. Model Development
4. Model Implementation
5. Verification
6. Validation
7. Experimentation
8. Output Analysis
Definition:
A method using random sampling to obtain numerical results, typically for static systems.
Applications:
• Reliability estimation
Steps:
8. Advantages of Simulation
9. Limitations of Simulation
Sector Applications
Tool Description
12. Summary
• Simulation is essential for studying systems that are complex, uncertain, or dynamic.
Simulation and modelling are powerful tools used to represent and analyze the behavior of real-
world systems. They are essential in situations where analytical solutions are impractical or
impossible.
2. Definitions
2.1 Modelling
A model is a simplified representation of a real system that captures the essential features relevant
to a specific analysis.
Types of models:
2.2 Simulation
Simulation is the imitation of the operation of a real-world process or system over time. It involves
running experiments on a model to understand system behavior and make decisions.
• Static: Represents a system at a specific point in time (e.g., Monte Carlo simulation)
• Discrete-event simulation: Events occur at discrete points in time (e.g., bank teller system)
4. Model Translation: Implement the model using simulation software (e.g., Arena, Simul8,
AnyLogic).
Advantages
Limitations
Definition:
Applications:
• Risk analysis
• Financial forecasting
• Inventory management
Lecture Notes: MODELLING & SIMULATION by Dr Nwafor Godwin O
Steps:
• Number of servers
Performance Metrics:
• Server utilization
Note: When analytical solutions are hard to obtain (e.g., for M/G/1 queues), simulation helps
approximate system behavior.
9. Applications of Simulation
10. Conclusion
Simulation and modelling provide essential tools for analyzing and optimizing complex systems. They
offer insights where traditional analysis fails, support decision-making under uncertainty, and help
design more efficient and effective systems.
• Law, A. M., & Kelton, W. D. (2007). Simulation Modeling and Analysis. McGraw-Hill.
1. Introduction
Simulation models often rely on real-world data and random inputs to produce realistic outputs.
Understanding and applying statistical techniques is essential for:
• Chi-Square Test
• Anderson-Darling Test
• Acceptance-Rejection Method
• Model the relationship between a dependent variable and one or more independent
variables.
• Mean, variance, standard deviation of performance measures (e.g., average wait time).
Lecture Notes: MODELLING & SIMULATION by Dr Nwafor Godwin O
• Run the simulation multiple times with different random seeds to estimate variability.
• Use when two models are simulated under identical random number streams.
Purpose:
• Taguchi methods
9.1 Verification
9.2 Validation
▪ t-tests
▪ Confidence intervals
10. Summary
• Hypothesis testing and DOE aid in evaluating and improving system performance
1. Fit a normal distribution to a sample of service times and test the fit.
3. Simulate two queuing systems and compare their mean wait times using a t-test.
4. Design a factorial experiment to evaluate the impact of staffing levels and arrival rates on
customer wait times.
Lecture Notes: MODELLING & SIMULATION by Dr Nwafor Godwin O
1. Introduction
The Monte Carlo Method refers to a broad class of computational algorithms that rely on random
sampling to obtain numerical results. It is particularly useful for:
2. Historical Background
• Developed during the 1940s by scientists like Stanislaw Ulam and John von Neumann for
nuclear physics simulations during the Manhattan Project.
3. Key Concepts
Monte Carlo methods use random sampling from probability distributions (e.g., uniform, normal,
exponential).
6. Analyze Results
5. Example Applications
5.1 Estimating π
5.2 Integration
Lecture Notes: MODELLING & SIMULATION by Dr Nwafor Godwin O
In finance or project management, simulate scenarios (e.g., stock prices, costs) using assumed
distributions, and analyze variability and worst-case outcomes.
• Antithetic Variates
• Control Variates
• Importance Sampling
• Stratified Sampling
Use low-discrepancy sequences (e.g., Sobol, Halton) instead of pseudo-random numbers for better
convergence.
Advantages
• Easy to implement
Limitations
Lecture Notes: MODELLING & SIMULATION by Dr Nwafor Godwin O
• MATLAB
python
import random
N = 100000
inside_circle = 0
for _ in range(N):
x = random.uniform(0, 1)
y = random.uniform(0, 1)
inside_circle += 1
Lecture Notes: MODELLING & SIMULATION by Dr Nwafor Godwin O
pi_estimate = 4 * inside_circle / N
print(f"Estimated π = {pi_estimate}")
10. Summary
• Rubinstein, R. Y., & Kroese, D. P. (2016). Simulation and the Monte Carlo Method.