Exam Prep Flashcards

1
Q

Pairwise Independent

A

All pairs in a set are equal in probability.
P(A1)P(A2) = P(A1 n A2).

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

Mutual Independence

A

Mutual independence is everything is independent together plus the pairwise independence.

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

Normal Distribution: increase μ in pdf

A

Shifts normal distribution by distance μ in the positive direction.

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

Normal Distribution: decrease μ in pdf

A

Shifts normal distribution by distance μ in the negative direction.

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

Normal Distribution: increase σ in pdf

A

Stretches the distribution and
lowers the maximum of the function.

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

Normal Distribution: decrease σ in pdf

A

Narrows the distribution and
heightens the maximum of the function.

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

Reflexive

A

a = a.

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

Symmetric

A

a, b = b, a.

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

Transitive

A

a, b and b, c implies a, c.

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

Sample Standard Deviation

A

sqrt(1/n-1 x (sum(x - meanx)^2))

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

Sample Pearson Correlation

A

1/n-1 x ((sum(x-meanx)(y-meany)) / sx x sy)
where
sx = sample standard deviation of x
sy = sample standard deviation of y

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

Isometry Matrix

A

An isometry is any map f : R^m -> R^m that is defined on the whole space R^m and preserves the Euclidean L_2-metric.

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

Isometric Transformations

A

Reflection
Rotation
Translation
Orthogonal transformation

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

Orthogonal Transformation

A

A transformation with preserves a symmetric inner product.
Aka, it preserves lengths of vectors and angles between vectors.

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

Reduce dimensionality

A
  • SVD
  • PCA
  • (if two-dimensional) linear regression methods
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q

Standarised z-score

A

X - μ / σ
X = random variable
σ = standard deviation
μ = mean

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

Significance Level

A

x - μ / σ - sqrt(n)
x = given number (like an estimated mean)
σ = standard deviation
μ = mean
m = amount of data given (like amount of employees etc)

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

Variance

A

σ^2
E(X^2) - (E(X))^2

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

Standard Deviation

A

sqrt((sum(x - meanx)^2)/N)

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

Sample Variance

A

(sum(x - meanx)^2)/N-1

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

Covariance

A

E(XY) - (EX)(EY)
1/N x sum(x-meanx)(y-meany)

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

Sample covariance

A

1/N-1 x sum(x-meanx)(y-meany)

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

Pearson product-moment correlation

A

cov(X,Y) / (σ_X)(σ_Y)

24
Q

Size of a vector

A

|u|
sqrt(all values ^2 and then added together).

25
Q

Angle between vectors

A

angle = arccos(dot(A,B) / (|A|* |B|))

26
Q

Scalar Product

A

Let vector a = {1,2,3}
and vector b = {4,5,6}
Then a . b = (1 x 4) + (2 x 5) + (3 x 6)

27
Q

Finding orthogonal vectors

A

Lets say we have u = {1,2,3}
To find an orthogonal vector v to u, it must satisfy:
a) u . v = 0, or as rewrote by b,
b) a + 2b + 3c = 0 (example specific) where v = {a,b,c}
In this instance, we can have v = {0, -3, 2} since 0 - 6 + 6 = 0.
If we then apply a, we get:
(1 x 0) + (2 x -3) + (3 x -2) = 0

28
Q

How to find if matrix is orthogonal, and therefore isometric

A

For matrix a:
a)
if A^T x A = I
or in plain text, if the transpose of the matrix multiplied by the matrix equals the identity matrix.
A way to figure this out is by checking if the columns of A are length 1.
b)
preserves scalar products.
We are just now checking if the columns are orthogonal to each other.
Therefore, we multiply the columns together, and if they all equal 0, then as long as a is also fulfilled, we have an isometry.

29
Q

Sample correlation coefficient

A

sum((x-meanx)(y-meany)) / sqrt(sum((x-meanx)^2) x (sum((y-meany)^2))

30
Q

Proving something is a metric

A
  • distance is never negative, and the only way to have 0 distance is to point to itself
  • distance is symmetric
  • triangle inequality holds (a + b >= c)
31
Q

Single Linkage

A

Merge trees based upon minimum difference between text.

32
Q

Complete Linkage

A

Merge trees based upon maximum difference between text.

33
Q

Hamming Distance

A

Binary difference.

34
Q

Manhattan Metric

A

Denoted as L_1(p, q), and is calculated by:
sum(|p_i - q_i|)

35
Q

Euclidean Metric

A

Denoted as L_2, and is calculated by:
sqrt(sum(p_i - q_i)^2)

36
Q

Max Matric

A

Denoted as L_∞, and is calculated by:
max (|p_i - q_i|

37
Q

Is matrix a bijective?

A

If det(a) != 0, then matrix a is bijective.

38
Q

Det() for 2x2

A

ad - bc

39
Q

Det() 3x3

A

a11a22a33 + a12a23a32 + a13a21a32 - a13a22a31 - a12a21a33 - a11a21a32

40
Q

Det() signed area of a triangle

A

Coordinates of triangle - (x1, y1) (x2, y2) (x3, y3)
1/2 x det(
x2 - x1 x3 - x1
y2 - y1 y3 - y1
)

41
Q

Convex Hull

A

The shape of the smallest convex set that contains it.

42
Q

Convex Set

A

A subset that intersects every line into a single line segment.

43
Q

Invariant

A

Lets say you have apples. If we say “if it is an apple, then it is a fruit”, then we can say that fruit is an invariant. Hence, invariants are an true if statement.

44
Q

Complete invariant

A

Saying “if A is an apple, then it is produced from apple trees” is a complete invariance statement, because then we can say “if it is produced from an apple tree, then it is an apple” which is also a true statement.

45
Q

Trace of a matrix

A

All diagonal elements summed.
If we had:
1 2 3
4 5 6
7 8 9
Then the trace would be 1 + 5 + 9.

46
Q

Eigenvalue

A

If v satisfies:
Av = λv
then v is an eigenvalue.
A is the matrix, v is the eigenvector, λ is the eigenvalue.

47
Q

Det() with eigenvalues

A

det(A - λI) = 0
where A is the matrix, λ is the eigenvalue, I is the identity matrix.

48
Q

Finding eigenvectors / eigenvalues

A

From matrix a, we can
1) find eigenvalues by finding the determinant of the matrix with every diagonal element subtracted by lambda, which needs to equal 0.
2) find eigenvectors as part of a solution of (A - λI) = 0.

49
Q

Change in linear basis

A

Lets say we had a basis RB which has v1 = 3e1 + e2, v2 = -2e1 + e2.
If we wanted to translate a specific vector, lets say (2, 1), from RB to GB, we would:
1) make the equation for the vector 2v1 + v2.
2) 2v1 + v2 = (3e1 + e2) + (-2e1 + e2)
3) multiply 2v1 and 3e1, and 2v1 and e2 to give us 6e1 + 2e2.
4) multiply v2 and -2e1, and v2 and e2 giving us -2e1 + e2.
This results in (6e1 - 2e1) + (2e2 + e2) = 4e1 + 3e2

50
Q

Applying linear map with linear basis

A

1) translate RB coordinates to GB : B_rv.
2) apply the map GB : AB_rv
3) translate result back from GB to RB : (B^-1 AB)rv.

51
Q

Steps of PCA

A

1) subtract means from respective values
2) find the covariance matrix by creating a matrix S consisting of results of x being on the top or left, and results of y being on the bottom or right. We then apply the formula
SS^T / N-1.
3) find eigenvalues and eigenvectors.
4) sort the eigenvectors.
5) pick the top eigenvectors and transform the normalised dataset by multiplication

52
Q

Multiply 2x2 matrix

A

row1column1 row1column2
row2column1 row2column2

53
Q

Multiply 2x3 matrix

A

row1column1 row1column2
row2column1 row2column2

54
Q

Multiply 3x3 matrix

A

row1column1 row1column2 row1column3
row2column1 row2column2 row2column3
row3column1 row3column2 row3column3

55
Q

Inverse of 2x2

A
  • swap a and d
  • negative b and c
  • divide every number by det(original)