Exercises
The following is a series of exercises. Answers to all the exercises are given in the Answers_to_Exercises_Chap7.ipynb
Jupyter notebook in the GitHub repository:
- The
Data/paired_sampled_ttest.csv
file in the GitHub repository contains two columns of data corresponding to observations on paired samples. Use thescipy.stats.ttest_rel
function from theSciPy
package to run a two-tailed paired-sample t-test. Is the difference between the sample means statistically significant at the level? - The object returned by the
scipy.stats.ttest_rel
function has a method that computes a confidence interval for the difference between the population means. Look at the documentation onscipy.stats.ttest_rel
to see how to use this confidence interval method, and use it to calculate a 95% confidence interval for the paired sample in question 1. - A paired sample test can also be thought of as a one-sample test performed on the differences between the paired observations. The data...