Skip to content

Instantly share code, notes, and snippets.

@aditya0811
Created June 4, 2019 08:11
Show Gist options
  • Save aditya0811/9ac9b248080aeb5079f0c5da728499fd to your computer and use it in GitHub Desktop.
Save aditya0811/9ac9b248080aeb5079f0c5da728499fd to your computer and use it in GitHub Desktop.
dofstudenttest
num_a,num_b=len(a),len(b)
dof=((a.var()/num_a) + (b.var()/num_b))**2/((a.var()**2/(num_a**2 * (num_a-1)))+(b.var()**2/(num_b**2 * (num_b-1))))
print(dof)
>>>20.059045836684753
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment