Comp 1311 Mathematics 1 Flashcards

1
Q

What is the cardinality of a set?

A

The number of elements within a set

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

What is a predicate?

A

Something that is either true or false about a member of some universe (set)

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

Which set operations are associative?

A

Union
Intersection

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

Which set operations are commutative?

A

Union
Intersection

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

T/F The difference set operation is associative and commutative?

A

False
It is neither

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

When is a set a subset of another?

A

When every element of X is also a member of Y

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

What is a proper subset?

A

When a subset is strictly larger of smaller than another

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

When are two sets equal?

A

When they contain the same elements

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

What is a powerset of a set?

A

The set of all subsets of the original set.

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

What is {a} + {b}?

A

{(a,0),(b,1)}

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

What is a function?

A

A mapping between a domain and codomain where exactly one element of the domain maps to one element of the codomain

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

What is the range?

A

A subset of the codomain, for the element of the codomain that are mapped to by a function

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

What is the formula for the symmetric difference?

A

A △ B = (A-B) U (B-A)

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

What is the identity function?

A

Every value maps uniquely to itself in the codomain

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

How is a function with multiple inputs handled?

A

The domain is the Cartesian product of two sets

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

Is function composition commutative, associative, both or neither?

A

Just associative

17
Q

When is a function injective?

A

for all x, x’ in X, if f(x)=f(x’), then x = x’
Elements can map to the same value in the codomain (0 –> 0) but two elements cannot map back to the same element

18
Q

When is a function surjective?

A

If for all values in the codomain, there exists an element in the domain which maps to it.

19
Q

When is a function bijective?

A

When a function is both injective and surjective

20
Q

What is a relation from X to Y?

A

The set of some ordered pairs made from X and Y’s Cartesian product.

21
Q

What is the formula for negative binomial distribution

A

p(k|θ) = <nk>(1 − θ)^n θ^k</nk>

22
Q

What is the formula for geometric distribution?

A

p(k|θ) = (1 − θ)^(k−1) θ

23
Q

What is the expected value and variance for geometric distribution?

A

E[X] = 1/θ
V[X] = (1 - θ) / θ^2

24
Q

What is the formula for binomial distribution?

A

(nCk) θ^k (1 − θ)^(n-k)

25
Q

What is the formula for Bernoulli distribution?

A

θ^x (1 − θ)^(1−x)
θ ∈ [0, 1]

26
Q

What is the expected value formula for Bernoulli and Binomial?

A

Ber: E[X] = θ
Binomial: E[X] = nθ
E[X^2] = nθ + n(n-1)θ^2

27
Q

What is the variance formula for Binomial?

A

V[X]=nθ(1-θ)

28
Q

What is the expected value and variance of uniform distribution?

A

E[X] = (a+b)/2
V[X]=((b - a + 1)^2 - 1) / 12

29
Q

What is the formula for Poisson distribution?

A

P(X = k|λ) = (λ^k e^−λ) / k!

30
Q

What is the variance and expected value of Poisson distribution?

A

λ

31
Q

What is λ and k in Poisson distribution?

A

λ is the constant average rate of events
k is the number of events

32
Q

What is the covariance formula?

A

cov(X,Y) = E[XY]-E[X]E[Y]