Generation

generate functionTue, 21 Mar 2023

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

from scipy.stats import ttest_ind import numpy as np a = np.array([1,2,3,4,5]) b = np.array([5,6,7,8,9]) ttest_ind(a, b)

Questions about programming?Chat with your personal AI assistant