Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
fixed check_lab00.py
  • Loading branch information
rcc02007 committed Sep 3, 2019
1 parent 3452a26 commit 879b9b8
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions check_lab00.py
@@ -1,4 +1,5 @@
import numpy as np
from scipy.stats import norm, t

def check_p01(data):
mu=np.mean(data)
Expand Down Expand Up @@ -36,7 +37,7 @@ def check_p03(data1,data2):

print('t=%1.2f'%tstat)

df=2*N-2
df=N1+N2-2
if tstat>t.interval(0.95, df)[1] and (mu1-mu2)/mu1<0.1:
points=2
print('Nice work')
Expand All @@ -46,4 +47,4 @@ def check_p03(data1,data2):
return points

if __name__=='__main__':
print('This is the library to check Lab 00 prework')
print('This is the library to check Lab 00 prework')

0 comments on commit 879b9b8

Please sign in to comment.