Skip to content
DeepForgeby svx
All problems
MediumStatisticsst-332

Pearson Second Skewness Coefficient

Problem

The second Pearson skewness coefficient is 3 * (mean - median) / standard deviation.

Given the mean, median, and standard deviation, return the coefficient. Assume the standard deviation is positive.

Hint

A mean above the median indicates a right tail.

Test cases

case 1
in: [5,4,2]
expected: 1.5
case 2
in: [0,0,1]
expected: 0
case 3
in: [10,8,4]
expected: 1.5
Starter codePython
def pearson_second_skewness_coefficient(mean, median, std):
    # Your code here
    pass

3 test cases · run your code against them in the editor