All problems
Sign Test Positive Count
Problem
The sign test statistic counts how many paired differences are strictly positive.
Given the differences, return the count of positive values.
Hint
Zero differences are not signs and are excluded.
Test cases
case 1
in: [[1,-2,3]]
expected: 2
case 2
in: [[-1,-2]]
expected: 0
case 3
in: [[0,0,1]]
expected: 1
Starter codePython
def sign_test_positive_count(differences):
# Your code here
pass3 test cases · run your code against them in the editor