Skip to content

Instantly share code, notes, and snippets.

@quantra-go-algo
Created August 24, 2021 12:17
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save quantra-go-algo/35553a4c3f2cb566574c199daa53e628 to your computer and use it in GitHub Desktop.
Save quantra-go-algo/35553a4c3f2cb566574c199daa53e628 to your computer and use it in GitHub Desktop.
Importing libraries
### Import the required libraries
import numpy as np
import pandas as pd
import yfinance as yf
import datetime
import matplotlib.pyplot as plt
## To use statsmodels for linear regression
import statsmodels.formula.api as smf
## To use sklearn for linear regression
from sklearn.linear_model import LinearRegression
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment