CSC328 · TU past paper
Simulation and Modeling 2079 question paper
The complete TU 2079 exam paper for Simulation and Modeling (CSC328), all 12 questions with solved model answers written to the mark scheme.
Tap a question to open its answer.
- Q1.10 marksNumericalSimulation LanguagesHideAnswer
What is transaction in GPSS? Explain about facility in GPSS. Customers arrive at Joey Barbershop one every 15±3 minutes and it takes Joey 18±2 minutes to cut hair of a customer. Create a GPSS model with block diagram for the Barbershop using the concept of facility and run the simulation for 9 hours.[10]
- Q2.10 marksAnalog ComputerHideAnswer
Why accuracy of analog computer is low? Explain analog computer with suitable example. Differentiate between analog and digital computer.[10]
- Q3.10 marksNumericalTests for Randomness - Uniformity and indeHideAnswer
Define and develop a Poker test for four-digit random numbers. A sequence of 1,000 random numbers, each of four digits has been generated. The analysis of the numbers reveals that in 525 numbers all four digits are different, 419 contain exactly one pair of like digits, 47 contain two pairs, 9 have three digits of a kind and 7 contain all like digits. Use Poker test to determine whether these numbers are independent. (Critical value of chi-square for a = 0.05 and N = 4 is 9.49).[10]
- Q4.5 marksConfidence Intervals and Hypothesis TestinHideAnswer
Why Confidence interval is needed in the analysis of simulation output. How can we establish a confidence interval? [5]
- Q5.5 marksProbability and Monte Carlo SimulationHideAnswer
Explain the Monte Carlo simulation method with example. [5]
Monte Carlo Simulation Method
Definition
Monte Carlo simulation is a computerized mathematical technique that generates random sample data based on some known distribution for numerical experiments. It is applied to risk quantitative analysis and decision making problems.
It is used by professionals in fields such as finance, project management, energy, manufacturing, engineering, research & development, and transportation.
Three Important Characteristics
- The output must generate random samples
- The input distribution must be known
- The result must be known while performing an experiment
Flowchart for Monte Carlo Simulation
Start | v Define the Problem | v Identify Input Variables & their Distributions | v Generate Random Numbers | v Simulate the Experiment (Compute Output) | v Repeat N times? --Yes--> (back to Generate) | No v Analyze & Interpret Results | v Stop
Steps in Monte Carlo Simulation
- Define the problem and identify variables
- Determine the probability distribution of each input variable
- Generate random numbers using a method (e.g., Linear Congruential Method)
- Map random numbers to input values using the known distribution
- Compute the output/result for each trial
- Repeat the experiment a large number of times
- Analyze the aggregated results statistically
Example: Using Linear Congruential Method to Generate Random Numbers
Use the formula:
$$X_{n+1} = (a \cdot X_n + c) \mod m$$
Given:
- $X_0 = 27$, $a = 17$, $c = 43$, $m = 100$
Calculations:
Step Formula Result $X_1$ $(17 \times 27 + 43) \mod 100$ $(459 + 43) \mod 100 = 502 \mod 100 = \mathbf{2}$ $X_2$ $(17 \times 2 + 43) \mod 100$ $(34 + 43) \mod 100 = 77 \mod 100 = \mathbf{77}$ $X_3$ $(17 \times 77 + 43) \mod 100$ $(1309 + 43) \mod 100 = 1352 \mod 100 = \mathbf{52}$ $X_4$ $(17 \times 52 + 43) \mod 100$ $(884 + 43) \mod 100 = 927 \mod 100 = \mathbf{27}$ Generated sequence: 2, 77, 52, 27, ...
These random numbers (normalized as $R_n = X_n / m$) are then used as random samples to simulate real-world scenarios such as estimating probabilities, queue lengths, or financial risks.
Applications
- Estimating the value of Pi (π)
- Queue simulation (arrival and service time modeling)
- Financial risk analysis
- Project scheduling under uncertainty
Summary
Monte Carlo simulation is powerful because it allows us to model complex systems with uncertainty by running thousands of random trials and observing the distribution of outcomes, giving a probabilistic view of possible results.
- Q6.5 marksNumericalMethods of generation of Random NumberHideAnswer
Generate ten 3 digit random integers and corresponding random variables using Multiplicative Congruential method where a =7, and X0= 22. [5]
- Q7.5 marksVerification of Simulation ModelsHideAnswer
"Building a model right" and "Building a right model". Are both statements same? Discuss the importance of V&V. [5]
- Q8.5 marksDiscrete and Continuous SystemHideAnswer
Differentiate between discrete and continuous system. [5]
- Q9.5 marksProcess ExamplesHideAnswer
What is markov chain? Explain with example. [5]
- Q10.5 marksCharacteristics and Structure of Basic QueHideAnswer
Explain basic characteristics of Queuing System [5]
- Q11.5 marksTypes of ModelHideAnswer
Describe dynamic physical model in detail with the help of suitable example. [5]
- Q12.5 marksConfidence Intervals and Hypothesis TestinHideAnswer
Write short notes: a. Hypothesis testing b. Stationary poisson process [5]
Short Notes
a. Hypothesis Testing
Definition: Hypothesis testing is a statistical procedure used to make decisions or draw conclusions about a population based on sample data. It involves testing an assumption (hypothesis) about a population parameter.
Key Components:
Term Description Null Hypothesis (H₀) The default assumption to be tested (e.g., no difference, no effect) Alternative Hypothesis (H₁) The claim we want to support if H₀ is rejected Level of Significance (α) Probability of rejecting H₀ when it is actually true (Type I error), commonly α = 0.05 Test Statistic A value computed from sample data used to decide whether to reject H₀ p-value Probability of observing the test result assuming H₀ is true Steps in Hypothesis Testing:
- State H₀ and H₁
- Choose the significance level α
- Select the appropriate test statistic
- Compute the test statistic from sample data
- Compare with critical value or use p-value
- Make a decision: Reject H₀ if p-value < α, otherwise fail to reject H₀
Types of Errors:
- Type I Error: Rejecting H₀ when it is true (probability = α)
- Type II Error: Failing to reject H₀ when it is false (probability = β)
b. Stationary Poisson Process
Definition: A stationary (homogeneous) Poisson process is a counting process where arrivals occur randomly over time at a constant average rate λ (arrivals per unit time). It is the foundation of most queueing models.
Key Properties:
-
Constant Arrival Rate: The arrival rate λ does not change with time (unlike the non-stationary Poisson process where the rate λ(t) is a function of time).
-
Independent Increments: The number of arrivals in non-overlapping time intervals are independent of each other.
-
Stationary Increments: The number of arrivals in any interval depends only on the length of the interval, not on when it starts.
-
Inter-arrival Times: The time between consecutive arrivals follows an Exponential distribution with rate λ.
Mathematical Form:
The probability of exactly k arrivals in a time interval of length t is:
$$P(N(t) = k) = \frac{e^{-\lambda t} (\lambda t)^k}{k!}, \quad k = 0, 1, 2, \ldots$$
Relationship with Non-Stationary Poisson Process:
- In a non-stationary Poisson process, the arrival rate varies as λ(t).
- A non-stationary Poisson process can be transformed into a stationary Poisson process with arrival rate 1 using appropriate time-scaling techniques.
- In simulation, a stationary Poisson process is generated by drawing inter-arrival times E from an exponential distribution with rate λ* and updating arrival time as:
$$t = t + E$$
Application: Stationary Poisson processes are widely used in queueing theory (e.g., M/M/1 queue) to model customer arrivals, network packet arrivals, and service requests where the arrival rate remains constant over time.