Learn practical skills, build real-world projects, and advance your career
import numpy as np
import pandas as pd
import seaborn as sns
import matplotlib.pyplot as plt

import warnings
warnings.filterwarnings('ignore')
1. Anscombe’s quartet

https://www.youtube.com/watch?v=Kd--Q-aTwpM

2. Pearson’s R?

https://www.youtube.com/watch?v=2B_UW-RweSE&t=177s

3. You might have observed that sometimes the value of VIF is infinite. Why does this happen?

An infinite VIF value indicates that the corresponding variable may be expressed exactly by a linear combination of other variables (which show an infinite VIF as well).

4. What is a Q-Q plot? Explain the use and importance of a Q-Q plot in linear regression.

https://www.statisticshowto.com/q-q-plots/#:~:text=The%20purpose%20of%20Q%20Q%20plots,fall%20on%20that%20reference%20line.&text=It's%20being%20compared%20to%20a,data%20on%20the%20y%2Daxis.

https://medium.com/@premal.matalia/q-q-plot-in-linear-regression-explained-ab040567d86f
from sklearn import linear_model
from sklearn.linear_model import LinearRegression
df = pd.read_csv("https://raw.githubusercontent.com/ingledarshan/upGrad_Darshan/main/CarPrice.csv")
df.head()