SNS oral exam

0.0(0)
Studied by 0 people
call kaiCall Kai
Locked
learnLearn
examPractice Test
spaced repetitionSpaced Repetition
heart puzzleMatch
flashcardsFlashcards
GameKnowt Play
Card Sorting

1/33

encourage image

There's no tags or description

Looks like no tags are added yet.

Last updated 6:33 PM on 7/8/26
Name
Mastery
Learn
Test
Matching
Spaced
Call with Kai
Chat

No analytics yet

Send a link to your students to track their progress

34 Terms

1
New cards

system

Collection of entities that act and interact with each other and want to accomplish some logical goal

2
New cards

State of a system

The information describing the system at any point in time

3
New cards

Which ways are there to study a system?

  • Experiment with the real system

  • Experiment with a model of it:

    • physical model

    • mathematical model: simulation (or analytical solution)

4
New cards

Name all simulation types

  • Static vs. Dynamic

  • Deterministic vs. Stochastic

  • Discrete vs. Continuous

5
New cards

Explain static vs. Dynamic simulation

  • Static: not based on time

  • Dynamic: based on time

6
New cards

Explain discrete vs. Continuous simulation

  • Continuous: ticks at given times

  • Discrete: time steps are event-based

7
New cards

Explain stochastic vs. Deterministic simulation

Stochastic: random

Deterministic: pre-determined what will happen next if you make a certain more

8
New cards

Explain explanatory vs. Exploratory simulation

  • Explanatory: you know what will happen but want to know why ("explain")

  • Exploratory: you want to know what will happen (e.g. in the future) ("explore")

9
New cards

Very general, what two ways are there to generate random numbers?

Hardware or software based

10
New cards

Hardware random number generation: name + pros and cons

TRNG (true random number generation)

Pros: results are not determined (that’s why “true”)

Cons: not determined implies that you can’t reproduce the experiment, you also need external hardware (extra costs)

11
New cards

RNGs with software: name, explanation

Pseudo random number generator

Algorithm that has a state (“seed”), from this number you start and update the state as you go

You can decide between integer random numbers [a,b] or floating point between 0.0 and 1.0 (you can convert between them tho)

12
New cards

What methods are there to determine whether a Pseudo-RNG is good or nah

  • Plotting points in 2D or 3D and seeing how far apart/together they are, if there are clusters that’s bad

  • “Diehard test suite”: e.g. Birthday spacings, overlapping permutations, ranks of matrices

13
New cards

What specific methods are there to generate pseudo random numbers?

  • Middle Square Method

  • Tiny RNG with full period

  • Linear Conguential Generators

  • Commodore 64 Random Algorithm

  • Mersenne Twister

  • Xorshift Algorithm

14
New cards

Middle Square Method: explain it + cons

You start with a seed number, square it, take out the n middle digits

Cons: not good cause it has a fixpoint on 0 and usually a short period

15
New cards

A tiny PRNG with full period: explain it + pros and cons

Uses a single bit-shift and XOR operation

Pros and cons: no fixed points, full period (repeats exactly after one period is over), can be done in 8-bit, 16-bit, etc., not very random in the lower bits (mostly even numbers), for higher bits we get alternating even and odd numbers

16
New cards

Linear Congruential Generators: explain + where used

There’s this one formula with the seed and three constants, for the next number you plug in whatever seed you just got from the equation type shi

Used in BSD and Microsoft C Runtime

17
New cards

Commodore 64 Random Algorithm: explain

Seed is multiplied with a big number and then a small number is added. Then we switch the bytes of the resulting number

Works well for embedded platforms

18
New cards

Mersenne Twister: pros and cons

Pros: very good results, standard algorithm for high quality simulations

Cons: complex and slow in calculation

19
New cards

Xorshift algorithm: explain + pros

It does three bitshift and XOR operations

Pros: Standard algorithm in CUDA, very good results, simple algorithm

20
New cards

Compare Mersenne vs. Xorshift

Mersenne passes more stochastic tests, has a WAY larger period but that doesn’t say much about the quality

Xorshift is faster with way less memory requirement, recovers faster from a poor starting seed

21
New cards

What is a random variate?

The actual number you get from a simulation (the simulation output/result at a specific time ig?)

22
New cards

What methods are there to generate random variates?

We have a random number generator and a distribution function, so we get the variates from there:

  • Inverse Transform

  • Box-Muller Transform

  • For discrete: Discrete Inverse Transform Method

23
New cards

Inverse transform: explain

We use the CDF (cumulative distribution function) to map the (uniformly distributed) random numbers to whatever distribution we want

In the CDF plot, any sattle point becomes a maximum in PDF distribution for example

24
New cards

Box-Muller Transform: explain

Generates values from a standard normal distribution

Has a uniform random source

Takes two independent samples and maps them to two independent standard normally distributed samples

25
New cards

Which RNG algorithm is the most promising one?

Xorshift

26
New cards

What are sample mean and sample variance (before vs. after observation)?

Before observation: random variables

After observation: functions of the data

27
New cards

How can we make the estimation of mean and variance more exact?

By having more observations n. The more the better

28
New cards

Central Limit Theorem: explain

Basically if you have enough samples from literally any population, the average (mean) will always end up following a normal distribution (bell curve thingy)

29
New cards

Confidence interval: explain

It’s an interval that contains the sample mean with a probability of 1 - alpha (level of confidence)

30
New cards

How do you compute the absolute error?

Sample mean - population mean (mu)

31
New cards

How do you compute the relative error?

(Sample mean - mu) / mu

32
New cards

What is the Q-function?

It’s the complementary function of the standard normal CDF

33
New cards

What can you use to estimate the expected steady state waiting time in a non-terminating simulation? Name + explain

M/M/1 Queue: customers served in FIFO manner

Formula is max( Waiting time + Server time - Arrival time, 0 ) (more or less lol)

34
New cards

What can you use to estimate the warmup period of a non-terminating simulation?

Welch’s Method: TODO (slide-set 3 page 33)