Week 2 Flashcards

1
Q

Probability

A

A measure of the likelihood that an event occurs, on a scale from 0 to 1.

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

If B1, B2, B3, …, Bn is a part of event B, then P(B) = :

A

P(B) = P(B1) + P(B2) + P(B3) + … + P(Bn)

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

What does the addition rule say?
(probability)

A

If something can happen in different ways, the probability that it happens is the sum of the probabilities of all the different ways it can happen.

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

indicator

A

The outcome of a certain event

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

Unifrom distribution

A

Equal probability for all events in the set.

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

Uniform (a,b) distribution

A

When a point is picked randomly from the interval (a,b) with equal probabilities for all points. a<b

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

What is the probability that a point falls within a certain interval (x,y) with a<x<y<b when there is a uniform (a,b) distribution?

A

(y-x) / (b-a)

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

Give a formula using only unconditional probabilities for P(A|B) :

A

P(AB) / P(B)

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

When are two events A and B called independent?

A

When P(A|B) = P(A).

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

For two events A and B, P(AB) is equal to…

A

P(A) * P(B)

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

Finish the Bayes’ rule:
For a partition B1, B2, … Bn of all possible outcomes, P(Bi|A) =

A

P(A|Bi) * P(Bi)
—————————————————-/
P(A|B1)P(B1) + … + P(A|Bn)P(Bn)

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

Each path through the tree represents a sequence of possible outcomes for the various stages. What do you do to find the probability of a path?

A

Multiply the conditional probabilities along the branches.
e.g. P(1) * P(2|1) * P(3|2)…

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

Each path through the tree represents a sequence of possible outcomes for the various stages. What do you do to find the probability of an event?

A

Identify the corresponding set of paths and sum the probabilities of these paths.

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

What is the formula for (N/X) in the formula for P(X) with replacement?

A

(N/X) = N! / (X! * (N-X))

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

Binomial distribution

A

with replacement

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

What is the probability P(X) of a certain amount X of red marbles in the vase in the marbles-vase model WITH replacement?

A

P(X) = (N/X) * mu^X * ( (1-mu)^(N-X) )

The amount of marbles in the vase divided by X times the proportion of red marbles to the X-th, times the proportion of green marbles to the amount of green marbles in the vase (N-X).

17
Q

In KNN, what is the training time?

A

O(1), it is constant.

18
Q

What is a prerequisite for matrix multiplication?

A

A of dimensions a x b and B of dimensions c x d can only be multiplied if b=c.

19
Q

In KNN, what is the test time?

A

O(n), it depends on the number of test examples.