L2b: Basic concepts in numerical computations, continued Flashcards

(11 cards)

1
Q

What should you never write on your own?

A

People spend their whole life doing this

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

What is A monte Carlo simulation, and what is the use of random numbers for it?

A
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

What is a simple linear congruential generator?

Is it truely random?

A

The u’s become more and more uniformly distributed over a large enough sample.

  • For specific values of a and n, you can plot u_n against n and see correlation and repeated patterns,
  • If I start with a specific seed, I will always get the same sequence of random numbers –> hence the game pseudorandom numbers
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

What is a mapping distribution and how does it allow use to generate a random distribution from a more complex distribution from a sequence of random variables that draw from the uniform distribution?

A
  • Basically if you take any random variable an map its realisations to its cumulative distribution function the resulting random variable generated from here is always uniform –> So we want to invert this
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

Generally what is computational complexity and what notation do we use?

A
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

What is the computation complexity of the following process?

  1. n
  2. nlog(n)
    3.exp(n)
  3. n2
  4. n3

How does this change between 0<-n<=1000 and larger values of n?

A
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

What are the two main types of computation complexity?

A

Time Complexity –> measures how the number of computational steps ( operations, comparisons, iterations) grwos with the size of the input n –> about speed and is expressed in Big-O notation.

  • Space Complexity –> measure how much memory (RAM, storage etc.) an algorithm needs as the input size n grow –> its about capacity - how much data you need to store during the computation
  • Sometimes there is a trade off between the two –> you can use extra memory to make something faster, or use less but it makes it slower –> called the time-space trade-off.
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

What are the concepts “condition number” and “stability” that arise in numerical work?

A
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

How do we run into a “condition number” problem when solving a system of linear equations Ax=b when A is invertible but very close to being singular but is not?

A
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

what happens the κ(A) the gets large?

A

Every time you solve the problem, you will run into this issue (it is independent from the algorithm) –> you would have to reformulate (if you can) the problem to make it go away

  • Need to understand that there are problems that just fundamentally amplify errors
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

How is the numerical solution to an ODE a problem with stability?

A
  • there are conditions when it does compute the correct solution (the blue line) but under other conditions the numerical solution “blows up” –> need to know under what conditions you algorithm/numerical method would do this
How well did you know this?
1
Not at all
2
3
4
5
Perfectly