You are given test results for two drugs: A (results for the group of people getting drug A) and B (results for the other group of people getting drug B). 1) You need to assess whether there is a statistically significant difference in the effect in these patients. Use the null hypothesis, the inverse hypothesis, and Student's t-test for calculations. 2) construct a boxplot and histogram to visually confirm the result
import matplotlib.pyplot as plt import numpy as np def plot(A, B): plt.boxplot([A, B]) plt.show() plt.hist([A, B]) plt.show() A = [1, 2, 3] B = [4, 3, 2] plot(A, B)