Week 5 SCM (resampling and simulation) Flashcards

1
Q

what are the 4 steps to running a monte carlo simulation

A

Define a domain of possible values
Generate random numbers within that domain from a probability distribution
Perform a computation using the random numbers
Combine the results across many repetitions

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

what does randomness mean in statistics

A

unpredictable

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

what is randomness in physical processes and computer generations

A

only true randomness is generated by physical processess

Computer generated numbers can only give us pseudo random numbers out of a pregenerated list of many many numbers

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

what is bootstrapping?

A

a statistical procedure that resamples a single dataset to create many simulate samples

this allows us to make population based estimates such as standard errors and confidence intervals without actually knowing the population data

this rests on the assumption that under large sample sizes the sample distribution will be approximatly normal and the standard deviation of the distribution will be equal to the standard error

more resamples derives a better estimate of the sampling distribution

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

what is the probability of A given B

A

P(A|B) = P( A and B) / P(B)

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

whats sensitivity and specificy in screening tests

A

sensitivity is likelyhood of finding a disease when present = P(Positive Test| Disease)
Specificity is likelyhood to give a negative result when disease is absent = P(Disease| Positive Test)

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

what is bayes rule and how can we redefine it?

A

If we know P(A|B) but want to know P(B|A) we can use bayes rule
To use bayes rule we will also need to know the overall probability of B (known as the base rate)

Bayes rule:
P (B|A) = P(A|B) * P(B) / P(A)

Using the sum rule we can define P(A) as:
P(A) = P(A|B) * P(B) + P(A|¬B) * P(¬B)

therefore if we only have two outcomes bayes rule can also be expressed as:

P(B|A) = (P(A|B) * P(B)) / ( P(A|B) * P(B) + P(A|¬B) * P(¬B) )

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

what are the names for the different parts of bayes rule

A

Bayes rule:
P (B|A) = P(A|B) * P(B) / P(A)

PRIOR= P(B)
LIKELYHOOD= P(A|B)
MARGINAL LIKELYHOOD= P(A)
POSTERIOR= P(B|A)

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

How to write odds in probability notation?

A

odds of A = P(A) / P(¬A)

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

how to write the odds ratio of bayes formula

A

Bayes rule:
P (B|A) = P(A|B) * P(B) / P(A)

Prior odds= P(B) / P(¬B)
Posterior odds = P (B|A)

odds ratio= Posterior odds/ Prior odds

an odds ratio of x shows us that the odds of B is increased x amount given A.

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

what is the difference between the frequentist and the bayesian approach to statistics

A

FREQUENTIST APPROACH- interprets probabilities in terms of the long term frequencies after many repetitions. However this only works well for events that can be repeated many times in the same way

BAYESIAN APPROACH- reflects the degree of belief in a particular proposition

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

what is a vector

A

an entity that has both direction and a magnitude but not a fixed position

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

how would you notate vectors in space with coordinates

A

for 2D: p= xi + ij
for 3D:p= xi + yj + zk
where i j and k are vectors of length 1 along the x, y and z axes respectively

the vector can be visually represented as an arrow starting at an origin and ending at point p

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

how do you add vectors geometrically?

A
  • identify the parrelogram spanned by the two vectors

- the longest diagonal line between two parrelelogram points is the equivalent of vector1 + vector2

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

what is a null vector?

A

the result of subtracting a vector from itself. this is the only vector that has zero magnitude

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

what is a scalar

A

a physical quantity that is defined by its magnitude alone

17
Q

how to add vectors algebraicly

A

google it

18
Q

what does multiplying a vector by a scalar do

A

multiplying a vector by a scalar simply increases the length of the vector

google how to do it

19
Q

how to use pythagorases theorem to find the magnitude of a vector

A

m= square root of (a^2 + b^2)

20
Q

what are the inner products of vector multiplication

A
  • a (dot) b
  • which is equal to length of a | length of b | Cos(angle between a and b)
  • this shows that the inner product of two vectors is a scalar
  • it also shows that it is zero when the cosine of the angles between them is 0 (i.e when they are perpendicular
  • therefore two vectors are perpendicular when their inner product is zero
21
Q

how does a magnititude of a vector relate to the inner product

A

the magnitude of a vector can also be expressed as the inner product of itself

22
Q

what is the difference between inner products and cross products of vector multiplication

A
  • the inner product is defined in space whereas the cross product is only defined in 3D
  • the inner product results in a scalar whereas the cross product results in a vector that is perpendicular to the plane spanned by the two original vectors
  • a x b = c = a | b | sin(angle between a and b)