2 Repack: Mat-243 Project
You’ll likely use the scipy.stats library. The code usually looks something like this:
The final test is a comparing the average points per game scored by the new team vs. the historical team. mat-243 project 2
Does the new team have a than the historical team? You’ll likely use the scipy
You need to calculate a 95% confidence interval for the difference between the two population means (new team skill minus historical team skill). If the entire interval lies above zero, it confirms your hypothesis test. Does the new team have a than the historical team
Before you run any tests, you must clean and filter your data. In the Python environment (often using Jupyter Notebooks or Zybooks), you will need to:
You will primarily use two functions:
se = np.sqrt((std_new2 / n_hist)) degrees_freedom = n_new + n_hist - 2 t_critical = st.t.ppf(0.975, degrees_freedom) # 95% confidence, two-tailed margin = t_critical * se