scipy Flashcards

1
Q

kurtosis of an array

A

scipy.stats.kurtosis(arr)

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

skew of an array

A

scipy.stats.skew(arr)

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

coefficient of variation for an array

A

stats.variation(arr1)

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

standard error of an array

A

stats.sem(arr1)

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

z score for normal distribution with confidence = confidence

A

stats.norm.ppf((1 + confidence) / 2.)

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

t score for student’s t distribution with confidence = confidence, and size of array is n

A

stats.t.ppf((1 + confidence) / 2., n-1)

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

calculate p value for normal distribution, given a z score (complete formula)

A

pvalue = (1 - stats.norm.cdf(abs(zscore))) * sides

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

calculate p value for student’s T distribution, given tscore (complete formula)

A

pvalue = (1 - stats.t.cdf(abs(tscore), 9)) * (sides)

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