Variance, Covariance Matrix, Linear Regression, Standard Error, Confidence Interval.
matplotlib.pyplot as plt #Read the automobiles dataset into a Pandas DataFrame df = pd.read_csv('automobile_uciml_3vars.csv', header=0) SAMPLE_SIZE = 50 #Select a random sample of size SAMPLE_SIZE df_sample = df.sample(n=SAMPLE_SIZE) #Setup the model expression in Patsy syntax model_expr =