2079

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.

  1. 110 marksNumericalSimulation LanguagesAnswer

    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]

    Parameter Value ------ Inter-arrival time of customers $15 \pm 3$ minutes (uniform) Service time (haircut) $18 \pm 2$ minutes (uniform) Number of servers (barbers) 1 (single facility) Simulation duration 9 hours $= 9 \times 60 = 540$ min...

  2. 210 marksAnalog ComputerAnswer

    Why accuracy of analog computer is low? Explain analog computer with suitable example. Differentiate between analog and digital computer.[10]

    --- Analog computers work by equating voltages to mathematical variables. The accuracy of an analog computer is inherently limited due to the following reasons: - Physical component limitations: The electronic components such as resistor...

  3. 310 marksNumericalTests for Randomness - Uniformity and indeAnswer

    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]

    Category Observed $Oi$ ------ All four digits different 525 Exactly one pair 419 Two pairs 47 Three of a kind 9 All four alike 7 Total 1000 - $N = 1000$ numbers, each 4 digits - Critical value: $\chi^2{0.05,,4} = 9.49$ (degrees of freed...

  4. 45 marksConfidence Intervals and Hypothesis TestinAnswer

    Why Confidence interval is needed in the analysis of simulation output. How can we establish a confidence interval? [5]

    In the analysis of simulation output, a confidence interval is needed because: 1. Random Variability in Output: Output data from a simulation shows random variability when random number generators are used. Two different random number st...

  5. 55 marksProbability and Monte Carlo SimulationAnswer

    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

    1. The output must generate random samples
    2. The input distribution must be known
    3. 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

    1. Define the problem and identify variables
    2. Determine the probability distribution of each input variable
    3. Generate random numbers using a method (e.g., Linear Congruential Method)
    4. Map random numbers to input values using the known distribution
    5. Compute the output/result for each trial
    6. Repeat the experiment a large number of times
    7. 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:

    StepFormulaResult
    $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.

  6. 65 marksNumericalMethods of generation of Random NumberAnswer

    Generate ten 3 digit random integers and corresponding random variables using Multiplicative Congruential method where a =7, and X0= 22. [5]

    • Method: Multiplicative Congruential Generator (MCG), so $c = 0$ - Multiplier: $a = 7$ - Seed: $X0 = 22$ - Required: ten 3-digit random integers and corresponding random numbers - Modulus $m$: not given in the question Missing data note...
  7. 75 marksVerification of Simulation ModelsAnswer

    "Building a model right" and "Building a right model". Are both statements same? Discuss the importance of V&V. [5]

    No, both statements are NOT the same. They refer to two distinct but equally important concepts in simulation: Verification and Validation (V&V). --- Verification is concerned with building the model right. It is utilized in comparison o...

  8. 85 marksDiscrete and Continuous SystemAnswer

    Differentiate between discrete and continuous system. [5]

    A discrete system is one in which the state variables change only at a discrete set of points in time. The system changes state instantaneously at specific moments, and remains unchanged between those moments. Example: A banking system w...

  9. 95 marksProcess ExamplesAnswer

    What is markov chain? Explain with example. [5]

    A Markov Chain is a sequence of random variables X₁, X₂, X₃, ... with the Markov property, namely that, given the present state, the future and past states are independent. Mathematically, this property is expressed as: P(Xₙ₊₁ = xₙ₊₁ X₁ ...

  10. 105 marksCharacteristics and Structure of Basic QueAnswer

    Explain basic characteristics of Queuing System [5]

    A queuing system is the combination of all entities currently being served and all entities waiting for service. It arises whenever the rate of demand for a service temporarily exceeds the rate at which the system can provide that servic...

  11. 115 marksTypes of ModelAnswer

    Describe dynamic physical model in detail with the help of suitable example. [5]

    A dynamic physical model is one which changes with time or which is a function of time. Unlike static models, dynamic physical models capture the behavior of a system as it evolves over time due to system activities. In a physical model,...

  12. 125 marksConfidence Intervals and Hypothesis TestinAnswer

    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:

    TermDescription
    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 StatisticA value computed from sample data used to decide whether to reject H₀
    p-valueProbability of observing the test result assuming H₀ is true

    Steps in Hypothesis Testing:

    1. State H₀ and H₁
    2. Choose the significance level α
    3. Select the appropriate test statistic
    4. Compute the test statistic from sample data
    5. Compare with critical value or use p-value
    6. 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:

    1. 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).

    2. Independent Increments: The number of arrivals in non-overlapping time intervals are independent of each other.

    3. Stationary Increments: The number of arrivals in any interval depends only on the length of the interval, not on when it starts.

    4. 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.