Chapter 3 PMF Flashcards

1
Q

What is a Probability Mass Function (PMF)?

A

a map of each value to its probability.

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

What is the class size paradox?

A

The process of getting biased results due to more observations of large population. (ex. larger class size are observed more, so observations must be normalized)

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

Give the three sentaxs for selecting serises data from a dataframe?

A

df[‘a’] (simple indexing to select a column)

df. loc[‘a’] (loc attricutre to select row by label)
df. iloc[‘0’] (loc attribute to select row by int position)

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

Calculate a Pmf from this list

[1, 2, 2, 3, 5]

A

{1: 0.2, 2: 0.4, 3: 0.2, 5: 0.2}

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

Mathmatical definition for mean from a Pmf?

A

Where xi are the unique values and pi is the probability of that value from the Pmf

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