hi I need help with this question Which of the following Python functions is use
ID: 2908845 • Letter: H
Question
hi I need help with this question Which of the following Python functions is used to perform a paired t-test?
Which of the following Python functions is used to perform a paired t-test?
Question options:
a)
ttest(mean1, stdev1, n1, mean2, stdev2, n2, equal_var=False)
b)
ttest_ind(data1, data2, equal_var=False)
c)
ttest_rel(data1, data2)
d)
means_1samp_ttest(mean, std_dev, n, null_value, alternative)
and this question as will
Which of the following Python functions is used to perform a hypothesis test for the difference in two population proportions?
Question 4 options:
a)
prop_hypothesis_test(x, n, null_value, alternative)
b)
prop_1samp_ztest(x, n, null_value, alternative)
c)
prop_1samp_hypothesistest(x, n, null_value, alternative)
d)
proportions_ztest(counts, n)
a)
ttest(mean1, stdev1, n1, mean2, stdev2, n2, equal_var=False)
b)
ttest_ind(data1, data2, equal_var=False)
c)
ttest_rel(data1, data2)
d)
means_1samp_ttest(mean, std_dev, n, null_value, alternative)
and this question as will
Which of the following Python functions is used to perform a hypothesis test for the difference in two population proportions?
Question 4 options:
a)
prop_hypothesis_test(x, n, null_value, alternative)
b)
prop_1samp_ztest(x, n, null_value, alternative)
c)
prop_1samp_hypothesistest(x, n, null_value, alternative)
d)
proportions_ztest(counts, n)
Explanation / Answer
Question 3)
Ans: Option C. ie ttest_rel(data1, data2)
Option B can be used only for those cases when we have equal variance. Ie ttest_ind(data1, data2, equal_var=True)
Question 4)
In python we can use the proportions_ztest function to test the hypothesis for Proportions.
Ans : Option d ie proportions_ztest(counts, n)
Related Questions
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.