A company believes that their new training program increases employee productivity. They collect data from two groups: before training and after training. Perform a two-sample T-test to determine if there is a significant difference in productivity.
Begin your script with:
import numpy as np
from scipy import stats
# Sample data (productivity scores)
before_training = np.array([85, 82, 88, 78, 90, 80, 87, 83, 79, 82])
after_training = np.array([92, 88, 95, 85, 96, 87, 91, 86, 89, 90])