.
date. First, let’s import the relevant libraries: import statsmodels.api as sm from statsmodels import regression import numpy as np import matplotlib.pyplot as plt import pandas as pd import datetime from scipy import stats from pandas_datareader import data as pdr from sklearn.linear_model import