All problems
Standard Error of Mean Difference
Problem
The standard error of the difference in independent means is sqrt(s1^2 / n1 + s2^2 / n2).
Given the two standard deviations and sample sizes, return the standard error.
Hint
Add variances of the two sample means under independence.
Test cases
case 1
in: [1,25,1,25]
expected: 0.282842712474619
case 2
in: [2,10,3,10]
expected: 1.140175425099138
case 3
in: [0,5,4,4]
expected: 2
Starter codePython
def standard_error_of_mean_difference(s1, n1, s2, n2):
# Your code here
pass3 test cases · run your code against them in the editor