All problems
Linear Equating (Z Method)
Problem
Return the equated score mean_y + (sd_y/sd_x)*(raw - mean_x), which maps a raw score from form X onto the scale of form Y using the z-score transformation. Return 0.0 when either standard deviation is not positive.
Hint
Match both the mean and the spread of the two forms.
Test cases
case 1
in: [60,50,10,100,15]
expected: 115
case 2
in: [50,50,10,100,15]
expected: 100
case 3
in: [40,50,10,100,15]
expected: 85
case 4
in: [70,60,5,500,100]
expected: 700
case 5
in: [10,50,0,100,15]
expected: 0
Starter codePython
def linear_equating(raw, mean_x, sd_x, mean_y, sd_y):
# Your code here
pass5 test cases · run your code against them in the editor