Ordinary Least Squares, P Value, Regression, Statsmodels.
statsmodels.api as sm from sklearn.metrics import r2_score from sklearn.model_selection import train_test_split from sklearn.preprocessing import StandardScaler import matplotlib.pyplot as plt import seaborn as sns sns.set() Load the dataset Let’s load the dataset