scipy Flashcards
1
Q
kurtosis of an array
A
scipy.stats.kurtosis(arr)
2
Q
skew of an array
A
scipy.stats.skew(arr)
3
Q
coefficient of variation for an array
A
stats.variation(arr1)
4
Q
standard error of an array
A
stats.sem(arr1)
5
Q
z score for normal distribution with confidence = confidence
A
stats.norm.ppf((1 + confidence) / 2.)
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)
7
Q
calculate p value for normal distribution, given a z score (complete formula)
A
pvalue = (1 - stats.norm.cdf(abs(zscore))) * sides
8
Q
calculate p value for student’s T distribution, given tscore (complete formula)
A
pvalue = (1 - stats.t.cdf(abs(tscore), 9)) * (sides)