Last answered:

08 Nov 2022

Posted on:

05 Nov 2022

0

t-test vs z-test

Could you please provide more details on why do we use t-test instead of z-test? How we can make a z-test in python to compare the results? Thank you in advance!

3 answers ( 0 marked as helpful)
Super learner
This user is a Super Learner. To become a Super Learner, you need to reach Level 8.
Posted on:

06 Nov 2022

1

t-test is used when the sample size is less than 30

Posted on:

07 Nov 2022

0

but it is not our case this time, right? in this example we have more than 30 observations

Super learner
This user is a Super Learner. To become a Super Learner, you need to reach Level 8.
Posted on:

08 Nov 2022

2

True. In this case, there are 2 reason 1) the package that is used and 2) the larger the observations, the results between t-test and z-test is closer. You can try statsmodels package for z-test

Submit an answer